@newview/ui 1.1.18 → 1.1.20
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/README.md +15 -1
- package/dist/newview-ui.js +653 -164
- package/dist/newview-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/types/ComForm.d.ts +15 -2
- package/types/Grid.d.ts +55 -1
- package/vite.config.ts +1 -1
package/package.json
CHANGED
package/types/ComForm.d.ts
CHANGED
|
@@ -972,7 +972,7 @@ export interface DatePickerProp {
|
|
|
972
972
|
/**
|
|
973
973
|
* 展示的日期格式
|
|
974
974
|
*/
|
|
975
|
-
format?:
|
|
975
|
+
format?: string;
|
|
976
976
|
|
|
977
977
|
/**
|
|
978
978
|
* 日期选择器出现的位置,可选值为`top` `top-start` `top-end` `bottom` `bottom-start` `bottom-end` `left` `left-start` `left-end` `right` `right-start` `right-end`
|
|
@@ -1514,7 +1514,7 @@ export interface ComFormItem {
|
|
|
1514
1514
|
*/
|
|
1515
1515
|
type?: "Switch" | "Label" | "Button" | "Input" | "InputNumber" | "Select" | "Radio" | "Checkbox" |
|
|
1516
1516
|
"TreeSelect" | "City" | "AutoComplete" | "Slider" | "DatePicker" | "TimePicker" | "Cascader" |
|
|
1517
|
-
"TagSelect" | "Rate" | "ColorPicker" | "IconSelect" | "UploadFile" | 'TextEditor';
|
|
1517
|
+
"TagSelect" | "Rate" | "ColorPicker" | "IconSelect" | "UploadFile" | 'TextEditor' | 'DicSelect';
|
|
1518
1518
|
|
|
1519
1519
|
/**
|
|
1520
1520
|
* Switch 参数
|
|
@@ -1649,6 +1649,19 @@ export interface ComFormItem {
|
|
|
1649
1649
|
* 文本高度
|
|
1650
1650
|
*/
|
|
1651
1651
|
textHeight?: number;
|
|
1652
|
+
|
|
1653
|
+
/**
|
|
1654
|
+
* 只读模式下文本区域是否有边框
|
|
1655
|
+
*/
|
|
1656
|
+
textBorder?: boolean;
|
|
1657
|
+
/**
|
|
1658
|
+
* 字典项code
|
|
1659
|
+
*/
|
|
1660
|
+
dicCode?: string;
|
|
1661
|
+
/**
|
|
1662
|
+
* 字典项所在的平台Id 默认当前平台
|
|
1663
|
+
*/
|
|
1664
|
+
dicPId?: number
|
|
1652
1665
|
}
|
|
1653
1666
|
|
|
1654
1667
|
import type { DefineComponent } from 'vue';
|
package/types/Grid.d.ts
CHANGED
|
@@ -226,6 +226,15 @@ export interface GridChProp {
|
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
|
|
229
|
+
/**
|
|
230
|
+
* Option
|
|
231
|
+
*/
|
|
232
|
+
export interface FilterSelectOptionProp {
|
|
233
|
+
value: any,
|
|
234
|
+
label?: any,
|
|
235
|
+
text?: any,
|
|
236
|
+
checked?: boolean
|
|
237
|
+
}
|
|
229
238
|
/**
|
|
230
239
|
* 表头筛选配置
|
|
231
240
|
*/
|
|
@@ -233,11 +242,16 @@ export interface GridFilterProp {
|
|
|
233
242
|
/**
|
|
234
243
|
* 筛选类型
|
|
235
244
|
*/
|
|
236
|
-
type: "select" | "input" | "date" | "month" | "year" | "time" | "datetime" | "daterange";
|
|
245
|
+
type: "select" | "input" | "date" | "month" | "year" | "time" | "datetime" | "daterange" | "numberrange";
|
|
237
246
|
/**
|
|
238
247
|
* 下拉列表数据
|
|
239
248
|
*/
|
|
240
249
|
options?:FilterSelectOptionProp[]
|
|
250
|
+
/**
|
|
251
|
+
* 下拉选项是否多选
|
|
252
|
+
*/
|
|
253
|
+
multiple?:boolean
|
|
254
|
+
|
|
241
255
|
}
|
|
242
256
|
|
|
243
257
|
/**
|
|
@@ -336,6 +350,10 @@ export interface GridSetting {
|
|
|
336
350
|
* 表头筛选配置
|
|
337
351
|
*/
|
|
338
352
|
filterConfig?: VxeTablePropTypes.FilterConfig;
|
|
353
|
+
/**
|
|
354
|
+
* 复选框配置项
|
|
355
|
+
*/
|
|
356
|
+
checkboxConfig?: VxeTablePropTypes.CheckboxConfig;
|
|
339
357
|
}
|
|
340
358
|
|
|
341
359
|
/**
|
|
@@ -716,6 +734,38 @@ export declare class GridInstance extends BaseInstance {
|
|
|
716
734
|
* 校验数据
|
|
717
735
|
*/
|
|
718
736
|
validate(): Promise<boolean>;
|
|
737
|
+
|
|
738
|
+
/**
|
|
739
|
+
* 设置表头筛选条件
|
|
740
|
+
* @param field
|
|
741
|
+
* @param options
|
|
742
|
+
*/
|
|
743
|
+
setFilter(field,options): void
|
|
744
|
+
|
|
745
|
+
/**
|
|
746
|
+
* 根据表头筛选数据获取拼接好的查询条件
|
|
747
|
+
* @param filterParam
|
|
748
|
+
*/
|
|
749
|
+
getHeaderFilter(filterParam):void
|
|
750
|
+
|
|
751
|
+
/**
|
|
752
|
+
* 加载表头筛选数据
|
|
753
|
+
* @param _queryWrapper
|
|
754
|
+
*/
|
|
755
|
+
loadDataByHeaderFilter(_queryWrapper: QueryWrapper): void;
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* 正在执行方法中遮罩配置
|
|
759
|
+
*/
|
|
760
|
+
export interface doMethodLoadingType{
|
|
761
|
+
/**
|
|
762
|
+
* 是否显示正在执行遮罩
|
|
763
|
+
*/
|
|
764
|
+
show?:boolean;
|
|
765
|
+
/**
|
|
766
|
+
* 正在执行遮罩文本内容
|
|
767
|
+
*/
|
|
768
|
+
text?:string
|
|
719
769
|
}
|
|
720
770
|
|
|
721
771
|
import type { DefineComponent } from 'vue';
|
|
@@ -725,4 +775,8 @@ export declare const Grid: DefineComponent<{
|
|
|
725
775
|
* Gird 配置项
|
|
726
776
|
*/
|
|
727
777
|
option?: GridOptions;
|
|
778
|
+
/**
|
|
779
|
+
* 正在执行方法中遮罩配置
|
|
780
|
+
*/
|
|
781
|
+
doMethodLoading?: doMethodLoadingType;
|
|
728
782
|
}>
|