yc-pro-components 0.0.82 → 0.0.84

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 (161) hide show
  1. package/es/components/check-card/index.d.ts +34 -34
  2. package/es/components/check-card/src/index.vue.d.ts +2 -2
  3. package/es/components/check-card-group/index.d.ts +20 -20
  4. package/es/components/check-card-group/src/index.vue.d.ts +1 -1
  5. package/es/components/date-picker/index.d.ts +19 -19
  6. package/es/components/date-picker/src/index.vue.d.ts +11 -11
  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 +14 -14
  10. package/es/components/dialog-form/src/index.vue.d.ts +8 -8
  11. package/es/components/display-item/index.d.ts +18 -18
  12. package/es/components/display-item/src/index.vue.d.ts +18 -18
  13. package/es/components/drawer-form/index.d.ts +103 -103
  14. package/es/components/drawer-form/src/index.vue.d.ts +27 -27
  15. package/es/components/form/index.d.ts +39 -39
  16. package/es/components/form/src/form-content.vue.d.ts +27 -27
  17. package/es/components/form/src/index.vue.d.ts +14 -14
  18. package/es/components/form-item/index.d.ts +42 -42
  19. package/es/components/form-item/src/index.vue.d.ts +21 -13
  20. package/es/components/form-item/src/index.vue2.mjs +429 -301
  21. package/es/components/form-item/src/overflow-tooltip.d.ts +16 -0
  22. package/es/components/form-item/src/overflow-tooltip.mjs +67 -0
  23. package/es/components/header/index.d.ts +7 -7
  24. package/es/components/header/src/index.vue.d.ts +1 -1
  25. package/es/components/input-tag/index.d.ts +10 -10
  26. package/es/components/input-tag/src/index.vue.d.ts +2 -2
  27. package/es/components/layout/index.d.ts +30 -30
  28. package/es/components/layout/src/index.vue.d.ts +10 -10
  29. package/es/components/page/index.d.ts +283 -283
  30. package/es/components/page/src/index.vue.d.ts +97 -97
  31. package/es/components/pagination/index.d.ts +38 -38
  32. package/es/components/pagination/src/index.vue.d.ts +2 -2
  33. package/es/components/popover/index.d.ts +42 -42
  34. package/es/components/popover/src/index.vue.d.ts +3 -3
  35. package/es/components/radio/index.d.ts +31 -31
  36. package/es/components/radio/src/index.vue.d.ts +23 -23
  37. package/es/components/render/index.d.ts +6 -6
  38. package/es/components/render/src/index.vue.d.ts +2 -2
  39. package/es/components/search/index.d.ts +128 -128
  40. package/es/components/search/src/index.vue.d.ts +41 -41
  41. package/es/components/sidebar/index.d.ts +15 -15
  42. package/es/components/sidebar/src/index.vue.d.ts +5 -5
  43. package/es/components/steps-form/index.d.ts +19 -19
  44. package/es/components/steps-form/src/index.vue.d.ts +1 -1
  45. package/es/components/table/src/index.vue2.mjs +11 -5
  46. package/es/components/table/src/table-column.vue.d.ts +18 -18
  47. package/es/components/table/src/use-table-density.d.ts +8 -0
  48. package/es/components/table/src/use-table-density.mjs +24 -0
  49. package/es/components/yc-card/index.d.ts +19 -19
  50. package/es/components/yc-card/src/index.vue.d.ts +1 -1
  51. package/es/components/yc-drawer/store.d.ts +5 -5
  52. package/es/components/yc-more-actions/index.d.ts +16 -16
  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 +192 -192
  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 +2 -2
  60. package/es/components/yc-status-dialog/src/index.vue.d.ts +5 -5
  61. package/es/components/yc-text/src/index.vue.d.ts +2 -2
  62. package/es/hooks/usePlusFormReset.d.ts +288 -288
  63. package/es/index.css +8 -8
  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.css +1 -1
  68. package/index.js +525 -306
  69. package/index.min.js +12 -12
  70. package/index.min.mjs +12 -12
  71. package/index.mjs +525 -306
  72. package/lib/components/check-card/index.d.ts +34 -34
  73. package/lib/components/check-card/src/index.vue.d.ts +2 -2
  74. package/lib/components/check-card-group/index.d.ts +20 -20
  75. package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
  76. package/lib/components/date-picker/index.d.ts +19 -19
  77. package/lib/components/date-picker/src/index.vue.d.ts +11 -11
  78. package/lib/components/dialog/index.d.ts +57 -57
  79. package/lib/components/dialog/src/index.vue.d.ts +5 -5
  80. package/lib/components/dialog-form/index.d.ts +14 -14
  81. package/lib/components/dialog-form/src/index.vue.d.ts +8 -8
  82. package/lib/components/display-item/index.d.ts +18 -18
  83. package/lib/components/display-item/src/index.vue.d.ts +18 -18
  84. package/lib/components/drawer-form/index.d.ts +103 -103
  85. package/lib/components/drawer-form/src/index.vue.d.ts +27 -27
  86. package/lib/components/form/index.d.ts +39 -39
  87. package/lib/components/form/src/form-content.vue.d.ts +27 -27
  88. package/lib/components/form/src/index.vue.d.ts +14 -14
  89. package/lib/components/form-item/index.d.ts +42 -42
  90. package/lib/components/form-item/src/index.vue.d.ts +21 -13
  91. package/lib/components/form-item/src/index.vue2.js +428 -300
  92. package/lib/components/form-item/src/overflow-tooltip.d.ts +16 -0
  93. package/lib/components/form-item/src/overflow-tooltip.js +71 -0
  94. package/lib/components/header/index.d.ts +7 -7
  95. package/lib/components/header/src/index.vue.d.ts +1 -1
  96. package/lib/components/input-tag/index.d.ts +10 -10
  97. package/lib/components/input-tag/src/index.vue.d.ts +2 -2
  98. package/lib/components/layout/index.d.ts +30 -30
  99. package/lib/components/layout/src/index.vue.d.ts +10 -10
  100. package/lib/components/page/index.d.ts +283 -283
  101. package/lib/components/page/src/index.vue.d.ts +97 -97
  102. package/lib/components/pagination/index.d.ts +38 -38
  103. package/lib/components/pagination/src/index.vue.d.ts +2 -2
  104. package/lib/components/popover/index.d.ts +42 -42
  105. package/lib/components/popover/src/index.vue.d.ts +3 -3
  106. package/lib/components/radio/index.d.ts +31 -31
  107. package/lib/components/radio/src/index.vue.d.ts +23 -23
  108. package/lib/components/render/index.d.ts +6 -6
  109. package/lib/components/render/src/index.vue.d.ts +2 -2
  110. package/lib/components/search/index.d.ts +128 -128
  111. package/lib/components/search/src/index.vue.d.ts +41 -41
  112. package/lib/components/sidebar/index.d.ts +15 -15
  113. package/lib/components/sidebar/src/index.vue.d.ts +5 -5
  114. package/lib/components/steps-form/index.d.ts +19 -19
  115. package/lib/components/steps-form/src/index.vue.d.ts +1 -1
  116. package/lib/components/table/src/index.vue2.js +10 -4
  117. package/lib/components/table/src/table-column.vue.d.ts +18 -18
  118. package/lib/components/table/src/use-table-density.d.ts +8 -0
  119. package/lib/components/table/src/use-table-density.js +28 -0
  120. package/lib/components/yc-card/index.d.ts +19 -19
  121. package/lib/components/yc-card/src/index.vue.d.ts +1 -1
  122. package/lib/components/yc-drawer/store.d.ts +5 -5
  123. package/lib/components/yc-more-actions/index.d.ts +16 -16
  124. package/lib/components/yc-more-actions/src/index.vue.d.ts +2 -2
  125. package/lib/components/yc-plus-page/src/header-filter-cell.vue.d.ts +3 -3
  126. package/lib/components/yc-plus-page/src/index.vue.d.ts +192 -192
  127. package/lib/components/yc-plus-tree/src/index.vue.d.ts +1 -1
  128. package/lib/components/yc-segmented/index.d.ts +1 -1
  129. package/lib/components/yc-segmented/src/index.d.ts +1 -1
  130. package/lib/components/yc-select-v2/src/index.vue.d.ts +2 -2
  131. package/lib/components/yc-status-dialog/src/index.vue.d.ts +5 -5
  132. package/lib/components/yc-text/src/index.vue.d.ts +2 -2
  133. package/lib/hooks/usePlusFormReset.d.ts +288 -288
  134. package/lib/index.css +7 -7
  135. package/lib/version.d.ts +1 -1
  136. package/lib/version.js +1 -1
  137. package/lib/yc-components/version.d.ts +1 -1
  138. package/locale/en.js +1 -1
  139. package/locale/en.min.js +1 -1
  140. package/locale/en.min.mjs +1 -1
  141. package/locale/en.mjs +1 -1
  142. package/locale/ja.js +1 -1
  143. package/locale/ja.min.js +1 -1
  144. package/locale/ja.min.mjs +1 -1
  145. package/locale/ja.mjs +1 -1
  146. package/locale/ko.js +1 -1
  147. package/locale/ko.min.js +1 -1
  148. package/locale/ko.min.mjs +1 -1
  149. package/locale/ko.mjs +1 -1
  150. package/locale/zh-cn.js +1 -1
  151. package/locale/zh-cn.min.js +1 -1
  152. package/locale/zh-cn.min.mjs +1 -1
  153. package/locale/zh-cn.mjs +1 -1
  154. package/locale/zh-tw.js +1 -1
  155. package/locale/zh-tw.min.js +1 -1
  156. package/locale/zh-tw.min.mjs +1 -1
  157. package/locale/zh-tw.mjs +1 -1
  158. package/package.json +1 -1
  159. package/theme-chalk/index.css +1 -1
  160. package/theme-chalk/plus-form-item.css +1 -1
  161. package/theme-chalk/src/form-item.scss +56 -0
