@newview/ui 1.1.27 → 1.1.28
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.
- package/package.json +1 -1
- package/types/Grid.d.ts +42 -0
package/package.json
CHANGED
package/types/Grid.d.ts
CHANGED
|
@@ -226,6 +226,33 @@ export interface GridChProp {
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
|
|
229
|
+
/**
|
|
230
|
+
* swconfig列参数
|
|
231
|
+
*/
|
|
232
|
+
export interface GridSwProp {
|
|
233
|
+
/**
|
|
234
|
+
* 多选框的尺寸,可选值为 large、small、default 或者不设置
|
|
235
|
+
*/
|
|
236
|
+
size?: string,
|
|
237
|
+
/**
|
|
238
|
+
* String | Number | Boolean,
|
|
239
|
+
*/
|
|
240
|
+
trueValue?: string | number | boolean,
|
|
241
|
+
/**
|
|
242
|
+
* 没有选中时的值,当使用类似 1 和 0 来判断是否选中时会很有用
|
|
243
|
+
*/
|
|
244
|
+
falseValue?: string | number | boolean,
|
|
245
|
+
/**
|
|
246
|
+
* 开关打开时的颜色
|
|
247
|
+
*/
|
|
248
|
+
trueColor?: string
|
|
249
|
+
/**
|
|
250
|
+
* 开关关闭时的颜色
|
|
251
|
+
*/
|
|
252
|
+
falseColor?: string
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
|
|
229
256
|
/**
|
|
230
257
|
* Option
|
|
231
258
|
*/
|
|
@@ -555,10 +582,25 @@ export interface GridColumn extends VxeColumnProps {
|
|
|
555
582
|
*/
|
|
556
583
|
ch?: GridChProp;
|
|
557
584
|
|
|
585
|
+
/**
|
|
586
|
+
* sw列参数
|
|
587
|
+
*/
|
|
588
|
+
switchConfig?: GridSwProp;
|
|
589
|
+
|
|
590
|
+
/**
|
|
591
|
+
* 禁用
|
|
592
|
+
*/
|
|
593
|
+
isEnabl?: Function
|
|
594
|
+
|
|
558
595
|
/**
|
|
559
596
|
* 表头筛选配置
|
|
560
597
|
*/
|
|
561
598
|
filter?: GridFilterProp
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* 该列内容是否作为删除提示
|
|
602
|
+
*/
|
|
603
|
+
isDelKey?:Boolean
|
|
562
604
|
}
|
|
563
605
|
|
|
564
606
|
/**
|