tabula-vue 1.0.2 → 1.0.4

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 (49) hide show
  1. package/es/components/table-lite/src/display-value.d.ts +26 -0
  2. package/es/components/table-lite/src/display-value.mjs +82 -0
  3. package/es/components/table-lite/src/index.vue.d.ts +14 -14
  4. package/es/components/table-lite/src/index.vue2.mjs +9 -0
  5. package/es/components/table-v2/src/index.vue2.mjs +16 -2
  6. package/es/components/table-v2/src/type.d.ts +2 -1
  7. package/es/version.d.ts +1 -1
  8. package/es/version.mjs +1 -1
  9. package/index.css +1 -1
  10. package/index.js +100 -3
  11. package/index.min.js +4 -4
  12. package/index.min.mjs +4 -4
  13. package/index.mjs +100 -3
  14. package/lib/components/table-lite/src/display-value.d.ts +26 -0
  15. package/lib/components/table-lite/src/display-value.js +86 -0
  16. package/lib/components/table-lite/src/index.vue.d.ts +14 -14
  17. package/lib/components/table-lite/src/index.vue2.js +9 -0
  18. package/lib/components/table-v2/src/index.vue2.js +15 -1
  19. package/lib/components/table-v2/src/type.d.ts +2 -1
  20. package/lib/version.d.ts +1 -1
  21. package/lib/version.js +1 -1
  22. package/locale/en.js +1 -1
  23. package/locale/en.min.js +1 -1
  24. package/locale/en.min.mjs +1 -1
  25. package/locale/en.mjs +1 -1
  26. package/locale/ja.js +1 -1
  27. package/locale/ja.min.js +1 -1
  28. package/locale/ja.min.mjs +1 -1
  29. package/locale/ja.mjs +1 -1
  30. package/locale/ko.js +1 -1
  31. package/locale/ko.min.js +1 -1
  32. package/locale/ko.min.mjs +1 -1
  33. package/locale/ko.mjs +1 -1
  34. package/locale/zh-cn.js +1 -1
  35. package/locale/zh-cn.min.js +1 -1
  36. package/locale/zh-cn.min.mjs +1 -1
  37. package/locale/zh-cn.mjs +1 -1
  38. package/locale/zh-hk.js +1 -1
  39. package/locale/zh-hk.min.js +1 -1
  40. package/locale/zh-hk.min.mjs +1 -1
  41. package/locale/zh-hk.mjs +1 -1
  42. package/locale/zh-tw.js +1 -1
  43. package/locale/zh-tw.min.js +1 -1
  44. package/locale/zh-tw.min.mjs +1 -1
  45. package/locale/zh-tw.mjs +1 -1
  46. package/package.json +1 -1
  47. package/theme-chalk/index.css +1 -1
  48. package/theme-chalk/plus-table-v2.css +1 -1
  49. package/theme-chalk/src/table-v2.scss +7 -1
