yc-pro-components 0.0.75 → 0.0.76

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 (154) hide show
  1. package/es/components/check-card/index.d.ts +61 -61
  2. package/es/components/check-card/src/index.vue.d.ts +4 -4
  3. package/es/components/check-card-group/index.d.ts +43 -43
  4. package/es/components/check-card-group/src/index.vue.d.ts +3 -3
  5. package/es/components/date-picker/index.d.ts +30 -30
  6. package/es/components/date-picker/src/index.vue.d.ts +22 -22
  7. package/es/components/dialog/index.d.ts +45 -45
  8. package/es/components/dialog/src/index.vue.d.ts +3 -3
  9. package/es/components/dialog-form/index.d.ts +31 -31
  10. package/es/components/dialog-form/src/index.vue.d.ts +9 -9
  11. package/es/components/display-item/index.d.ts +41 -41
  12. package/es/components/display-item/src/index.vue.d.ts +22 -22
  13. package/es/components/drawer-form/index.d.ts +68 -68
  14. package/es/components/drawer-form/src/index.vue.d.ts +16 -16
  15. package/es/components/form/index.d.ts +71 -71
  16. package/es/components/form/src/form-content.vue.d.ts +21 -21
  17. package/es/components/form/src/index.vue.d.ts +19 -19
  18. package/es/components/form-item/index.d.ts +69 -69
  19. package/es/components/form-item/src/index.vue.d.ts +21 -21
  20. package/es/components/header/index.d.ts +19 -19
  21. package/es/components/header/src/index.vue.d.ts +1 -1
  22. package/es/components/input-tag/index.d.ts +15 -15
  23. package/es/components/input-tag/src/index.vue.d.ts +3 -3
  24. package/es/components/layout/index.d.ts +30 -30
  25. package/es/components/layout/src/index.vue.d.ts +10 -10
  26. package/es/components/page/index.d.ts +533 -533
  27. package/es/components/page/src/index.vue.d.ts +181 -181
  28. package/es/components/pagination/index.d.ts +42 -42
  29. package/es/components/pagination/src/index.vue.d.ts +3 -3
  30. package/es/components/radio/index.d.ts +35 -35
  31. package/es/components/radio/src/index.vue.d.ts +27 -27
  32. package/es/components/render/index.d.ts +3 -3
  33. package/es/components/render/src/index.vue.d.ts +1 -1
  34. package/es/components/search/index.d.ts +243 -243
  35. package/es/components/search/src/index.vue.d.ts +73 -73
  36. package/es/components/sidebar/index.d.ts +15 -15
  37. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  38. package/es/components/steps-form/index.d.ts +23 -23
  39. package/es/components/steps-form/src/index.vue.d.ts +2 -2
  40. package/es/components/table/src/table-column.vue.d.ts +37 -37
  41. package/es/components/table/src/table-title-bar.vue.mjs +1 -1
  42. package/es/components/table/src/table-title-bar.vue2.mjs +79 -40
  43. package/es/components/table/src/type.d.ts +17 -0
  44. package/es/components/utils/index.d.ts +2 -2
  45. package/es/components/yc-dialog/index.d.ts +24 -24
  46. package/es/components/yc-download-dialog/index.d.ts +19 -19
  47. package/es/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  48. package/es/components/yc-drawer/src/index.vue.mjs +1 -1
  49. package/es/components/yc-drawer/src/index.vue2.mjs +2 -3
  50. package/es/components/yc-form-container-header/index.d.ts +12 -12
  51. package/es/components/yc-more-actions/index.d.ts +46 -46
  52. package/es/components/yc-more-actions/src/index.vue.d.ts +3 -3
  53. package/es/components/yc-plus-page/src/index.vue.d.ts +361 -361
  54. package/es/components/yc-segmented/index.d.ts +2 -2
  55. package/es/components/yc-segmented/src/index.d.ts +2 -2
  56. package/es/components/yc-select-v2/src/index.vue.d.ts +3 -3
  57. package/es/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  58. package/es/components/yc-tabs-with-filter/index.d.ts +16 -16
  59. package/es/components/yc-text/src/index.vue.d.ts +2 -2
  60. package/es/hooks/usePlusFormReset.d.ts +244 -244
  61. package/es/index.css +10 -9
  62. package/es/version.d.ts +1 -1
  63. package/es/version.mjs +1 -1
  64. package/es/yc-components/version.d.ts +1 -1
  65. package/index.js +84 -46
  66. package/index.min.css +2 -1
  67. package/index.min.js +11 -11
  68. package/index.min.mjs +11 -11
  69. package/index.mjs +85 -47
  70. package/lib/components/check-card/index.d.ts +61 -61
  71. package/lib/components/check-card/src/index.vue.d.ts +4 -4
  72. package/lib/components/check-card-group/index.d.ts +43 -43
  73. package/lib/components/check-card-group/src/index.vue.d.ts +3 -3
  74. package/lib/components/date-picker/index.d.ts +30 -30
  75. package/lib/components/date-picker/src/index.vue.d.ts +22 -22
  76. package/lib/components/dialog/index.d.ts +45 -45
  77. package/lib/components/dialog/src/index.vue.d.ts +3 -3
  78. package/lib/components/dialog-form/index.d.ts +31 -31
  79. package/lib/components/dialog-form/src/index.vue.d.ts +9 -9
  80. package/lib/components/display-item/index.d.ts +41 -41
  81. package/lib/components/display-item/src/index.vue.d.ts +22 -22
  82. package/lib/components/drawer-form/index.d.ts +68 -68
  83. package/lib/components/drawer-form/src/index.vue.d.ts +16 -16
  84. package/lib/components/form/index.d.ts +71 -71
  85. package/lib/components/form/src/form-content.vue.d.ts +21 -21
  86. package/lib/components/form/src/index.vue.d.ts +19 -19
  87. package/lib/components/form-item/index.d.ts +69 -69
  88. package/lib/components/form-item/src/index.vue.d.ts +21 -21
  89. package/lib/components/header/index.d.ts +19 -19
  90. package/lib/components/header/src/index.vue.d.ts +1 -1
  91. package/lib/components/input-tag/index.d.ts +15 -15
  92. package/lib/components/input-tag/src/index.vue.d.ts +3 -3
  93. package/lib/components/layout/index.d.ts +30 -30
  94. package/lib/components/layout/src/index.vue.d.ts +10 -10
  95. package/lib/components/page/index.d.ts +533 -533
  96. package/lib/components/page/src/index.vue.d.ts +181 -181
  97. package/lib/components/pagination/index.d.ts +42 -42
  98. package/lib/components/pagination/src/index.vue.d.ts +3 -3
  99. package/lib/components/radio/index.d.ts +35 -35
  100. package/lib/components/radio/src/index.vue.d.ts +27 -27
  101. package/lib/components/render/index.d.ts +3 -3
  102. package/lib/components/render/src/index.vue.d.ts +1 -1
  103. package/lib/components/search/index.d.ts +243 -243
  104. package/lib/components/search/src/index.vue.d.ts +73 -73
  105. package/lib/components/sidebar/index.d.ts +15 -15
  106. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  107. package/lib/components/steps-form/index.d.ts +23 -23
  108. package/lib/components/steps-form/src/index.vue.d.ts +2 -2
  109. package/lib/components/table/src/table-column.vue.d.ts +37 -37
  110. package/lib/components/table/src/table-title-bar.vue.js +1 -1
  111. package/lib/components/table/src/table-title-bar.vue2.js +78 -39
  112. package/lib/components/table/src/type.d.ts +17 -0
  113. package/lib/components/utils/index.d.ts +2 -2
  114. package/lib/components/yc-dialog/index.d.ts +24 -24
  115. package/lib/components/yc-download-dialog/index.d.ts +19 -19
  116. package/lib/components/yc-download-dialog/src/index.vue.d.ts +1 -1
  117. package/lib/components/yc-drawer/src/index.vue.js +1 -1
  118. package/lib/components/yc-drawer/src/index.vue2.js +2 -3
  119. package/lib/components/yc-form-container-header/index.d.ts +12 -12
  120. package/lib/components/yc-more-actions/index.d.ts +46 -46
  121. package/lib/components/yc-more-actions/src/index.vue.d.ts +3 -3
  122. package/lib/components/yc-plus-page/src/index.vue.d.ts +361 -361
  123. package/lib/components/yc-segmented/index.d.ts +2 -2
  124. package/lib/components/yc-segmented/src/index.d.ts +2 -2
  125. package/lib/components/yc-select-v2/src/index.vue.d.ts +3 -3
  126. package/lib/components/yc-status-dialog/src/index.vue.d.ts +1 -1
  127. package/lib/components/yc-tabs-with-filter/index.d.ts +16 -16
  128. package/lib/components/yc-text/src/index.vue.d.ts +2 -2
  129. package/lib/hooks/usePlusFormReset.d.ts +244 -244
  130. package/lib/index.css +13 -12
  131. package/lib/version.d.ts +1 -1
  132. package/lib/version.js +1 -1
  133. package/lib/yc-components/version.d.ts +1 -1
  134. package/locale/en.js +1 -1
  135. package/locale/en.min.js +1 -1
  136. package/locale/en.min.mjs +1 -1
  137. package/locale/en.mjs +1 -1
  138. package/locale/ja.js +1 -1
  139. package/locale/ja.min.js +1 -1
  140. package/locale/ja.min.mjs +1 -1
  141. package/locale/ja.mjs +1 -1
  142. package/locale/ko.js +1 -1
  143. package/locale/ko.min.js +1 -1
  144. package/locale/ko.min.mjs +1 -1
  145. package/locale/ko.mjs +1 -1
  146. package/locale/zh-cn.js +1 -1
  147. package/locale/zh-cn.min.js +1 -1
  148. package/locale/zh-cn.min.mjs +1 -1
  149. package/locale/zh-cn.mjs +1 -1
  150. package/locale/zh-tw.js +1 -1
  151. package/locale/zh-tw.min.js +1 -1
  152. package/locale/zh-tw.min.mjs +1 -1
  153. package/locale/zh-tw.mjs +1 -1
  154. package/package.json +1 -1
