yc-pro-components 0.0.82 → 0.0.83

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 (157) hide show
  1. package/es/components/check-card/index.d.ts +38 -38
  2. package/es/components/check-card/src/index.vue.d.ts +2 -2
  3. package/es/components/check-card-group/index.d.ts +39 -39
  4. package/es/components/check-card-group/src/index.vue.d.ts +2 -2
  5. package/es/components/date-picker/index.d.ts +29 -29
  6. package/es/components/date-picker/src/index.vue.d.ts +21 -21
  7. package/es/components/dialog/index.d.ts +57 -57
  8. package/es/components/dialog/src/index.vue.d.ts +5 -5
  9. package/es/components/dialog-form/index.d.ts +18 -18
  10. package/es/components/dialog-form/src/index.vue.d.ts +12 -12
  11. package/es/components/display-item/index.d.ts +50 -50
  12. package/es/components/display-item/src/index.vue.d.ts +31 -31
  13. package/es/components/drawer-form/index.d.ts +121 -121
  14. package/es/components/drawer-form/src/index.vue.d.ts +33 -33
  15. package/es/components/form/index.d.ts +47 -47
  16. package/es/components/form/src/form-content.vue.d.ts +39 -39
  17. package/es/components/form/src/index.vue.d.ts +22 -22
  18. package/es/components/form-item/index.d.ts +62 -62
  19. package/es/components/form-item/src/index.vue.d.ts +19 -19
  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 +347 -347
  27. package/es/components/page/src/index.vue.d.ts +121 -121
  28. package/es/components/pagination/index.d.ts +38 -38
  29. package/es/components/pagination/src/index.vue.d.ts +2 -2
  30. package/es/components/popover/index.d.ts +42 -42
  31. package/es/components/popover/src/index.vue.d.ts +3 -3
  32. package/es/components/radio/index.d.ts +33 -33
  33. package/es/components/radio/src/index.vue.d.ts +25 -25
  34. package/es/components/render/index.d.ts +6 -6
  35. package/es/components/render/src/index.vue.d.ts +2 -2
  36. package/es/components/search/index.d.ts +156 -156
  37. package/es/components/search/src/index.vue.d.ts +53 -53
  38. package/es/components/sidebar/index.d.ts +15 -15
  39. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  40. package/es/components/steps-form/index.d.ts +19 -19
  41. package/es/components/steps-form/src/index.vue.d.ts +1 -1
  42. package/es/components/table/src/index.vue2.mjs +11 -5
  43. package/es/components/table/src/table-column.vue.d.ts +46 -46
  44. package/es/components/table/src/use-table-density.d.ts +8 -0
  45. package/es/components/table/src/use-table-density.mjs +24 -0
  46. package/es/components/yc-card/index.d.ts +19 -19
  47. package/es/components/yc-card/src/index.vue.d.ts +1 -1
  48. package/es/components/yc-count-to/index.d.ts +1 -1
  49. package/es/components/yc-count-to/src/normal/index.d.ts +1 -1
  50. package/es/components/yc-dialog/index.d.ts +24 -24
  51. package/es/components/yc-drawer/store.d.ts +5 -5
  52. package/es/components/yc-more-actions/index.d.ts +36 -36
  53. package/es/components/yc-more-actions/src/index.vue.d.ts +2 -2
  54. package/es/components/yc-plus-page/src/header-filter-cell.vue.d.ts +3 -3
  55. package/es/components/yc-plus-page/src/index.vue.d.ts +236 -236
  56. package/es/components/yc-plus-tree/src/index.vue.d.ts +1 -1
  57. package/es/components/yc-segmented/index.d.ts +1 -1
  58. package/es/components/yc-segmented/src/index.d.ts +1 -1
  59. package/es/components/yc-select-v2/src/index.vue.d.ts +1 -1
  60. package/es/components/yc-status-dialog/src/index.vue.d.ts +5 -5
  61. package/es/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  62. package/es/hooks/usePlusFormReset.d.ts +345 -345
  63. package/es/index.css +9 -9
  64. package/es/version.d.ts +1 -1
  65. package/es/version.mjs +1 -1
  66. package/es/yc-components/version.d.ts +1 -1
  67. package/index.js +32 -6
  68. package/index.min.js +12 -12
  69. package/index.min.mjs +12 -12
  70. package/index.mjs +32 -6
  71. package/lib/components/check-card/index.d.ts +38 -38
  72. package/lib/components/check-card/src/index.vue.d.ts +2 -2
  73. package/lib/components/check-card-group/index.d.ts +39 -39
  74. package/lib/components/check-card-group/src/index.vue.d.ts +2 -2
  75. package/lib/components/date-picker/index.d.ts +29 -29
  76. package/lib/components/date-picker/src/index.vue.d.ts +21 -21
  77. package/lib/components/dialog/index.d.ts +57 -57
  78. package/lib/components/dialog/src/index.vue.d.ts +5 -5
  79. package/lib/components/dialog-form/index.d.ts +18 -18
  80. package/lib/components/dialog-form/src/index.vue.d.ts +12 -12
  81. package/lib/components/display-item/index.d.ts +50 -50
  82. package/lib/components/display-item/src/index.vue.d.ts +31 -31
  83. package/lib/components/drawer-form/index.d.ts +121 -121
  84. package/lib/components/drawer-form/src/index.vue.d.ts +33 -33
  85. package/lib/components/form/index.d.ts +47 -47
  86. package/lib/components/form/src/form-content.vue.d.ts +39 -39
  87. package/lib/components/form/src/index.vue.d.ts +22 -22
  88. package/lib/components/form-item/index.d.ts +62 -62
  89. package/lib/components/form-item/src/index.vue.d.ts +19 -19
  90. package/lib/components/header/index.d.ts +19 -19
  91. package/lib/components/header/src/index.vue.d.ts +1 -1
  92. package/lib/components/input-tag/index.d.ts +15 -15
  93. package/lib/components/input-tag/src/index.vue.d.ts +3 -3
  94. package/lib/components/layout/index.d.ts +30 -30
  95. package/lib/components/layout/src/index.vue.d.ts +10 -10
  96. package/lib/components/page/index.d.ts +347 -347
  97. package/lib/components/page/src/index.vue.d.ts +121 -121
  98. package/lib/components/pagination/index.d.ts +38 -38
  99. package/lib/components/pagination/src/index.vue.d.ts +2 -2
  100. package/lib/components/popover/index.d.ts +42 -42
  101. package/lib/components/popover/src/index.vue.d.ts +3 -3
  102. package/lib/components/radio/index.d.ts +33 -33
  103. package/lib/components/radio/src/index.vue.d.ts +25 -25
  104. package/lib/components/render/index.d.ts +6 -6
  105. package/lib/components/render/src/index.vue.d.ts +2 -2
  106. package/lib/components/search/index.d.ts +156 -156
  107. package/lib/components/search/src/index.vue.d.ts +53 -53
  108. package/lib/components/sidebar/index.d.ts +15 -15
  109. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  110. package/lib/components/steps-form/index.d.ts +19 -19
  111. package/lib/components/steps-form/src/index.vue.d.ts +1 -1
  112. package/lib/components/table/src/index.vue2.js +10 -4
  113. package/lib/components/table/src/table-column.vue.d.ts +46 -46
  114. package/lib/components/table/src/use-table-density.d.ts +8 -0
  115. package/lib/components/table/src/use-table-density.js +28 -0
  116. package/lib/components/yc-card/index.d.ts +19 -19
  117. package/lib/components/yc-card/src/index.vue.d.ts +1 -1
  118. package/lib/components/yc-count-to/index.d.ts +1 -1
  119. package/lib/components/yc-count-to/src/normal/index.d.ts +1 -1
  120. package/lib/components/yc-dialog/index.d.ts +24 -24
  121. package/lib/components/yc-drawer/store.d.ts +5 -5
  122. package/lib/components/yc-more-actions/index.d.ts +36 -36
  123. package/lib/components/yc-more-actions/src/index.vue.d.ts +2 -2
  124. package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +3 -3
  125. package/lib/components/yc-plus-page/src/index.vue.d.ts +236 -236
  126. package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
  127. package/lib/components/yc-segmented/index.d.ts +1 -1
  128. package/lib/components/yc-segmented/src/index.d.ts +1 -1
  129. package/lib/components/yc-select-v2/src/index.vue.d.ts +1 -1
  130. package/lib/components/yc-status-dialog/src/index.vue.d.ts +5 -5
  131. package/lib/components/yc-svg-icon/src/index.vue.d.ts +1 -1
  132. package/lib/hooks/usePlusFormReset.d.ts +345 -345
  133. package/lib/index.css +9 -9
  134. package/lib/version.d.ts +1 -1
  135. package/lib/version.js +1 -1
  136. package/lib/yc-components/version.d.ts +1 -1
  137. package/locale/en.js +1 -1
  138. package/locale/en.min.js +1 -1
  139. package/locale/en.min.mjs +1 -1
  140. package/locale/en.mjs +1 -1
  141. package/locale/ja.js +1 -1
  142. package/locale/ja.min.js +1 -1
  143. package/locale/ja.min.mjs +1 -1
  144. package/locale/ja.mjs +1 -1
  145. package/locale/ko.js +1 -1
  146. package/locale/ko.min.js +1 -1
  147. package/locale/ko.min.mjs +1 -1
  148. package/locale/ko.mjs +1 -1
  149. package/locale/zh-cn.js +1 -1
  150. package/locale/zh-cn.min.js +1 -1
  151. package/locale/zh-cn.min.mjs +1 -1
  152. package/locale/zh-cn.mjs +1 -1
  153. package/locale/zh-tw.js +1 -1
  154. package/locale/zh-tw.min.js +1 -1
  155. package/locale/zh-tw.min.mjs +1 -1
  156. package/locale/zh-tw.mjs +1 -1
  157. package/package.json +1 -1