@@ -0,0 +1,26 @@
1
+ import { OptionsRow, PlusColumn } from 'tabula-vue/es/types';
2
+ import { VNode } from 'vue';
3
+
4
+ /**
5
+ * 同步解析 options。
6
+ *
7
+ * 支持数组 / ref / 同步函数,异步(Promise)场景直接返回空数组,
8
+ * 避免在纯净表格里引入每个单元格的异步副作用。
9
+ */
10
+ export declare const resolveOptions: (options: PlusColumn['options']) => OptionsRow[];
11
+ /**
12
+ * 按列生成单元格文本格式化函数。
13
+ *
14
+ * 该函数在列级创建一次,内部持有预构建的 value → label Map,
15
+ * 单元格渲染时只做一次查表,不产生任何响应式依赖。
16
+ *
17
+ * @returns 无法解析(或无需解析)时返回 undefined,由调用方回退到原始值
18
+ */
19
+ export declare const createValueTypeText: (column: PlusColumn) => ((value: unknown) => string) | undefined;
20
+ /**
21
+ * 按列生成单元格渲染函数。
22
+ *
23
+ * 仅 tag 需要真实组件(少量使用),其余类型统一走文本,
24
+ * 保证纯净表格的单元格默认不创建组件实例。
25
+ */
26
+ export declare const createValueTypeCellRender: (column: PlusColumn) => ((value: unknown) => VNode) | undefined;
@@ -0,0 +1,82 @@
1
+ import { isRef, h } from 'vue';
2
+ import { ElTag } from 'element-plus';
3
+ import '../../utils/index.mjs';
4
+ import { isFunction } from '../../utils/is.mjs';
5
+ import { formatDate } from '../../utils/format.mjs';
6
+
7
+ const SELECT_TYPES = /* @__PURE__ */ new Set(["select", "radio", "checkbox"]);
8
+ const DATE_TYPES = /* @__PURE__ */ new Set(["date-picker"]);
9
+ const MONEY_TYPES = /* @__PURE__ */ new Set(["money"]);
10
+ const MULTIPLE_SEPARATOR = "\u3001";
11
+ const resolveOptions = (options) => {
12
+ if (!options) return [];
13
+ if (isRef(options)) {
14
+ return Array.isArray(options.value) ? options.value : [];
15
+ }
16
+ if (Array.isArray(options)) return options;
17
+ if (isFunction(options)) {
18
+ const result = options();
19
+ return Array.isArray(result) ? result : [];
20
+ }
21
+ return [];
22
+ };
23
+ const resolveFieldProps = (column) => {
24
+ const fieldProps = column.fieldProps;
25
+ if (!fieldProps) return {};
26
+ if (isRef(fieldProps)) return fieldProps.value || {};
27
+ if (typeof fieldProps === "object") return fieldProps;
28
+ return {};
29
+ };
30
+ const isEmpty = (value) => value === null || value === void 0 || value === "";
31
+ const createValueTypeText = (column) => {
32
+ const valueType = column.valueType;
33
+ if (valueType && SELECT_TYPES.has(valueType)) {
34
+ const list = resolveOptions(column.options);
35
+ if (!list.length) return void 0;
36
+ const labelMap = /* @__PURE__ */ new Map();
37
+ list.forEach((item) => {
38
+ if (!isEmpty(item.value)) labelMap.set(String(item.value), item);
39
+ });
40
+ const fieldProps = resolveFieldProps(column);
41
+ const multiple = valueType === "checkbox" || fieldProps.multiple === true;
42
+ return (value) => {
43
+ var _a;
44
+ if (isEmpty(value)) return "";
45
+ if (multiple && Array.isArray(value)) {
46
+ return value.map((item) => {
47
+ var _a2, _b;
48
+ return (_b = (_a2 = labelMap.get(String(item))) == null ? void 0 : _a2.label) != null ? _b : String(item);
49
+ }).join(MULTIPLE_SEPARATOR);
50
+ }
51
+ const label = (_a = labelMap.get(String(value))) == null ? void 0 : _a.label;
52
+ return label === void 0 || label === null ? String(value) : String(label);
53
+ };
54
+ }
55
+ if (valueType && DATE_TYPES.has(valueType)) {
56
+ const fieldProps = resolveFieldProps(column);
57
+ const format = fieldProps.format || "YYYY-MM-DD";
58
+ return (value) => isEmpty(value) ? "" : formatDate(value, format);
59
+ }
60
+ if (valueType && MONEY_TYPES.has(valueType)) {
61
+ const fieldProps = resolveFieldProps(column);
62
+ const prefix = fieldProps.format || "\uFFE5";
63
+ return (value) => {
64
+ if (isEmpty(value)) return "";
65
+ const num = Number(value);
66
+ return Number.isNaN(num) ? String(value) : `${prefix}${num.toFixed(2)}`;
67
+ };
68
+ }
69
+ return void 0;
70
+ };
71
+ const createValueTypeCellRender = (column) => {
72
+ if (column.valueType !== "tag") return void 0;
73
+ const fieldProps = resolveFieldProps(column);
74
+ const text = createValueTypeText(column);
75
+ return (value) => {
76
+ if (isEmpty(value)) return h("span");
77
+ const label = text ? text(value) : String(value);
78
+ return h(ElTag, { type: fieldProps.type }, () => label);
79
+ };
80
+ };
81
+
82
+ export { createValueTypeCellRender, createValueTypeText, resolveOptions };
@@ -46,6 +46,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
46
46
  __epPropKey: true;
47
47
  };
48
48
  width: (NumberConstructor | StringConstructor)[];
49
+ /** 内置特殊列顺序 */
49
50
  height: (NumberConstructor | StringConstructor)[];
50
51
  maxHeight: (NumberConstructor | StringConstructor)[];