@@ -7,10 +7,6 @@ export type { PlusStepsFormProps } from './src/index.vue';
7
7
  export * from './src/type';
8
8
  export declare const PlusStepsForm: {
9
9
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
10
- modelValue: {
11
- type: PropType<number>;
12
- default: number;
13
- };
14
10
  data: {
15
11
  type: PropType< PlusStepFromRow[]>;
16
12
  default: () => never[];
@@ -19,6 +15,10 @@ export declare const PlusStepsForm: {
19
15
  type: PropType<string>;
20
16
  default: undefined;
21
17
  };
18
+ modelValue: {
19
+ type: PropType<number>;
20
+ default: number;
21
+ };
22
22
  submitText: {
23
23
  type: PropType<string>;
24
24
  default: undefined;
@@ -28,9 +28,9 @@ export declare const PlusStepsForm: {
28
28
  default: undefined;
29
29
  };
30
30
  }>> & {
31
- "onUpdate:modelValue"?: ((active: number) => any) | undefined;
32
31
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
33
32
  onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
33
+ "onUpdate:modelValue"?: ((active: number) => any) | undefined;
34
34
  onPre?: ((modelValue: number) => any) | undefined;
35
35
  onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
36
36
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -40,10 +40,6 @@ export declare const PlusStepsForm: {
40
40
  "update:modelValue": (active: number) => void;
41
41
  change: (values: FieldValues, column: PlusColumn) => void;
42
42
  }, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
43
- modelValue: {
44
- type: PropType<number>;
45
- default: number;
46
- };
47
43
  data: {
48
44
  type: PropType< PlusStepFromRow[]>;
49
45
  default: () => never[];
@@ -52,6 +48,10 @@ export declare const PlusStepsForm: {
52
48
  type: PropType<string>;
53
49
  default: undefined;
54
50
  };
51
+ modelValue: {
52
+ type: PropType<number>;
53
+ default: number;
54
+ };
55
55
  submitText: {
56
56
  type: PropType<string>;
57
57
  default: undefined;
@@ -61,15 +61,15 @@ export declare const PlusStepsForm: {
61
61
  default: undefined;
62
62
  };
63
63
  }>> & {
64
- "onUpdate:modelValue"?: ((active: number) => any) | undefined;
65
64
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
66
65
  onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
66
+ "onUpdate:modelValue"?: ((active: number) => any) | undefined;
67
67
  onPre?: ((modelValue: number) => any) | undefined;
68
68
  onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
69
69
  }, {
70
- modelValue: number;
71
70
  data: PlusStepFromRow[];
72
71
  nextText: string;
72
+ modelValue: number;
73
73
  submitText: string;
74
74
  preText: string;
75
75
  }, true, {}, {}, {
@@ -80,10 +80,6 @@ export declare const PlusStepsForm: {
80
80
  M: {};
81
81
  Defaults: {};
82
82
  }, Readonly< ExtractPropTypes<{
83
- modelValue: {
84
- type: PropType<number>;
85
- default: number;
86
- };
87
83
  data: {
88
84
  type: PropType< PlusStepFromRow[]>;
89
85
  default: () => never[];
@@ -92,6 +88,10 @@ export declare const PlusStepsForm: {
92
88
  type: PropType<string>;
93
89
  default: undefined;
94
90
  };
91
+ modelValue: {
92
+ type: PropType<number>;
93
+ default: number;
94
+ };
95
95
  submitText: {
96
96
  type: PropType<string>;
97
97
  default: undefined;
@@ -101,15 +101,15 @@ export declare const PlusStepsForm: {
101
101
  default: undefined;
102
102
  };
103
103
  }>> & {
104
- "onUpdate:modelValue"?: ((active: number) => any) | undefined;
105
104
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
106
105
  onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
106
+ "onUpdate:modelValue"?: ((active: number) => any) | undefined;
107
107
  onPre?: ((modelValue: number) => any) | undefined;
108
108
  onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
109
109
  }, {}, {}, {}, {}, {
110
- modelValue: number;
111
110
  data: PlusStepFromRow[];
112
111
  nextText: string;
112
+ modelValue: number;
113
113
  submitText: string;
114
114
  preText: string;
115
115
  }>;
@@ -117,10 +117,6 @@ export declare const PlusStepsForm: {
117
117
  __isTeleport?: undefined;
118
118
  __isSuspense?: undefined;
119
119
  } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
120
- modelValue: {
121
- type: PropType<number>;
122
- default: number;
123
- };
124
120
  data: {
125
121
  type: PropType< PlusStepFromRow[]>;
126
122
  default: () => never[];
@@ -129,6 +125,10 @@ export declare const PlusStepsForm: {
129
125
  type: PropType<string>;
130
126
  default: undefined;
131
127
  };
128
+ modelValue: {
129
+ type: PropType<number>;
130
+ default: number;
131
+ };
132
132
  submitText: {
133
133
  type: PropType<string>;
134
134
  default: undefined;
@@ -138,9 +138,9 @@ export declare const PlusStepsForm: {
138
138
  default: undefined;
139
139
  };
140
140
  }>> & {
141
- "onUpdate:modelValue"?: ((active: number) => any) | undefined;
142
141
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
143
142
  onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
143
+ "onUpdate:modelValue"?: ((active: number) => any) | undefined;
144
144
  onPre?: ((modelValue: number) => any) | undefined;
145
145
  onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
146
146
  }, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
@@ -150,9 +150,9 @@ export declare const PlusStepsForm: {
150
150
  "update:modelValue": (active: number) => void;
151
151
  change: (values: FieldValues, column: PlusColumn) => void;
152
152
  }, string, {
153
- modelValue: number;
154
153
  data: PlusStepFromRow[];
155
154
  nextText: string;
155
+ modelValue: number;
156
156
  submitText: string;
157
157
  preText: string;
158
158
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -66,15 +66,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
66
66
  nextText: undefined;
67
67
  preText: undefined;
68
68
  }>>> & {
69
- "onUpdate:modelValue"?: ((active: number) => any) | undefined;
70
69
  onChange?: ((values: FieldValues, column: PlusColumn) => any) | undefined;
71
70
  onSubmit?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
71
+ "onUpdate:modelValue"?: ((active: number) => any) | undefined;
72
72
  onPre?: ((modelValue: number) => any) | undefined;
73
73
  onNext?: ((modelValue: number, values: FieldValues, allValues: FieldValues) => any) | undefined;
74
74
  }, {
75
- modelValue: number;
76
75
  data: PlusStepFromRow[];
77
76
  nextText: string;
77
+ modelValue: number;
78
78
  submitText: string;
79
79
  preText: string;
80
80
  }, {}>, Partial<Record<string, (_: {
@@ -26,15 +26,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
26
26
  $data: {};
27
27
  $props: Partial<{
28
28
  index: number;
29
- formProps: PlusFormProps;
30
29
  rest: RecordType;
30
+ formProps: PlusFormProps;
31
31
  column: PlusColumn;
32
32
  row: RecordType;
33
33
  editable: boolean | "click" | "dblclick";
34
34
  }> & Omit<{
35
35
  readonly index: number;
36
- readonly formProps: PlusFormProps;
37
36
  readonly rest: RecordType;
37
+ readonly formProps: PlusFormProps;
38
38
  readonly column: PlusColumn;
39
39
  readonly row: RecordType;
40
40
  readonly editable: boolean | "click" | "dblclick";
@@ -48,14 +48,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
48
48
  type: PropType<number>;
49
49
  default: number;
50
50
  };
51
- formProps: {
52
- type: PropType<PlusFormProps>;
53
- default: () => {};
54
- };
55
51
  rest: {
56
52
  type: PropType<RecordType>;
57
53
  default: () => {};
58
54
  };
55
+ formProps: {
56
+ type: PropType<PlusFormProps>;
57
+ default: () => {};
58
+ };
59
59
  column: {
60
60
  type: PropType<PlusColumn>;
61
61
  required: true;
@@ -79,7 +79,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
79
79
  prop: string;
80
80
  row: RecordType;
81
81
  }) => any) | undefined;
82
- }, "index" | "formProps" | "rest" | "column" | "row" | "editable">;
82
+ }, "index" | "rest" | "formProps" | "column" | "row" | "editable">;
83
83
  $attrs: {
84
84
  [x: string]: unknown;
85
85
  };
@@ -102,14 +102,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
102
102
  type: PropType<number>;
103
103
  default: number;
104
104
  };
105
- formProps: {
106
- type: PropType<PlusFormProps>;
107
- default: () => {};
108
- };
109
105
  rest: {
110
106
  type: PropType<RecordType>;
111
107
  default: () => {};
112
108
  };
109
+ formProps: {
110
+ type: PropType<PlusFormProps>;
111
+ default: () => {};
112
+ };
113
113
  column: {
114
114
  type: PropType<PlusColumn>;
115
115
  required: true;
@@ -152,8 +152,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
152
152
  }) => void;
153
153
  }, string, {
154
154
  index: number;
155
- formProps: PlusFormProps;
156
155
  rest: RecordType;
156
+ formProps: PlusFormProps;
157
157
  column: PlusColumn;
158
158
  row: RecordType;
159
159
  editable: boolean | "click" | "dblclick";
@@ -182,14 +182,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
182
182
  type: PropType<number>;
183
183
  default: number;
184
184
  };
185
- formProps: {
186
- type: PropType<PlusFormProps>;
187
- default: () => {};
188
- };
189
185
  rest: {
190
186
  type: PropType<RecordType>;
191
187
  default: () => {};
192
188
  };
189
+ formProps: {
190
+ type: PropType<PlusFormProps>;
191
+ default: () => {};
192
+ };
193
193
  column: {
194
194
  type: PropType<PlusColumn>;
195
195
  required: true;
@@ -226,14 +226,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
226
226
  };
227
227
  }> & {} & ComponentCustomProperties & {} & {
228
228
  $slots: Partial<Record<string, (_: {
229
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
229
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
230
230
  readonly label: string | ComputedRef<string>;
231
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
231
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
232
232
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
233
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
233
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
234
234
  style?: CSSProperties | undefined;
235
235
  class?: any;
236
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
236
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
237
237
  style?: CSSProperties | undefined;
238
238
  class?: any;
239
239
  } & RecordType>>;
@@ -300,12 +300,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
300
300
  fieldInstance?: any;
301
301
  valueIsReady?: Ref<boolean> | undefined;
302
302
  prop: string;
303
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
303
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
304
304
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
305
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
305
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
306
306
  style?: CSSProperties | undefined;
307
307
  class?: any;
308
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
308
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
309
309
  style?: CSSProperties | undefined;
310
310
  class?: any;
311
311
  } & RecordType>>;
@@ -334,14 +334,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
334
334
  clearable: boolean;
335
335
  index: number;
336
336
  }) => any>> & Partial<Record<string, (_: {
337
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
337
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
338
338
  readonly label: string | ComputedRef<string>;
339
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
339
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
340
340
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
341
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
341
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
342
342
  style?: CSSProperties | undefined;
343
343
  class?: any;
344
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
344
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
345
345
  style?: CSSProperties | undefined;
346
346
  class?: any;
347
347
  } & RecordType>>;
@@ -408,12 +408,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
408
408
  fieldInstance?: any;
409
409
  valueIsReady?: Ref<boolean> | undefined;
410
410
  prop: string;
411
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
411
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
412
412
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
413
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
413
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
414
414
  style?: CSSProperties | undefined;
415
415
  class?: any;
416
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
416
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
417
417
  style?: CSSProperties | undefined;
418
418
  class?: any;
419
419
  } & RecordType>>;
@@ -442,14 +442,14 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
442
442
  clearable: boolean;
443
443
  index: number;
444
444
  }) => any>> & Partial<Record<string, (_: {
445
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "modelValue" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
445
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "index" | "label" | "tooltip" | "formItemProps" | "fieldProps" | "options" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap" | "autoDict">> & {
446
446
  readonly label: string | ComputedRef<string>;
447
- readonly modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
447
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
448
448
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
449
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
449
+ readonly tooltip: string | Partial< Mutable<ElTooltipProps> & {
450
450
  style?: CSSProperties | undefined;
451
451
  class?: any;
452
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
452
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
453
453
  style?: CSSProperties | undefined;
454
454
  class?: any;
455
455
  } & RecordType>>;
@@ -516,12 +516,12 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
516
516
  fieldInstance?: any;
517
517
  valueIsReady?: Ref<boolean> | undefined;
518
518
  prop: string;
519
- modelValue: string | number | boolean | string[] | [string, string] | boolean[] | RecordType | Date | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
519
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
520
520
  hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
521
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
521
+ tooltip: string | Partial< Mutable<ElTooltipProps> & {
522
522
  style?: CSSProperties | undefined;
523
523
  class?: any;
524
- } & RecordType> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
524
+ } & RecordType> | ComputedRef<string> | ComputedRef<Partial< Mutable<ElTooltipProps> & {
525
525
  style?: CSSProperties | undefined;
526
526
  class?: any;
527
527
  } & RecordType>>;
@@ -1,6 +1,6 @@
1
1
  import _sfc_main from './table-title-bar.vue2.mjs';
2
2
  import _export_sfc from '../../../_virtual/_plugin-vue_export-helper.mjs';
3
3
 
4
- var PlusTableTitleBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "table-title-bar.vue"]]);
4
+ var PlusTableTitleBar = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-d1506155"], ["__file", "table-title-bar.vue"]]);
5
5
 