@@ -226,10 +226,10 @@ 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>;
231
+ readonly modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
232
+ readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
233
233
  readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
234
234
  style?: CSSProperties | undefined;
235
235
  class?: any;
@@ -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" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "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,8 +300,8 @@ 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>;
303
+ modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
304
+ hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
305
305
  tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
306
306
  style?: CSSProperties | undefined;
307
307
  class?: any;
@@ -334,10 +334,10 @@ 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>;
339
+ readonly modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
340
+ readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
341
341
  readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
342
342
  style?: CSSProperties | undefined;
343
343
  class?: any;
@@ -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" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "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,8 +408,8 @@ 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>;
411
+ modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
412
+ hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
413
413
  tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
414
414
  style?: CSSProperties | undefined;
415
415
  class?: any;
@@ -442,10 +442,10 @@ 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>;
447
+ readonly modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
448
+ readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
449
449
  readonly tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
450
450
  style?: CSSProperties | undefined;
451
451
  class?: any;
@@ -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" | "color" | "search" | "button" | "textarea" | "time" | "circle" | "image" | "line" | "text" | "datetimerange" | "daterange" | "monthrange" | "checkbox" | "radio" | "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,8 +516,8 @@ 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>;
519
+ modelValue: string | number | boolean | string[] | [string, string] | RecordType | Date | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | string[][] | number[][] | null;
520
+ hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
521
521
  tooltip: string | ComputedRef<string> | Partial< Mutable<ElTooltipProps> & {
522
522
  style?: CSSProperties | undefined;
523
523
  class?: any;
@@ -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
  }, {}>, {
@@ -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;
@@ -5,16 +5,16 @@ import { default as YcMoreActionsComponent } from './src/index.vue';
5
5
  export * from './src/type';
6
6
  export type YcMoreActionsInstance = InstanceType<typeof YcMoreActionsComponent>;
7
7
  export declare const YcMoreActions: DefineComponent<{
8
- disabled: {
8
+ showArrow: {
9
9
  type: PropType<boolean>;
10
10
  default: boolean;
11
11
  };
12
- showArrow: {
12
+ disabled: {
13
13
  type: PropType<boolean>;
14
14
  default: boolean;
15
15
  };
16
16
  trigger: {
17
- type: PropType<"click" | "hover" | "contextmenu">;
17
+ type: PropType<"hover" | "click" | "contextmenu">;
18
18
  default: string;
19
19
  };
20
20
  placement: {
@@ -54,16 +54,16 @@ export declare const YcMoreActions: DefineComponent<{
54
54
  "visible-change": (visible: boolean) => void;
55
55
  "action-click": (key: string, context?: unknown) => void;
56
56
  }, string, PublicProps, Readonly< ExtractPropTypes<{
57
- disabled: {
57
+ showArrow: {
58
58
  type: PropType<boolean>;
59
59
  default: boolean;
60
60
  };
61
- showArrow: {
61
+ disabled: {
62
62
  type: PropType<boolean>;
63
63
  default: boolean;
64
64
  };
65
65
  trigger: {
66
- type: PropType<"click" | "hover" | "contextmenu">;
66
+ type: PropType<"hover" | "click" | "contextmenu">;
67
67
  default: string;
68
68
  };
69
69
  placement: {
@@ -103,9 +103,9 @@ export declare const YcMoreActions: DefineComponent<{
103
103
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
104
104
  "onAction-click"?: ((key: string, context?: unknown) => any) | undefined;
105
105
  }, {
106
- disabled: boolean;
107
106
  showArrow: boolean;
108
- trigger: "click" | "hover" | "contextmenu";
107
+ disabled: boolean;
108
+ trigger: "hover" | "click" | "contextmenu";
109
109
  placement: "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
110
110
  stopPropagation: boolean;
111
111
  actions: MoreActionItem[];
@@ -114,16 +114,16 @@ export declare const YcMoreActions: DefineComponent<{
114
114
  dropdownStyle: Record<string, string | number>;
115
115
  }, {}>;
116
116
  export declare const ReMoreActions: DefineComponent<{
117
- disabled: {
117
+ showArrow: {
118
118
  type: PropType<boolean>;
119
119
  default: boolean;
120
120
  };
121
- showArrow: {
121
+ disabled: {
122
122
  type: PropType<boolean>;
123
123
  default: boolean;
124
124
  };
125
125
  trigger: {
126
- type: PropType<"click" | "hover" | "contextmenu">;
126
+ type: PropType<"hover" | "click" | "contextmenu">;
127
127
  default: string;
128
128
  };
129
129
  placement: {
@@ -163,16 +163,16 @@ export declare const ReMoreActions: DefineComponent<{
163
163
  "visible-change": (visible: boolean) => void;
164
164
  "action-click": (key: string, context?: unknown) => void;
165
165
  }, string, PublicProps, Readonly< ExtractPropTypes<{
166
- disabled: {
166
+ showArrow: {
167
167
  type: PropType<boolean>;
168
168
  default: boolean;
169
169
  };
170
- showArrow: {
170
+ disabled: {
171
171
  type: PropType<boolean>;
172
172
  default: boolean;
173
173
  };
174
174
  trigger: {
175
- type: PropType<"click" | "hover" | "contextmenu">;
175
+ type: PropType<"hover" | "click" | "contextmenu">;
176
176
  default: string;
177
177
  };
178
178
  placement: {
@@ -212,9 +212,9 @@ export declare const ReMoreActions: DefineComponent<{
212
212
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
213
213
  "onAction-click"?: ((key: string, context?: unknown) => any) | undefined;
214
214
  }, {
215
- disabled: boolean;
216
215
  showArrow: boolean;
217
- trigger: "click" | "hover" | "contextmenu";
216
+ disabled: boolean;
217
+ trigger: "hover" | "click" | "contextmenu";
218
218
  placement: "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
219
219
  stopPropagation: boolean;
220
220
  actions: MoreActionItem[];
@@ -38,9 +38,9 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
38
38
  "onVisible-change"?: ((visible: boolean) => any) | undefined;
39
39
  "onAction-click"?: ((key: string, context?: unknown) => any) | undefined;
40
40
  }, {
41
- disabled: boolean;
42
41
  showArrow: boolean;
43
- trigger: "click" | "hover" | "contextmenu";
42
+ disabled: boolean;
43
+ trigger: "hover" | "click" | "contextmenu";
44
44
  placement: "top" | "bottom" | "right" | "left" | "top-start" | "top-end" | "bottom-start" | "bottom-end" | "right-start" | "right-end" | "left-start" | "left-end";
45
45
  stopPropagation: boolean;
46
46
  actions: MoreActionItem[];
@@ -30,14 +30,14 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
30
30
  hideSort: boolean;
31
31
  referenceRenderer: undefined;
32
32
  }>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
33
- confirm: (payload: {
33
+ reset: (payload: {
34
34
  column: PlusColumn;
35
35
  op: string;
36
- value?: string | undefined;
37
36
  }) => void;
38
- reset: (payload: {
37
+ confirm: (payload: {
39
38
  column: PlusColumn;
40
39
  op: string;
40
+ value?: string | undefined;
41
41
  }) => void;
42
42
  sortChange: (payload: {
43
43
  field: string;