@@ -15,6 +15,7 @@ var tableColumn = require('./table-column.vue.js');
15
15
  var tableColumnIndex = require('./table-column-index.vue.js');
16
16
  var tableColumnDragSort = require('./table-column-drag-sort.vue.js');
17
17
  var tableTitleBar = require('./table-title-bar.vue.js');
18
+ var useTableDensity = require('./use-table-density.js');
18
19
  var is = require('../../utils/is.js');
19
20
 
20
21
  const _hoisted_1 = { class: "plus-table-expand-col" };
@@ -62,7 +63,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
62
63
  },
63
64
  emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
64
65
  setup(__props, { expose: __expose, emit: __emit }) {
65
- var _a, _b;
66
+ var _a, _b, _c;
66
67
  const props = __props;
67
68
  const emit = __emit;
68
69
  const radioRow = vue.ref();
@@ -81,9 +82,14 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
81
82
  subPageInfo: {
82
83
  ...((_a = props.pagination) == null ? void 0 : _a.modelValue) || page.DefaultPageInfo
83
84
  },
84
- size: props.defaultSize
85
+ size: (_b = useTableDensity.sharedTableDensity.value) != null ? _b : props.defaultSize
85
86
  });
86
87
  const cachedTableData = vue.ref([]);
88
+ vue.watch(useTableDensity.sharedTableDensity, (val) => {
89
+ if (val) {
90
+ state.size = val;
91
+ }
92
+ });
87
93
  vue.watchEffect(() => {
88
94
  var _a2;
89
95
  cachedTableData.value = ((_a2 = props.tableData) == null ? void 0 : _a2.length) ? props.tableData : props.data;
@@ -140,7 +146,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
140
146
  );
141
147
  };