6
6
  export { PlusTableTitleBar as default };
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, reactive, watch, onMounted, openBlock, createElementBlock, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, unref, withCtx, createCommentVNode, createBlock, Fragment, renderList, mergeProps, withModifiers } from 'vue';
1
+ import { defineComponent, ref, computed, reactive, watch, onMounted, openBlock, createElementBlock, createElementVNode, renderSlot, createTextVNode, toDisplayString, createVNode, unref, withCtx, createCommentVNode, createBlock, Fragment, renderList, withModifiers, mergeProps, pushScopeId, popScopeId } from 'vue';
2
2
  import { RefreshRight, Setting } from '@element-plus/icons-vue';
3
3
  import { PlusPopover } from '../../popover/index.mjs';
4
4
  import { versionIsLessThan299, versionIsLessThan260, getTableKey, getLabel } from '../../utils/index.mjs';
@@ -7,11 +7,12 @@ import Sortable from 'sortablejs';
7
7
  import { ElTooltip, ElIcon, ElButton, ElCheckbox, ElLink, ElCheckboxGroup } from 'element-plus';
8
8
  import { isPlainObject } from '../../utils/is.mjs';
9
9
 
10
+ const _withScopeId = (n) => (pushScopeId("data-v-d1506155"), n = n(), popScopeId(), n);
10
11
  const _hoisted_1 = { class: "plus-table-title-bar" };
