@wlydfe/pro-ui 0.2.23 → 0.2.27

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 (121) hide show
  1. package/es/components/check-card/index.d.ts +4 -4
  2. package/es/components/check-card/src/index.vue.d.ts +1 -1
  3. package/es/components/check-card-group/index.d.ts +4 -4
  4. package/es/components/check-card-group/src/index.vue.d.ts +1 -1
  5. package/es/components/date-picker/index.d.ts +11 -11
  6. package/es/components/date-picker/src/index.vue.d.ts +11 -11
  7. package/es/components/descriptions/index.d.ts +19 -19
  8. package/es/components/descriptions/src/index.vue.d.ts +1 -1
  9. package/es/components/dialog/index.d.ts +30 -30
  10. package/es/components/dialog/src/index.vue.d.ts +2 -2
  11. package/es/components/dialog-form/index.d.ts +6 -6
  12. package/es/components/dialog-form/src/index.vue.d.ts +3 -3
  13. package/es/components/display-item/index.d.ts +25 -25
  14. package/es/components/display-item/src/index.vue.d.ts +7 -7
  15. package/es/components/drawer-form/index.d.ts +36 -36
  16. package/es/components/drawer-form/src/index.vue.d.ts +5 -5
  17. package/es/components/form/index.d.ts +88 -88
  18. package/es/components/form/src/form-content.vue.d.ts +9 -9
  19. package/es/components/form/src/index.vue.d.ts +11 -11
  20. package/es/components/form-item/index.d.ts +84 -84
  21. package/es/components/form-item/src/index.vue.d.ts +10 -10
  22. package/es/components/input-tag/index.d.ts +6 -6
  23. package/es/components/input-tag/src/index.vue.d.ts +3 -3
  24. package/es/components/page/index.d.ts +1015 -985
  25. package/es/components/page/src/index.vue.d.ts +334 -324
  26. package/es/components/page/src/index.vue2.mjs +3 -2
  27. package/es/components/pagination/index.d.ts +27 -27
  28. package/es/components/pagination/src/index.vue.d.ts +3 -3
  29. package/es/components/popover/index.d.ts +49 -49
  30. package/es/components/popover/src/index.vue.d.ts +3 -3
  31. package/es/components/radio/index.d.ts +10 -10
  32. package/es/components/radio/src/index.vue.d.ts +2 -2
  33. package/es/components/render/index.d.ts +14 -14
  34. package/es/components/render/src/index.vue.d.ts +1 -1
  35. package/es/components/search/index.d.ts +266 -266
  36. package/es/components/search/src/index.vue.d.ts +77 -77
  37. package/es/components/sidebar/index.d.ts +16 -16
  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/index.d.ts +176 -164
  41. package/es/components/table/src/index.vue.d.ts +13 -13
  42. package/es/components/table/src/index.vue2.mjs +25 -2
  43. package/es/components/table/src/table-column-drag-sort.vue.d.ts +2 -2
  44. package/es/components/table/src/table-column-index.vue.d.ts +1 -1
  45. package/es/components/table/src/table-column.vue.d.ts +22 -22
  46. package/es/components/table/src/table-title-bar.vue.d.ts +1 -1
  47. package/es/components/table/src/type.d.ts +5 -0
  48. package/es/index.css +13 -13
  49. package/index.js +29 -5
  50. package/index.min.js +2 -2
  51. package/index.min.mjs +2 -2
  52. package/index.mjs +29 -5
  53. package/lib/components/check-card/index.d.ts +4 -4
  54. package/lib/components/check-card/src/index.vue.d.ts +1 -1
  55. package/lib/components/check-card-group/index.d.ts +4 -4
  56. package/lib/components/check-card-group/src/index.vue.d.ts +1 -1
  57. package/lib/components/date-picker/index.d.ts +11 -11
  58. package/lib/components/date-picker/src/index.vue.d.ts +11 -11
  59. package/lib/components/descriptions/index.d.ts +19 -19
  60. package/lib/components/descriptions/src/index.vue.d.ts +1 -1
  61. package/lib/components/dialog/index.d.ts +30 -30
  62. package/lib/components/dialog/src/index.vue.d.ts +2 -2
  63. package/lib/components/dialog-form/index.d.ts +6 -6
  64. package/lib/components/dialog-form/src/index.vue.d.ts +3 -3
  65. package/lib/components/display-item/index.d.ts +25 -25
  66. package/lib/components/display-item/src/index.vue.d.ts +7 -7
  67. package/lib/components/drawer-form/index.d.ts +36 -36
  68. package/lib/components/drawer-form/src/index.vue.d.ts +5 -5
  69. package/lib/components/form/index.d.ts +88 -88
  70. package/lib/components/form/src/form-content.vue.d.ts +9 -9
  71. package/lib/components/form/src/index.vue.d.ts +11 -11
  72. package/lib/components/form-item/index.d.ts +84 -84
  73. package/lib/components/form-item/src/index.vue.d.ts +10 -10
  74. package/lib/components/input-tag/index.d.ts +6 -6
  75. package/lib/components/input-tag/src/index.vue.d.ts +3 -3
  76. package/lib/components/page/index.d.ts +1015 -985
  77. package/lib/components/page/src/index.vue.d.ts +334 -324
  78. package/lib/components/page/src/index.vue2.js +3 -2
  79. package/lib/components/pagination/index.d.ts +27 -27
  80. package/lib/components/pagination/src/index.vue.d.ts +3 -3
  81. package/lib/components/popover/index.d.ts +49 -49
  82. package/lib/components/popover/src/index.vue.d.ts +3 -3
  83. package/lib/components/radio/index.d.ts +10 -10
  84. package/lib/components/radio/src/index.vue.d.ts +2 -2
  85. package/lib/components/render/index.d.ts +14 -14
  86. package/lib/components/render/src/index.vue.d.ts +1 -1
  87. package/lib/components/search/index.d.ts +266 -266
  88. package/lib/components/search/src/index.vue.d.ts +77 -77
  89. package/lib/components/sidebar/index.d.ts +16 -16
  90. package/lib/components/steps-form/index.d.ts +23 -23
  91. package/lib/components/steps-form/src/index.vue.d.ts +2 -2
  92. package/lib/components/table/index.d.ts +176 -164
  93. package/lib/components/table/src/index.vue.d.ts +13 -13
  94. package/lib/components/table/src/index.vue2.js +25 -2
  95. package/lib/components/table/src/table-column-drag-sort.vue.d.ts +2 -2
  96. package/lib/components/table/src/table-column-index.vue.d.ts +1 -1
  97. package/lib/components/table/src/table-column.vue.d.ts +22 -22
  98. package/lib/components/table/src/table-title-bar.vue.d.ts +1 -1
  99. package/lib/components/table/src/type.d.ts +5 -0
  100. package/lib/{display-item.css → index.css} +14 -14
  101. package/locale/en.js +1 -1
  102. package/locale/en.min.js +1 -1
  103. package/locale/en.min.mjs +1 -1
  104. package/locale/en.mjs +1 -1
  105. package/locale/ja.js +1 -1
  106. package/locale/ja.min.js +1 -1
  107. package/locale/ja.min.mjs +1 -1
  108. package/locale/ja.mjs +1 -1
  109. package/locale/ko.js +1 -1
  110. package/locale/ko.min.js +1 -1
  111. package/locale/ko.min.mjs +1 -1
  112. package/locale/ko.mjs +1 -1
  113. package/locale/zh-cn.js +1 -1
  114. package/locale/zh-cn.min.js +1 -1
  115. package/locale/zh-cn.min.mjs +1 -1
  116. package/locale/zh-cn.mjs +1 -1
  117. package/locale/zh-tw.js +1 -1
  118. package/locale/zh-tw.min.js +1 -1
  119. package/locale/zh-tw.min.mjs +1 -1
  120. package/locale/zh-tw.mjs +1 -1
  121. package/package.json +1 -1