142
148
  const handleClickDensity = (size2) => {
143
- state.size = size2;
149
+ useTableDensity.applyTableDensity(size2);
144
150
  };
145
151
  const handleDragSortEnd = (newIndex, oldIndex) => {
146
152
  emit("dragSortEnd", newIndex, oldIndex);
@@ -223,7 +229,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
223
229
  };
224
230
  const debounceSetAdaptive = lodashEs.debounce(
225
231
  setAdaptive,
226
- is.isPlainObject(props.adaptive) ? (_b = props.adaptive.timeout) != null ? _b : 60 : 60
232
+ is.isPlainObject(props.adaptive) ? (_c = props.adaptive.timeout) != null ? _c : 60 : 60
227
233
  );
228
234
  vue.onMounted(() => {
229
235
  if (hasAdaptive.value) {
@@ -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" | "label" | "modelValue" | "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[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
232
- readonly hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
233
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
231
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
232
+ readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
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>>;
@@ -255,7 +255,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
255
255
  };
256
256
  rows: number;
257
257
  autocomplete: string;
258
- type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "warning" | "success" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
258
+ type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
259
259
  loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
260
260
  step: string | number;
261
261
  format: string | ProgressFn | undefined;
@@ -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[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
304
- hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
305
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
303
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
304
+ hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
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" | "label" | "modelValue" | "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[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
340
- readonly hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
341
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
339
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
340
+ readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
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>>;
@@ -363,7 +363,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
363
363
  };
364
364
  rows: number;
365
365
  autocomplete: string;
366
- type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "warning" | "success" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
366
+ type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
367
367
  loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
368
368
  step: string | number;
369
369
  format: string | ProgressFn | undefined;
@@ -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[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
412
- hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
413
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
411
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
412
+ hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
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" | "label" | "modelValue" | "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[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
448
- readonly hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
449
- readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
447
+ readonly modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
448
+ readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
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>>;
@@ -471,7 +471,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
471
471
  };
472
472
  rows: number;
473
473
  autocomplete: string;
474
- type: "" | "number" | "default" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "warning" | "success" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
474
+ type: "" | "number" | "default" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "color" | "primary" | "success" | "warning" | "info" | "danger" | "reset" | "submit" | "hidden" | "email" | "tel" | "password" | "range" | "url" | "date" | "year" | "years" | "month" | "months" | "dates" | "week" | "datetime" | "yearrange" | "dashboard" | "datetime-local" | "file" | undefined;
475
475
  loading: boolean | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
476
476
  step: string | number;
477
477
  format: string | ProgressFn | undefined;
@@ -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[] | Date | RecordType | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
520
- hasLabel: boolean | ComputedRef<boolean> | Ref<boolean>;
521
- tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
519
+ modelValue: string | number | boolean | string[] | [string, string] | number[] | Date | RecordType | boolean[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
520
+ hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
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>>;
@@ -0,0 +1,8 @@
1
+ import { Ref } from 'vue';
2
+ import { ComponentSize } from 'element-plus/es/constants';
3
+
4
+ /** 跨页面共享的表格密度,与列设置缓存一样写入 localStorage */
5
+ export declare const TABLE_DENSITY_STORAGE_KEY = "yc-table-density";
6
+ /** 模块级共享,已挂载的 PlusTable(含 keep-alive)会同步更新 */
7
+ export declare const sharedTableDensity: Ref<"" | "default" | "small" | "large" | null>;
8
+ export declare const applyTableDensity: (nextSize: ComponentSize) => void;
@@ -0,0 +1,28 @@
1
+ 'use strict';
2
+
3
+ var vue = require('vue');
4
+
5
+ const TABLE_DENSITY_STORAGE_KEY = "yc-table-density";
6
+ const VALID_TABLE_DENSITY = ["default", "large", "small"];
7
+ const readStoredTableDensity = () => {
8
+ try {
9
+ const value = localStorage.getItem(TABLE_DENSITY_STORAGE_KEY);
10
+ if (value && VALID_TABLE_DENSITY.includes(value)) {
11
+ return value;
12
+ }
13
+ } catch (e) {
14
+ }
15
+ return null;
16
+ };
17
+ const sharedTableDensity = vue.ref(readStoredTableDensity());
18
+ const applyTableDensity = (nextSize) => {
19
+ sharedTableDensity.value = nextSize;
20
+ try {
21
+ localStorage.setItem(TABLE_DENSITY_STORAGE_KEY, nextSize);
22
+ } catch (e) {
23
+ }
24
+ };
25
+
26
+ exports.TABLE_DENSITY_STORAGE_KEY = TABLE_DENSITY_STORAGE_KEY;
27
+ exports.applyTableDensity = applyTableDensity;
28
+ exports.sharedTableDensity = sharedTableDensity;
@@ -8,10 +8,6 @@ export declare const YcCardWithInstall: SFCWithInstall<{
8
8
  width: {
9
9
  type: PropType<string | number>;
10
10
  };
11
- bodyClass: {
12
- type: PropType<string>;
13
- default: string;
14
- };
15
11
  background: {
16
12
  type: PropType<string>;
17
13
  default: string;
@@ -22,6 +18,10 @@ export declare const YcCardWithInstall: SFCWithInstall<{
22
18
  padding: {
23
19
  type: PropType<string | number>;
24
20
  };
21
+ bodyClass: {
22
+ type: PropType<string>;
23
+ default: string;
24
+ };
25
25
  shadow: {
26
26
  type: PropType<"hover" | "always" | "never">;
27
27
  default: string;
@@ -34,10 +34,6 @@ export declare const YcCardWithInstall: SFCWithInstall<{
34
34
  width: {
35
35
  type: PropType<string | number>;
36
36
  };
37
- bodyClass: {
38
- type: PropType<string>;
39
- default: string;
40
- };
41
37
  background: {
42
38
  type: PropType<string>;
43
39
  default: string;
@@ -48,6 +44,10 @@ export declare const YcCardWithInstall: SFCWithInstall<{
48
44
  padding: {
49
45
  type: PropType<string | number>;
50
46
  };
47
+ bodyClass: {
48
+ type: PropType<string>;
49
+ default: string;
50
+ };
51
51
  shadow: {
52
52
  type: PropType<"hover" | "always" | "never">;
53
53
  default: string;
@@ -57,8 +57,8 @@ export declare const YcCardWithInstall: SFCWithInstall<{
57
57
  default: number;
58
58
  };
59
59
  }>>, {
60
- bodyClass: string;
61
60
  background: string;
61
+ bodyClass: string;
62
62
  shadow: "hover" | "always" | "never";
63
63
  radius: string | number;
64
64
  }, true, {}, {}, {
@@ -72,10 +72,6 @@ export declare const YcCardWithInstall: SFCWithInstall<{
72
72
  width: {
73
73
  type: PropType<string | number>;
74
74
  };
75
- bodyClass: {
76
- type: PropType<string>;
77
- default: string;
78
- };
79
75
  background: {
80
76
  type: PropType<string>;
81
77
  default: string;
@@ -86,6 +82,10 @@ export declare const YcCardWithInstall: SFCWithInstall<{
86
82
  padding: {
87
83
  type: PropType<string | number>;
88
84
  };
85
+ bodyClass: {
86
+ type: PropType<string>;
87
+ default: string;
88
+ };
89
89
  shadow: {
90
90
  type: PropType<"hover" | "always" | "never">;
91
91
  default: string;
@@ -95,8 +95,8 @@ export declare const YcCardWithInstall: SFCWithInstall<{
95
95
  default: number;
96
96
  };
97
97
  }>>, {}, {}, {}, {}, {
98
- bodyClass: string;
99
98
  background: string;
99
+ bodyClass: string;
100
100
  shadow: "hover" | "always" | "never";
101
101
  radius: string | number;
102
102
  }>;
@@ -107,10 +107,6 @@ export declare const YcCardWithInstall: SFCWithInstall<{
107
107
  width: {
108
108
  type: PropType<string | number>;
109
109
  };
110
- bodyClass: {
111
- type: PropType<string>;
112
- default: string;
113
- };
114
110
  background: {
115
111
  type: PropType<string>;
116
112
  default: string;
@@ -121,6 +117,10 @@ export declare const YcCardWithInstall: SFCWithInstall<{
121
117
  padding: {
122
118
  type: PropType<string | number>;
123
119
  };
120
+ bodyClass: {
121
+ type: PropType<string>;
122
+ default: string;
123
+ };
124
124
  shadow: {
125
125
  type: PropType<"hover" | "always" | "never">;
126
126
  default: string;
@@ -130,8 +130,8 @@ export declare const YcCardWithInstall: SFCWithInstall<{
130
130
  default: number;
131
131
  };
132
132
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
133
- bodyClass: string;
134
133
  background: string;
134
+ bodyClass: string;
135
135
  shadow: "hover" | "always" | "never";
136
136
  radius: string | number;
137
137
  }, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & (new () => {
@@ -12,8 +12,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
12
12
  shadow: string;
13
13
  bodyClass: string;
14
14
  }>>>, {
15
- bodyClass: string;
16
15
  background: string;
16
+ bodyClass: string;
17
17
  shadow: "hover" | "always" | "never";
18
18
  radius: string | number;
19
19
  }, {}>, {
@@ -126,8 +126,8 @@ declare const YcCountTo: SFCWithInstall<DefineComponent<{
126
126
  onMounted?: ((...args: any[]) => any) | undefined;
127
127
  onCallback?: ((...args: any[]) => any) | undefined;
128
128
  }, {
129
- color: string;
130
129
  duration: number;
130
+ color: string;
131
131
  prefix: string;
132
132
  fontSize: string;
133
133
  separator: string;
@@ -119,8 +119,8 @@ declare const _default: DefineComponent<{
119
119
  onMounted?: ((...args: any[]) => any) | undefined;
120
120
  onCallback?: ((...args: any[]) => any) | undefined;
121
121
  }, {
122
- color: string;
123
122
  duration: number;
123
+ color: string;
124
124
  prefix: string;
125
125
  fontSize: string;
126
126
  separator: string;
@@ -6,12 +6,12 @@ export * from './src/type';
6
6
  export type YcDialogInstance = InstanceType<typeof YcDialogComponent>;
7
7
  export declare const YcDialog: {
8
8
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
9
- size: {
10
- type: PropType<DialogSize>;
11
- };
12
9
  width: {
13
10
  type: PropType<string | number>;
14
11
  };
12
+ size: {
13
+ type: PropType<DialogSize>;
14
+ };
15
15
  maxHeight: {
16
16
  type: PropType<string | number | false>;
17
17
  default: string;
@@ -21,12 +21,12 @@ export declare const YcDialog: {
21
21
  default: boolean;
22
22
  };
23
23
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
24
- size: {
25
- type: PropType<DialogSize>;
26
- };
27
24
  width: {
28
25
  type: PropType<string | number>;
29
26
  };
27
+ size: {
28
+ type: PropType<DialogSize>;
29
+ };
30
30
  maxHeight: {
31
31
  type: PropType<string | number | false>;
32
32
  default: string;
@@ -46,12 +46,12 @@ export declare const YcDialog: {
46
46
  M: {};
47
47
  Defaults: {};
48
48
  }, Readonly< ExtractPropTypes<{
49
- size: {
50
- type: PropType<DialogSize>;
51
- };
52
49
  width: {
53
50
  type: PropType<string | number>;
54
51
  };
52
+ size: {
53
+ type: PropType<DialogSize>;
54
+ };
55
55
  maxHeight: {
56
56
  type: PropType<string | number | false>;
57
57
  default: string;
@@ -68,12 +68,12 @@ export declare const YcDialog: {
68
68
  __isTeleport?: undefined;
69
69
  __isSuspense?: undefined;
70
70
  } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
71
- size: {
72
- type: PropType<DialogSize>;
73
- };
74
71
  width: {
75
72
  type: PropType<string | number>;
76
73
  };
74
+ size: {
75
+ type: PropType<DialogSize>;
76
+ };
77
77
  maxHeight: {
78
78
  type: PropType<string | number | false>;
79
79
  default: string;
@@ -94,12 +94,12 @@ export declare const YcDialog: {
94
94
  });
95
95
  export declare const ReDialog: {
96
96
  new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
97
- size: {
98
- type: PropType<DialogSize>;
99
- };
100
97
  width: {
101
98
  type: PropType<string | number>;
102
99
  };
100
+ size: {
101
+ type: PropType<DialogSize>;
102
+ };
103
103
  maxHeight: {
104
104
  type: PropType<string | number | false>;
105
105
  default: string;
@@ -109,12 +109,12 @@ export declare const ReDialog: {
109
109
  default: boolean;
110
110
  };
111
111
  }>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
112
- size: {
113
- type: PropType<DialogSize>;
114
- };
115
112
  width: {
116
113
  type: PropType<string | number>;
117
114
  };
115
+ size: {
116
+ type: PropType<DialogSize>;
117
+ };
118
118
  maxHeight: {
119
119
  type: PropType<string | number | false>;
120
120
  default: string;
@@ -134,12 +134,12 @@ export declare const ReDialog: {
134
134
  M: {};
135
135
  Defaults: {};
136
136
  }, Readonly< ExtractPropTypes<{
137
- size: {
138
- type: PropType<DialogSize>;
139
- };
140
137
  width: {
141
138
  type: PropType<string | number>;
142
139
  };
140
+ size: {
141
+ type: PropType<DialogSize>;
142
+ };
143
143
  maxHeight: {
144
144
  type: PropType<string | number | false>;
145
145
  default: string;
@@ -156,12 +156,12 @@ export declare const ReDialog: {
156
156
  __isTeleport?: undefined;
157
157
  __isSuspense?: undefined;
158
158
  } & ComponentOptionsBase<Readonly< ExtractPropTypes<{
159
- size: {
160
- type: PropType<DialogSize>;
161
- };
162
159
  width: {
163
160
  type: PropType<string | number>;
164
161
  };
162
+ size: {
163
+ type: PropType<DialogSize>;
164
+ };
165
165
  maxHeight: {
166
166
  type: PropType<string | number | false>;
167
167
  default: string;
@@ -12,8 +12,8 @@ export declare const drawerStore: Ref<{
12
12
  title?: string | undefined;
13
13
  confirmButtonText?: string | undefined;
14
14
  cancelButtonText?: string | undefined;
15
- confirmButtonType?: ("text" | "warning" | "success" | "info" | "primary" | "danger") | undefined;
16
- cancelButtonType?: ("text" | "warning" | "success" | "info" | "primary" | "danger") | undefined;
15
+ confirmButtonType?: ("text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
16
+ cancelButtonType?: ("text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
17
17
  icon?: string | FunctionalComponent<any, {}, any, {}> | {
18
18
  new (...args: any[]): any;
19
19
  __isFragment?: undefined;
@@ -166,7 +166,7 @@ export declare const drawerStore: Ref<{
166
166
  footerButtons?: {
167
167
  label: string;
168
168
  size?: "default" | "small" | "large" | undefined;
169
- type?: "warning" | "success" | "info" | "primary" | "danger" | undefined;
169
+ type?: "primary" | "success" | "warning" | "info" | "danger" | undefined;
170
170
  plain?: boolean | undefined;
171
171
  text?: boolean | undefined;
172
172
  bg?: boolean | undefined;
@@ -177,8 +177,8 @@ export declare const drawerStore: Ref<{
177
177
  title?: string | undefined;
178
178
  confirmButtonText?: string | undefined;
179
179
  cancelButtonText?: string | undefined;
180
- confirmButtonType?: ("text" | "warning" | "success" | "info" | "primary" | "danger") | undefined;
181
- cancelButtonType?: ("text" | "warning" | "success" | "info" | "primary" | "danger") | undefined;
180
+ confirmButtonType?: ("text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
181
+ cancelButtonType?: ("text" | "primary" | "success" | "warning" | "info" | "danger") | undefined;
182
182
  icon?: string | FunctionalComponent<any, {}, any, {}> | {
183
183
  new (...args: any[]): any;
184
184
  __isFragment?: undefined;