11
12
  const _hoisted_2 = { class: "plus-table-title-bar__title" };
12
13
  const _hoisted_3 = { class: "plus-table-title-bar__toolbar" };
13
14
  const _hoisted_4 = { class: "plus-table-title-bar__toolbar__density" };
14
- const _hoisted_5 = /* @__PURE__ */ createElementVNode(
15
+ const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode(
15
16
  "svg",
16
17
  {
17
18
  viewBox: "0 0 1024 1024",
@@ -25,14 +26,15 @@ const _hoisted_5 = /* @__PURE__ */ createElementVNode(
25
26
  ],
26
27
  -1
27
28
  /* HOISTED */
28
- );
29
+ ));
29
30
  const _hoisted_6 = { class: "plus-table-checkbox-checkAll" };
30
- const _hoisted_7 = {
31
+ const _hoisted_7 = { class: "plus-table-checkbox-actions" };
32
+ const _hoisted_8 = {
31
33
  key: 0,
32
34
  class: "plus-table-checkbox-handle"
33
35
  };
34
- const _hoisted_8 = { key: 1 };
35
36
  const _hoisted_9 = { key: 1 };
37
+ const _hoisted_10 = { key: 1 };
36
38
  var _sfc_main = /* @__PURE__ */ defineComponent({
37
39
  ...{
38
40
  name: "PlusTableToolbar"
@@ -72,6 +74,12 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
72
74
  var _a;
73
75
  return ((_a = columnSetting.value) == null ? void 0 : _a.overflowLabelLength) || 6;
74
76
  });
77
+ const confirmTextValue = computed(
78
+ () => {
79
+ var _a;
80
+ return ((_a = columnSetting.value) == null ? void 0 : _a.confirmText) || String(t("plus.table.confirmText"));
81
+ }
82
+ );
75
83
  const sortable = ref(null);
76
84
  const buttonNameDensity = [
77
85
  {
@@ -93,6 +101,20 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
93
101
  }
94
102
  return props.columns.filter((item) => unref(item.headerIsChecked) !== false).map((item) => getTableKey(item));
95
103
  };
104
+ const buildFilterColumns = () => {
105
+ return props.columns.map((item) => {
106
+ if (state.checkList.includes(getTableKey(item))) {
107
+ return { ...item, headerIsChecked: true };
108
+ }
109
+ return { ...item, headerIsChecked: false };
110
+ });
111
+ };
112
+ const buildConfirmPayload = () => {
113
+ const columns = buildFilterColumns();
114
+ const order = columns.map((item) => String(item.prop || "")).filter(Boolean);
115
+ const checked = columns.filter((item) => item.headerIsChecked !== false).map((item) => String(item.prop || "")).filter(Boolean);
116
+ return { columns, order, checked };
117
+ };
96
118
  const state = reactive({
97
119
  checkAll: true,
98
120
  isIndeterminate: false,
@@ -121,13 +143,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
121
143
  handleFilterTableConfirm("allCheck");
122
144
  };
123
145
  const handleFilterTableConfirm = (type) => {
124
- const filterColumns = props.columns.map((item) => {
125
- if (state.checkList.includes(getTableKey(item))) {
126
- return { ...item, headerIsChecked: true };
127
- }
128
- return { ...item, headerIsChecked: false };
129
- });
130
- emit("filterTableHeader", filterColumns, type);
146
+ emit("filterTableHeader", buildFilterColumns(), type);
147
+ };
148
+ const handleConfirmClick = async () => {
149
+ var _a, _b;
150
+ await ((_b = (_a = columnSetting.value) == null ? void 0 : _a.onConfirm) == null ? void 0 : _b.call(_a, buildConfirmPayload()));
131
151
  };
132
152
  const handleCheckGroupChange = (value) => {
133
153
  setCheckAllState(value);
@@ -192,10 +212,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
192
212
  1
193
213
  /* TEXT */
194
214
  )
195
- ])
215
+ ], true)
196
216
  ]),
