first commit
This commit is contained in:
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-dropdown-item/props.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/uni_modules/uview-plus/components/u-dropdown-item/props.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";require("../../libs/config/props/datetimePicker.js"),require("../../libs/config/props/icon.js"),require("../../libs/config/props/link.js"),require("../../libs/config/props/loadingIcon.js"),require("../../libs/config/props/navbar.js");const e={props:{modelValue:{type:[Number,String,Array],default:""},title:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1},height:{type:[Number,String],default:"auto"},closeOnClickOverlay:{type:Boolean,default:!0}}};exports.props=e;
|
||||
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("./props.js"),i=require("../../libs/mixin/mpMixin.js"),t=require("../../libs/mixin/mixin.js"),o=require("../../libs/function/index.js"),l=require("../../../../common/vendor.js"),a={name:"u-dropdown-item",mixins:[i.mpMixin,t.mixin,e.props],options:{styleIsolation:"shared"},data:()=>({active:!1,activeColor:"#2979ff",inactiveColor:"#606266"}),computed:{propsChange(){return`${this.title}-${this.disabled}`}},watch:{propsChange(e){this.parent&&this.parent.init()}},created(){this.parent=!1},emits:["update:modelValue","change"],methods:{addUnit:o.addUnit,init(){let e=o.$parent.call(this,"u-dropdown");if(e){this.parent=e,this.activeColor=e.activeColor,this.inactiveColor=e.inactiveColor,e.children.find((e=>this===e))||e.children.push(this),1==e.children.length&&(this.active=!0),e.menuList.push({title:this.title,disabled:this.disabled})}},cellClick(e){this.$emit("update:modelValue",e),this.parent.close(),this.$emit("change",e)}},mounted(){this.init()}};if(!Array){(l.resolveComponent("up-icon")+l.resolveComponent("up-cell")+l.resolveComponent("up-cell-group"))()}Math||((()=>"../u-icon/u-icon.js")+(()=>"../u-cell/u-cell.js")+(()=>"../u-cell-group/u-cell-group.js"))();const s=l._export_sfc(a,[["render",function(e,i,t,o,a,s){return l.e({a:a.active},a.active?l.e({b:!e.$slots.default&&!e.$slots.$default},e.$slots.default||e.$slots.$default?{}:{c:l.f(e.options,((i,t,o)=>l.e({a:e.modelValue==i.value},e.modelValue==i.value?{b:"b020fa00-2-"+o+",b020fa00-1-"+o,c:l.p({name:"checkbox-mark",color:a.activeColor,size:"32"})}:{},{d:l.o((e=>s.cellClick(i.value)),t),e:t,f:"b020fa00-1-"+o+",b020fa00-0",g:l.p({arrow:!1,title:i.label,"title-style":{color:e.modelValue==i.value?a.activeColor:a.inactiveColor}})}))),d:s.addUnit(e.height)},{e:l.o((()=>{})),f:l.o((()=>{}))}):{})}],["__scopeId","data-v-b020fa00"]]);wx.createComponent(s);
|
||||
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"up-icon": "../u-icon/u-icon",
|
||||
"up-cell": "../u-cell/u-cell",
|
||||
"up-cell-group": "../u-cell-group/u-cell-group"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
<view wx:if="{{a}}" class="u-dropdown-item data-v-b020fa00" catchtouchmove="{{e}}" catchtap="{{f}}"><block wx:if="{{b}}"><scroll-view class="u-dropdown-item__scroll data-v-b020fa00" scroll-y="true" style="{{'height:' + d}}"><view class="u-dropdown-item__options data-v-b020fa00"><up-cell-group class="data-v-b020fa00" u-s="{{['d']}}" u-i="b020fa00-0" bind:__l="__l"><up-cell wx:for="{{c}}" wx:for-item="item" wx:key="e" class="data-v-b020fa00" u-s="{{['d']}}" bindclick="{{item.d}}" u-i="{{item.f}}" bind:__l="__l" u-p="{{item.g}}"><up-icon wx:if="{{item.a}}" class="data-v-b020fa00" u-i="{{item.b}}" bind:__l="__l" u-p="{{item.c}}"></up-icon></up-cell></up-cell-group></view></scroll-view></block><slot wx:else/></view>
|
||||
@@ -0,0 +1 @@
|
||||
.u-empty.data-v-b020fa00,.u-empty__wrap.data-v-b020fa00,.u-tabs.data-v-b020fa00,.u-tabs__wrapper.data-v-b020fa00,.u-tabs__wrapper__scroll-view-wrapper.data-v-b020fa00,.u-tabs__wrapper__scroll-view.data-v-b020fa00,.u-tabs__wrapper__nav.data-v-b020fa00,.u-tabs__wrapper__nav__line.data-v-b020fa00{display:flex;flex-direction:column;flex-shrink:0;flex-grow:0;flex-basis:auto;align-items:stretch;align-content:flex-start}.u-dropdown-item__scroll.data-v-b020fa00{background:#fff}
|
||||
Reference in New Issue
Block a user