@@ -240,7 +240,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
240
240
  scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
241
241
  setScrollLeft: (left?: number | undefined) => void;
242
242
  setScrollTop: (top?: number | undefined) => void;
243
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "select-all" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "current-change" | "header-dragend" | "expand-change" | "cell-click" | "cell-dblclick")[], VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
243
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "current-change" | "select-all" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend" | "expand-change" | "cell-click" | "cell-dblclick")[], VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
244
244
  data: {
245
245
  type: PropType<any[]>;
246
246
  default: () => never[];
@@ -639,16 +639,16 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
639
639
  editable: boolean;
640
640
  adaptive: boolean;
641
641
  }>>> & {
642
- onRefresh?: (() => any) | undefined;
643
- onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
644
642
  onClickAction?: ((data: ButtonsCallBackParams) => any) | undefined;
645
643
  onClickActionConfirmCancel?: ((data: ButtonsCallBackParams) => any) | undefined;
646
- onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
647
644
  onFormChange?: ((data: FormChangeCallBackParams) => any) | undefined;
648
- onEdited?: (() => any) | undefined;
649
645
  "onCell-click"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
650
646
  "onCell-dblclick"?: ((row: RecordType, column: PlusColumn, cell: HTMLTableCellElement, event: Event) => any) | undefined;
647
+ onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
648
+ onRefresh?: (() => any) | undefined;
651
649
  onFilterTableHeader?: ((columns: PlusColumn[], eventType: FilterTableHeaderEventType) => any) | undefined;
650
+ onPaginationChange?: ((pageInfo: PageInfo) => any) | undefined;
651
+ onEdited?: (() => any) | undefined;
652
652
  onRadioChange?: ((row: RecordType, index: number, value: boolean) => any) | undefined;
653
653
  }, {
654
654
  showOverflowTooltip: boolean;
@@ -661,11 +661,11 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
661
661
  columnIndex: number;
662
662
  }) => CSSProperties>;
663
663
  rowKey: string | ((row: any[]) => string);
664
- tableData: RecordType[];
665
- defaultSize: "" | "default" | "small" | "large";
666
- pagination: false | Partial<PlusPaginationProps>;
667
664
  actionBar: false | Partial< ActionBarProps>;
668
- hasIndexColumn: boolean;
665
+ editable: boolean | "click" | "dblclick";
666
+ indexTableColumnProps: Partial< TableColumnCtx<any>>;
667
+ indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
668
+ dragSortableTableColumnProps: Partial< TableColumnCtx<any>>;
669
669
  titleBar: boolean | Partial<Partial<{
670
670
  title?: string | undefined;
671
671
  refresh?: boolean | undefined;
@@ -676,20 +676,20 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
676
676
  color?: string | undefined;
677
677
  } | undefined;
678
678
  }>>;
679
+ defaultSize: "" | "default" | "small" | "large";
680
+ tableData: RecordType[];
681
+ pagination: false | Partial<PlusPaginationProps>;
682
+ hasIndexColumn: boolean;
679
683
  isSelection: boolean | "radio";
680
684
  isRadio: boolean;
681
685
  hasExpand: boolean;
682
686
  loadingStatus: boolean;
683
687
  dragSortable: false | Partial< Options>;
684
- dragSortableTableColumnProps: Partial< TableColumnCtx<any>>;
685
- indexTableColumnProps: Partial< TableColumnCtx<any>>;
686
688
  selectionTableColumnProps: Partial< TableColumnCtx<any>>;
687
689
  radioTableColumnProps: Partial< TableColumnCtx<any>>;
688
690
  radioProps: Partial<PlusRadioProps>;
689
691
  defaultSelectedRadioRow: RecordType | ComputedRef<RecordType>;
690
692
  expandTableColumnProps: Partial< TableColumnCtx<any>>;
691
- indexContentStyle: Partial< CSSProperties> | ((row: RecordType, index: number) => Partial< CSSProperties>);
692
- editable: boolean | "click" | "dblclick";
693
693
  adaptive: boolean | {
694
694
  offsetBottom?: number | undefined;
695
695
  timeout?: number | undefined;
@@ -55,7 +55,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
55
55
  indexContentStyle: { type: [Object, Function], default: () => ({}) },
56
56
  editable: { type: [Boolean, String], default: false },
57
57
  adaptive: { type: [Boolean, Object], default: false },
58
- filterTableHeaderOverflowLabelLength: {}
58
+ filterTableHeaderOverflowLabelLength: {},
59
+ filterTableLocalKey: {}
59
60
  },
60
61
  emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
61
62
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -90,7 +91,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
90
91
  watch(
91
92
  () => props.columns,
92
93
  (val) => {
93
- const filterOriginColumns = val.filter((item) => unref(item.hideInTable) !== true);
94
+ let filterOriginColumns = val.filter((item) => unref(item.hideInTable) !== true);
94
95
  filterColumns.value = filterOriginColumns.map((item) => {
95
96
  var _a2;
96
97
  return {
@@ -98,6 +99,25 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
98
99
  headerIsChecked: (_a2 = item.headerIsChecked) != null ? _a2 : true
99
100
  };
100
101
  });
102
+ if (props.filterTableLocalKey) {
103
+ const localColumns = localStorage.getItem(props.filterTableLocalKey);
104
+ if (localColumns) {
105
+ filterColumns.value = JSON.parse(localColumns);
106
+ const columsMap = filterColumns.value.reduce((acc, item, order) => {
107
+ acc[item.prop] = {
108
+ visable: item.headerIsChecked,
109
+ order
110
+ };
111
+ return acc;
112
+ }, {});
113
+ filterOriginColumns.forEach((item) => {
114
+ if (columsMap[item.prop]) {
115
+ item.headerIsChecked = columsMap[item.prop].visable;
116
+ }
117
+ });
118
+ filterOriginColumns.sort((a, b) => columsMap[a.prop].order - columsMap[b.prop].order);
119
+ }
120
+ }
101
121
  subColumns.value = filterOriginColumns.filter((item) => unref(item.headerIsChecked) !== false);
102
122
  columnsIsChange.value = !columnsIsChange.value;
103
123
  },
@@ -125,6 +145,9 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
125
145
  };