197
217
  createElementVNode("div", _hoisted_3, [
198
- renderSlot(_ctx.$slots, "toolbar"),
218
+ renderSlot(_ctx.$slots, "toolbar", {}, void 0, true),
199
219
  ((_a = titleBarConfig.value) == null ? void 0 : _a.refresh) === true ? (openBlock(), createElementBlock("span", {
200
220
  key: 0,
201
221
  class: "plus-table-title-bar__toolbar__refresh",
@@ -219,7 +239,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
219
239
  _: 1
220
240
  /* STABLE */
221
241
  }, 8, ["size", "color"])
222
- ])
242
+ ], true)
223
243
  ]),
224
244
  _: 3
225
245
  /* FORWARDED */
@@ -252,7 +272,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
252
272
  _: 1
253
273
  /* STABLE */
254
274
  }, 8, ["size", "color"])
255
- ])
275
+ ], true)
256
276
  ]),
257
277
  _: 3
258
278
  /* FORWARDED */
@@ -317,14 +337,14 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
317
337
  _: 1
318
338
  /* STABLE */
319
339
  }, 8, ["size", "color"])
320
- ])
340
+ ], true)
321
341
  ]),
322
342
  _: 3
323
343
  /* FORWARDED */
324
344
  }, 8, ["content"])