51
52
  fit: {
@@ -74,7 +75,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
74
75
  currentRowKey: (NumberConstructor | StringConstructor)[];
75
76
  emptyText: StringConstructor;
76
77
  expandRowKeys: PropType<any[] | undefined>;
77
- /** adaptive 计算出的高度 */
78
78
  defaultExpandAll: BooleanConstructor;
79
79
  defaultSort: PropType< Sort | undefined>;
80
80
  tooltipEffect: StringConstructor;
@@ -85,7 +85,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
85
85
  column: TableColumnCtx<any>;
86
86
  columnIndex: number;
87
87
  }) => number[] | {
88
- rowspan: number;
88
+ rowspan: number; /** adaptive 计算出的高度 */
89
89
  colspan: number;
90
90
  } | undefined) | undefined>;
91
91
  selectOnIndeterminate: {
@@ -148,8 +148,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
148
148
  b: (blockSuffix?: string | undefined) => string;
149
149
  e: (element?: string | undefined) => string;
150
150
  m: (modifier?: string | undefined) => string;
151
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
152
- em: (element?: string | undefined, modifier?: string | undefined) => string;
151
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string; /** renderHTML 单元格(可选) */
152
+ em: (element?: string | undefined, modifier?: string | undefined) => string; /** 纯文本单元格 */
153
153
  bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
154
154
  bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
155
155
  is: {
@@ -161,7 +161,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
161
161
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
162
162
  cssVarBlockName: (name: string) => string;
163
163
  };
164
- layout: __DTS_DEFAULT_0__<any>;
164
+ layout: __DTS_DEFAULT_0__<any>; /** 纯文本:formatter 优先,其次 valueType 映射,最后原值;空值兜底 */
165
165
  store: any;
166
166
  handleHeaderFooterMousewheel: (event: any, data: any) => void;
167
167
  handleMouseLeave: () => void;
@@ -221,7 +221,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
221
221
  height: string;
222
222
  maxHeight?: undefined;
223
223
  } | {
224
- maxHeight: string;
224
+ maxHeight: string; /** 输出所有已选行(跨页累计) */
225
225
  height?: undefined;
226
226
  } | {
227
227
  height?: undefined;
@@ -243,6 +243,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
243
243
  __epPropKey: true;
244
244
  };
245
245
  width: (NumberConstructor | StringConstructor)[];
246
+ /** 内置特殊列顺序 */
246
247
  height: (NumberConstructor | StringConstructor)[];
247
248
  maxHeight: (NumberConstructor | StringConstructor)[];
248
249
  fit: {
@@ -271,7 +272,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
271
272
  currentRowKey: (NumberConstructor | StringConstructor)[];
272
273
  emptyText: StringConstructor;
273
274
  expandRowKeys: PropType<any[] | undefined>;
274
- /** adaptive 计算出的高度 */
275
275
  defaultExpandAll: BooleanConstructor;
276
276
  defaultSort: PropType< Sort | undefined>;
277
277
  tooltipEffect: StringConstructor;
@@ -282,7 +282,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
282
282
  column: TableColumnCtx<any>;
283
283
  columnIndex: number;
284
284
  }) => number[] | {
285
- rowspan: number;
285
+ rowspan: number; /** adaptive 计算出的高度 */
286
286
  colspan: number;
287
287
  } | undefined) | undefined>;
288
288
  selectOnIndeterminate: {
@@ -379,6 +379,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
379
379
  __epPropKey: true;
380
380
  };
381
381
  width: (NumberConstructor | StringConstructor)[];
382
+ /** 内置特殊列顺序 */
382
383
  height: (NumberConstructor | StringConstructor)[];
383
384
  maxHeight: (NumberConstructor | StringConstructor)[];
384
385
  fit: {
@@ -407,7 +408,6 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
407
408
  currentRowKey: (NumberConstructor | StringConstructor)[];
408
409
  emptyText: StringConstructor;
409
410
  expandRowKeys: PropType<any[] | undefined>;
410
- /** adaptive 计算出的高度 */
411
411
  defaultExpandAll: BooleanConstructor;
412
412
  defaultSort: PropType< Sort | undefined>;
413
413
  tooltipEffect: StringConstructor;
@@ -418,7 +418,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
418
418
  column: TableColumnCtx<any>;
419
419
  columnIndex: number;
420
420
  }) => number[] | {
421
- rowspan: number;
421
+ rowspan: number; /** adaptive 计算出的高度 */
422
422
  colspan: number;
423
423
  } | undefined) | undefined>;
424
424
  selectOnIndeterminate: {
@@ -481,8 +481,8 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
481
481
  b: (blockSuffix?: string | undefined) => string;
482
482
  e: (element?: string | undefined) => string;
483
483
  m: (modifier?: string | undefined) => string;
484
- be: (blockSuffix?: string | undefined, element?: string | undefined) => string;
485
- em: (element?: string | undefined, modifier?: string | undefined) => string;
484
+ be: (blockSuffix?: string | undefined, element?: string | undefined) => string; /** renderHTML 单元格(可选) */
485
+ em: (element?: string | undefined, modifier?: string | undefined) => string; /** 纯文本单元格 */
486
486
  bm: (blockSuffix?: string | undefined, modifier?: string | undefined) => string;
487
487
  bem: (blockSuffix?: string | undefined, element?: string | undefined, modifier?: string | undefined) => string;
488
488
  is: {
@@ -494,7 +494,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
494
494
  cssVarBlock: (object: Record<string, string>) => Record<string, string>;
495
495
  cssVarBlockName: (name: string) => string;
496
496
  };
497
- layout: __DTS_DEFAULT_0__<any>;
497
+ layout: __DTS_DEFAULT_0__<any>; /** 纯文本:formatter 优先,其次 valueType 映射,最后原值;空值兜底 */
498
498
  store: any;
499
499
  handleHeaderFooterMousewheel: (event: any, data: any) => void;
500
500
  handleMouseLeave: () => void;
@@ -554,7 +554,7 @@ declare const _default: __VLS_WithTemplateSlots< DefineComponent<__VLS_WithDefau
554
554
  height: string;
555
555
  maxHeight?: undefined;
556
556
  } | {
557
- maxHeight: string;
557
+ maxHeight: string; /** 输出所有已选行(跨页累计) */
558
558
  height?: undefined;
559
559
  } | {
560
560
  height?: undefined;
@@ -7,6 +7,7 @@ import '../../../constants/index.mjs';
7
7
  import { getLabel, getTableKey, getTableHeaderSlotName, getTableCellSlotName, getTooltip } from '../../utils/index.mjs';
8
8
  import '../../../hooks/index.mjs';
9
9
  import '../../table/index.mjs';
10
+ import { createValueTypeText, createValueTypeCellRender } from './display-value.mjs';
10
11
  import { useLocale } from '../../../hooks/useLocale.mjs';
11
12
  import { DefaultPageInfo } from '../../../constants/page.mjs';
12
13
  import { useTableColumns } from '../../table/src/use-columns.mjs';
@@ -131,6 +132,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
131
132
  const label = getLabel(column.label);
132
133
  const isSimpleProp = !prop.includes(".") && !prop.includes("[");
133
134
  const readValue = isSimpleProp ? (row) => row == null ? void 0 : row[prop] : (row) => getByPath(row, prop);
135
+ const valueTypeText = createValueTypeText(column);
136
+ const valueTypeCellRender = createValueTypeCellRender(column);
134
137
  const cellText = (row, index) => {
135
138
  const value = readValue(row);
136
139
  if (isFunction(column.formatter)) {
@@ -139,6 +142,10 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
139
142
  formatted === null || formatted === void 0 ? resolveEmptyText(column) : formatted
140
143
  );
141
144
  }
145
+ if (valueTypeText) {
146
+ const text = valueTypeText(value);
147
+ if (text !== "") return text;
148
+ }
142
149
  return value === null || value === void 0 || value === "" ? String(resolveEmptyText(column)) : String(value);
143
150
  };
144
151
  const prepared = {
@@ -172,6 +179,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
172
179
  var _a2, _b2;
173
180
  return String((_b2 = (_a2 = column.renderHTML) == null ? void 0 : _a2.call(column, readValue(row), { row, column, index })) != null ? _b2 : "");
174
181
  };
182
+ } else if (valueTypeCellRender) {
183
+ prepared.cellRender = ({ row }) => valueTypeCellRender(readValue(row));
175
184
  }
176
185
  return prepared;
177
186
  })
@@ -1,4 +1,4 @@
1
- import { defineComponent, useSlots, ref, shallowRef, reactive, computed, watch, h, onMounted, onBeforeUnmount, provide, openBlock, createElementBlock, createCommentVNode, createBlock, unref, createSlots, withCtx, renderSlot, withDirectives, normalizeStyle, createVNode, mergeProps } from 'vue';
1
+ import { defineComponent, useSlots, useAttrs, ref, shallowRef, reactive, computed, watch, h, onMounted, onBeforeUnmount, provide, openBlock, createElementBlock, createCommentVNode, createBlock, unref, createSlots, withCtx, renderSlot, withDirectives, normalizeStyle, createVNode, mergeProps } from 'vue';
2
2
  import { debounce } from 'lodash-es';
3
3
  import { ElAutoResizer, ElTableV2, ElEmpty, vLoading } from 'element-plus';
4
4
  import { PlusPagination } from '../../pagination/index.mjs';
@@ -62,6 +62,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
62
62
  const emit = __emit;
63
63
  const { t } = useLocale();
64
64
  const slots = useSlots();
65
+ const attrs = useAttrs();
65
66
  const tableWrapperInstance = ref(null);
66
67
  const tableInstance = shallowRef(null);
67
68
  const paginationInstance = ref(null);
@@ -97,10 +98,21 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
97
98
  if (props.width !== void 0) return toColumnNumber(props.width);
98
99
  return Math.max(containerWidth.value, 1);
99
100
  });