126
146
  const handleFilterTableConfirm = (_columns, eventType) => {
127
147
  filterColumns.value = _columns;
148
+ if (props.filterTableLocalKey) {
149
+ localStorage.setItem(props.filterTableLocalKey, JSON.stringify(filterColumns.value));
150
+ }
128
151
  emit("filterTableHeader", _columns, eventType);
129
152
  subColumns.value = _columns.filter(
130
153
  (item) => unref(item.hideInTable) !== true && item.headerIsChecked !== false
@@ -28,7 +28,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
28
28
  onDragSortEnd?: ((newIndex: number, oldIndex: number) => any) | undefined;
29
29
  }, {
30
30
  sortable: boolean | SortableOptions;
31
- dragSortableTableColumnProps: RecordType;
32
31
  tableInstance: CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
33
32
  data: {
34
33
  type: PropType<any[]>;
@@ -225,7 +224,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
225
224
  scrollTo: (options: number | ScrollToOptions, yCoord?: number | undefined) => void;
226
225
  setScrollLeft: (left?: number | undefined) => void;
227
226
  setScrollTop: (top?: number | undefined) => void;
228
- }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "select-all" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "current-change" | "header-dragend" | "expand-change" | "cell-click" | "cell-dblclick")[], VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
227
+ }, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, ("select" | "current-change" | "select-all" | "selection-change" | "cell-mouse-enter" | "cell-mouse-leave" | "cell-contextmenu" | "row-click" | "row-contextmenu" | "row-dblclick" | "header-click" | "header-contextmenu" | "sort-change" | "filter-change" | "header-dragend" | "expand-change" | "cell-click" | "cell-dblclick")[], VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
229
228
  data: {
230
229
  type: PropType<any[]>;
231
230
  default: () => never[];
@@ -578,6 +577,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
578
577
  indent: number;
579
578
  flexible: boolean;
580
579
  }> | null;
580
+ dragSortableTableColumnProps: RecordType;
581
581
  }, {}>, {
582
582
  "drag-sort-icon"?(_: {}): any;
583
583
  }>;
@@ -22,9 +22,9 @@ declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRunt
22
22
  indexContentStyle: () => {};
23
23
  indexTableColumnProps: () => {};
24
24
  }>>>, {
25
+ pageInfo: PageInfo;
25
26
  indexTableColumnProps: Partial<TableColumnCtx<any>>;
26
27
  indexContentStyle: Partial<CSSProperties> | ((row: RecordType, index: number) => Partial<CSSProperties>);
27
- pageInfo: PageInfo;
28
28
  }, {}>;
29
29
  export default _default;
30
30
  type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -28,15 +28,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
28
28
  formProps: PlusFormProps;
29
29
  rest: RecordType;
30
30
  column: PlusColumn;
31
- editable: boolean | "click" | "dblclick";
32
31
  row: RecordType;
32
+ editable: boolean | "click" | "dblclick";
33
33
  }> & Omit<{
34
34
  readonly index: number;
35
35
  readonly formProps: PlusFormProps;
36
36
  readonly rest: RecordType;
37
37
  readonly column: PlusColumn;
38
- readonly editable: boolean | "click" | "dblclick";
39
38
  readonly row: RecordType;
39
+ readonly editable: boolean | "click" | "dblclick";
40
40
  onChange?: ((data: {
41
41
  value: FieldValueType;
42
42
  prop: string;
@@ -63,22 +63,22 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
63
63
  label: string;
64
64
  };
65
65
  };
66
- editable: {
67
- type: PropType<boolean | "click" | "dblclick">;
68
- default: boolean;
69
- };
70
66
  row: {
71
67
  type: PropType<RecordType>;
72
68
  required: true;
73
69
  default: () => {};
74
70
  };
71
+ editable: {
72
+ type: PropType<boolean | "click" | "dblclick">;
73
+ default: boolean;
74
+ };
75
75
  }>> & {
76
76
  onChange?: ((data: {
77
77
  value: FieldValueType;
78
78
  prop: string;
79
79
  row: RecordType;
80
80
  }) => any) | undefined;
81
- }, "index" | "formProps" | "rest" | "column" | "editable" | "row">;
81
+ }, "index" | "formProps" | "rest" | "column" | "row" | "editable">;
82
82
  $attrs: {
83
83
  [x: string]: unknown;
84
84
  };
@@ -117,15 +117,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
117
117
  label: string;
118
118
  };
119
119
  };
120
- editable: {
121
- type: PropType<boolean | "click" | "dblclick">;
122
- default: boolean;
123
- };
124
120
  row: {
125
121
  type: PropType<RecordType>;
126
122
  required: true;
127
123
  default: () => {};
128
124
  };
125
+ editable: {
126
+ type: PropType<boolean | "click" | "dblclick">;
127
+ default: boolean;
128
+ };
129
129
  }>> & {
130
130
  onChange?: ((data: {
131
131
  value: FieldValueType;
@@ -154,8 +154,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
154
154
  formProps: PlusFormProps;
155
155
  rest: RecordType;
156
156
  column: PlusColumn;
157
- editable: boolean | "click" | "dblclick";
158
157
  row: RecordType;
158
+ editable: boolean | "click" | "dblclick";
159
159
  }, {}, string, {}> & {
160
160
  beforeCreate?: ((() => void) | (() => void)[]) | undefined;
161
161
  created?: ((() => void) | (() => void)[]) | undefined;
@@ -197,15 +197,15 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
197
197
  label: string;
198
198
  };
199
199
  };
200
- editable: {
201
- type: PropType<boolean | "click" | "dblclick">;
202
- default: boolean;
203
- };
204
200
  row: {
205
201
  type: PropType<RecordType>;
206
202
  required: true;
207
203
  default: () => {};
208
204
  };
205
+ editable: {
206
+ type: PropType<boolean | "click" | "dblclick">;
207
+ default: boolean;
208
+ };
209
209
  }>> & {
210
210
  onChange?: ((data: {
211
211
  value: FieldValueType;
@@ -225,7 +225,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
225
225
  };
226
226
  }> & {} & ComponentCustomProperties & {} & {
227
227
  $slots: Partial<Record<string, (_: {
228
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
228
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "options" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "renderLabel" | "renderErrorMessage">> & {
229
229
  readonly label: string | ComputedRef<string>;
230
230
  readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
231
231
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -239,7 +239,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
239
239
  style: CSSProperties;
240
240
  rows: number;
241
241
  autocomplete: string;
242
- type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
242
+ type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "range" | "dashboard" | "datetime-local" | "email" | "file" | "hidden" | "password" | "tel" | "url";
243
243
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
244
244
  step: string | number;
245
245
  format: string | ProgressFn | undefined;
@@ -300,7 +300,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
300
300
  clearable: boolean;
301
301
  index: number;
302
302
  }) => any>> & Partial<Record<string, (_: {
303
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
303
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "options" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "renderLabel" | "renderErrorMessage">> & {
304
304
  readonly label: string | ComputedRef<string>;
305
305
  readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
306
306
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -314,7 +314,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
314
314
  style: CSSProperties;
315
315
  rows: number;
316
316
  autocomplete: string;
317
- type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
317
+ type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "range" | "dashboard" | "datetime-local" | "email" | "file" | "hidden" | "password" | "tel" | "url";
318
318
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
319
319
  step: string | number;
320
320
  format: string | ProgressFn | undefined;
@@ -375,7 +375,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
375
375
  clearable: boolean;
376
376
  index: number;
377
377
  }) => any>> & Partial<Record<string, (_: {
378
- column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "fieldSlots" | "fieldChildrenSlot" | "modelValue" | "options" | "hasLabel" | "clearable" | "valueType" | "renderField" | "renderLabel" | "renderErrorMessage" | "optionsMap">> & {
378
+ column: Readonly<Omit< LooseRequired<PlusFormItemProps>, "label" | "index" | "tooltip" | "formItemProps" | "fieldProps" | "modelValue" | "fieldSlots" | "fieldChildrenSlot" | "options" | "hasLabel" | "clearable" | "renderField" | "valueType" | "optionsMap" | "renderLabel" | "renderErrorMessage">> & {
379
379
  readonly label: string | ComputedRef<string>;
380
380
  readonly modelValue: string | number | boolean | RecordType | Date | string[] | boolean[] | number[] | Date[] | [Date, Date] | [number, number] | [string, string] | string[][] | number[][] | null;
381
381
  readonly hasLabel: boolean | Ref<boolean> | ComputedRef<boolean>;
@@ -389,7 +389,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
389
389
  style: CSSProperties;
390
390
  rows: number;
391
391
  autocomplete: string;
392
- type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "datetimerange" | "daterange" | "monthrange" | "range" | "dashboard" | "hidden" | "datetime-local" | "email" | "file" | "password" | "tel" | "url";
392
+ type: "" | "number" | "default" | "search" | "checkbox" | "radio" | "textarea" | "text" | "circle" | "color" | "button" | "success" | "warning" | "info" | "primary" | "danger" | "reset" | "submit" | "datetimerange" | "daterange" | "monthrange" | "time" | "image" | "line" | "date" | "year" | "years" | "month" | "dates" | "week" | "datetime" | "range" | "dashboard" | "datetime-local" | "email" | "file" | "hidden" | "password" | "tel" | "url";
393
393
  loading: EpPropMergeType<BooleanConstructor, unknown, unknown> | EpPropMergeType<StringConstructor, "lazy" | "eager", unknown> | undefined;
394
394
  step: string | number;
395
395
  format: string | ProgressFn | undefined;
@@ -43,7 +43,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
43
43
  onClickDensity?: ((size: "" | "default" | "small" | "large") => any) | undefined;
44
44
  }, {
45
45
  columns: PlusColumn[];
46
- defaultSize: "" | "default" | "small" | "large";
47
46
  titleBar: boolean | Partial<Partial<{
48
47
  title?: string | undefined;
49
48
  refresh?: boolean | undefined;
@@ -54,6 +53,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
54
53
  color?: string | undefined;
55
54
  } | undefined;
56
55
  }>>;
56
+ defaultSize: "" | "default" | "small" | "large";
57
57
  columnsIsChange: boolean;
58
58
  }, {}>, {
59
59
  title?(_: {}): any;
@@ -454,6 +454,11 @@ export type PlusTableSelfProps = {
454
454
  * @version 0.1.23
455
455
  */
456
456
  filterTableHeaderOverflowLabelLength?: number;
457
+ /**
458
+ * @version 0.2.23
459
+ * 过滤表格本地存储的key
460
+ */
461
+ filterTableLocalKey?: string;
457
462
  };
458
463
  export type PlusTableProps = PlusTableSelfProps & Partial<TableProps<any[]>> & RecordType;
459
464
  /**
package/es/index.css CHANGED
@@ -1,22 +1,22 @@
1
- .plus-description .plus-description__name{word-wrap:break-word;max-width:200px}.plus-description .plus-description__label{min-width:80px}.plus-description .plus-description__label.is-required:before{color:var(--el-color-danger);content:"*";margin-right:4px}.plus-description.no-border .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:0}.plus-description.no-border .el-descriptions__body .el-descriptions__label.el-descriptions__cell.is-bordered-label{background-color:var(--el-fill-color-blank)}
2
- .plus-breadcrumb{margin-bottom:8px}.plus-breadcrumb.no-data{margin-bottom:0}
3
- .plus-form.no-has-label+.el-form-item__label{padding:0;width:0}.plus-form .plus-form__footer{display:flex;justify-content:flex-end}.plus-form .plus-form__group__item{margin-bottom:20px}.plus-form .plus-form__group__item .plus-form__group__item__icon{align-items:center;display:flex}.plus-form .plus-form__group__item .plus-form__group__item__icon .el-icon{margin-right:5px}.plus-form .plus-form-item-extra{color:var(--el-text-color-placeholder);font-size:var(--el-font-size-base);margin-bottom:18px}
4
1
  .plus-check-card-group{display:flex;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
5
2
  .plus-date-picker{align-items:center;border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);display:flex;flex-wrap:nowrap;max-width:100%;width:-moz-fit-content;width:fit-content}.plus-date-picker:hover{border-color:var(--el-border-color-hover)}.plus-date-picker.is-focus{border-color:var(--el-color-primary)}.plus-date-picker.is-disabled{background-color:var(--el-disabled-bg-color)}.plus-date-picker.is-disabled:hover{border-color:var(--el-border-color)}.plus-date-picker .plus-date-picker__middle{color:var(--el-text-color-placeholder)}.plus-date-picker .plus-date-picker__start{flex:1;font-size:14px}.plus-date-picker .plus-date-picker__start.is-disabled .el-input__wrapper{box-shadow:none}.plus-date-picker .plus-date-picker__start .el-input__wrapper{border:none;box-shadow:none}.plus-date-picker .el-input__wrapper{width:100%}.plus-date-picker .el-input__wrapper:hover{box-shadow:none}.plus-date-picker .el-input__wrapper.is-focus{box-shadow:none}.plus-date-picker .plus-date-picker__end{flex:1;font-size:14px}.plus-date-picker .plus-date-picker__end.is-disabled .el-input__wrapper{box-shadow:none}.plus-date-picker .plus-date-picker__end .el-input__wrapper{border:none;box-shadow:none}.el-form-item.is-error .plus-date-picker{border-color:var(--el-color-danger)}.el-form-item.is-error .plus-date-picker .el-input__wrapper{box-shadow:none}.el-form-item.is-error .plus-date-picker .el-input__wrapper.is-focus{box-shadow:none!important}.el-form-item.is-error .plus-date-picker .el-input__wrapper:hover{box-shadow:none}
6
- .plus-check-card{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;display:flex;overflow:hidden;padding-block:16px;padding-inline:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.plus-check-card--large{width:440px}.plus-check-card--default{width:320px}.plus-check-card--small{width:200px}.plus-check-card--checked{background-color:rgba(var(--el-color-primary-rgb),.1);border-color:var(--el-color-primary);position:relative}.plus-check-card--checked:after{-webkit-border-after:10px solid transparent;-webkit-border-start:10px solid transparent;border:10px solid var(--el-color-primary);border-block-end:10px solid transparent;border-inline-start:10px solid transparent;border-start-end-radius:6px;content:"";height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0}.plus-check-card--disabled{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);cursor:not-allowed}.plus-check-card--disabled:after{border-right-color:var(--el-color-info-light-5);border-top-color:var(--el-color-info-light-5)}.plus-check-card .plus-check-card__avatar-wrapper{-webkit-padding-end:8px;padding-inline-end:8px}.plus-check-card .plus-check-card__right-content{overflow:hidden;width:100%}.plus-check-card .plus-check-card__title{-webkit-margin-after:4px;align-items:center;color:var(--el-text-color-primary);display:flex;justify-content:space-between;margin-block-end:4px;width:100%}.plus-check-card .plus-check-card__title-left{align-items:center;display:flex}.plus-check-card .plus-check-card__title-right{align-items:center;display:flex;vertical-align:middle}.plus-check-card .plus-check-card__description{color:var(--el-text-color-regular);width:100%;word-break:break-all}
7
- .plus-dialog .plus-dialog-footer{align-items:center;display:flex}
8
- .plus-display-item__edit-icon{margin-left:8px}.plus-display-item__image{cursor:pointer;-o-object-fit:cover;object-fit:cover;overflow:hidden;width:30px}.plus-display-item__icon__copy{-webkit-margin-start:4px;color:var(--el-color-primary);cursor:pointer;margin-inline-start:4px;outline:none;text-decoration:none;transition:color .3s;vertical-align:sub}.plus-display-item__pre{background-color:var(--el-color-primary-light-9);border-radius:3px;font-size:85%;line-height:1.45;overflow:auto;padding:0;width:unset}.plus-display-item__badge.is-list .plus-display-item__badge__item+.plus-display-item__badge__item{padding-left:8px}.plus-display-item__badge .plus-display-item__badge__dot{border-radius:50%;display:inline-block;height:6px;position:relative;top:-1px;vertical-align:middle;width:6px}.plus-display-item__badge .plus-display-item__badge__dot--primary{background-color:var(--el-color-primary)}.plus-display-item__badge .plus-display-item__badge__dot--success{background-color:var(--el-color-success)}.plus-display-item__badge .plus-display-item__badge__dot--info{background-color:var(--el-color-info)}.plus-display-item__badge .plus-display-item__badge__dot--warning{background-color:var(--el-color-warning)}.plus-display-item__badge .plus-display-item__badge__dot--danger{background-color:var(--el-color-danger)}.plus-display-item__form .plus-form-item{margin-bottom:0}.plus-display-item__link{max-width:100%}.plus-display-item__link .el-link__inner{display:inline-block;width:100%}
3
+ .plus-breadcrumb{margin-bottom:8px}.plus-breadcrumb.no-data{margin-bottom:0}
4
+ .plus-form.no-has-label+.el-form-item__label{padding:0;width:0}.plus-form .plus-form__footer{display:flex;justify-content:flex-end}.plus-form .plus-form__group__item{margin-bottom:20px}.plus-form .plus-form__group__item .plus-form__group__item__icon{align-items:center;display:flex}.plus-form .plus-form__group__item .plus-form__group__item__icon .el-icon{margin-right:5px}.plus-form .plus-form-item-extra{color:var(--el-text-color-placeholder);font-size:var(--el-font-size-base);margin-bottom:18px}
9
5
  .plus-drawer-form .el-drawer__header{border-bottom:1px solid var(--el-border-color);margin-bottom:0;padding-bottom:calc(var(--el-drawer-padding-primary)/2);padding-top:calc(var(--el-drawer-padding-primary)/2)}.plus-drawer-form .el-drawer__footer{border-top:1px solid var(--el-border-color);padding-bottom:calc(var(--el-drawer-padding-primary)/2)}
10
-
11
- :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-layout{height:100vh;overflow:hidden}.plus-layout.el-container{flex-direction:column}.plus-layout .plus-sidebar{height:calc(100vh - var(--plus-header-height));min-width:var(--plus-sidebar-min-width)}.plus-layout .plus-layout-main{flex:1;height:calc(100vh - var(--plus-header-height));width:calc(100% - var(--plus-sidebar-width))}.plus-layout.collapse .plus-layout-main{width:calc(100% - var(--plus-sidebar-min-width))}.plus-layout .plus-layout-content{padding:0}
6
+ .plus-dialog .plus-dialog-footer{align-items:center;display:flex}
7
+ .plus-page .plus-page__table_wrapper{margin-top:20px}
12
8
  :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-header{align-items:center;border-bottom:1px solid var(--el-border-color);display:flex;justify-content:space-around}.plus-header.is-fixed{left:0;position:fixed;top:0;width:100%}.plus-header .plus-header__left{align-items:center;display:flex}.plus-header .plus-header__left .plus-header__logo{height:28px}.plus-header .plus-header__left .plus-header__title{color:var(--el-text-color-regular);font-size:18px;font-weight:600;margin:0 0 0 12px;padding:0}.plus-header .plus-header__placeholder{flex:1 1 0%}.plus-header .plus-header__right{align-items:center;display:flex}.plus-header .plus-header__right .plus-header__dropdown-area{align-items:center;cursor:pointer;display:flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.plus-header .plus-header__right .plus-header__avatar{border-radius:50%;height:24px;margin-right:4px;width:24px}.plus-header-placeholder{height:var(--plus-header-height);width:100%}
9
+ .plus-check-card{border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);box-sizing:border-box;color:var(--el-text-color-regular);cursor:pointer;display:flex;overflow:hidden;padding-block:16px;padding-inline:12px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.plus-check-card--large{width:440px}.plus-check-card--default{width:320px}.plus-check-card--small{width:200px}.plus-check-card--checked{background-color:rgba(var(--el-color-primary-rgb),.1);border-color:var(--el-color-primary);position:relative}.plus-check-card--checked:after{-webkit-border-after:10px solid transparent;-webkit-border-start:10px solid transparent;border:10px solid var(--el-color-primary);border-block-end:10px solid transparent;border-inline-start:10px solid transparent;border-start-end-radius:6px;content:"";height:0;inset-block-start:2px;inset-inline-end:2px;position:absolute;width:0}.plus-check-card--disabled{background-color:var(--el-color-info-light-9);border-color:var(--el-color-info-light-8);cursor:not-allowed}.plus-check-card--disabled:after{border-right-color:var(--el-color-info-light-5);border-top-color:var(--el-color-info-light-5)}.plus-check-card .plus-check-card__avatar-wrapper{-webkit-padding-end:8px;padding-inline-end:8px}.plus-check-card .plus-check-card__right-content{overflow:hidden;width:100%}.plus-check-card .plus-check-card__title{-webkit-margin-after:4px;align-items:center;color:var(--el-text-color-primary);display:flex;justify-content:space-between;margin-block-end:4px;width:100%}.plus-check-card .plus-check-card__title-left{align-items:center;display:flex}.plus-check-card .plus-check-card__title-right{align-items:center;display:flex;vertical-align:middle}.plus-check-card .plus-check-card__description{color:var(--el-text-color-regular);width:100%;word-break:break-all}
10
+ .plus-form-item{width:100%}.plus-form-item .plus-form-item__label{align-items:center;display:inline-flex}.plus-form-item .plus-form-item__label .plus-table-column__label__icon{margin-left:2px}.plus-form-item .plus-form-item-field,.plus-form-item .plus-form-item-field.el-date-editor{width:100%}
13
11
  .plus-search .plus-form__row{row-gap:18px;width:100%}.plus-search.el-form--inline .el-form-item{margin-bottom:0;margin-right:0}.plus-search.el-form--label-top .plus-search__button__wrapper .el-form-item__label{opacity:0;visibility:hidden}.plus-search.el-form--label-top .plus-search__button__wrapper .el-form-item__content{justify-content:flex-end}.plus-search .plus-search__unfold{margin-left:12px}.plus-search .plus-search__button__wrapper{align-items:flex-start;display:flex;flex:auto;justify-content:flex-end;margin-bottom:0;max-width:100%}.plus-search .plus-search__button__wrapper.el-form-item{margin-right:10px}.plus-search .plus-search__button__wrapper .el-form-item__content{flex:none;flex-wrap:nowrap}
14
-
15
12
  .plus-input-tag{align-items:center;background-color:var(--el-fill-color-blank);border:1px solid var(--el-border-color);border-radius:var(--el-border-radius-base);box-sizing:border-box;display:flex;flex-wrap:wrap;max-width:100%;padding:1px 2px;width:-moz-fit-content;width:fit-content}.plus-input-tag:hover{border-color:var(--el-border-color-hover)}.plus-input-tag.is-focus{border-color:var(--el-color-primary)}.plus-input-tag.is-disabled{background-color:var(--el-disabled-bg-color);cursor:not-allowed}.plus-input-tag.is-disabled:hover{border-color:var(--el-border-color)}.plus-input-tag.is-disabled .el-tag__close{cursor:not-allowed}.plus-input-tag.is-disabled .el-tag__close:hover{background-color:transparent;color:var(--el-tag-hover-color)}.plus-input-tag .plus-input-tag__tag{margin-bottom:1px;margin-right:4px;margin-top:1px}.plus-input-tag .plus-input-tag__input{box-sizing:border-box;flex:1;min-width:85px;padding:0}.plus-input-tag .plus-input-tag__input .el-input__wrapper{box-shadow:none;box-sizing:border-box;padding:0 4px}.plus-input-tag .plus-input-tag__input .el-input__inner{height:24px;line-height:24px}.plus-input-tag .el-input.is-disabled .el-input__wrapper{box-shadow:none}.el-form-item.is-error .plus-input-tag{border-color:var(--el-color-danger)}.el-form-item.is-error .plus-input-tag .el-input__wrapper{box-shadow:none}.el-form-item.is-error .plus-input-tag .el-input__wrapper.is-focus{box-shadow:none!important}.el-form-item.is-error .plus-input-tag .el-input__wrapper:hover{box-shadow:none}
16
- :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-sidebar{height:100%}.plus-sidebar.is-vertical{min-height:400px}.plus-sidebar.is-vertical:not(.el-menu--collapse){flex-shrink:0;width:var(--plus-sidebar-width)}.plus-sidebar.is-vertical.el-menu--collapse .el-menu-item{width:calc(var(--plus-sidebar-min-width) - 2px)}.plus-sidebar.is-vertical .el-scrollbar__wrap{overflow-x:hidden}.plus-sidebar.is-vertical.el-menu--collapse .plus-sidebar__item-title{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.plus-sidebar.is-vertical.el-menu--collapse .el-sub-menu__icon-arrow{display:none}.plus-sidebar.is-vertical .el-scrollbar{height:calc(100% - var(--plus-sidebar-collapse-height))}.plus-sidebar.is-vertical .plus-sidebar__collapse{align-items:flex-start;background-color:var(--el-menu-bg-color);bottom:0;box-sizing:border-box;height:var(--plus-sidebar-collapse-height);left:0;position:absolute;width:calc(var(--plus-sidebar-width) - 2px)}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-collapse{width:calc(var(--plus-sidebar-min-width) - 2px)}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-active{background-color:var(--el-menu-bg-color)}.plus-sidebar.is-vertical .plus-sidebar__collapse [class*=-icon]{cursor:pointer;font-size:20px;margin-top:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.plus-sidebar.is-horizontal,.plus-sidebar.is-horizontal .el-scrollbar,.plus-sidebar.is-horizontal .el-scrollbar__wrap{width:100%}.plus-sidebar.is-horizontal .el-scrollbar__view{display:flex;flex-wrap:nowrap;height:100%;width:100%}.plus-sidebar .plus-sidebar__item-title{-webkit-user-select:none;-moz-user-select:none;user-select:none}
17
- .plus-page .plus-page__table_wrapper{margin-top:20px}
13
+ .plus-description .plus-description__name{word-wrap:break-word;max-width:200px}.plus-description .plus-description__label{min-width:80px}.plus-description .plus-description__label.is-required:before{color:var(--el-color-danger);content:"*";margin-right:4px}.plus-description.no-border .el-descriptions__body .el-descriptions__table.is-bordered .el-descriptions__cell{border:0}.plus-description.no-border .el-descriptions__body .el-descriptions__label.el-descriptions__cell.is-bordered-label{background-color:var(--el-fill-color-blank)}
18
14
 
15
+ .plus-steps-form .el-steps{margin-bottom:20px}.plus-steps-form-vertical{display:flex}.plus-steps-form-vertical .el-steps--vertical{margin-right:20px}.plus-steps-form-vertical .plus-form{flex:1}
19
16
  .plus-pagination{align-items:center;display:flex;justify-content:space-between;padding:16px 0}
20
- .plus-form-item{width:100%}.plus-form-item .plus-form-item__label{align-items:center;display:inline-flex}.plus-form-item .plus-form-item__label .plus-table-column__label__icon{margin-left:2px}.plus-form-item .plus-form-item-field,.plus-form-item .plus-form-item-field.el-date-editor{width:100%}
17
+
18
+ :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-layout{height:100vh;overflow:hidden}.plus-layout.el-container{flex-direction:column}.plus-layout .plus-sidebar{height:calc(100vh - var(--plus-header-height));min-width:var(--plus-sidebar-min-width)}.plus-layout .plus-layout-main{flex:1;height:calc(100vh - var(--plus-header-height));width:calc(100% - var(--plus-sidebar-width))}.plus-layout.collapse .plus-layout-main{width:calc(100% - var(--plus-sidebar-min-width))}.plus-layout .plus-layout-content{padding:0}
19
+ .plus-display-item__edit-icon{margin-left:8px}.plus-display-item__image{cursor:pointer;-o-object-fit:cover;object-fit:cover;overflow:hidden;width:30px}.plus-display-item__icon__copy{-webkit-margin-start:4px;color:var(--el-color-primary);cursor:pointer;margin-inline-start:4px;outline:none;text-decoration:none;transition:color .3s;vertical-align:sub}.plus-display-item__pre{background-color:var(--el-color-primary-light-9);border-radius:3px;font-size:85%;line-height:1.45;overflow:auto;padding:0;width:unset}.plus-display-item__badge.is-list .plus-display-item__badge__item+.plus-display-item__badge__item{padding-left:8px}.plus-display-item__badge .plus-display-item__badge__dot{border-radius:50%;display:inline-block;height:6px;position:relative;top:-1px;vertical-align:middle;width:6px}.plus-display-item__badge .plus-display-item__badge__dot--primary{background-color:var(--el-color-primary)}.plus-display-item__badge .plus-display-item__badge__dot--success{background-color:var(--el-color-success)}.plus-display-item__badge .plus-display-item__badge__dot--info{background-color:var(--el-color-info)}.plus-display-item__badge .plus-display-item__badge__dot--warning{background-color:var(--el-color-warning)}.plus-display-item__badge .plus-display-item__badge__dot--danger{background-color:var(--el-color-danger)}.plus-display-item__form .plus-form-item{margin-bottom:0}.plus-display-item__link{max-width:100%}.plus-display-item__link .el-link__inner{display:inline-block;width:100%}
21
20
  .plus-table .plus-table-column .plus-table-column__header .plus-table-column__header__icon{margin-left:2px;margin-top:-2px;vertical-align:middle}.plus-table .plus-table-action-bar.is-center .cell{justify-content:center}.plus-table .plus-table-action-bar.is-right .cell{justify-content:flex-end}.plus-table .plus-table-action-bar.el-table-fixed-column--right{background-color:var(--el-bg-color)}.plus-table .plus-table-action-bar .cell{align-items:center;display:flex}.plus-table .plus-table-action-bar .plus-table-action-bar__dropdown__link{cursor:pointer;display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.plus-table .plus-table-action-bar .plus-table-action-bar__more-text{margin-right:2px}.plus-table .plus-table-action-bar .plus-table-action-bar__column__link{margin-right:10px}.plus-table .plus-table-action-bar .plus-table-action-bar__dropdown{cursor:pointer;margin-left:12px;vertical-align:baseline}.plus-table .plus-table-action-bar .el-link+.el-link{margin-left:12px}.plus-table .plus-table-action-bar .el-icon{cursor:pointer}.plus-table .plus-table-action-bar .el-icon+.el-icon{margin-left:12px}.plus-table .plus-table-column-drag-sort .plus-table-column-drag-icon{box-sizing:border-box;cursor:move;font-size:18px;padding:4px}.plus-table .plus-table-column-index .plus-table-index-column{align-items:center;display:inline-flex;height:20px;justify-content:center;white-space:nowrap;width:20px;word-break:keep-all}.plus-table .plus-table-column-index .cell .plus-table-column-index__content{align-items:center;display:flex;justify-content:center;overflow:hidden}.plus-table .plus-table-title-bar{align-items:center;display:flex;justify-content:space-between;margin-bottom:10px}.plus-table .plus-table-title-bar__toolbar{align-items:center;display:flex}.plus-table .el-popper{max-width:200px}.plus-table-title-bar__toolbar__density{align-items:center;display:flex;flex-direction:column}.plus-table-title-bar__toolbar__density .el-button{margin-top:10px;width:80px}.plus-table-title-bar__toolbar__density .el-button+.el-button{margin-left:0}.plus-table-title-bar__toolbar__icon{color:var(--el-text-color-regular);cursor:pointer;margin-left:10px;vertical-align:middle}.plus-table-title-bar__toolbar__checkbox__item{margin-left:6px}.plus-table-checkbox-item{align-items:center;display:flex;margin-left:20px}.plus-table-checkbox-handle{cursor:move;font-size:18px}.plus-table-ghost-class{background-color:#fff;border:1px dashed var(--el-color-primary);padding:0 5px}.plus-table-column__edit{cursor:pointer}.plus-table-checkbox-checkAll{display:flex;justify-content:space-between}
22
- .plus-steps-form .el-steps{margin-bottom:20px}.plus-steps-form-vertical{display:flex}.plus-steps-form-vertical .el-steps--vertical{margin-right:20px}.plus-steps-form-vertical .plus-form{flex:1}
21
+
22
+ :root{--plus-header-height:60px;--plus-sidebar-collapse-height:60px;--plus-sidebar-width:200px;--plus-sidebar-min-width:64px}.plus-sidebar{height:100%}.plus-sidebar.is-vertical{min-height:400px}.plus-sidebar.is-vertical:not(.el-menu--collapse){flex-shrink:0;width:var(--plus-sidebar-width)}.plus-sidebar.is-vertical.el-menu--collapse .el-menu-item{width:calc(var(--plus-sidebar-min-width) - 2px)}.plus-sidebar.is-vertical .el-scrollbar__wrap{overflow-x:hidden}.plus-sidebar.is-vertical.el-menu--collapse .plus-sidebar__item-title{display:inline-block;height:0;overflow:hidden;visibility:hidden;width:0}.plus-sidebar.is-vertical.el-menu--collapse .el-sub-menu__icon-arrow{display:none}.plus-sidebar.is-vertical .el-scrollbar{height:calc(100% - var(--plus-sidebar-collapse-height))}.plus-sidebar.is-vertical .plus-sidebar__collapse{align-items:flex-start;background-color:var(--el-menu-bg-color);bottom:0;box-sizing:border-box;height:var(--plus-sidebar-collapse-height);left:0;position:absolute;width:calc(var(--plus-sidebar-width) - 2px)}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-collapse{width:calc(var(--plus-sidebar-min-width) - 2px)}.plus-sidebar.is-vertical .plus-sidebar__collapse.is-active{background-color:var(--el-menu-bg-color)}.plus-sidebar.is-vertical .plus-sidebar__collapse [class*=-icon]{cursor:pointer;font-size:20px;margin-top:10px;-webkit-user-select:none;-moz-user-select:none;user-select:none}.plus-sidebar.is-horizontal,.plus-sidebar.is-horizontal .el-scrollbar,.plus-sidebar.is-horizontal .el-scrollbar__wrap{width:100%}.plus-sidebar.is-horizontal .el-scrollbar__view{display:flex;flex-wrap:nowrap;height:100%;width:100%}.plus-sidebar .plus-sidebar__item-title{-webkit-user-select:none;-moz-user-select:none;user-select:none}
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! @wlydfe/pro-ui v0.2.23 */
1
+ /*! @wlydfe/pro-ui v0.2.27 */
2
2
  (function (global, factory) {
3
3
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('element-plus')) :
4
4
  typeof define === 'function' && define.amd ? define(['exports', 'vue', 'element-plus'], factory) :
@@ -11636,7 +11636,8 @@
11636
11636
  indexContentStyle: { type: [Object, Function], default: () => ({}) },
11637
11637
  editable: { type: [Boolean, String], default: false },
11638
11638
  adaptive: { type: [Boolean, Object], default: false },
11639
- filterTableHeaderOverflowLabelLength: {}
11639
+ filterTableHeaderOverflowLabelLength: {},
11640
+ filterTableLocalKey: {}
11640
11641
  },
11641
11642
  emits: ["paginationChange", "clickAction", "clickActionConfirmCancel", "dragSortEnd", "formChange", "refresh", "edited", "cell-click", "cell-dblclick", "filterTableHeader", "radioChange"],
11642
11643
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -11671,7 +11672,7 @@
11671
11672
  vue.watch(
11672
11673
  () => props.columns,
11673
11674
  (val) => {
11674
- const filterOriginColumns = val.filter((item) => vue.unref(item.hideInTable) !== true);
11675
+ let filterOriginColumns = val.filter((item) => vue.unref(item.hideInTable) !== true);
11675
11676
  filterColumns.value = filterOriginColumns.map((item) => {
11676
11677
  var _a2;
11677
11678
  return {
@@ -11679,6 +11680,25 @@
11679
11680
  headerIsChecked: (_a2 = item.headerIsChecked) != null ? _a2 : true
11680
11681
  };
11681
11682
  });
11683
+ if (props.filterTableLocalKey) {
11684
+ const localColumns = localStorage.getItem(props.filterTableLocalKey);
11685
+ if (localColumns) {
11686
+ filterColumns.value = JSON.parse(localColumns);
11687
+ const columsMap = filterColumns.value.reduce((acc, item, order) => {
11688
+ acc[item.prop] = {
11689
+ visable: item.headerIsChecked,
11690
+ order
11691
+ };
11692
+ return acc;
11693
+ }, {});
11694
+ filterOriginColumns.forEach((item) => {
11695
+ if (columsMap[item.prop]) {
11696
+ item.headerIsChecked = columsMap[item.prop].visable;
11697
+ }
11698
+ });
11699
+ filterOriginColumns.sort((a, b) => columsMap[a.prop].order - columsMap[b.prop].order);
11700
+ }
11701
+ }
11682
11702
  subColumns.value = filterOriginColumns.filter((item) => vue.unref(item.headerIsChecked) !== false);
11683
11703
  columnsIsChange.value = !columnsIsChange.value;
11684
11704
  },
@@ -11706,6 +11726,9 @@
11706
11726
  };
11707
11727
  const handleFilterTableConfirm = (_columns, eventType) => {
11708
11728
  filterColumns.value = _columns;
11729
+ if (props.filterTableLocalKey) {
11730
+ localStorage.setItem(props.filterTableLocalKey, JSON.stringify(filterColumns.value));
11731
+ }
11709
11732
  emit("filterTableHeader", _columns, eventType);
11710
11733
  subColumns.value = _columns.filter(
11711
11734
  (item) => vue.unref(item.hideInTable) !== true && item.headerIsChecked !== false
@@ -13061,7 +13084,7 @@
13061
13084
  class: "plus-page__table_wrapper"
13062
13085
  }, {
13063
13086
  default: vue.withCtx(() => {
13064
- var _a2, _b;
13087
+ var _a2, _b, _c;
13065
13088
  return [
13066
13089
  vue.createVNode(vue.unref(PlusTable), vue.mergeProps({
13067
13090
  ref_key: "plusTableInstance",
@@ -13069,6 +13092,7 @@
13069
13092
  "title-bar": { refresh: true }
13070
13093
  }, _ctx.table, {
13071
13094
  adaptive: (_b = (_a2 = _ctx.table) == null ? void 0 : _a2.adaptive) != null ? _b : true,
13095
+ "filter-table-local-key": (_c = _ctx.table) == null ? void 0 : _c.filterTableLocalKey,
13072
13096
  "table-data": vue.unref(tableData),
13073
13097
  "loading-status": vue.unref(loadingStatus),
13074
13098
  columns: processedColumns.value,
@@ -13127,7 +13151,7 @@
13127
13151
  ])
13128
13152
  };
13129
13153
  })
13130
- ]), 1040, ["adaptive", "table-data", "loading-status", "columns", "pagination"])
13154
+ ]), 1040, ["adaptive", "filter-table-local-key", "table-data", "loading-status", "columns", "pagination"])
13131
13155
  ];
13132
13156
  }),
13133
13157
  _: 3