325
345
  ]),
326
346
  default: withCtx(() => {
327
- var _a2, _b2, _c2;
347
+ var _a2, _b2, _c2, _d;
328
348
  return [
329
349
  createElementVNode("div", _hoisted_6, [
330
350
  createVNode(unref(ElCheckbox), {
@@ -343,24 +363,43 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
343
363
  _: 1
344
364
  /* STABLE */
345
365
  }, 8, ["modelValue", "indeterminate"]),
346
- ((_a2 = columnSetting.value) == null ? void 0 : _a2.reset) !== false ? (openBlock(), createBlock(unref(ElLink), mergeProps({
347
- key: 0,
348
- type: "primary",
349
- underline: unref(versionIsLessThan299) ? false : "never",
350
- href: "javaScript:;"
351
- }, unref(isPlainObject)((_b2 = columnSetting.value) == null ? void 0 : _b2.reset) ? (_c2 = columnSetting.value) == null ? void 0 : _c2.reset : {}, {
352
- onClick: withModifiers(resetCheckBoxList, ["stop", "prevent"])
353
- }), {
354
- default: withCtx(() => [
355
- createTextVNode(
356
- toDisplayString(unref(t)("plus.table.resetText")),
357
- 1
358
- /* TEXT */
359
- )
360
- ]),
361
- _: 1
362
- /* STABLE */
363
- }, 16, ["underline"])) : createCommentVNode("v-if", true)
366
+ createElementVNode("div", _hoisted_7, [
367
+ ((_a2 = columnSetting.value) == null ? void 0 : _a2.confirm) ? (openBlock(), createBlock(unref(ElLink), {
368
+ key: 0,
369
+ type: "primary",
370
+ underline: unref(versionIsLessThan299) ? false : "never",
371
+ href: "javaScript:;",
372
+ onClick: withModifiers(handleConfirmClick, ["stop", "prevent"])
373
+ }, {
374
+ default: withCtx(() => [
375
+ createTextVNode(
376
+ toDisplayString(confirmTextValue.value),
377
+ 1
378
+ /* TEXT */
379
+ )
380
+ ]),
381
+ _: 1
382
+ /* STABLE */
383
+ }, 8, ["underline"])) : createCommentVNode("v-if", true),
384
+ ((_b2 = columnSetting.value) == null ? void 0 : _b2.reset) !== false ? (openBlock(), createBlock(unref(ElLink), mergeProps({
385
+ key: 1,
386
+ type: "primary",
387
+ underline: unref(versionIsLessThan299) ? false : "never",
388
+ href: "javaScript:;"
389
+ }, unref(isPlainObject)((_c2 = columnSetting.value) == null ? void 0 : _c2.reset) ? (_d = columnSetting.value) == null ? void 0 : _d.reset : {}, {
390
+ onClick: withModifiers(resetCheckBoxList, ["stop", "prevent"])
391
+ }), {
392
+ default: withCtx(() => [
393
+ createTextVNode(
394
+ toDisplayString(unref(t)("plus.table.resetText")),
395
+ 1
396
+ /* TEXT */
397
+ )
398
+ ]),
399
+ _: 1
400
+ /* STABLE */
401
+ }, 16, ["underline"])) : createCommentVNode("v-if", true)
402
+ ])
364
403
  ]),
365
404
  createVNode(unref(ElCheckboxGroup), {
366
405
  modelValue: state.checkList,
@@ -385,10 +424,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
385
424
  key: item.prop,
386
425
  class: "plus-table-checkbox-item"
387
426
  }, [
388
- ((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div", _hoisted_7, [
427
+ ((_a3 = columnSetting.value) == null ? void 0 : _a3.dragSort) !== false ? (openBlock(), createElementBlock("div", _hoisted_8, [
389
428
  renderSlot(_ctx.$slots, "drag-sort-icon", {}, () => [
390
429
  createTextVNode("\u2637")
391
- ])
430
+ ], true)
392
431
  ])) : createCommentVNode("v-if", true),
393
432
  createCommentVNode(" element-plus \u7248\u672C\u53F7\u5C0F\u4E8E2.6.0 "),
394
433
  unref(versionIsLessThan260) ? (openBlock(), createBlock(unref(ElCheckbox), {
@@ -414,7 +453,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
414
453
  /* DYNAMIC */
415
454
  }, 1032, ["content"])) : (openBlock(), createElementBlock(
416
455
  "span",
417
- _hoisted_8,
456
+ _hoisted_9,
418
457
  toDisplayString(item.label ? getLabelValue(item.label) : ""),
419
458
  1
420
459
  /* TEXT */
@@ -449,7 +488,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
449
488
  /* DYNAMIC */
450
489
  }, 1032, ["content"])) : (openBlock(), createElementBlock(
451
490
  "span",
452
- _hoisted_9,
491
+ _hoisted_10,
453
492
  toDisplayString(item.label ? getLabelValue(item.label) : ""),
454
493
  1
455
494
  /* TEXT */
@@ -322,6 +322,14 @@ export interface PlusTableState {
322
322
  * 列设置类型
323
323
  * @version v0.1.20 新增reset,默认:true
324
324
  */
325
+ /**
326
+ * 列设置确认回调 payload
327
+ */
328
+ export type ColumnSettingConfirmPayload = {
329
+ columns: PlusColumn[];
330
+ order: string[];
331
+ checked: string[];
332
+ };
325
333
  export type ColumnSetting = {
326
334
  dragSort?: boolean | Partial<SortableOptions>;
327
335
  /**
@@ -342,6 +350,15 @@ export type ColumnSetting = {
342
350
  * @default 6
343
351
  */
344
352
  overflowLabelLength?: number;
353
+ /**
354
+ * 是否显示「确认」按钮;默认 false 不展示
355
+ * 不影响勾选/拖拽/重置的即时生效行为,点击确认仅触发 onConfirm 回调(如发起保存请求)
356
+ */
357
+ confirm?: boolean;
358
+ /** 确认按钮文案 */
359
+ confirmText?: string;
360
+ /** 点击确认时回调,payload 为当前列设置快照 */
361
+ onConfirm?: (payload: ColumnSettingConfirmPayload) => void | Promise<void>;
345
362
  };
346
363
  /**
347
364
  * 标题栏