kz-ui-base 2.5.164 → 2.5.165

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -248,6 +248,31 @@
248
248
  <span v-else>{{ scope.row[scope.column.property] }}</span>
249
249
  </el-link>
250
250
  </div>
251
+ <el-switch
252
+ v-else-if="
253
+ column.displayType == 'Switch' &&
254
+ column.setting &&
255
+ column.setting.valType &&
256
+ column.setting.valType === 'number'
257
+ "
258
+ v-model="scope.row[column.property]"
259
+ :disabled="true"
260
+ @change="onChangeEvent"
261
+ active-color="#13ce66"
262
+ inactive-color="#ff4949"
263
+ active-value="1"
264
+ inactive-value="0"
265
+ >
266
+ </el-switch>
267
+ <el-switch
268
+ v-else-if="column.displayType == 'Switch'"
269
+ v-model="scope.row[column.property]"
270
+ :disabled="true"
271
+ @change="onChangeEvent"
272
+ active-color="#13ce66"
273
+ inactive-color="#ff4949"
274
+ >
275
+ </el-switch>
251
276
  <div v-else>
252
277
  {{ scope.row[scope.column.property] }}
253
278
  </div>
@@ -518,6 +543,31 @@
518
543
  }}</span>
519
544
  </el-link>
520
545
  </div>
546
+ <el-switch
547
+ v-else-if="
548
+ column.displayType == 'Switch' &&
549
+ column.setting &&
550
+ column.setting.valType &&
551
+ column.setting.valType === 'number'
552
+ "
553
+ v-model="scope.row[column.property]"
554
+ :disabled="true"
555
+ @change="onChangeEvent"
556
+ active-color="#13ce66"
557
+ inactive-color="#ff4949"
558
+ active-value="1"
559
+ inactive-value="0"
560
+ >
561
+ </el-switch>
562
+ <el-switch
563
+ v-else-if="column.displayType == 'Switch'"
564
+ v-model="scope.row[column.property]"
565
+ :disabled="true"
566
+ @change="onChangeEvent"
567
+ active-color="#13ce66"
568
+ inactive-color="#ff4949"
569
+ >
570
+ </el-switch>
521
571
  <div v-else>
522
572
  {{ scope.row[scope.column.property] }}
523
573
  </div>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kz-ui-base",
3
- "version": "2.5.164",
3
+ "version": "2.5.165",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {