cnhis-design-vue 3.1.42-beta.34 → 3.1.42-beta.36

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.
Files changed (32) hide show
  1. package/es/components/button-print/index.d.ts +4 -4
  2. package/es/components/button-print/src/ButtonPrint.vue.d.ts +4 -4
  3. package/es/components/button-print/src/components/EditFormat.vue.d.ts +4 -4
  4. package/es/components/button-print/src/components/IdentityVerification.vue.d.ts +4 -4
  5. package/es/components/fabric-chart/index.d.ts +2 -2
  6. package/es/components/fabric-chart/src/FabricChart.vue.d.ts +2 -2
  7. package/es/components/field-set/index.d.ts +26 -81
  8. package/es/components/field-set/src/FieldSet.vue.d.ts +28 -32
  9. package/es/components/field-set/src/FieldSet.vue.js +1 -1
  10. package/es/components/field-set/style/index.css +1 -1
  11. package/es/components/form-config/index.d.ts +4 -4
  12. package/es/components/form-config/src/FormConfig.vue.d.ts +4 -4
  13. package/es/components/form-config/src/components/FormConfigCreator.vue.d.ts +2 -2
  14. package/es/components/form-config/src/components/FormConfigEdit.vue.d.ts +2 -2
  15. package/es/components/form-render/index.d.ts +2 -2
  16. package/es/components/form-render/src/FormRender.vue.d.ts +2 -2
  17. package/es/components/form-render/src/FormRenderWrapper.vue.d.ts +2 -2
  18. package/es/components/form-render/src/components/renderer/select.js +1 -1
  19. package/es/components/iho-table/src/plugins/filterRenderPlugin/index.js +1 -1
  20. package/es/components/iho-table/src/plugins/varialbleHeightPlugin/index.js +1 -1
  21. package/es/components/iho-table/style/index.css +1 -1
  22. package/es/components/index.css +1 -1
  23. package/es/components/info-header/index.d.ts +4 -4
  24. package/es/components/info-header/src/InfoHeader.vue.d.ts +4 -4
  25. package/es/components/info-header/src/components/infoDescription/index.vue.d.ts +2 -2
  26. package/es/components/info-header/src/components/patientInfo/index.vue.d.ts +2 -2
  27. package/es/components/recommend-search/index.d.ts +4 -4
  28. package/es/components/recommend-search/src/RecommendSearch.vue.d.ts +4 -4
  29. package/es/components/scale-view/src/components/formitem/standard-modal.d.ts +3 -3
  30. package/es/components/shortcut-setter/index.d.ts +2 -2
  31. package/es/components/shortcut-setter/src/ShortcutSetter.vue.d.ts +2 -2
  32. package/package.json +2 -2
@@ -917,7 +917,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
917
917
  NUpload: any;
