This commit is contained in:
caolc
2022-08-08 09:22:43 +08:00
commit fa1b5f31bd
1535 changed files with 285130 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uview-ui/components/u-collapse-item/u-collapse-item"],{"0c61":function(t,e,i){"use strict";i.r(e);var n=i("ed2b"),s=i("fd3f");for(var a in s)"default"!==a&&function(t){i.d(e,t,(function(){return s[t]}))}(a);i("b688");var o,r=i("f0c5"),l=Object(r["a"])(s["default"],n["b"],n["c"],!1,null,"6627287f",null,!1,n["a"],o);e["default"]=l.exports},"13c9":function(t,e,i){},ab41:function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n={name:"u-collapse-item",props:{title:{type:String,default:""},align:{type:String,default:"left"},disabled:{type:Boolean,default:!1},open:{type:Boolean,default:!1},name:{type:[Number,String],default:""},activeStyle:{type:Object,default:function(){return{}}},index:{type:[String,Number],default:""}},data:function(){return{isShow:!1,elId:this.$u.guid(),height:0,headStyle:{},bodyStyle:{},itemStyle:{},arrowColor:"",hoverClass:"",arrow:!0}},watch:{open:function(t){this.isShow=t}},created:function(){this.parent=!1,this.isShow=this.open},methods:{init:function(){var t=this;this.parent=this.$u.$parent.call(this,"u-collapse"),this.parent&&(this.nameSync=this.name?this.name:this.parent.childrens.length,this.parent.childrens.push(this),this.headStyle=this.parent.headStyle,this.bodyStyle=this.parent.bodyStyle,this.arrowColor=this.parent.arrowColor,this.hoverClass=this.parent.hoverClass,this.arrow=this.parent.arrow,this.itemStyle=this.parent.itemStyle),this.$nextTick((function(){t.queryRect()}))},headClick:function(){var t=this;this.disabled||(this.parent&&1==this.parent.accordion&&this.parent.childrens.map((function(e){t!=e&&(e.isShow=!1)})),this.isShow=!this.isShow,this.$emit("change",{index:this.index,show:this.isShow}),this.isShow&&this.parent&&this.parent.onChange(),this.$forceUpdate())},queryRect:function(){var t=this;this.$uGetRect("#"+this.elId).then((function(e){t.height=e.height}))}},mounted:function(){this.init()}};e.default=n},b688:function(t,e,i){"use strict";var n=i("13c9"),s=i.n(n);s.a},ed2b:function(t,e,i){"use strict";i.d(e,"b",(function(){return s})),i.d(e,"c",(function(){return a})),i.d(e,"a",(function(){return n}));var n={uIcon:function(){return i.e("uview-ui/components/u-icon/u-icon").then(i.bind(null,"747e"))}},s=function(){var t=this,e=t.$createElement,i=(t._self._c,t.__get_style([t.itemStyle])),n=t.__get_style([t.headStyle]),s=t.$slots["title-all"]||t.$slots["title"]?null:t.__get_style([{textAlign:t.align?t.align:"left"},t.isShow&&t.activeStyle&&!t.arrow?t.activeStyle:""]),a=t.__get_style([t.bodyStyle]);t.$mp.data=Object.assign({},{$root:{s0:i,s1:n,s2:s,s3:a}})},a=[]},fd3f:function(t,e,i){"use strict";i.r(e);var n=i("ab41"),s=i.n(n);for(var a in n)"default"!==a&&function(t){i.d(e,t,(function(){return n[t]}))}(a);e["default"]=s.a}}]);
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
'uview-ui/components/u-collapse-item/u-collapse-item-create-component',
{
'uview-ui/components/u-collapse-item/u-collapse-item-create-component':(function(module, exports, __webpack_require__){
__webpack_require__('543d')['createComponent'](__webpack_require__("0c61"))
})
},
[['uview-ui/components/u-collapse-item/u-collapse-item-create-component']]
]);

View File

@@ -0,0 +1,6 @@
{
"usingComponents": {
"u-icon": "/uview-ui/components/u-icon/u-icon"
},
"component": true
}

View File

@@ -0,0 +1 @@
<view class="u-collapse-item data-v-6627287f" style="{{$root.s0}}"><view class="u-collapse-head data-v-6627287f" style="{{$root.s1}}" hover-stay-time="{{200}}" hover-class="{{hoverClass}}" data-event-opts="{{[['tap',[['headClick',['$event']]]]]}}" catchtap="__e"><block wx:if="{{!$slots['title-all']}}"><block class="data-v-6627287f"><block wx:if="{{!$slots['title']}}"><view class="u-collapse-title u-line-1 data-v-6627287f" style="{{$root.s2}}">{{''+title+''}}</view></block><block wx:else><slot name="title"></slot></block><view class="u-icon-wrap data-v-6627287f"><block wx:if="{{arrow}}"><u-icon class="{{['u-arrow-down-icon','data-v-6627287f',(isShow)?'u-arrow-down-icon-active':'']}}" vue-id="0d7db80e-1" color="{{arrowColor}}" name="arrow-down" bind:__l="__l"></u-icon></block></view></block></block><block wx:else><slot name="title-all"></slot></block></view><view class="u-collapse-body data-v-6627287f" style="{{'height:'+(isShow?height+'px':'0')+';'}}"><view class="u-collapse-content data-v-6627287f" style="{{$root.s3}}" id="{{elId}}"><slot></slot></view></view></view>

View File

@@ -0,0 +1 @@
.u-collapse-item.data-v-6627287f :last-child{border:0}.u-collapse-head.data-v-6627287f{position:relative;display:flex;flex-direction:row;justify-content:space-between;align-items:center;color:#303133;font-size:30rpx;line-height:1;padding:24rpx 0;text-align:left}.u-collapse-title.data-v-6627287f{flex:1;overflow:hidden}.u-arrow-down-icon.data-v-6627287f{transition:all .3s;margin-right:20rpx;margin-left:14rpx}.u-arrow-down-icon-active.data-v-6627287f{-webkit-transform:rotate(180deg);transform:rotate(180deg);-webkit-transform-origin:center center;transform-origin:center center}.u-collapse-body.data-v-6627287f{overflow:hidden;transition:all .3s}.u-collapse-content.data-v-6627287f{overflow:hidden;font-size:28rpx;color:#909399;text-align:left}