100
- const tableHeight = computed(() => {
101
+ const availableHeight = computed(() => {
101
102
  if (props.height !== void 0) return toColumnNumber(props.height);
102
103
  return fillHeight.value;
103
104
  });
105
+ const contentHeight = computed(() => {
106
+ var _a2;
107
+ const rows = __tableData.value.length;
108
+ if (!rows) return 0;
109
+ const scrollbarSize = Number((_a2 = attrs.hScrollbarSize) != null ? _a2 : attrs["h-scrollbar-size"]) || 6;
110
+ return props.headerHeight + rows * currentRowHeight.value + scrollbarSize;
111
+ });
112
+ const tableHeight = computed(() => {
113
+ if (!__tableData.value.length) return availableHeight.value;
114
+ return Math.min(availableHeight.value, contentHeight.value);
115
+ });
104
116
  const bodyHeight = computed(() => `${tableHeight.value}px`);
105
117
  const calcFillHeight = () => {
106
118
  var _a2;
@@ -258,6 +270,8 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
258
270
  width: toColumnNumber(actionBar.width) || 200,
259
271
  fixed: actionBar.fixed || "right",
260
272
  align: (_a2 = actionBar.actionBarTableColumnProps) == null ? void 0 : _a2.align,
273
+ // 补上操作栏 class,复用 table-v2.scss 中按钮间距 / 更多下拉的样式
274
+ class: "plus-table-action-bar",
261
275
  cellRenderer: ({ rowData, rowIndex }) => h(
262
276
  PlusTableActionBarContent,
263
277
  {
@@ -38,7 +38,8 @@ export interface PlusTableV2SelfProps {
38
38
  /** loading 状态 */
39
39
  loadingStatus?: boolean;
40
40
  /**
41
- * 表格高度,支持数字或带单位字符串,不传时由父容器(或 adaptive)决定
41
+ * 表格最大高度,支持数字或带单位字符串。
42
+ * 数据不足时自动收缩到内容高度,不传时取页面剩余高度(或 adaptive 计算值)
42
43
  */
43
44
  height?: number | string;
44
45
  /**
package/es/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const version = "1.0.2";
1
+ export declare const version = "1.0.4";
package/es/version.mjs CHANGED
@@ -1,3 +1,3 @@
1
- const version = "1.0.2";
1
+ const version = "1.0.4";
2
2
 
3
3
  export { version };
package/index.css CHANGED
@@ -1 +1 @@
1
- .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}.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)}.plus-dialog .plus-dialog-footer{align-items:center;display:flex}.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%}.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)}.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}.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%}.plus-page .plus-page__table_wrapper{margin-top:20px}.plus-pagination{align-items:center;display:flex;padding:16px 0}.plus-pagination,.plus-pagination--center{justify-content:space-between}.plus-pagination--center .el-pagination{margin:0 auto}.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}.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}.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{color:var(--el-color-primary);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}.plus-table-v2 .plus-table-v2__body{position:relative;width:100%}.plus-table-v2 .plus-table-v2-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.plus-table-v2 .plus-table-v2-header{align-items:center;display:inline-flex}.plus-table-v2 .plus-table-v2-header .plus-table-v2-header__icon{margin-left:2px;margin-top:-2px;vertical-align:middle}.plus-table-v2 .plus-table-v2-index{align-items:center;display:flex;justify-content:center;width:100%}.plus-table-v2 .plus-table-action-bar{align-items:center;display:flex;flex-wrap:nowrap;gap:8px}.plus-table-v2 .plus-table-action-bar .plus-table-action-bar__dropdown__link{color:var(--el-color-primary);cursor:pointer;display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.plus-table-v2 .plus-table-action-bar .plus-table-action-bar__more-text{margin-right:2px}.plus-table-v2 .plus-table-action-bar .plus-table-action-bar__dropdown{cursor:pointer;vertical-align:baseline}.plus-table-v2 .el-table-v2__empty{align-items:center;display:flex;height:100%;justify-content:center}.plus-table-lite{width:100%}.plus-table-lite .plus-table-lite__header{align-items:center;display:inline-flex}.plus-table-lite .plus-table-lite__header .plus-table-lite__icon{margin-left:2px;margin-top:-2px;vertical-align:middle}.plus-table-lite .plus-table-lite-index .plus-table-lite-index__content{text-align:center;width:100%}.plus-table-lite .plus-table-lite-selection .cell{align-items:center;display:flex;justify-content:center}.plus-table-lite .plus-table-action-bar.is-center .cell{justify-content:center}.plus-table-lite .plus-table-action-bar.is-right .cell{justify-content:flex-end}.plus-input-tag,.plus-table-lite .plus-table-action-bar .cell{align-items:center;display:flex}.plus-input-tag{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;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}.plus-breadcrumb{margin-bottom:8px}.plus-breadcrumb.no-data{margin-bottom:0}: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}.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%}.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}.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}.plus-check-card-group{display:flex;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
1
+ .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}.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)}.plus-dialog .plus-dialog-footer{align-items:center;display:flex}.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%}.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)}.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}.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%}.plus-page .plus-page__table_wrapper{margin-top:20px}.plus-pagination{align-items:center;display:flex;padding:16px 0}.plus-pagination,.plus-pagination--center{justify-content:space-between}.plus-pagination--center .el-pagination{margin:0 auto}.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}.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}.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{color:var(--el-color-primary);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}.plus-table-v2 .plus-table-v2__body{position:relative;width:100%}.plus-table-v2 .plus-table-v2-cell{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;width:100%}.plus-table-v2 .plus-table-v2-header{align-items:center;display:inline-flex}.plus-table-v2 .plus-table-v2-header .plus-table-v2-header__icon{margin-left:2px;margin-top:-2px;vertical-align:middle}.plus-table-v2 .plus-table-v2-index{align-items:center;display:flex;justify-content:center;width:100%}.plus-table-v2 .plus-table-action-bar{align-items:center;display:flex;flex-wrap:nowrap;gap:12px}.plus-table-v2 .plus-table-action-bar .plus-table-action-bar__dropdown__link{color:var(--el-color-primary);cursor:pointer;display:inline-flex;-webkit-user-select:none;-moz-user-select:none;user-select:none}.plus-table-v2 .plus-table-action-bar .plus-table-action-bar__more-text{margin-right:2px}.plus-table-v2 .plus-table-action-bar .plus-table-action-bar__dropdown{cursor:pointer;vertical-align:baseline}.plus-table-v2 .plus-table-action-bar .el-button+.el-button{margin-left:0}.plus-table-v2 .el-table-v2__empty{align-items:center;display:flex;height:100%;justify-content:center}.plus-table-lite{width:100%}.plus-table-lite .plus-table-lite__header{align-items:center;display:inline-flex}.plus-table-lite .plus-table-lite__header .plus-table-lite__icon{margin-left:2px;margin-top:-2px;vertical-align:middle}.plus-table-lite .plus-table-lite-index .plus-table-lite-index__content{text-align:center;width:100%}.plus-table-lite .plus-table-lite-selection .cell{align-items:center;display:flex;justify-content:center}.plus-table-lite .plus-table-action-bar.is-center .cell{justify-content:center}.plus-table-lite .plus-table-action-bar.is-right .cell{justify-content:flex-end}.plus-input-tag,.plus-table-lite .plus-table-action-bar .cell{align-items:center;display:flex}.plus-input-tag{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;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}.plus-breadcrumb{margin-bottom:8px}.plus-breadcrumb.no-data{margin-bottom:0}: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}.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%}.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}.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}.plus-check-card-group{display:flex;flex-wrap:wrap}.plus-check-card-group .plus-check-card{margin-bottom:16px;margin-right:16px}
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! tabula-vue v1.0.2 */
1
+ /*! tabula-vue v1.0.4 */
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) :
@@ -12345,6 +12345,81 @@
12345
12345
 
12346
12346
  const PlusTable = _Table;
12347
12347
 
12348
+ const SELECT_TYPES = /* @__PURE__ */ new Set(["select", "radio", "checkbox"]);
12349
+ const DATE_TYPES = /* @__PURE__ */ new Set(["date-picker"]);
12350
+ const MONEY_TYPES = /* @__PURE__ */ new Set(["money"]);
12351
+ const MULTIPLE_SEPARATOR = "\u3001";
12352
+ const resolveOptions = (options) => {
12353
+ if (!options) return [];
12354
+ if (vue.isRef(options)) {
12355
+ return Array.isArray(options.value) ? options.value : [];
12356
+ }
12357
+ if (Array.isArray(options)) return options;
12358
+ if (isFunction(options)) {
12359
+ const result = options();
12360
+ return Array.isArray(result) ? result : [];
12361
+ }
12362
+ return [];
12363
+ };
12364
+ const resolveFieldProps = (column) => {
12365
+ const fieldProps = column.fieldProps;
12366
+ if (!fieldProps) return {};
12367
+ if (vue.isRef(fieldProps)) return fieldProps.value || {};
12368
+ if (typeof fieldProps === "object") return fieldProps;
12369
+ return {};
12370
+ };
12371
+ const isEmpty = (value) => value === null || value === void 0 || value === "";
12372
+ const createValueTypeText = (column) => {
12373
+ const valueType = column.valueType;
12374
+ if (valueType && SELECT_TYPES.has(valueType)) {
12375
+ const list = resolveOptions(column.options);
12376
+ if (!list.length) return void 0;
12377
+ const labelMap = /* @__PURE__ */ new Map();
12378
+ list.forEach((item) => {
12379
+ if (!isEmpty(item.value)) labelMap.set(String(item.value), item);
12380
+ });
12381
+ const fieldProps = resolveFieldProps(column);
12382
+ const multiple = valueType === "checkbox" || fieldProps.multiple === true;
12383
+ return (value) => {
12384
+ var _a;
12385
+ if (isEmpty(value)) return "";
12386
+ if (multiple && Array.isArray(value)) {
12387
+ return value.map((item) => {
12388
+ var _a2, _b;
12389
+ return (_b = (_a2 = labelMap.get(String(item))) == null ? void 0 : _a2.label) != null ? _b : String(item);
12390
+ }).join(MULTIPLE_SEPARATOR);
12391
+ }
12392
+ const label = (_a = labelMap.get(String(value))) == null ? void 0 : _a.label;
12393
+ return label === void 0 || label === null ? String(value) : String(label);
12394
+ };
12395
+ }
12396
+ if (valueType && DATE_TYPES.has(valueType)) {
12397
+ const fieldProps = resolveFieldProps(column);
12398
+ const format = fieldProps.format || "YYYY-MM-DD";
12399
+ return (value) => isEmpty(value) ? "" : formatDate(value, format);
12400
+ }
12401
+ if (valueType && MONEY_TYPES.has(valueType)) {
12402
+ const fieldProps = resolveFieldProps(column);
12403
+ const prefix = fieldProps.format || "\uFFE5";
12404
+ return (value) => {
12405
+ if (isEmpty(value)) return "";
12406
+ const num = Number(value);
12407
+ return Number.isNaN(num) ? String(value) : `${prefix}${num.toFixed(2)}`;
12408
+ };
12409
+ }
12410
+ return void 0;
12411
+ };
12412
+ const createValueTypeCellRender = (column) => {
12413
+ if (column.valueType !== "tag") return void 0;
12414
+ const fieldProps = resolveFieldProps(column);
12415
+ const text = createValueTypeText(column);
12416
+ return (value) => {
12417
+ if (isEmpty(value)) return vue.h("span");
12418
+ const label = text ? text(value) : String(value);
12419
+ return vue.h(elementPlus.ElTag, { type: fieldProps.type }, () => label);
12420
+ };
12421
+ };
12422
+
12348
12423
  const _hoisted_1$8 = { class: "plus-table-lite__header" };
12349
12424
  const _hoisted_2$4 = ["innerHTML"];
12350
12425
  var _sfc_main$f = /* @__PURE__ */ vue.defineComponent({
@@ -12461,6 +12536,8 @@
12461
12536
  const label = getLabel(column.label);
12462
12537
  const isSimpleProp = !prop.includes(".") && !prop.includes("[");
12463
12538
  const readValue = isSimpleProp ? (row) => row == null ? void 0 : row[prop] : (row) => getByPath(row, prop);
12539
+ const valueTypeText = createValueTypeText(column);
12540
+ const valueTypeCellRender = createValueTypeCellRender(column);
12464
12541
  const cellText = (row, index) => {
12465
12542
  const value = readValue(row);
12466
12543
  if (isFunction(column.formatter)) {
@@ -12469,6 +12546,10 @@
12469
12546
  formatted === null || formatted === void 0 ? resolveEmptyText(column) : formatted
12470
12547
  );
12471
12548
  }
12549
+ if (valueTypeText) {
12550
+ const text = valueTypeText(value);
12551
+ if (text !== "") return text;
12552
+ }
12472
12553
  return value === null || value === void 0 || value === "" ? String(resolveEmptyText(column)) : String(value);
12473
12554
  };
12474
12555
  const prepared = {
@@ -12502,6 +12583,8 @@
12502
12583
  var _a2, _b2;
12503
12584
  return String((_b2 = (_a2 = column.renderHTML) == null ? void 0 : _a2.call(column, readValue(row), { row, column, index })) != null ? _b2 : "");
12504
12585
  };
12586
+ } else if (valueTypeCellRender) {
12587
+ prepared.cellRender = ({ row }) => valueTypeCellRender(readValue(row));
12505
12588
  }
12506
12589
  return prepared;
12507
12590
  })
@@ -13423,6 +13506,7 @@
13423
13506
  const emit = __emit;
13424
13507
  const { t } = useLocale();
13425
13508
  const slots = vue.useSlots();
13509
+ const attrs = vue.useAttrs();
13426
13510
  const tableWrapperInstance = vue.ref(null);
13427
13511
  const tableInstance = vue.shallowRef(null);
13428
13512
  const paginationInstance = vue.ref(null);
@@ -13458,10 +13542,21 @@
13458
13542
  if (props.width !== void 0) return toColumnNumber(props.width);
13459
13543
  return Math.max(containerWidth.value, 1);
13460
13544
  });
13461
- const tableHeight = vue.computed(() => {
13545
+ const availableHeight = vue.computed(() => {
13462
13546
  if (props.height !== void 0) return toColumnNumber(props.height);
13463
13547
  return fillHeight.value;
13464
13548
  });
13549
+ const contentHeight = vue.computed(() => {
13550
+ var _a2;
13551
+ const rows = __tableData.value.length;
13552
+ if (!rows) return 0;
13553
+ const scrollbarSize = Number((_a2 = attrs.hScrollbarSize) != null ? _a2 : attrs["h-scrollbar-size"]) || 6;
13554
+ return props.headerHeight + rows * currentRowHeight.value + scrollbarSize;
13555
+ });
13556
+ const tableHeight = vue.computed(() => {
13557
+ if (!__tableData.value.length) return availableHeight.value;
13558
+ return Math.min(availableHeight.value, contentHeight.value);
13559
+ });
13465
13560
  const bodyHeight = vue.computed(() => `${tableHeight.value}px`);
13466
13561
  const calcFillHeight = () => {
13467
13562
  var _a2;
@@ -13619,6 +13714,8 @@
13619
13714
  width: toColumnNumber(actionBar.width) || 200,
13620
13715
  fixed: actionBar.fixed || "right",
13621
13716
  align: (_a2 = actionBar.actionBarTableColumnProps) == null ? void 0 : _a2.align,
13717
+ // 补上操作栏 class,复用 table-v2.scss 中按钮间距 / 更多下拉的样式
13718
+ class: "plus-table-action-bar",
13622
13719
  cellRenderer: ({ rowData, rowIndex }) => vue.h(
13623
13720
  PlusTableActionBarContent,
13624
13721
  {
@@ -16361,7 +16458,7 @@
16361
16458
 
16362
16459
  var installer = makeInstaller([...plugins]);
16363
16460
 
16364
- const version = "1.0.2";
16461
+ const version = "1.0.4";
16365
16462
 
16366
16463
  const install = installer.install;
16367
16464