918
918
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
919
919
  NP: import("vue").DefineComponent<{
920
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
920
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
921
921
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
922
922
  aTextColor: string;
923
923
  blockquoteTextColor: string;
@@ -1128,7 +1128,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1128
1128
  themeClass: import("vue").Ref<string> | undefined;
1129
1129
  onRender: (() => void) | undefined;
1130
1130
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1131
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1131
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1132
1132
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
1133
1133
  aTextColor: string;
1134
1134
  blockquoteTextColor: string;
@@ -1339,7 +1339,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1339
1339
  readonly strong: BooleanConstructor;
1340
1340
  readonly italic: BooleanConstructor;
1341
1341
  readonly underline: BooleanConstructor;
1342
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1342
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1343
1343
  readonly tag: StringConstructor;
1344
1344
  readonly as: {
1345
1345
  readonly type: StringConstructor;
@@ -1569,7 +1569,7 @@ declare const ButtonPrint: SFCWithInstall<import("vue").DefineComponent<{
1569
1569
  readonly strong: BooleanConstructor;
1570
1570
  readonly italic: BooleanConstructor;
1571
1571
  readonly underline: BooleanConstructor;
1572
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1572
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1573
1573
  readonly tag: StringConstructor;
1574
1574
  readonly as: {
1575
1575
  readonly type: StringConstructor;
@@ -925,7 +925,7 @@ declare const _default: import("vue").DefineComponent<{
925
925
  NUpload: any;
926
926
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
927
927
  NP: import("vue").DefineComponent<{
928
- depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
928
+ depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
929
929
  theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
930
930
  aTextColor: string;
931
931
  blockquoteTextColor: string;
@@ -1136,7 +1136,7 @@ declare const _default: import("vue").DefineComponent<{
1136
1136
  themeClass: import("vue").Ref<string> | undefined;
1137
1137
  onRender: (() => void) | undefined;
1138
1138
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
1139
- depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
1139
+ depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
1140
1140
  theme: PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
1141
1141
  aTextColor: string;
1142
1142
  blockquoteTextColor: string;
@@ -1347,7 +1347,7 @@ declare const _default: import("vue").DefineComponent<{
1347
1347
  readonly strong: BooleanConstructor;
1348
1348
  readonly italic: BooleanConstructor;
1349
1349
  readonly underline: BooleanConstructor;
1350
- readonly depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
1350
+ readonly depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
1351
1351
  readonly tag: StringConstructor;
1352
1352
  readonly as: {
1353
1353
  readonly type: StringConstructor;
@@ -1577,7 +1577,7 @@ declare const _default: import("vue").DefineComponent<{
1577
1577
  readonly strong: BooleanConstructor;
1578
1578
  readonly italic: BooleanConstructor;
1579
1579
  readonly underline: BooleanConstructor;
1580
- readonly depth: PropType<2 | 1 | "1" | "2" | 3 | "3">;
1580
+ readonly depth: PropType<2 | 1 | "1" | "2" | "3" | 3>;
1581
1581
  readonly tag: StringConstructor;
1582
1582
  readonly as: {
1583
1583
  readonly type: StringConstructor;
@@ -363,7 +363,7 @@ declare const _default: import("vue").DefineComponent<{
363
363
  NUpload: any;
364
364
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
365
365
  NP: import("vue").DefineComponent<{
366
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
366
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
367
367
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
368
368
  aTextColor: string;
369
369
  blockquoteTextColor: string;
@@ -574,7 +574,7 @@ declare const _default: import("vue").DefineComponent<{
574
574
  themeClass: import("vue").Ref<string> | undefined;
575
575
  onRender: (() => void) | undefined;
576
576
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
577
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
577
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
578
578
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
579
579
  aTextColor: string;
580
580
  blockquoteTextColor: string;
@@ -785,7 +785,7 @@ declare const _default: import("vue").DefineComponent<{
785
785
  readonly strong: BooleanConstructor;
786
786
  readonly italic: BooleanConstructor;
787
787
  readonly underline: BooleanConstructor;
788
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
788
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
789
789
  readonly tag: StringConstructor;
790
790
  readonly as: {
791
791
  readonly type: StringConstructor;
@@ -1015,7 +1015,7 @@ declare const _default: import("vue").DefineComponent<{
1015
1015
  readonly strong: BooleanConstructor;
1016
1016
  readonly italic: BooleanConstructor;
1017
1017
  readonly underline: BooleanConstructor;
1018
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1018
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1019
1019
  readonly tag: StringConstructor;
1020
1020
  readonly as: {
1021
1021
  readonly type: StringConstructor;
@@ -720,7 +720,7 @@ declare const _default: import("vue").DefineComponent<{
720
720
  NUpload: any;
721
721
  NUploadDragger: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
722
722
  NP: import("vue").DefineComponent<{
723
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
723
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
724
724
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
725
725
  aTextColor: string;
726
726
  blockquoteTextColor: string;
@@ -931,7 +931,7 @@ declare const _default: import("vue").DefineComponent<{
931
931
  themeClass: import("vue").Ref<string> | undefined;
932
932
  onRender: (() => void) | undefined;
933
933
  }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
934
- depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
934
+ depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
935
935
  theme: import("vue").PropType<import("naive-ui/es/_mixins").Theme<"Typography", {
936
936
  aTextColor: string;
937
937
  blockquoteTextColor: string;
@@ -1142,7 +1142,7 @@ declare const _default: import("vue").DefineComponent<{
1142
1142
  readonly strong: BooleanConstructor;
1143
1143
  readonly italic: BooleanConstructor;
1144
1144
  readonly underline: BooleanConstructor;
1145
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1145
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1146
1146
  readonly tag: StringConstructor;
1147
1147
  readonly as: {
1148
1148
  readonly type: StringConstructor;
@@ -1372,7 +1372,7 @@ declare const _default: import("vue").DefineComponent<{
1372
1372
  readonly strong: BooleanConstructor;
1373
1373
  readonly italic: BooleanConstructor;
1374
1374
  readonly underline: BooleanConstructor;
1375
- readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | 3 | "3">;
1375
+ readonly depth: import("vue").PropType<2 | 1 | "1" | "2" | "3" | 3>;
1376
1376
  readonly tag: StringConstructor;
1377
1377
  readonly as: {
1378
1378
  readonly type: StringConstructor;
@@ -30,7 +30,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
30
30
  onAdd?: ((...args: any[]) => any) | undefined;
31
31
  onRemove?: ((...args: any[]) => any) | undefined;
32
32
  }>>;
33
- emits: (event: "change" | "add" | "remove" | "select", ...args: any[]) => void;
33
+ emits: (event: "select" | "change" | "add" | "remove", ...args: any[]) => void;
34
34
  isTemperature: import("vue").ComputedRef<boolean>;
35
35
  canvasRef: any;
36
36
  canvas: import("vue").Ref<any>;
@@ -182,7 +182,7 @@ declare const FabricChart: SFCWithInstall<import("vue").DefineComponent<{
182
182
  show: boolean;
183
183
  list: unknown[];
184
184
  }>;
185
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "remove" | "select")[], "remove" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
185
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "add" | "remove")[], "remove" | "select" | "change" | "add", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
186
186
  type: {
187
187
  type: import("vue").PropType<import("./src/interface").IType>;
188
188
  default: string;
@@ -32,7 +32,7 @@ declare const _default: import("vue").DefineComponent<{
32
32
  onAdd?: ((...args: any[]) => any) | undefined;
33
33
  onRemove?: ((...args: any[]) => any) | undefined;
34
34
  }>>;
35
- emits: (event: "change" | "add" | "remove" | "select", ...args: any[]) => void;
35
+ emits: (event: "select" | "change" | "add" | "remove", ...args: any[]) => void;
36
36
  isTemperature: import("vue").ComputedRef<boolean>;
37
37
  canvasRef: any;
38
38
  canvas: import("vue").Ref<any>;
@@ -184,7 +184,7 @@ declare const _default: import("vue").DefineComponent<{
184
184
  show: boolean;
185
185
  list: unknown[];
186
186
  }>;
187
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "add" | "remove" | "select")[], "remove" | "change" | "add" | "select", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
187
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "change" | "add" | "remove")[], "remove" | "select" | "change" | "add", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
188
188
  type: {
189
189
  type: PropType<IType>;
190
190
  default: string;
@@ -36,13 +36,14 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
36
36
  };
37
37
  }, {
38
38
  fieldsMapping: Record<string, string>;
39
- selectOptions: Record<string, string>[];
39
+ fixedWayOptions: {
40
+ label: string;
41
+ value: string;
42
+ }[];
40
43
  sortOptions: {
41
44
  label: string;
42
45
  value: string;
43
46
  }[];
44
- emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
45
- settingView: any;
46
47
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
47
48
  fields: {
48
49
  type: import("vue").PropType<Partial<{
@@ -79,83 +80,25 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
79
80
  };
80
81
  }>> & {
81
82
  onReset?: ((...args: any[]) => any) | undefined;
82
- onOnSave?: ((...args: any[]) => any) | undefined;
83
- onOnClose?: ((...args: any[]) => any) | undefined;
83
+ onClose?: ((...args: any[]) => any) | undefined;
84
+ onSave?: ((...args: any[]) => any) | undefined;
84
85
  }>>;
85
- initFields: () => any[];
86
- state: {
87
- spinning: boolean;
88
- isCustomSearch: boolean;
89
- clickItem: {
90
- [key: string]: any;
91
- };
92
- fields: Partial<{
93
- [key: string]: any;
94
- id: string;
95
- name: string;
96
- show: boolean;
97
- sort: boolean;
98
- sortDirection: "NONE" | "ASC" | "DESC";
99
- title: string;
100
- alias: string;
101
- fixedShow: boolean;
102
- fixedWay: "NONE" | "LEFT" | "RIGHT";
103
- columnWidth: number | null;
104
- editable: boolean;
105
- editableDisable: boolean;
106
- required: boolean;
107
- requiredDisable: boolean;
108
- hide: boolean;
109
- }>[];
110
- widthShow: string;
111
- widthLarge: string;
112
- };
113
- leftStyle: (ele: Partial<{
114
- [key: string]: any;
115
- id: string;
116
- name: string;
117
- show: boolean;
118
- sort: boolean;
119
- sortDirection: "NONE" | "ASC" | "DESC";
120
- title: string;
121
- alias: string;
122
- fixedShow: boolean;
123
- fixedWay: "NONE" | "LEFT" | "RIGHT";
124
- columnWidth: number | null;
125
- editable: boolean;
126
- editableDisable: boolean;
127
- required: boolean;
128
- requiredDisable: boolean;
129
- hide: boolean;
130
- }>) => {
131
- background: string | undefined;
132
- };
133
- showCheckBox: (key: string) => boolean;
134
- hideTab: () => void;
135
- getTableFields: () => any[];
86
+ emit: (event: "close" | "save" | "reset", ...args: any[]) => void;
87
+ newFields: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
88
+ columns: import("vue").Ref<import("../../../es/shared/types").AnyObject[]>;
136
89
  handleFieldSave: () => void;
137
90
  onCancle: () => void;
138
91
  reset: () => void;
139
- calculateCheck: (key: string) => boolean;
140
- handleAllCheck: (e: boolean, key: string) => void;
141
- handleFieldClick: (item: Partial<{
142
- [key: string]: any;
143
- id: string;
144
- name: string;
145
- show: boolean;
146
- sort: boolean;
147
- sortDirection: "NONE" | "ASC" | "DESC";
148
- title: string;
149
- alias: string;
150
- fixedShow: boolean;
151
- fixedWay: "NONE" | "LEFT" | "RIGHT";
152
- columnWidth: number | null;
153
- editable: boolean;
154
- editableDisable: boolean;
155
- required: boolean;
156
- requiredDisable: boolean;
157
- hide: boolean;
158
- }>) => 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
+ isShowColumn: (column: import("../../../es/shared/types").AnyObject) => boolean;
98
+ initFields: () => import("../../../es/shared/types").AnyObject[];
99
+ getTableFields: () => import("../../../es/shared/types").AnyObject[];
100
+ handleAllCheck: (checked: boolean, field: string) => void;
101
+ handleCheck: (checked: boolean, column: import("../../../es/shared/types").AnyObject) => void;
159
102
  isDisable: (item: Partial<{
160
103
  [key: string]: any;
161
104
  id: string;
@@ -174,15 +117,16 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
174
117
  requiredDisable: boolean;
175
118
  hide: boolean;
176
119
  }>, key: string) => any;
177
- setWidth: () => void;
120
+ initColumns: () => void;
121
+ isNoAllCheck: (field: string) => boolean;
178
122
  NButton: any;
179
123
  NCheckbox: any;
180
124
  NSelect: any;
181
125
  NInput: any;
182
126
  NInputNumber: any;
183
- NSpin: any;
184
127
  NTooltip: any;
185
128
  NPopconfirm: any;
129
+ NIcon: any;
186
130
  Draggable: import("vue").DefineComponent<{
187
131
  list: {
188
132
  type: ArrayConstructor;
@@ -256,7 +200,8 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
256
200
  modelValue: unknown[];
257
201
  componentData: Record<string, any>;
258
202
  }>;
259
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose" | "reset")[], "onSave" | "onClose" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
203
+ 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<{}>>, {}>;
204
+ }, 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<{
260
205
  fields: {
261
206
  type: import("vue").PropType<Partial<{
262
207
  [key: string]: any;
@@ -292,8 +237,8 @@ declare const FieldSet: SFCWithInstall<import("vue").DefineComponent<{
292
237
  };
293
238
  }>> & {
294
239
  onReset?: ((...args: any[]) => any) | undefined;
295
- onOnSave?: ((...args: any[]) => any) | undefined;
296
- onOnClose?: ((...args: any[]) => any) | undefined;
240
+ onClose?: ((...args: any[]) => any) | undefined;
241
+ onSave?: ((...args: any[]) => any) | undefined;
297
242
  }, {
298
243
  type: string;
299
244
  fields: Partial<{
@@ -1,15 +1,6 @@
1
- import { PropType } from 'vue';
1
+ import { PropType, CSSProperties } from 'vue';
2
2
  import { FieldSetItem } from '../../../../es/components/field-set/src/types';
3
- declare type Istate = {
4
- spinning: boolean;
5
- isCustomSearch: boolean;
6
- clickItem: {
7
- [key: string]: any;
8
- };
9
- fields: FieldSetItem[];
10
- widthShow: string;
11
- widthLarge: string;
12
- };
3
+ import { AnyObject } from '../../../../es/shared/types';
13
4
  declare const _default: import("vue").DefineComponent<{
14
5
  fields: {
15
6
  type: PropType<Partial<{
@@ -46,13 +37,14 @@ declare const _default: import("vue").DefineComponent<{
46
37
  };
47
38
  }, {
48
39
  fieldsMapping: Record<string, string>;
49
- selectOptions: Record<string, string>[];
40
+ fixedWayOptions: {
41
+ label: string;
42
+ value: string;
43
+ }[];
50
44
  sortOptions: {
51
45
  label: string;
52
46
  value: string;
53
47
  }[];
54
- emit: (event: "onSave" | "onClose" | "reset", ...args: any[]) => void;
55
- settingView: any;
56
48
  props: Readonly<import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
57
49
  fields: {
58
50
  type: PropType<Partial<{
@@ -89,33 +81,36 @@ declare const _default: import("vue").DefineComponent<{
89
81
  };
90
82
  }>> & {
91
83
  onReset?: ((...args: any[]) => any) | undefined;
92
- onOnSave?: ((...args: any[]) => any) | undefined;
93
- onOnClose?: ((...args: any[]) => any) | undefined;
84
+ onClose?: ((...args: any[]) => any) | undefined;
85
+ onSave?: ((...args: any[]) => any) | undefined;
94
86
  }>>;
95
- initFields: () => any[];
96
- state: Istate;
97
- leftStyle: (ele: FieldSetItem) => {
98
- background: string | undefined;
99
- };
100
- showCheckBox: (key: string) => boolean;
101
- hideTab: () => void;
102
- getTableFields: () => any[];
87
+ emit: (event: "close" | "save" | "reset", ...args: any[]) => void;
88
+ newFields: import("vue").Ref<AnyObject[]>;
89
+ columns: import("vue").Ref<AnyObject[]>;
103
90
  handleFieldSave: () => void;
104
91
  onCancle: () => void;
105
92
  reset: () => void;
106
- calculateCheck: (key: string) => boolean;
107
- handleAllCheck: (e: boolean, key: string) => void;
108
- handleFieldClick: (item: FieldSetItem) => void;
93
+ setOptions: (column: AnyObject) => {
94
+ label: string;
95
+ value: string;
96
+ }[];
97
+ setStyle: (column: AnyObject) => CSSProperties;
98
+ isShowColumn: (column: AnyObject) => boolean;
99
+ initFields: () => AnyObject[];
100
+ getTableFields: () => AnyObject[];
101
+ handleAllCheck: (checked: boolean, field: string) => void;
102
+ handleCheck: (checked: boolean, column: AnyObject) => void;
109
103
  isDisable: (item: FieldSetItem, key: string) => any;
110
- setWidth: () => void;
104
+ initColumns: () => void;
105
+ isNoAllCheck: (field: string) => boolean;
111
106
  NButton: any;
112
107
  NCheckbox: any;
113
108
  NSelect: any;
114
109
  NInput: any;
115
110
  NInputNumber: any;
116
- NSpin: any;
117
111
  NTooltip: any;
118
112
  NPopconfirm: any;
113
+ NIcon: any;
119
114
  Draggable: import("vue").DefineComponent<{
120
115
  list: {
121
116
  type: ArrayConstructor;
@@ -189,7 +184,8 @@ declare const _default: import("vue").DefineComponent<{
189
184
  modelValue: unknown[];
190
185
  componentData: Record<string, any>;
191
186
  }>;
192
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onSave" | "onClose" | "reset")[], "onSave" | "onClose" | "reset", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
187
+ 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<{}>>, {}>;
188
+ }, 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<{
193
189
  fields: {
194
190
  type: PropType<Partial<{
195
191
  [key: string]: any;
@@ -225,8 +221,8 @@ declare const _default: import("vue").DefineComponent<{
225
221
  };
226
222
  }>> & {
227
223
  onReset?: ((...args: any[]) => any) | undefined;
228
- onOnSave?: ((...args: any[]) => any) | undefined;
229
- onOnClose?: ((...args: any[]) => any) | undefined;
224
+ onClose?: ((...args: any[]) => any) | undefined;
225
+ onSave?: ((...args: any[]) => any) | undefined;
230
226
  }, {
231
227
  type: string;
232
228
  fields: Partial<{
@@ -1 +1 @@
1
- import{defineComponent as e,ref as l,reactive as t,watch as i,onMounted as s,openBlock as d,createElementBlock as a,normalizeStyle as o,createVNode as n,unref as c,withCtx as h,createElementVNode as r,normalizeClass as u,createCommentVNode as p,createBlock as f,createTextVNode as w,toDisplayString as v,withDirectives as k,vShow as y,renderSlot as b}from"vue";import{NSpin as g,NCheckbox as m,NTooltip as U,NSelect as S,NInput as x,NInputNumber as E,NPopconfirm as _,NButton as W}from"naive-ui";import C from"../../../shared/components/VueDraggable/src/vuedraggable.js";import O from"../../../_virtual/plugin-vue_export-helper.js";const F={class:"fields-set-content"},q={class:"fields-table"},D=r("span",{class:"width-show",style:{width:"4%"}},null,-1),N=r("span",{class:"width-large"},"所有字段",-1),P={class:"width-show"},j={key:0,class:"width-show"},R={key:1,class:"width-show"},I={class:"width-show"},L={class:"width-show"},T=r("span",{class:"width-showed"},"默认排序",-1),z=r("span",{class:"width-showed"},"固定",-1),A=r("span",{class:"width-word"},"自定义标题",-1),B=r("span",{class:"width-showed"},"列宽",-1),G=["onClick"],H={class:"width-show drag-icon-wrap"},J=r("span",{class:"iconfont icon-a-menzhenyishengzhanxitongtubiaotuozhuai",style:{color:"#000"}},null,-1),V=r("span",null,"拖拽调整顺序",-1),$=r("span",{style:{width:"14px","margin-right":"6px"}},null,-1),K={class:"width-show"},M={key:0,class:"width-show"},Q={key:1,class:"width-show"},X={class:"width-show"},Y={class:"width-show"},Z={class:"width-showed"},ee={class:"width-showed"},le={class:"width-word"},te={class:"width-showed"},ie={key:0,class:"check-options"},se={class:"btn-operate"};var de=O(e({__name:"FieldSet",props:{fields:{type:Array,default:function(){return[]}},footerFlag:{type:Boolean,default:!0},type:{type:String,default:"old"},isEdit:{type:Boolean,default:!1}},emits:["onSave","onClose","reset"],setup(e,{expose:O,emit:de}){const ae=e,oe={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"},ne=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],ce=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],he=l(null);function re(){const e=ae.fields?JSON.parse(JSON.stringify(ae.fields)):[];return Object.keys(oe).forEach((l=>{e.forEach((e=>{"old"==ae.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[oe[l]]=1==e[l]:e[oe[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)}))})),e}const ue=t({spinning:!1,isCustomSearch:!0,clickItem:{},fields:[],widthShow:"9%",widthLarge:"19%"}),pe=e=>ue.fields.some((l=>Object.prototype.hasOwnProperty.call(l,e))),fe=()=>{if("old"==ae.type){let e=[];return ue.fields.length>0&&ue.fields.forEach(((l,t)=>{e.push({id:l.id,field:l.name,visible:l.show,sequence:t,sortable:l.sort,title:l.alias,fixed:l.fixedWay,minWidth:l.columnWidth,bold:l.bold,sortDirection:l.sortDirection,...ae.isEdit?{required:l.required,editable:l.editable}:{}})})),e}return ue.fields},we=()=>{de("onSave",{tableFields:fe()})},ve=()=>{de("onClose")};function ke(){ue.fields=re(),de("reset")}const ye=e=>!!ue.fields.length&&ue.fields.every((l=>!(Object.prototype.hasOwnProperty.call(l,e)&&!ge(l,e))||l[e])),be=(e,l)=>{const t=e,i=ue.fields.map((e=>(Object.prototype.hasOwnProperty.call(e,l)&&!ge(e,l)&&(e[l]=t),e)));ue.fields=i};function ge(e,l){return["editable","required"].includes(l)&&e[`${l}Disable`]||["sort"].includes(l)&&1==e.notParticipatingSort}return i((()=>ae.fields),(e=>{(null==e?void 0:e.length)>0&&(ue.fields=re())}),{immediate:!0,deep:!0}),s((()=>{var e;null==(e=he.value)||e.style.setProperty("margin","auto"),ae.isEdit&&(ue.widthShow="8%",ue.widthLarge="13%")})),O({getTableFields:fe}),(l,t)=>(d(),a("div",{ref_key:"settingView",ref:he,class:"c-field-set",style:o({"--width-show":ue.widthShow,"--width-large":ue.widthLarge})},[n(c(g),{show:ue.spinning,tip:"...",style:{width:"100%",height:"100%"}},{default:h((()=>[r("div",F,[r("div",q,[r("div",{class:u(["setting-title",{"seting-title-api":!ue.isCustomSearch}])},[D,p(" 字段名称 "),N,p(" 显示 "),r("span",P,[pe("show")?(d(),f(c(m),{key:0,checked:ye("show"),"onUpdate:checked":t[0]||(t[0]=e=>be(e,"show"))},null,8,["checked"])):p("v-if",!0),w(" 显示 ")]),p(" 可编辑 "),e.isEdit?(d(),a("span",j,[pe("editable")?(d(),f(c(m),{key:0,checked:ye("editable"),"onUpdate:checked":t[1]||(t[1]=e=>be(e,"editable"))},null,8,["checked"])):p("v-if",!0),w(" 编辑 ")])):p("v-if",!0),p(" 是否必填 "),e.isEdit?(d(),a("span",R,[pe("required")?(d(),f(c(m),{key:0,checked:ye("required"),"onUpdate:checked":t[2]||(t[2]=e=>be(e,"required"))},null,8,["checked"])):p("v-if",!0),w(" 必填 ")])):p("v-if",!0),p(" 排序 "),r("span",I,[pe("sort")?(d(),f(c(m),{key:0,checked:ye("sort"),"onUpdate:checked":t[3]||(t[3]=e=>be(e,"sort"))},null,8,["checked"])):p("v-if",!0),w(" 排序 ")]),r("span",L,[n(c(m),{checked:ye("bold"),"onUpdate:checked":t[4]||(t[4]=e=>be(e,"bold"))},null,8,["checked"]),w(" 加粗 ")]),p(" 默认排序 "),T,p(" 固定 "),z,p(" 自定义标题 "),A,p(" 列宽 "),B],2),r("div",{ref:"setShow",class:u(["set-show",{"set-show-api":!ue.isCustomSearch}])},[n(c(C),{list:ue.fields,animation:"150","item-key":"id",tag:"ul"},{item:h((({element:l})=>{return[l.hide?p("v-if",!0):(d(),a("li",{key:0,class:"left-style",style:o((t=l,{background:ue.clickItem.id===t.id?"#f2f2f2":void 0})),onClick:e=>{return t=l,void(ue.clickItem=t);var t}},[r("span",H,[n(c(U),{trigger:"hover"},{trigger:h((()=>[J])),default:h((()=>[V])),_:1})]),p(" 字段名称 "),r("span",{class:u(["width-large title-item",{blue:l.extraField}])},[$,r("span",null,v(l.title),1)],2),p(" 显示 "),r("span",K,[k(n(c(m),{checked:l.show,"onUpdate:checked":e=>l.show=e},null,8,["checked","onUpdate:checked"]),[[y,"0001"!=l.id]])]),p(" 是否可编辑 "),e.isEdit?(d(),a("span",M,[k(n(c(m),{disabled:l.editableDisable,checked:l.editable,"onUpdate:checked":e=>l.editable=e},null,8,["disabled","checked","onUpdate:checked"]),[[y,"0001"!=l.id]])])):p("v-if",!0),p(" 是否必填 "),e.isEdit?(d(),a("span",Q,[k(n(c(m),{disabled:l.requiredDisable,checked:l.required,"onUpdate:checked":e=>l.required=e},null,8,["disabled","checked","onUpdate:checked"]),[[y,"0001"!=l.id]])])):p("v-if",!0),p(" 排序 "),r("span",X,[k(n(c(m),{checked:l.sort,"onUpdate:checked":e=>l.sort=e,disabled:1==l.notParticipatingSort},null,8,["checked","onUpdate:checked","disabled"]),[[y,"0001"!=l.id]])]),p(" 加粗 "),r("span",Y,[k(n(c(m),{checked:l.bold,"onUpdate:checked":e=>l.bold=e},null,8,["checked","onUpdate:checked"]),[[y,"0001"!=l.id]])]),p(" 默认排序 "),r("span",Z,[k(n(c(S),{value:l.sortDirection,"onUpdate:value":e=>l.sortDirection=e,options:ce,style:{width:"90%",display:"flex"}},null,8,["value","onUpdate:value"]),[[y,"0001"!=l.id]])]),p(" 固定 "),r("span",ee,[n(c(S),{value:l.fixedWay,"onUpdate:value":e=>l.fixedWay=e,options:ne,style:{width:"90%",display:"flex"}},null,8,["value","onUpdate:value"])]),p(" 自定义标题 "),r("span",le,[k(n(c(x),{value:l.alias,"onUpdate:value":e=>l.alias=e,style:{width:"90%"},clearable:""},null,8,["value","onUpdate:value"]),[[y,"0001"!=l.id]])]),p(" 列宽 "),r("span",te,[n(c(E),{value:l.columnWidth,"onUpdate:value":e=>l.columnWidth=e,clearable:""},null,8,["value","onUpdate:value"])])],12,G))];var t})),_:1},8,["list"])],2)]),ae.footerFlag?(d(),a("div",ie,[r("div",se,[p(" 底部按钮插槽 "),b(l.$slots,"footer",{},(()=>[n(c(_),{onPositiveClick:ke},{trigger:h((()=>[n(c(W),{style:{"margin-right":"8px"}},{default:h((()=>[w("恢复默认设置")])),_:1})])),default:h((()=>[w(" 确认要恢复系统默认设置吗? ")])),_:1}),n(c(W),{style:{"margin-right":"8px"},onClick:ve},{default:h((()=>[w("取消")])),_:1}),n(c(W),{type:"primary",onClick:we},{default:h((()=>[w("保存")])),_:1})]))])])):p("v-if",!0)])])),_:3},8,["show"])],4))}}),[["__file","FieldSet.vue"]]);export{de as default};
1
+ import{defineComponent as e,ref as l,watch as t,openBlock as i,createElementBlock as d,createElementVNode as a,Fragment as o,renderList as c,normalizeStyle as s,createBlock as n,unref as r,withCtx as u,createTextVNode as f,toDisplayString as p,createCommentVNode as h,createVNode as v,withDirectives as b,vShow as y,renderSlot as k}from"vue";import{NCheckbox as x,NTooltip as m,NIcon as g,NSelect as _,NInput as A,NInputNumber as S,NPopconfirm as E,NButton as w}from"naive-ui";import W from"../../../shared/components/VueDraggable/src/vuedraggable.js";import{ReorderTwoOutline as N}from"@vicons/ionicons5";import F from"../../../_virtual/plugin-vue_export-helper.js";const U={class:"c-field-set"},O={class:"c-field-set__table-header"},R={class:"c-field-set__table-body"},q=["tabindex"],D=["title"],C=a("span",null,"拖拽调整顺序",-1),T={key:0,class:"c-field-set__table-footer"};var j=F(e({__name:"FieldSet",props:{fields:{type:Array,default:function(){return[]}},footerFlag:{type:Boolean,default:!0},type:{type:String,default:"old"},isEdit:{type:Boolean,default:!1}},emits:["save","close","reset"],setup(e,{expose:F,emit:j}){const P=e,B={sid:"id",columnName:"name",isShow:"show",isSort:"sort",isFixed:"fixedWay",colWidth:"columnWidth"},G=[{label:"不固定",value:"NONE"},{label:"左固定",value:"LEFT"},{label:"右固定",value:"RIGHT"}],H=[{label:"不排序",value:"NONE"},{label:"升序",value:"ASC"},{label:"降序",value:"DESC"}],I=l([]),J=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"}]),L=()=>{j("save",{tableFields:Q()})},$=()=>{j("close")};function V(){I.value=M(),Y(),j("reset")}function z(e){return"fixedWay"===e.field?G:H}function K(e){const l={flex:"1 1 90px"};switch(e.type){case"text":Object.assign(l,{flex:"0 0 120px",overflow:"hidden","text-overflow":"ellipsis","white-space":"nowrap"});break;case"checkbox":l.flex="1 1 60px";break;case"select":l.flex="1 1 80px";break;case"input":l.flex="1 1 100px"}return l}function M(){const e=JSON.parse(JSON.stringify(P.fields||[]));return Object.keys(B).forEach((l=>{e.forEach((e=>{"old"==P.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[B[l]]=1==e[l]:e[B[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)}))})),e}const Q=()=>{if("old"==P.type){const e=[];return I.value.length>0&&I.value.forEach(((l,t)=>{e.push({id:l.id,field:l.name,visible:l.show,sequence:t,sortable:l.sort,title:l.alias,fixed:l.fixedWay,minWidth:l.columnWidth,bold:l.bold,sortDirection:l.sortDirection,...P.isEdit?{required:l.required,editable:l.editable}:{}})})),e}return I.value};function X(e,l){return["editable","required"].includes(l)&&e[`${l}Disable`]||["sort"].includes(l)&&1==e.notParticipatingSort}function Y(){J.value.forEach((e=>{if(function(e){const l=["editable","required"].includes(e.field);return l&&P.isEdit||!l}(e)&&(e.isShow=!0),"checkbox"===e.type){const l=I.value.every((l=>!Reflect.has(l,e.field)));e.checkedAll=!Z(e.field)&&!l}}))}function Z(e){return I.value.some((l=>!X(l,e)&&!l[e]&&"0001"!=l.id))}return t((()=>P.fields),(e=>{(null==e?void 0:e.length)>0&&(I.value=M(),Y())}),{immediate:!0,deep:!0}),F({getTableFields:Q}),(l,t)=>(i(),d("div",U,[a("div",O,[(i(!0),d(o,null,c(J.value,((e,l)=>(i(),d(o,{key:l},[e.isShow?(i(),d("span",{key:0,class:"table-cell",style:s(K(e))},["checkbox"===e.type?(i(),n(r(x),{key:0,checked:e.checkedAll,"onUpdate:checked":[l=>e.checkedAll=l,l=>{return t=l,i=e.field,void I.value.forEach((e=>{X(e,i)||(e[i]=t)}));var t,i}],disabled:e.disabledAll},{default:u((()=>[f(p(e.title),1)])),_:2},1032,["checked","onUpdate:checked","disabled"])):h("v-if",!0),f(" "+p("checkbox"!==e.type?e.title:""),1)],4)):h("v-if",!0)],64)))),128))]),a("div",R,[v(r(W),{list:I.value,animation:"150","item-key":"id",tag:"ul"},{item:u((({element:e,index:l})=>[e.hide?h("v-if",!0):(i(),d("li",{key:0,tabindex:l},[(i(!0),d(o,null,c(J.value,((l,t)=>(i(),d(o,{key:t},[l.isShow?(i(),d("span",{key:0,class:"table-cell",title:e[l.field],style:s(K(l))},["text"===l.type?(i(),d(o,{key:0},[v(r(m),{trigger:"hover"},{trigger:u((()=>[v(r(g),{style:{"margin-right":"5px",top:"2px"},component:r(N)},null,8,["component"])])),default:u((()=>[C])),_:1}),f(" "+p(e[l.field]),1)],64)):h("v-if",!0),"checkbox"===l.type?b((i(),n(r(x),{key:1,disabled:X(e,l.field),checked:e[l.field],"onUpdate:checked":[t=>e[l.field]=t,e=>function(e,l){const t=!e||Z(l.field);l.checkedAll=!t}(e,l)]},null,8,["disabled","checked","onUpdate:checked"])),[[y,"0001"!=e.id]]):h("v-if",!0),"select"===l.type?b((i(),n(r(_),{key:2,value:e[l.field],"onUpdate:value":t=>e[l.field]=t,options:z(l)},null,8,["value","onUpdate:value","options"])),[[y,"fixedWay"===l.field||"0001"!=e.id]]):h("v-if",!0),"input"===l.type?b((i(),n(r(A),{key:3,value:e[l.field],"onUpdate:value":t=>e[l.field]=t,clearable:""},null,8,["value","onUpdate:value"])),[[y,"0001"!=e.id]]):h("v-if",!0),"inputNumber"===l.type?(i(),n(r(S),{key:4,value:e[l.field],"onUpdate:value":t=>e[l.field]=t},null,8,["value","onUpdate:value"])):h("v-if",!0)],12,D)):h("v-if",!0)],64)))),128))],8,q))])),_:1},8,["list"])]),e.footerFlag?(i(),d("div",T,[h(" 底部按钮插槽 "),k(l.$slots,"footer",{},(()=>[v(r(E),{onPositiveClick:V},{trigger:u((()=>[v(r(w),{style:{"margin-right":"8px"}},{default:u((()=>[f("恢复默认设置")])),_:1})])),default:u((()=>[f(" 确认要恢复系统默认设置吗? ")])),_:1}),v(r(w),{style:{"margin-right":"8px"},onClick:$},{default:u((()=>[f("取消")])),_:1}),v(r(w),{type:"primary",onClick:L},{default:u((()=>[f("保存")])),_:1})]))])):h("v-if",!0)]))}}),[["__file","FieldSet.vue"]]);export{j as default};
@@ -1 +1 @@
1
- .c-field-set{height:100%;position:relative}.c-field-set ul{margin:0;padding:0}.c-field-set .fields-set-content{display:flex;flex-direction:column;height:100%;overflow:hidden}.c-field-set .fields-set-content .fields-table{display:flex;flex:1;flex-direction:column;overflow:auto}.c-field-set .n-spin-container{height:100%;width:100%}.c-field-set .n-spin-content{height:100%}.c-field-set .setting-title{background:#f2f2f4;border:1px solid #f2f2f2;height:52px;line-height:52px}.c-field-set .setting-title span{display:inline-block}.c-field-set .setting-title.seting-title-api .width-large{width:15%}.c-field-set .set-show{min-height:100px;overflow-y:auto}.c-field-set .set-show.set-show-api .width-large{width:15%}.c-field-set .set-show .left-style.sortable-chosen{background:#fafafa;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set .set-show li{align-items:center;border-bottom:1px solid #e8e8e8;display:flex;height:52px;line-height:52px;padding:5px 0}.c-field-set .set-show .is-sort-style{border:1px solid #d5d5d5;border-radius:4px;color:#38454f;height:32px;margin-right:5px;outline:none;text-indent:6px;width:87px}.c-field-set .set-show .is-sort-style:disabled{background:#f5f5f5;cursor:not-allowed}.c-field-set .set-show .col-width-style{width:70px}.c-field-set .set-show .title-item{align-items:center;display:inline-flex;justify-content:flex-start;text-align:left}.c-field-set .set-show .title-item>span{display:inline-block;max-width:calc(100% - 20px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-field-set .alias-style{border:1px solid #d4dee5;border-radius:4px;color:#38454f;height:32px;outline:none;text-indent:16px}.c-field-set .btn-operate{border-top:1px solid #d5d5d5;padding:12px 0}.c-field-set .width-show{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--width-show)}.c-field-set .drag-icon-wrap{cursor:pointer;text-align:center;width:5%!important}.c-field-set .width-showed{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.c-field-set .width-showed select{width:90%!important}.c-field-set span.width-showed{width:10%}.c-field-set .width-word{display:inline-block;line-height:52px;overflow:hidden;white-space:nowrap;width:var(--width-large)}.c-field-set .width-word input{width:90%!important}.c-field-set .width-large{display:inline-block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:var(--width-large)}
1
+ .c-field-set{display:flex;flex-flow:column nowrap;height:100%;width:100%}.c-field-set ul{margin:0;padding:0}.c-field-set ul li{align-items:center;background:#fff;border-bottom:1px solid #e8e8e8;display:flex;height:52px;padding:5px 0}.c-field-set ul li:active{background:#f2f2f2;box-shadow:0 0 10px 0 #d5d5d5}.c-field-set ul li:focus{background-color:#f2f2f2}.c-field-set .table-cell{box-sizing:border-box;display:inline-block;padding:0 5px}.c-field-set__table-header{align-items:center;background:#f2f2f4;border:1px solid #f2f2f2;display:flex;height:52px}.c-field-set__table-body{flex:1;overflow-y:scroll}.c-field-set__table-footer{border-top:1px solid #d5d5d5;padding:12px 0}
@@ -3952,11 +3952,12 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3952
3952
  onBlur: (...args: any[]) => Promise<void>;
3953
3953
  onInput: (...args: any[]) => Promise<void>;
3954
3954
  reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
3955
+ title: string;
3956
+ editable: boolean;
3955
3957
  visible: boolean;
3956
3958
  submit: <T_2>(onSubmit?: ((values: any) => void | Promise<T_2>) | undefined) => Promise<T_2>;
3957
3959
  validator: import("@formily/core").FieldValidator;
3958
3960
  pattern: import("@formily/core").FieldPatternTypes;
3959
- title: string;
3960
3961
  form: import("@formily/core").Form<any>;
3961
3962
  content: any;
3962
3963
  componentProps: Record<string, any>;
@@ -3964,7 +3965,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
3964
3965
  display: import("@formily/core").FieldDisplayTypes;
3965
3966
  description: string;
3966
3967
  readOnly: boolean;
3967
- editable: boolean;
3968
3968
  hidden: boolean;
3969
3969
  component: import("@formily/core").FieldComponent<any, any>;
3970
3970
  decorator: import("@formily/core").FieldDecorator<any, any>;
@@ -9869,11 +9869,12 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
9869
9869
  onBlur: (...args: any[]) => Promise<void>;
9870
9870
  onInput: (...args: any[]) => Promise<void>;
9871
9871
  reset: (options?: import("@formily/core").IFieldResetOptions | undefined) => Promise<void>;
9872
+ title: string;
9873
+ editable: boolean;
9872
9874
  visible: boolean;
9873
9875
  submit: <T_2>(onSubmit?: ((values: any) => void | Promise<T_2>) | undefined) => Promise<T_2>;
9874
9876
  validator: import("@formily/core").FieldValidator;
9875
9877
  pattern: import("@formily/core").FieldPatternTypes;
9876
- title: string;
9877
9878
  form: import("@formily/core").Form<any>;
9878
9879
  content: any;
9879
9880
  componentProps: Record<string, any>;
@@ -9881,7 +9882,6 @@ declare const FormConfig: SFCWithInstall<import("vue").DefineComponent<{
9881
9882
  display: import("@formily/core").FieldDisplayTypes;
9882
9883
  description: string;
9883
9884
  readOnly: boolean;
9884
- editable: boolean;
9885
9885
  hidden: boolean;
9886
9886
  component: import("@formily/core").FieldComponent<any, any>;
9887
9887
  decorator: import("@formily/core").FieldDecorator<any, any>;