cnhis-design-vue 3.1.45-release.1 → 3.1.45
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 +87 -87
- package/es/components/annotation-edit/src/AnnotationEdit.js +1 -1
- package/es/components/bpmn-workflow/src/BpmnWorkflow.d.ts +0 -0
- package/es/components/bpmn-workflow/types/BpmnViewer.d.ts +1 -0
- package/es/components/bpmn-workflow/types/ModelingModule.d.ts +1 -0
- package/es/components/bpmn-workflow/types/MoveCanvasModule.d.ts +1 -0
- package/es/components/fabric-chart/index.d.ts +40 -5
- package/es/components/fabric-chart/src/FabricChart.vue.d.ts +40 -5
- package/es/components/fabric-chart/src/hooks/birthProcess/useBirthProcess.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.d.ts +2 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/index.js +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.d.ts +4 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useCenter.js +1 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.d.ts +20 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useSurgicalAnesthesiaChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.d.ts +4 -0
- package/es/components/fabric-chart/src/hooks/surgicalAnesthesia/useTop.js +1 -0
- package/es/components/fabric-chart/src/hooks/temperature/useLeft.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useRight.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTemperatureChart.js +1 -1
- package/es/components/fabric-chart/src/hooks/temperature/useTop.js +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useDraw.js +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.d.ts +1 -1
- package/es/components/fabric-chart/src/hooks/useGrid.js +1 -1
- package/es/components/fabric-chart/src/interface.d.ts +13 -0
- package/es/components/fabric-chart/src/utils/index.d.ts +2 -1
- package/es/components/fabric-chart/src/utils/index.js +1 -1
- package/es/components/field-set/index.d.ts +157 -38
- package/es/components/field-set/src/FieldSet.vue.d.ts +160 -23
- package/es/components/field-set/src/FieldSet.vue2.js +1 -1
- package/es/components/field-set/src/components/Row.vue.d.ts +132 -0
- package/es/components/field-set/src/components/Row.vue.js +1 -0
- package/es/components/field-set/src/components/Row.vue2.js +1 -0
- package/es/components/field-set/src/types/index.d.ts +1 -0
- package/es/components/field-set/src/utils/index.d.ts +7 -0
- package/es/components/field-set/src/utils/index.js +1 -0
- package/es/components/field-set/style/index.css +1 -1
- package/es/components/form-config/index.d.ts +3534 -21
- package/es/components/form-config/src/FormConfig.vue.d.ts +3534 -21
- package/es/components/form-config/src/FormConfig.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +31 -4
- package/es/components/form-config/src/components/FormConfigDragDisplay.vue2.js +1 -1
- package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +33 -4
- package/es/components/form-config/src/components/FormConfigMaterialItem.d.ts +11 -1
- package/es/components/form-config/src/components/FormConfigMaterialItem.js +1 -1
- package/es/components/form-config/src/components/renderer/DefaultNode.vue.d.ts +2 -0
- package/es/components/form-config/src/components/renderer/DefaultNode.vue2.js +1 -1
- package/es/components/form-config/src/constants/index.d.ts +1 -0
- package/es/components/form-config/src/constants/index.js +1 -1
- package/es/components/form-config/src/hooks/useSortalbeConfig.js +1 -1
- package/es/components/form-config/src/types/index.d.ts +2 -0
- package/es/components/form-config/style/index.css +1 -1
- package/es/components/form-render/index.d.ts +31 -4
- package/es/components/form-render/src/FormRender.vue.d.ts +31 -4
- package/es/components/form-render/src/FormRender.vue2.js +1 -1
- package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +31 -4
- package/es/components/form-render/src/components/renderer/combination.d.ts +5 -5
- package/es/components/form-render/src/components/renderer/combination.js +1 -1
- package/es/components/form-render/src/components/renderer/jsonCombination/index.d.ts +5 -5
- package/es/components/form-render/src/components/renderer/jsonCombination/index.js +1 -1
- package/es/components/form-render/src/components/renderer/levelSearchCascader.js +1 -1
- package/es/components/form-render/src/constants/index.d.ts +2 -0
- package/es/components/form-render/src/constants/index.js +1 -1
- package/es/components/form-render/src/hooks/useFieldListAdaptor.js +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormAsyncQueue.js +1 -1
- package/es/components/form-render/src/hooks/useFormContext.js +1 -1
- package/es/components/form-render/src/hooks/useFormRenderLifeCycle.d.ts +3 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.d.ts +1 -1
- package/es/components/form-render/src/hooks/useFormRenderOptions.js +1 -1
- package/es/components/form-render/src/hooks/useNuiThemeOverrides.js +1 -1
- package/es/components/form-render/src/types/index.d.ts +2 -0
- package/es/components/iho-table/src/plugins/lowCodeFieldAdaptorPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/editDate.vue2.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/dateRendererPlugin/index.js +1 -1
- package/es/components/iho-table/src/plugins/rendererPlugins/editableWidgets/hooks/useAutoFocus.js +1 -1
- package/es/components/index.css +1 -1
- package/es/components/info-header/index.d.ts +72 -10
- package/es/components/info-header/src/InfoHeader.vue.d.ts +72 -10
- package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +31 -4
- package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +31 -4
- package/es/components/keyboard/index.d.ts +1 -1
- package/es/components/keyboard/src/Keyboard.vue.d.ts +1 -1
- package/es/components/recommend-search/index.d.ts +2 -2
- package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +2 -2
- package/es/components/recommend-search/src/components/BaseSearch.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendInput.vue.d.ts +1 -1
- package/es/components/recommend-search/src/components/RecommendSelect.vue.d.ts +1 -1
- package/es/components/scale-view/src/ScaleView.vue2.js +1 -1
- package/es/components/search-cascader/index.d.ts +16 -3
- package/es/components/search-cascader/src/SearchCascader.vue.d.ts +16 -3
- package/es/components/search-cascader/src/SearchCascader.vue2.js +1 -1
- package/es/components/search-cascader/src/components/SearchMenu.js +1 -1
- package/es/components/select-label/src/LabelFormContent.vue2.js +1 -1
- package/es/components/select-person/src/SearchMultiple.vue.d.ts +0 -6
- package/es/components/shortcut-setter/index.d.ts +31 -4
- package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +31 -4
- package/es/env.d.ts +25 -25
- package/es/shared/assets/img/failure.png.js +1 -1
- package/es/shared/assets/img/no-permission.png.js +1 -1
- package/es/shared/assets/img/nodata.png.js +1 -1
- package/es/shared/assets/img/notfound.png.js +1 -1
- package/es/shared/assets/img/qr.png.js +1 -1
- package/es/shared/assets/img/success.png.js +1 -1
- package/es/shared/assets/img/video.png.js +1 -1
- package/es/shared/assets/img/video_default_cover.png.js +1 -1
- package/es/shared/assets/img/xb_big.png.js +1 -1
- package/es/shared/assets/img/xb_small.png.js +1 -1
- package/es/shared/components/VueDraggable/src/vuedraggable.d.ts +86 -0
- package/es/shared/hooks/useAsyncQueue.d.ts +3 -1
- package/es/shared/hooks/useAsyncQueue.js +1 -1
- package/es/shared/package.json.js +1 -1
- package/es/shared/utils/fabricjs/index.d.ts +6823 -0
- package/es/shared/utils/tapable/index.d.ts +139 -0
- package/package.json +2 -2
- package/es/components/search-cascader/src/hooks/index.d.ts +0 -1
- package/es/components/search-cascader/src/hooks/index.js +0 -1
- package/es/components/search-cascader/src/hooks/useCssVariable.d.ts +0 -3
- package/es/components/search-cascader/src/hooks/useCssVariable.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{isNull as n}from"lodash-es";function t(n){return(null==n?void 0:n.time)&&((null==n?void 0:n.value)||0===(null==n?void 0:n.value))}function e(n,t){const e={};for(const
|
|
1
|
+
import{isNull as n}from"lodash-es";function t(n){return(null==n?void 0:n.time)&&((null==n?void 0:n.value)||0===(null==n?void 0:n.value))}function e(n,t){const e={};for(const r in n)t.map((n=>n.type)).includes(r)||(e[r]=n[r]);return e}function r(n,t){const e=t.findIndex((t=>new Date(t.time).getTime()>new Date(n).getTime()));return~e?e:t.length}function u(n){return["temperature","pulse"].includes(n)}function i(n,t){return n.includes("心率")?"pulse_other":t}function o(n){return n.includes("_other")?n.split("_")[0]:n}function l(t){return!Number.isNaN(+t)&&!n(t)}function c(n,t){return f(n.left,1)===f(t.left,1)&&Math.abs(f(n.top,1)-f(t.top,1))<=2}function f(n,t=100){return Math.floor(n*t)/t}function s(n){let t=0;return n.forEach((n=>{var e;(null==(e=n.children)?void 0:e.length)?t+=s(n.children):t++})),t}export{e as deleteProperty,s as getChildrenSize,f as getFloorNumber,r as getIndex,o as getType,t as isEffectiveNode,u as isOneLine,c as isOverlapPoint,l as isValidValue,i as setOtherType};
|
|
@@ -34,16 +34,14 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
34
34
|
type: BooleanConstructor;
|
|
35
35
|
default: boolean;
|
|
36
36
|
};
|
|
37
|
+
showColumnNames: {
|
|
38
|
+
type: import("vue").PropType<import("./src/types").FieldSetColumnName[]>;
|
|
39
|
+
};
|
|
40
|
+
groupSetting: {
|
|
41
|
+
type: import("vue").PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("..").IhoTableRowGroupItem[]>> | undefined>;
|
|
42
|
+
};
|
|
37
43
|
}, {
|
|
38
44
|
fieldsMapping: Record<string, string>;
|
|
39
|
-
fixedWayOptions: {
|
|
40
|
-
label: string;
|
|
41
|
-
value: string;
|
|
42
|
-
}[];
|
|
43
|
-
sortOptions: {
|
|
44
|
-
label: string;
|
|
45
|
-
value: string;
|
|
46
|
-
}[];
|
|
47
45
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
48
46
|
fields: {
|
|
49
47
|
type: import("vue").PropType<Partial<{
|
|
@@ -78,6 +76,12 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
78
76
|
type: BooleanConstructor;
|
|
79
77
|
default: boolean;
|
|
80
78
|
};
|
|
79
|
+
showColumnNames: {
|
|
80
|
+
type: import("vue").PropType<import("./src/types").FieldSetColumnName[]>;
|
|
81
|
+
};
|
|
82
|
+
groupSetting: {
|
|
83
|
+
type: import("vue").PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("..").IhoTableRowGroupItem[]>> | undefined>;
|
|
84
|
+
};
|
|
81
85
|
}>> & {
|
|
82
86
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
83
87
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -86,47 +90,24 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
86
90
|
emit: (event: "close" | "save" | "reset", ...args: any[]) => void;
|
|
87
91
|
newFields: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
|
|
88
92
|
columns: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
|
|
93
|
+
fieldList: import("vue").ComputedRef<import("../../../es/shared/types").AnyObject[]>;
|
|
89
94
|
handleFieldSave: () => void;
|
|
90
95
|
onCancle: () => void;
|
|
91
96
|
reset: () => void;
|
|
92
|
-
setOptions: (column: import("../../../es/shared/types").AnyObject) => {
|
|
93
|
-
label: string;
|
|
94
|
-
value: string;
|
|
95
|
-
}[];
|
|
96
|
-
setStyle: (column: import("../../../es/shared/types").AnyObject) => import("vue").CSSProperties;
|
|
97
97
|
isShowColumn: (column: import("../../../es/shared/types").AnyObject) => boolean;
|
|
98
98
|
initFields: () => import("../../../es/shared/types").AnyObject[];
|
|
99
|
+
handleGroup: (fields: import("../../../es/shared/types").AnyObject[]) => import("../../../es/shared/types").AnyObject[];
|
|
99
100
|
getTableFields: () => import("../../../es/shared/types").AnyObject[];
|
|
100
101
|
handleAllCheck: (checked: boolean, field: string) => void;
|
|
101
|
-
handleCheck: (checked
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
name: string;
|
|
106
|
-
show: boolean;
|
|
107
|
-
sort: boolean;
|
|
108
|
-
sortDirection: "NONE" | "ASC" | "DESC";
|
|
109
|
-
title: string;
|
|
110
|
-
alias: string;
|
|
111
|
-
fixedShow: boolean;
|
|
112
|
-
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
113
|
-
columnWidth: number | null;
|
|
114
|
-
editable: boolean;
|
|
115
|
-
editableDisable: boolean;
|
|
116
|
-
required: boolean;
|
|
117
|
-
requiredDisable: boolean;
|
|
118
|
-
hide: boolean;
|
|
119
|
-
}>, key: string) => any;
|
|
102
|
+
handleCheck: ({ checked, column }: {
|
|
103
|
+
checked: boolean;
|
|
104
|
+
column: import("../../../es/shared/types").AnyObject;
|
|
105
|
+
}) => void;
|
|
120
106
|
initColumns: () => void;
|
|
121
107
|
isNoAllCheck: (field: string) => boolean;
|
|
122
108
|
NButton: any;
|
|
123
109
|
NCheckbox: any;
|
|
124
|
-
NSelect: any;
|
|
125
|
-
NInput: any;
|
|
126
|
-
NInputNumber: any;
|
|
127
|
-
NTooltip: any;
|
|
128
110
|
NPopconfirm: any;
|
|
129
|
-
NIcon: any;
|
|
130
111
|
Draggable: import("vue").DefineComponent<{
|
|
131
112
|
list: {
|
|
132
113
|
type: ArrayConstructor;
|
|
@@ -200,7 +181,139 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
200
181
|
modelValue: unknown[];
|
|
201
182
|
componentData: Record<string, any>;
|
|
202
183
|
}>;
|
|
203
|
-
|
|
184
|
+
Row: import("vue").DefineComponent<{
|
|
185
|
+
element: {
|
|
186
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
187
|
+
default: () => {};
|
|
188
|
+
};
|
|
189
|
+
columns: {
|
|
190
|
+
type: import("vue").PropType<Partial<{
|
|
191
|
+
[key: string]: any;
|
|
192
|
+
id: string;
|
|
193
|
+
name: string;
|
|
194
|
+
show: boolean;
|
|
195
|
+
sort: boolean;
|
|
196
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
197
|
+
title: string;
|
|
198
|
+
alias: string;
|
|
199
|
+
fixedShow: boolean;
|
|
200
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
201
|
+
columnWidth: number | null;
|
|
202
|
+
editable: boolean;
|
|
203
|
+
editableDisable: boolean;
|
|
204
|
+
required: boolean;
|
|
205
|
+
requiredDisable: boolean;
|
|
206
|
+
hide: boolean;
|
|
207
|
+
}>[]>;
|
|
208
|
+
default: () => never[];
|
|
209
|
+
};
|
|
210
|
+
}, {
|
|
211
|
+
fixedWayOptions: {
|
|
212
|
+
label: string;
|
|
213
|
+
value: string;
|
|
214
|
+
}[];
|
|
215
|
+
sortOptions: {
|
|
216
|
+
label: string;
|
|
217
|
+
value: string;
|
|
218
|
+
}[];
|
|
219
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
220
|
+
element: {
|
|
221
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
222
|
+
default: () => {};
|
|
223
|
+
};
|
|
224
|
+
columns: {
|
|
225
|
+
type: import("vue").PropType<Partial<{
|
|
226
|
+
[key: string]: any;
|
|
227
|
+
id: string;
|
|
228
|
+
name: string;
|
|
229
|
+
show: boolean;
|
|
230
|
+
sort: boolean;
|
|
231
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
232
|
+
title: string;
|
|
233
|
+
alias: string;
|
|
234
|
+
fixedShow: boolean;
|
|
235
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
236
|
+
columnWidth: number | null;
|
|
237
|
+
editable: boolean;
|
|
238
|
+
editableDisable: boolean;
|
|
239
|
+
required: boolean;
|
|
240
|
+
requiredDisable: boolean;
|
|
241
|
+
hide: boolean;
|
|
242
|
+
}>[]>;
|
|
243
|
+
default: () => never[];
|
|
244
|
+
};
|
|
245
|
+
}>> & {
|
|
246
|
+
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
247
|
+
}>>;
|
|
248
|
+
emit: (event: "updateChecked", ...args: any[]) => void;
|
|
249
|
+
setOptions: (column: import("../../../es/shared/types").AnyObject) => {
|
|
250
|
+
label: string;
|
|
251
|
+
value: string;
|
|
252
|
+
}[];
|
|
253
|
+
onUpdateChecked: (checked: boolean, column: import("../../../es/shared/types").AnyObject) => void;
|
|
254
|
+
NCheckbox: any;
|
|
255
|
+
NSelect: any;
|
|
256
|
+
NInput: any;
|
|
257
|
+
NInputNumber: any;
|
|
258
|
+
NTooltip: any;
|
|
259
|
+
NIcon: any;
|
|
260
|
+
setStyle: typeof import("./src/utils").setStyle;
|
|
261
|
+
isDisable: typeof import("./src/utils").isDisable;
|
|
262
|
+
ReorderTwoOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
263
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateChecked"[], "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
264
|
+
element: {
|
|
265
|
+
type: import("vue").PropType<import("../../../es/shared/types").AnyObject>;
|
|
266
|
+
default: () => {};
|
|
267
|
+
};
|
|
268
|
+
columns: {
|
|
269
|
+
type: import("vue").PropType<Partial<{
|
|
270
|
+
[key: string]: any;
|
|
271
|
+
id: string;
|
|
272
|
+
name: string;
|
|
273
|
+
show: boolean;
|
|
274
|
+
sort: boolean;
|
|
275
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
276
|
+
title: string;
|
|
277
|
+
alias: string;
|
|
278
|
+
fixedShow: boolean;
|
|
279
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
280
|
+
columnWidth: number | null;
|
|
281
|
+
editable: boolean;
|
|
282
|
+
editableDisable: boolean;
|
|
283
|
+
required: boolean;
|
|
284
|
+
requiredDisable: boolean;
|
|
285
|
+
hide: boolean;
|
|
286
|
+
}>[]>;
|
|
287
|
+
default: () => never[];
|
|
288
|
+
};
|
|
289
|
+
}>> & {
|
|
290
|
+
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
291
|
+
}, {
|
|
292
|
+
columns: Partial<{
|
|
293
|
+
[key: string]: any;
|
|
294
|
+
id: string;
|
|
295
|
+
name: string;
|
|
296
|
+
show: boolean;
|
|
297
|
+
sort: boolean;
|
|
298
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
299
|
+
title: string;
|
|
300
|
+
alias: string;
|
|
301
|
+
fixedShow: boolean;
|
|
302
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
303
|
+
columnWidth: number | null;
|
|
304
|
+
editable: boolean;
|
|
305
|
+
editableDisable: boolean;
|
|
306
|
+
required: boolean;
|
|
307
|
+
requiredDisable: boolean;
|
|
308
|
+
hide: boolean;
|
|
309
|
+
}>[];
|
|
310
|
+
element: import("../../../es/shared/types").AnyObject;
|
|
311
|
+
}>;
|
|
312
|
+
isArray: {
|
|
313
|
+
(value?: any): value is any[];
|
|
314
|
+
<T>(value?: any): value is any[];
|
|
315
|
+
};
|
|
316
|
+
setStyle: typeof import("./src/utils").setStyle;
|
|
204
317
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
205
318
|
fields: {
|
|
206
319
|
type: import("vue").PropType<Partial<{
|
|
@@ -235,6 +348,12 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
|
|
|
235
348
|
type: BooleanConstructor;
|
|
236
349
|
default: boolean;
|
|
237
350
|
};
|
|
351
|
+
showColumnNames: {
|
|
352
|
+
type: import("vue").PropType<import("./src/types").FieldSetColumnName[]>;
|
|
353
|
+
};
|
|
354
|
+
groupSetting: {
|
|
355
|
+
type: import("vue").PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("..").IhoTableRowGroupItem[]>> | undefined>;
|
|
356
|
+
};
|
|
238
357
|
}>> & {
|
|
239
358
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
240
359
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { PropType
|
|
2
|
-
import {
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { setStyle, isDisable } from './utils';
|
|
3
|
+
import { FieldSetColumnName } from '../../../../es/components/field-set/src/types';
|
|
3
4
|
import { AnyObject } from '../../../../es/shared/types';
|
|
4
5
|
declare const _default: import("vue").DefineComponent<{
|
|
5
6
|
fields: {
|
|
@@ -35,16 +36,14 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
36
|
type: BooleanConstructor;
|
|
36
37
|
default: boolean;
|
|
37
38
|
};
|
|
39
|
+
showColumnNames: {
|
|
40
|
+
type: PropType<FieldSetColumnName[]>;
|
|
41
|
+
};
|
|
42
|
+
groupSetting: {
|
|
43
|
+
type: PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("../../../../es/components/iho-table").IhoTableRowGroupItem[]>> | undefined>;
|
|
44
|
+
};
|
|
38
45
|
}, {
|
|
39
46
|
fieldsMapping: Record<string, string>;
|
|
40
|
-
fixedWayOptions: {
|
|
41
|
-
label: string;
|
|
42
|
-
value: string;
|
|
43
|
-
}[];
|
|
44
|
-
sortOptions: {
|
|
45
|
-
label: string;
|
|
46
|
-
value: string;
|
|
47
|
-
}[];
|
|
48
47
|
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
49
48
|
fields: {
|
|
50
49
|
type: PropType<Partial<{
|
|
@@ -79,6 +78,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
79
78
|
type: BooleanConstructor;
|
|
80
79
|
default: boolean;
|
|
81
80
|
};
|
|
81
|
+
showColumnNames: {
|
|
82
|
+
type: PropType<FieldSetColumnName[]>;
|
|
83
|
+
};
|
|
84
|
+
groupSetting: {
|
|
85
|
+
type: PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("../../../../es/components/iho-table").IhoTableRowGroupItem[]>> | undefined>;
|
|
86
|
+
};
|
|
82
87
|
}>> & {
|
|
83
88
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
84
89
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -87,30 +92,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
87
92
|
emit: (event: "close" | "save" | "reset", ...args: any[]) => void;
|
|
88
93
|
newFields: import("vue").Ref<AnyObject[]>;
|
|
89
94
|
columns: import("vue").Ref<AnyObject[]>;
|
|
95
|
+
fieldList: import("vue").ComputedRef<AnyObject[]>;
|
|
90
96
|
handleFieldSave: () => void;
|
|
91
97
|
onCancle: () => void;
|
|
92
98
|
reset: () => void;
|
|
93
|
-
setOptions: (column: AnyObject) => {
|
|
94
|
-
label: string;
|
|
95
|
-
value: string;
|
|
96
|
-
}[];
|
|
97
|
-
setStyle: (column: AnyObject) => CSSProperties;
|
|
98
99
|
isShowColumn: (column: AnyObject) => boolean;
|
|
99
100
|
initFields: () => AnyObject[];
|
|
101
|
+
handleGroup: (fields: AnyObject[]) => AnyObject[];
|
|
100
102
|
getTableFields: () => AnyObject[];
|
|
101
103
|
handleAllCheck: (checked: boolean, field: string) => void;
|
|
102
|
-
handleCheck: (checked
|
|
103
|
-
|
|
104
|
+
handleCheck: ({ checked, column }: {
|
|
105
|
+
checked: boolean;
|
|
106
|
+
column: AnyObject;
|
|
107
|
+
}) => void;
|
|
104
108
|
initColumns: () => void;
|
|
105
109
|
isNoAllCheck: (field: string) => boolean;
|
|
106
110
|
NButton: any;
|
|
107
111
|
NCheckbox: any;
|
|
108
|
-
NSelect: any;
|
|
109
|
-
NInput: any;
|
|
110
|
-
NInputNumber: any;
|
|
111
|
-
NTooltip: any;
|
|
112
112
|
NPopconfirm: any;
|
|
113
|
-
NIcon: any;
|
|
114
113
|
Draggable: import("vue").DefineComponent<{
|
|
115
114
|
list: {
|
|
116
115
|
type: ArrayConstructor;
|
|
@@ -184,7 +183,139 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
184
183
|
modelValue: unknown[];
|
|
185
184
|
componentData: Record<string, any>;
|
|
186
185
|
}>;
|
|
187
|
-
|
|
186
|
+
Row: import("vue").DefineComponent<{
|
|
187
|
+
element: {
|
|
188
|
+
type: PropType<AnyObject>;
|
|
189
|
+
default: () => {};
|
|
190
|
+
};
|
|
191
|
+
columns: {
|
|
192
|
+
type: PropType<Partial<{
|
|
193
|
+
[key: string]: any;
|
|
194
|
+
id: string;
|
|
195
|
+
name: string;
|
|
196
|
+
show: boolean;
|
|
197
|
+
sort: boolean;
|
|
198
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
199
|
+
title: string;
|
|
200
|
+
alias: string;
|
|
201
|
+
fixedShow: boolean;
|
|
202
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
203
|
+
columnWidth: number | null;
|
|
204
|
+
editable: boolean;
|
|
205
|
+
editableDisable: boolean;
|
|
206
|
+
required: boolean;
|
|
207
|
+
requiredDisable: boolean;
|
|
208
|
+
hide: boolean;
|
|
209
|
+
}>[]>;
|
|
210
|
+
default: () => never[];
|
|
211
|
+
};
|
|
212
|
+
}, {
|
|
213
|
+
fixedWayOptions: {
|
|
214
|
+
label: string;
|
|
215
|
+
value: string;
|
|
216
|
+
}[];
|
|
217
|
+
sortOptions: {
|
|
218
|
+
label: string;
|
|
219
|
+
value: string;
|
|
220
|
+
}[];
|
|
221
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
222
|
+
element: {
|
|
223
|
+
type: PropType<AnyObject>;
|
|
224
|
+
default: () => {};
|
|
225
|
+
};
|
|
226
|
+
columns: {
|
|
227
|
+
type: PropType<Partial<{
|
|
228
|
+
[key: string]: any;
|
|
229
|
+
id: string;
|
|
230
|
+
name: string;
|
|
231
|
+
show: boolean;
|
|
232
|
+
sort: boolean;
|
|
233
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
234
|
+
title: string;
|
|
235
|
+
alias: string;
|
|
236
|
+
fixedShow: boolean;
|
|
237
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
238
|
+
columnWidth: number | null;
|
|
239
|
+
editable: boolean;
|
|
240
|
+
editableDisable: boolean;
|
|
241
|
+
required: boolean;
|
|
242
|
+
requiredDisable: boolean;
|
|
243
|
+
hide: boolean;
|
|
244
|
+
}>[]>;
|
|
245
|
+
default: () => never[];
|
|
246
|
+
};
|
|
247
|
+
}>> & {
|
|
248
|
+
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
249
|
+
}>>;
|
|
250
|
+
emit: (event: "updateChecked", ...args: any[]) => void;
|
|
251
|
+
setOptions: (column: AnyObject) => {
|
|
252
|
+
label: string;
|
|
253
|
+
value: string;
|
|
254
|
+
}[];
|
|
255
|
+
onUpdateChecked: (checked: boolean, column: AnyObject) => void;
|
|
256
|
+
NCheckbox: any;
|
|
257
|
+
NSelect: any;
|
|
258
|
+
NInput: any;
|
|
259
|
+
NInputNumber: any;
|
|
260
|
+
NTooltip: any;
|
|
261
|
+
NIcon: any;
|
|
262
|
+
setStyle: typeof setStyle;
|
|
263
|
+
isDisable: typeof isDisable;
|
|
264
|
+
ReorderTwoOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
265
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateChecked"[], "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
266
|
+
element: {
|
|
267
|
+
type: PropType<AnyObject>;
|
|
268
|
+
default: () => {};
|
|
269
|
+
};
|
|
270
|
+
columns: {
|
|
271
|
+
type: PropType<Partial<{
|
|
272
|
+
[key: string]: any;
|
|
273
|
+
id: string;
|
|
274
|
+
name: string;
|
|
275
|
+
show: boolean;
|
|
276
|
+
sort: boolean;
|
|
277
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
278
|
+
title: string;
|
|
279
|
+
alias: string;
|
|
280
|
+
fixedShow: boolean;
|
|
281
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
282
|
+
columnWidth: number | null;
|
|
283
|
+
editable: boolean;
|
|
284
|
+
editableDisable: boolean;
|
|
285
|
+
required: boolean;
|
|
286
|
+
requiredDisable: boolean;
|
|
287
|
+
hide: boolean;
|
|
288
|
+
}>[]>;
|
|
289
|
+
default: () => never[];
|
|
290
|
+
};
|
|
291
|
+
}>> & {
|
|
292
|
+
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
293
|
+
}, {
|
|
294
|
+
columns: Partial<{
|
|
295
|
+
[key: string]: any;
|
|
296
|
+
id: string;
|
|
297
|
+
name: string;
|
|
298
|
+
show: boolean;
|
|
299
|
+
sort: boolean;
|
|
300
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
301
|
+
title: string;
|
|
302
|
+
alias: string;
|
|
303
|
+
fixedShow: boolean;
|
|
304
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
305
|
+
columnWidth: number | null;
|
|
306
|
+
editable: boolean;
|
|
307
|
+
editableDisable: boolean;
|
|
308
|
+
required: boolean;
|
|
309
|
+
requiredDisable: boolean;
|
|
310
|
+
hide: boolean;
|
|
311
|
+
}>[];
|
|
312
|
+
element: AnyObject;
|
|
313
|
+
}>;
|
|
314
|
+
isArray: {
|
|
315
|
+
(value?: any): value is any[];
|
|
316
|
+
<T>(value?: any): value is any[];
|
|
317
|
+
};
|
|
318
|
+
setStyle: typeof setStyle;
|
|
188
319
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("close" | "save" | "reset")[], "close" | "save" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
189
320
|
fields: {
|
|
190
321
|
type: PropType<Partial<{
|
|
@@ -219,6 +350,12 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
219
350
|
type: BooleanConstructor;
|
|
220
351
|
default: boolean;
|
|
221
352
|
};
|
|
353
|
+
showColumnNames: {
|
|
354
|
+
type: PropType<FieldSetColumnName[]>;
|
|
355
|
+
};
|
|
356
|
+
groupSetting: {
|
|
357
|
+
type: PropType<Partial<Record<"firstRowGroup" | "secondRowGroup" | "thirdRowGroup" | "fourthRowGroup" | "fifthRowGroup" | "sixthRowGroup" | "seventhRowGroup" | "eighthRowGroup" | "ninthRowGroup" | "tenthRowGroup", import("../../../../es/components/iho-table").IhoTableRowGroupItem[]>> | undefined>;
|
|
358
|
+
};
|
|
222
359
|
}>> & {
|
|
223
360
|
onReset?: ((...args: any[]) => any) | undefined;
|
|
224
361
|
onClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{defineComponent as e,ref as l,
|
|
1
|
+
import{defineComponent as e,ref as l,computed as t,watch as i,openBlock as d,createElementBlock as o,createElementVNode as a,Fragment as s,renderList as c,normalizeStyle as n,unref as r,createBlock as u,withCtx as f,createTextVNode as h,toDisplayString as m,createCommentVNode as p,createVNode as y,renderSlot as v}from"vue";import{NCheckbox as b,NPopconfirm as k,NButton as x}from"naive-ui";import g from"../../../shared/components/VueDraggable/src/vuedraggable.js";import A from"./components/Row.vue.js";import{isArray as _,cloneDeep as w}from"lodash-es";import{setStyle as S,getGroupTree as W,isDisable as E}from"./utils/index.js";import{isString as C}from"xe-utils";const F={class:"c-field-set"},N={class:"c-field-set__table-header"},R={class:"c-field-set__table-body"},j=["tabindex"],q={key:0,class:"c-field-set__table-footer"};var U=e({__name:"FieldSet",props:{fields:{type:Array,default:()=>[]},footerFlag:{type:Boolean,default:!0},type:{type:String,default:"old"},isEdit:{type:Boolean,default:!1},showColumnNames:{type:Array},groupSetting:{type:Object}},emits:["save","close","reset"],setup(e,{expose:U,emit:D}){const V=e,O={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"},T=l([]),B=l([{title:"所有字段",type:"text",field:"title"},{title:"显示",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"show"},{title:"编辑",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"editable"},{title:"必填",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"required"},{title:"排序",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"sort"},{title:"加粗",type:"checkbox",checkedAll:!1,disabledAll:!1,field:"bold"},{title:"默认排序",type:"select",field:"sortDirection"},{title:"固定",type:"select",field:"fixedWay"},{title:"自定义标题",type:"input",field:"alias"},{title:"列宽",type:"inputNumber",field:"columnWidth"}]),P=t((()=>T.value.flat())),G=()=>{D("save",{tableFields:$()})},H=()=>{D("close")};function I(){T.value=L(),J(),D("reset")}function L(){const e=w(V.fields);return Object.keys(O).forEach((l=>{e.forEach((e=>{"old"==V.type&&Reflect.has(e,l)&&("isFixed"==l?e.fixedWay=1==e[l]?"LEFT":2==e[l]?"RIGHT":"NONE":["isShow","isSort"].includes(l)&&"boolean"!=typeof l?e[O[l]]=1==e[l]:e[O[l]]=e[l],Reflect.deleteProperty(e,l)),e.columnWidth=+e.columnWidth||null,Reflect.has(e,"alias")||(e.alias=""),Reflect.has(e,"bold")||(e.bold=!1)}))})),function(e){if(V.groupSetting){return W(V.groupSetting,e).reduce(((t,i)=>{const d=C(i)?e.find((e=>e.name===i)):l(i.children);return d&&t.push(d),t}),[])}return e;function l(t){const i=[];return t.forEach((t=>{if(t.children)i.push(...l(t.children));else{const l=e.find((e=>e.name===t));l&&i.push(l)}})),i}}(e)}const $=()=>"old"==V.type?P.value.map(((e,l)=>({id:e.id,field:e.name,visible:e.show,sequence:l,sortable:e.sort,title:e.alias,fixed:e.fixedWay,minWidth:e.columnWidth,bold:e.bold,sortDirection:e.sortDirection,...V.isEdit?{required:e.required,editable:e.editable}:{}}))):P.value;function z({checked:e,column:l}){const t=!e||K(l.field);l.checkedAll=!t}function J(){var e;(null==(e=V.showColumnNames)?void 0:e.length)&&(B.value=B.value.filter((e=>{var l,t;return"title"===e.field||(null==(t=null==(l=V.showColumnNames)?void 0:l.includes)?void 0:t.call(l,e.field))}))),B.value.forEach((e=>{if(function(e){const l=["editable","required"].includes(e.field);return l&&V.isEdit||!l}(e)&&(e.isShow=!0),"checkbox"===e.type){const l=T.value.flat().every((l=>!Reflect.has(l,e.field)));e.checkedAll=!K(e.field)&&!l}}))}function K(e){return T.value.flat().some((l=>!E(l,e)&&!l[e]&&"0001"!=l.id))}return i([()=>V.fields,()=>{var e;return null==(e=V.showColumnNames)?void 0:e.length}],(([e,l])=>{e.length>0&&(T.value=L(),J())}),{immediate:!0,deep:!0}),U({getTableFields:$}),(l,t)=>(d(),o("div",F,[a("div",N,[(d(!0),o(s,null,c(B.value,((e,l)=>(d(),o(s,{key:l},[e.isShow?(d(),o("span",{key:0,class:"table-cell",style:n(r(S)(e))},["checkbox"===e.type?(d(),u(r(b),{key:0,checked:e.checkedAll,"onUpdate:checked":[l=>e.checkedAll=l,l=>{return t=l,i=e.field,void P.value.forEach((e=>{E(e,i)||(e[i]=t)}));var t,i}],disabled:e.disabledAll},{default:f((()=>[h(m(e.title),1)])),_:2},1032,["checked","onUpdate:checked","disabled"])):p("v-if",!0),h(" "+m("checkbox"!==e.type?e.title:""),1)],4)):p("v-if",!0)],64)))),128))]),a("div",R,[y(r(g),{modelValue:T.value,"onUpdate:modelValue":t[0]||(t[0]=e=>T.value=e),animation:"150","item-key":"id",tag:"ul"},{item:f((({element:e,index:l})=>[e.hide?p("v-if",!0):(d(),o("li",{key:0,tabindex:l},[r(_)(e)?(d(!0),o(s,{key:0},c(e,((e,l)=>(d(),u(A,{key:l,element:e,columns:B.value,onUpdateChecked:z},null,8,["element","columns"])))),128)):(d(),u(A,{key:1,element:e,columns:B.value,onUpdateChecked:z},null,8,["element","columns"]))],8,j))])),_:1},8,["modelValue"])]),e.footerFlag?(d(),o("div",q,[p(" 底部按钮插槽 "),v(l.$slots,"footer",{},(()=>[y(r(k),{onPositiveClick:I},{trigger:f((()=>[y(r(x),{style:{"margin-right":"8px"}},{default:f((()=>[h("恢复默认设置")])),_:1})])),default:f((()=>[h(" 确认要恢复系统默认设置吗? ")])),_:1}),y(r(x),{style:{"margin-right":"8px"},onClick:H},{default:f((()=>[h("取消")])),_:1}),y(r(x),{type:"primary",onClick:G},{default:f((()=>[h("保存")])),_:1})]))])):p("v-if",!0)]))}});export{U as default};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { AnyObject } from '../../../../../es/shared/types';
|
|
3
|
+
import { setStyle, isDisable } from '../utils';
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
|
+
element: {
|
|
6
|
+
type: PropType<AnyObject>;
|
|
7
|
+
default: () => {};
|
|
8
|
+
};
|
|
9
|
+
columns: {
|
|
10
|
+
type: PropType<Partial<{
|
|
11
|
+
[key: string]: any;
|
|
12
|
+
id: string;
|
|
13
|
+
name: string;
|
|
14
|
+
show: boolean;
|
|
15
|
+
sort: boolean;
|
|
16
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
17
|
+
title: string;
|
|
18
|
+
alias: string;
|
|
19
|
+
fixedShow: boolean;
|
|
20
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
21
|
+
columnWidth: number | null;
|
|
22
|
+
editable: boolean;
|
|
23
|
+
editableDisable: boolean;
|
|
24
|
+
required: boolean;
|
|
25
|
+
requiredDisable: boolean;
|
|
26
|
+
hide: boolean;
|
|
27
|
+
}>[]>;
|
|
28
|
+
default: () => never[];
|
|
29
|
+
};
|
|
30
|
+
}, {
|
|
31
|
+
fixedWayOptions: {
|
|
32
|
+
label: string;
|
|
33
|
+
value: string;
|
|
34
|
+
}[];
|
|
35
|
+
sortOptions: {
|
|
36
|
+
label: string;
|
|
37
|
+
value: string;
|
|
38
|
+
}[];
|
|
39
|
+
props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
40
|
+
element: {
|
|
41
|
+
type: PropType<AnyObject>;
|
|
42
|
+
default: () => {};
|
|
43
|
+
};
|
|
44
|
+
columns: {
|
|
45
|
+
type: PropType<Partial<{
|
|
46
|
+
[key: string]: any;
|
|
47
|
+
id: string;
|
|
48
|
+
name: string;
|
|
49
|
+
show: boolean;
|
|
50
|
+
sort: boolean;
|
|
51
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
52
|
+
title: string;
|
|
53
|
+
alias: string;
|
|
54
|
+
fixedShow: boolean;
|
|
55
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
56
|
+
columnWidth: number | null;
|
|
57
|
+
editable: boolean;
|
|
58
|
+
editableDisable: boolean;
|
|
59
|
+
required: boolean;
|
|
60
|
+
requiredDisable: boolean;
|
|
61
|
+
hide: boolean;
|
|
62
|
+
}>[]>;
|
|
63
|
+
default: () => never[];
|
|
64
|
+
};
|
|
65
|
+
}>> & {
|
|
66
|
+
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
67
|
+
}>>;
|
|
68
|
+
emit: (event: "updateChecked", ...args: any[]) => void;
|
|
69
|
+
setOptions: (column: AnyObject) => {
|
|
70
|
+
label: string;
|
|
71
|
+
value: string;
|
|
72
|
+
}[];
|
|
73
|
+
onUpdateChecked: (checked: boolean, column: AnyObject) => void;
|
|
74
|
+
NCheckbox: any;
|
|
75
|
+
NSelect: any;
|
|
76
|
+
NInput: any;
|
|
77
|
+
NInputNumber: any;
|
|
78
|
+
NTooltip: any;
|
|
79
|
+
NIcon: any;
|
|
80
|
+
setStyle: typeof setStyle;
|
|
81
|
+
isDisable: typeof isDisable;
|
|
82
|
+
ReorderTwoOutline: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
83
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "updateChecked"[], "updateChecked", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
84
|
+
element: {
|
|
85
|
+
type: PropType<AnyObject>;
|
|
86
|
+
default: () => {};
|
|
87
|
+
};
|
|
88
|
+
columns: {
|
|
89
|
+
type: PropType<Partial<{
|
|
90
|
+
[key: string]: any;
|
|
91
|
+
id: string;
|
|
92
|
+
name: string;
|
|
93
|
+
show: boolean;
|
|
94
|
+
sort: boolean;
|
|
95
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
96
|
+
title: string;
|
|
97
|
+
alias: string;
|
|
98
|
+
fixedShow: boolean;
|
|
99
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
100
|
+
columnWidth: number | null;
|
|
101
|
+
editable: boolean;
|
|
102
|
+
editableDisable: boolean;
|
|
103
|
+
required: boolean;
|
|
104
|
+
requiredDisable: boolean;
|
|
105
|
+
hide: boolean;
|
|
106
|
+
}>[]>;
|
|
107
|
+
default: () => never[];
|
|
108
|
+
};
|
|
109
|
+
}>> & {
|
|
110
|
+
onUpdateChecked?: ((...args: any[]) => any) | undefined;
|
|
111
|
+
}, {
|
|
112
|
+
columns: Partial<{
|
|
113
|
+
[key: string]: any;
|
|
114
|
+
id: string;
|
|
115
|
+
name: string;
|
|
116
|
+
show: boolean;
|
|
117
|
+
sort: boolean;
|
|
118
|
+
sortDirection: "NONE" | "ASC" | "DESC";
|
|
119
|
+
title: string;
|
|
120
|
+
alias: string;
|
|
121
|
+
fixedShow: boolean;
|
|
122
|
+
fixedWay: "NONE" | "LEFT" | "RIGHT";
|
|
123
|
+
columnWidth: number | null;
|
|
124
|
+
editable: boolean;
|
|
125
|
+
editableDisable: boolean;
|
|
126
|
+
required: boolean;
|
|
127
|
+
requiredDisable: boolean;
|
|
128
|
+
hide: boolean;
|
|
129
|
+
}>[];
|
|
130
|
+
element: AnyObject;
|
|
131
|
+
}>;
|
|
132
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import e from"./Row.vue2.js";import r from"../../../../_virtual/_plugin-vue_export-helper.js";var o=r(e,[["__file","Row.vue"]]);export{o as default};
|