cuiqian2004
2025-03-21 986da22689dc9a5faef751c02348fb1f47584414
uni_modules/select-cy/components/select-cy/select-cy.vue
@@ -86,7 +86,7 @@
            default: 'value'
         },
         // 是否开启分页
         isPaging:{
         isPaging: {
            type: Boolean,
            default: false
         }
@@ -98,10 +98,10 @@
            realValue: []
         };
      },
      watch:{
         value:{
            deep:true,
            handle(val){
      watch: {
         value: {
            deep: true,
            handle(val) {
               //初始化
               this.init();
            }
@@ -126,11 +126,11 @@
               this.realValue = [];
            }
         },
         scrolltolower(){
            if(this.isPaging){
         scrolltolower() {
            if (this.isPaging) {
               this.$emit('scrolltolower')
            }
         },
         //点击展示选项
         handleSelect() {
@@ -139,9 +139,12 @@
         },
         //移除数据
         handleRemove(index) {
            var delvalue=[];
            for(var i in this.changevalue){
               delvalue.push({Name:this.changevalue[i].Name});
            var delvalue = [];
            for (var i in this.changevalue) {
               delvalue.push({
                  attr: this.changevalue[i].attr,
                  Name: this.changevalue[i].Name
               });
            }
            if (index === null) {
               this.realValue = [];
@@ -232,6 +235,7 @@
         flex: 1;
         width: 0;
         flex-wrap: nowrap;
         .uni-select-multiple-item {
            background: #bbb;
            margin-right: 5rpx;
@@ -240,8 +244,8 @@
            color: #fff;
            display: flex;
            flex: 0 0 140rpx;
            .uni-select-multiple-item-row{
            .uni-select-multiple-item-row {
               flex: 1;
               overflow: hidden;
               text-overflow: ellipsis;
@@ -265,6 +269,7 @@
         font-size: 14px;
         color: #999;
         flex-wrap: nowrap;
         .uni-disabled {
            position: absolute;
            left: 0;
@@ -385,7 +390,8 @@
            &.active {
               color: #409eff;
               background-color: #f5f7fa &:hover {
               background-color: #f5f7fa;
               &:hover {
                  color: #409eff;
                  background-color: #f5f7fa
               }
@@ -397,4 +403,4 @@
         }
      }
   }
</style>
</style>