first commit

This commit is contained in:
PC-202306242200\Administrator
2026-03-28 23:09:02 +08:00
commit dac42e3b0c
3512 changed files with 181637 additions and 0 deletions

View 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 props={props:{modelValue:{type:[Number,String,Array],default:""},title:{type:[String,Number],default:""},options:{type:Array,default(){return[]}},disabled:{type:Boolean,default:false},height:{type:[Number,String],default:"auto"},closeOnClickOverlay:{type:Boolean,default:true}}};exports.props=props;

View File

@@ -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}

View File

@@ -0,0 +1 @@
<view a:if="{{a}}" class="u-dropdown-item data-v-b020fa00" catchTouchMove="{{e}}" catchTap="{{f}}"><block a: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" onVI="__l"><up-cell a:for="{{c}}" a:for-item="item" a:key="e" class="data-v-b020fa00" u-s="{{['d']}}" onClick="{{item.d}}" u-i="{{item.f}}" onVI="__l" u-p="{{item.g}}"><up-icon a:if="{{item.a}}" class="data-v-b020fa00" u-i="{{item.b}}" onVI="__l" u-p="{{item.c}}"></up-icon></up-cell></up-cell-group></view></scroll-view></block><slot a:else/></view>

View File

@@ -0,0 +1 @@
"use strict";const uni_modules_uviewPlus_components_uDropdownItem_props=require("./props.js");const uni_modules_uviewPlus_libs_mixin_mpMixin=require("../../libs/mixin/mpMixin.js");const uni_modules_uviewPlus_libs_mixin_mixin=require("../../libs/mixin/mixin.js");const uni_modules_uviewPlus_libs_function_index=require("../../libs/function/index.js");const common_vendor=require("../../../../common/vendor.js");const _sfc_main={name:"u-dropdown-item",mixins:[uni_modules_uviewPlus_libs_mixin_mpMixin.mpMixin,uni_modules_uviewPlus_libs_mixin_mixin.mixin,uni_modules_uviewPlus_components_uDropdownItem_props.props],options:{styleIsolation:"shared"},data(){return{active:false,activeColor:"#2979ff",inactiveColor:"#606266"}},computed:{propsChange(){return`${this.title}-${this.disabled}`}},watch:{propsChange(n){if(this.parent)this.parent.init()}},created(){this.parent=false},emits:["update:modelValue","change"],methods:{addUnit:uni_modules_uviewPlus_libs_function_index.addUnit,init(){let parent=uni_modules_uviewPlus_libs_function_index.$parent.call(this,"u-dropdown");if(parent){this.parent=parent;this.activeColor=parent.activeColor;this.inactiveColor=parent.inactiveColor;let exist=parent.children.find((val=>this===val));if(!exist)parent.children.push(this);if(parent.children.length==1)this.active=true;parent.menuList.push({title:this.title,disabled:this.disabled})}},cellClick(value){this.$emit("update:modelValue",value);this.parent.close();this.$emit("change",value)}},mounted(){this.init()}};if(!Array){const _easycom_up_icon2=common_vendor.resolveComponent("up-icon");const _easycom_up_cell2=common_vendor.resolveComponent("up-cell");const _easycom_up_cell_group2=common_vendor.resolveComponent("up-cell-group");(_easycom_up_icon2+_easycom_up_cell2+_easycom_up_cell_group2)()}const _easycom_up_icon=()=>"../u-icon/u-icon.js";const _easycom_up_cell=()=>"../u-cell/u-cell.js";const _easycom_up_cell_group=()=>"../u-cell-group/u-cell-group.js";if(!Math){(_easycom_up_icon+_easycom_up_cell+_easycom_up_cell_group)()}function _sfc_render(_ctx,_cache,$props,$setup,$data,$options){return common_vendor.e({a:$data.active},$data.active?common_vendor.e({b:!_ctx.$slots.default&&!_ctx.$slots.$default},!_ctx.$slots.default&&!_ctx.$slots.$default?{c:common_vendor.f(_ctx.options,((item,index,i0)=>common_vendor.e({a:_ctx.modelValue==item.value},_ctx.modelValue==item.value?{b:"b020fa00-2-"+i0+","+("b020fa00-1-"+i0),c:common_vendor.p({name:"checkbox-mark",color:$data.activeColor,size:"32"})}:{},{d:common_vendor.o(($event=>$options.cellClick(item.value))),e:index,f:"b020fa00-1-"+i0+",b020fa00-0",g:common_vendor.p({arrow:false,title:item.label,["title-style"]:{color:_ctx.modelValue==item.value?$data.activeColor:$data.inactiveColor}})}))),d:$options.addUnit(_ctx.height)}:{},{e:common_vendor.o((()=>{})),f:common_vendor.o((()=>{}))}):{})}const Component=common_vendor._export_sfc(_sfc_main,[["render",_sfc_render],["__scopeId","data-v-b020fa00"]]);my.createComponent(Component);

View File

@@ -0,0 +1,9 @@
{
"component": true,
"styleIsolation": "shared",
"usingComponents": {
"up-icon": "../u-icon/u-icon",
"up-cell": "../u-cell/u-cell",
"up-cell-group": "../u-cell-group/u-cell-group"
}
}