@wfrog/vc-ui 1.14.0 → 1.14.2

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.
@@ -7,7 +7,7 @@ export interface IColumnConfig {
7
7
  visible?: boolean;
8
8
  fixed?: 'left' | 'right';
9
9
  align?: 'left' | 'center' | 'right';
10
- showOverflowTooltip?: boolean;
10
+ formatterName?: string;
11
11
  disabled?: boolean;
12
12
  widthType?: 'width' | 'minWidth';
13
13
  formFixed?: ('left' | 'right')[];
@@ -20,6 +20,10 @@ export interface IExplorerColumnTableProps {
20
20
  height?: number | string;
21
21
  emptyColumn?: boolean;
22
22
  editable?: boolean;
23
+ formatterNameOptions?: {
24
+ label: string;
25
+ value: string;
26
+ }[];
23
27
  }
24
28
  export interface IExplorerColumnTableEmits {
25
29
  (e: 'update:data', data: IColumnConfig[]): void;
@@ -2,14 +2,15 @@ import './index.css'
2
2
  import { ElTable, ElTableColumn, ElCheckbox } from 'element-plus/es';
3
3
  import 'element-plus/es/components/base/style/css';
4
4
  import 'element-plus/es/components/table/style/css';
5
- import 'element-plus/es/components/checkbox/style/css';
6
5
  import 'element-plus/es/components/table-column/style/css';
6
+ import 'element-plus/es/components/checkbox/style/css';
7
7
  import { defineComponent, useTemplateRef, useCssModule, shallowRef, computed, ref, watch, onBeforeUnmount, createBlock, createCommentVNode, unref, openBlock, normalizeClass, createSlots, withCtx, renderSlot, createElementVNode, createVNode, nextTick } from 'vue';
8
8
  import { useDraggable } from 'vue-draggable-plus';
9
9
  import { C as Component$3 } from '../choice/choice.mjs';
10
10
  import { C as Component$2 } from '../iconify-icon/iconify-icon.mjs';
11
11
  import { C as Component$4 } from '../input-number/input-number.mjs';
12
12
  import { C as Component$1 } from '../input/input.mjs';
13
+ import { C as Component$5 } from '../select/select.mjs';
13
14
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
14
15
 
15
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -21,7 +22,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
22
  highlightCurrent: { type: Boolean, default: false },
22
23
  height: { default: 320 },
23
24
  emptyColumn: { type: Boolean, default: false },
24
- editable: { type: Boolean, default: false }
25
+ editable: { type: Boolean, default: false },
26
+ formatterNameOptions: {}
25
27
  },
26
28
  emits: ["update:data"],
27
29
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -39,6 +41,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
41
  if (item.fixed) {
40
42
  item.formFixed = [item.fixed];
41
43
  }
44
+ item.formatterName ??= "text";
42
45
  return item;
43
46
  });
44
47
  },
@@ -59,17 +62,24 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
62
  { label: "左", value: "left" },
60
63
  { label: "右", value: "right" }
61
64
  ];
62
- const widthConfig = ref({ width: 240, data: 160, fixed: 120, truncate: 60 });
65
+ const formatterNameOptions = computed(() => {
66
+ return [
67
+ { label: "文本", value: "text" },
68
+ { label: "文本截断", value: "truncate" },
69
+ ...props.formatterNameOptions || []
70
+ ];
71
+ });
72
+ const widthConfig = ref({ width: 240, data: 160, fixed: 120, formatter: 120 });
63
73
  const widthConfigWatch = watch(() => props.size, () => {
64
74
  if (props.size === "small") {
65
- widthConfig.value = { width: 210, data: 140, fixed: 100, truncate: 50 };
75
+ widthConfig.value = { width: 210, data: 140, fixed: 100, formatter: 110 };
66
76
  return;
67
77
  }
68
78
  if (props.size === "default") {
69
- widthConfig.value = { width: 240, data: 160, fixed: 120, truncate: 60 };
79
+ widthConfig.value = { width: 240, data: 160, fixed: 120, formatter: 120 };
70
80
  return;
71
81
  }
72
- widthConfig.value = { width: 260, data: 200, fixed: 140, truncate: 76 };
82
+ widthConfig.value = { width: 260, data: 200, fixed: 140, formatter: 140 };
73
83
  }, { immediate: true });
74
84
  const isFullMode = computed(() => props.mode === "full");
75
85
  function getLabel(row) {
@@ -143,7 +153,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
143
153
  return (_ctx, _cache) => {
144
154
  const _component_ElCheckbox = ElCheckbox;
145
155
  const _component_ElTableColumn = ElTableColumn;
146
- const _component_el_checkbox = ElCheckbox;
147
156
  const _component_ElTable = ElTable;
148
157
  return unref(tableVisible) ? (openBlock(), createBlock(_component_ElTable, {
149
158
  key: 0,
@@ -318,22 +327,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
318
327
  }, 8, ["width"])) : createCommentVNode("", true),
319
328
  unref(isFullMode) ? (openBlock(), createBlock(_component_ElTableColumn, {
320
329
  key: 6,
321
- label: "截断",
322
- width: unref(widthConfig).truncate,
330
+ label: "处理方式",
331
+ width: unref(widthConfig).formatter,
323
332
  align: "center"
324
333
  }, {
325
334
  default: withCtx(({ row }) => [
326
335
  createElementVNode("div", {
327
336
  class: normalizeClass(unref($style)["item-container"])
328
337
  }, [
329
- createVNode(_component_el_checkbox, {
330
- modelValue: row.showOverflowTooltip,
331
- "onUpdate:modelValue": ($event) => row.showOverflowTooltip = $event,
338
+ createVNode(Component$5, {
339
+ modelValue: row.formatterName,
340
+ "onUpdate:modelValue": ($event) => row.formatterName = $event,
341
+ "append-to": unref(tableRef)?.$el,
342
+ options: unref(formatterNameOptions),
332
343
  size: __props.size,
333
- border: "",
334
- class: normalizeClass(unref($style).truncate),
335
- disabled: row.disabled
336
- }, null, 8, ["modelValue", "onUpdate:modelValue", "size", "class", "disabled"])
344
+ disabled: row.disabled,
345
+ width: "84px"
346
+ }, null, 8, ["modelValue", "onUpdate:modelValue", "append-to", "options", "size", "disabled"])
337
347
  ], 2)
338
348
  ]),
339
349
  _: 1
@@ -358,16 +368,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
358
368
  }
359
369
  });
360
370
 
361
- /* unplugin-vue-components disabled */const table = "_table_1vtct_1";
362
- const label = "_label_1vtct_8";
363
- const handle = "_handle_1vtct_29";
364
- const truncate = "_truncate_1vtct_45";
371
+ /* unplugin-vue-components disabled */const table = "_table_basev_1";
372
+ const label = "_label_basev_8";
373
+ const handle = "_handle_basev_29";
365
374
  const style0 = {
366
375
  table: table,
367
376
  label: label,
368
377
  handle: handle,
369
- "item-container": "_item-container_1vtct_33",
370
- truncate: truncate
378
+ "item-container": "_item-container_basev_33"
371
379
  };
372
380
 
373
381
  const cssModules = {
@@ -3,17 +3,17 @@ declare const widthConfig: globalThis.Ref<{
3
3
  width: number;
4
4
  data: number;
5
5
  fixed: number;
6
- truncate: number;
6
+ formatter: number;
7
7
  }, {
8
8
  width: number;
9
9
  data: number;
10
10
  fixed: number;
11
- truncate: number;
11
+ formatter: number;
12
12
  } | {
13
13
  width: number;
14
14
  data: number;
15
15
  fixed: number;
16
- truncate: number;
16
+ formatter: number;
17
17
  }>;
18
18
  declare function init(): void;
19
19
  declare function rerender(): Promise<void>;
@@ -2976,7 +2976,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerColumnTabl
2976
2976
  width: number;
2977
2977
  data: number;
2978
2978
  fixed: number;
2979
- truncate: number;
2979
+ formatter: number;
2980
2980
  };
2981
2981
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2982
2982
  "update:data": (data: IColumnConfig[]) => any;
@@ -1,50 +1,41 @@
1
1
  /* source: src/components/explorer-column-table/explorer-column-table.vue */
2
- div._table_1vtct_1 {
2
+ div._table_basev_1 {
3
3
  flex-grow: 1;
4
4
  height: 100px;
5
5
  --el-table-header-bg-color: var(--el-color-info-light-9);
6
6
  --el-table-row-hover-bg-color: var(--vc-highlight-bg-color, var(--el-fill-color-light));
7
7
  }
8
- ._label_1vtct_8 {
8
+ ._label_basev_8 {
9
9
  display: inline-flex;
10
- width: 100%;
11
10
  align-items: center;
12
- }
13
- ._label_1vtct_8 .el-checkbox {
14
11
  width: 100%;
12
+ }
13
+ ._label_basev_8 .el-checkbox {
15
14
  display: flex;
16
15
  align-items: center;
16
+ width: 100%;
17
17
  }
18
- ._label_1vtct_8 .el-checkbox__label {
18
+ ._label_basev_8 .el-checkbox__label {
19
+ flex-grow: 1;
19
20
  min-width: 0;
20
21
  overflow: hidden;
21
22
  text-overflow: ellipsis;
22
23
  white-space: nowrap;
23
- flex-grow: 1;
24
24
  }
25
- ._label_1vtct_8 .iconify {
25
+ ._label_basev_8 .iconify {
26
26
  margin-left: 4px;
27
27
  }
28
- ._handle_1vtct_29 {
28
+ ._handle_basev_29 {
29
29
  cursor: move;
30
30
  }
31
- ._item-container_1vtct_33 {
31
+ ._item-container_basev_33 {
32
32
  display: inline-flex;
33
- align-items: center;
34
33
  column-gap: 4px;
34
+ align-items: center;
35
+ vertical-align: middle;
35
36
  padding: 1px 0;
36
37
  line-height: 0;
37
- vertical-align: middle;
38
38
  }
39
- ._item-container_1vtct_33 > div {
39
+ ._item-container_basev_33 > div {
40
40
  vertical-align: middle;
41
- }
42
- ._truncate_1vtct_45 {
43
- padding: 0 9px !important;
44
- }
45
- ._truncate_1vtct_45.el-checkbox--small {
46
- padding: 0 7px !important;
47
- }
48
- ._truncate_1vtct_45.el-checkbox--large {
49
- padding: 0 11px !important;
50
41
  }
@@ -3,9 +3,43 @@ import { ElPagination } from 'element-plus/es';
3
3
  import 'element-plus/es/components/base/style/css';
4
4
  import 'element-plus/es/components/pagination/style/css';
5
5
  import { defineComponent, useCssVars, unref, computed, createElementBlock, openBlock, normalizeClass, createCommentVNode, createBlock, renderSlot, mergeProps } from 'vue';
6
- import { i as isNumber } from '../../chunk/nq3VKXVp.mjs';
6
+ import { i as isObjectLike, b as baseGetTag } from '../../chunk/Fo0dZYnz.mjs';
7
7
  import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
8
8
 
9
+ /** `Object#toString` result references. */
10
+ var numberTag = '[object Number]';
11
+
12
+ /**
13
+ * Checks if `value` is classified as a `Number` primitive or object.
14
+ *
15
+ * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
16
+ * classified as numbers, use the `_.isFinite` method.
17
+ *
18
+ * @static
19
+ * @memberOf _
20
+ * @since 0.1.0
21
+ * @category Lang
22
+ * @param {*} value The value to check.
23
+ * @returns {boolean} Returns `true` if `value` is a number, else `false`.
24
+ * @example
25
+ *
26
+ * _.isNumber(3);
27
+ * // => true
28
+ *
29
+ * _.isNumber(Number.MIN_VALUE);
30
+ * // => true
31
+ *
32
+ * _.isNumber(Infinity);
33
+ * // => true
34
+ *
35
+ * _.isNumber('3');
36
+ * // => false
37
+ */
38
+ function isNumber(value) {
39
+ return typeof value == 'number' ||
40
+ (isObjectLike(value) && baseGetTag(value) == numberTag);
41
+ }
42
+
9
43
  const _hoisted_1 = { key: 0 };
10
44
  const _hoisted_2 = { key: 2 };
11
45
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  emits: ["columnEvent", "singleSelectionChange", "multipleSelectionChange", "selectionChange", "selectAll", "loadMore"],
43
43
  setup(__props, { expose: __expose, emit: __emit }) {
44
44
  useCssVars((_ctx) => ({
45
- "v34b07a80": `${_ctx.empty ? "flex" : "none"}`
45
+ "v490937e0": `${_ctx.empty ? "flex" : "none"}`
46
46
  }));
47
47
  const props = __props;
48
48
  const emits = __emit;
@@ -50,7 +50,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
50
  const $style = useCssModule();
51
51
  const tableRef = useTemplateRef("tableRef");
52
52
  const sentinelRef = useTemplateRef("sentinelRef");
53
- const columns = computed(() => state.columnConfig.value.filter(props.columnFilter));
53
+ const columns = computed(() => state.columnConfig.value.filter(props.columnFilter).map((item) => item.formatterName === "truncate" ? { ...item, showOverflowTooltip: true } : item));
54
54
  const scrollLoadEnabled = computed(() => props.scrollLoad && !props.loading && !props.scrollLoadDisabled);
55
55
  const scrollRoot = computed(() => tableRef.value?.scrollBarRef?.wrapRef ?? null);
56
56
  useIntersectionObserver(
@@ -21,7 +21,7 @@ div._table_o4h9r_7 .el-table__column-resize-proxy {
21
21
  border-color: var(--el-color-primary);
22
22
  }
23
23
  div._table_o4h9r_7 .el-table__empty-block {
24
- display: var(--v34b07a80);
24
+ display: var(--v490937e0);
25
25
  }
26
26
  ._selection_o4h9r_27 .cell {
27
27
  display: flex;
@@ -16,6 +16,10 @@ declare function __VLS_template(): {
16
16
  readonly height?: number | string | undefined;
17
17
  readonly emptyColumn?: boolean | undefined;
18
18
  readonly editable?: boolean | undefined;
19
+ readonly formatterNameOptions?: {
20
+ label: string;
21
+ value: string;
22
+ }[] | undefined;
19
23
  readonly "onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
20
24
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
21
25
  $attrs: {
@@ -2982,13 +2986,13 @@ declare function __VLS_template(): {
2982
2986
  width: number;
2983
2987
  data: number;
2984
2988
  fixed: number;
2985
- truncate: number;
2989
+ formatter: number;
2986
2990
  }) => void;
2987
2991
  getWidthConfig: () => {
2988
2992
  width: number;
2989
2993
  data: number;
2990
2994
  fixed: number;
2991
- truncate: number;
2995
+ formatter: number;
2992
2996
  };
2993
2997
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2994
2998
  "update:data": (data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any;
@@ -4505,13 +4509,13 @@ declare function __VLS_template(): {
4505
4509
  width: number;
4506
4510
  data: number;
4507
4511
  fixed: number;
4508
- truncate: number;
4512
+ formatter: number;
4509
4513
  }) => void;
4510
4514
  getWidthConfig: () => {
4511
4515
  width: number;
4512
4516
  data: number;
4513
4517
  fixed: number;
4514
- truncate: number;
4518
+ formatter: number;
4515
4519
  };
4516
4520
  }> & {} & import('vue').ComponentCustomProperties & {} & {
4517
4521
  $slots: {
@@ -4533,6 +4537,10 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
4533
4537
  onConfigConfirm?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
4534
4538
  }>, {
4535
4539
  data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[];
4540
+ formatterNameOptions: {
4541
+ label: string;
4542
+ value: string;
4543
+ }[];
4536
4544
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
4537
4545
  columnTableRef: ({
4538
4546
  $: import('vue').ComponentInternalInstance;
@@ -4545,6 +4553,10 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
4545
4553
  readonly height?: number | string | undefined;
4546
4554
  readonly emptyColumn?: boolean | undefined;
4547
4555
  readonly editable?: boolean | undefined;
4556
+ readonly formatterNameOptions?: {
4557
+ label: string;
4558
+ value: string;
4559
+ }[] | undefined;
4548
4560
  readonly "onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
4549
4561
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
4550
4562
  $attrs: {
@@ -7511,13 +7523,13 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
7511
7523
  width: number;
7512
7524
  data: number;
7513
7525
  fixed: number;
7514
- truncate: number;
7526
+ formatter: number;
7515
7527
  }) => void;
7516
7528
  getWidthConfig: () => {
7517
7529
  width: number;
7518
7530
  data: number;
7519
7531
  fixed: number;
7520
- truncate: number;
7532
+ formatter: number;
7521
7533
  };
7522
7534
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
7523
7535
  "update:data": (data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any;
@@ -9034,13 +9046,13 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
9034
9046
  width: number;
9035
9047
  data: number;
9036
9048
  fixed: number;
9037
- truncate: number;
9049
+ formatter: number;
9038
9050
  }) => void;
9039
9051
  getWidthConfig: () => {
9040
9052
  width: number;
9041
9053
  data: number;
9042
9054
  fixed: number;
9043
- truncate: number;
9055
+ formatter: number;
9044
9056
  };
9045
9057
  }> & {} & import('vue').ComponentCustomProperties & {} & {
9046
9058
  $slots: {
@@ -11,6 +11,10 @@ export interface IExplorerToolsProps {
11
11
  columnSetterSize?: 'small' | 'default' | 'large';
12
12
  columnToStorage?: boolean;
13
13
  columnResetVisible?: boolean;
14
+ columnFormatterNameOptions?: {
15
+ label: string;
16
+ value: string;
17
+ }[];
14
18
  bottomBorder?: boolean;
15
19
  }
16
20
  export interface IExplorerToolsEmits {
@@ -28,6 +32,10 @@ export interface IColumnSetterProps {
28
32
  columnToStorage?: boolean;
29
33
  toolsKey?: string;
30
34
  resetVisible?: boolean;
35
+ formatterNameOptions?: {
36
+ label: string;
37
+ value: string;
38
+ }[];
31
39
  }
32
40
  export interface IColumnSetterEmits {
33
41
  (e: 'update:data', data: IColumnConfig[]): void;
@@ -28,7 +28,8 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
28
28
  size: {},
29
29
  columnToStorage: { type: Boolean },
30
30
  toolsKey: {},
31
- resetVisible: { type: Boolean }
31
+ resetVisible: { type: Boolean },
32
+ formatterNameOptions: { default: () => [] }
32
33
  },
33
34
  emits: ["update:data", "configConfirm", "reset"],
34
35
  setup(__props, { emit: __emit }) {
@@ -136,10 +137,11 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
136
137
  ref: columnTableRef,
137
138
  data: unref(myData),
138
139
  "onUpdate:data": _cache[2] || (_cache[2] = ($event) => isRef(myData) ? myData.value = $event : null),
140
+ "formatter-name-options": __props.formatterNameOptions,
139
141
  size: __props.size,
140
142
  mode: unref(mode),
141
143
  height: 320
142
- }, null, 8, ["data", "size", "mode"])
144
+ }, null, 8, ["data", "formatter-name-options", "size", "mode"])
143
145
  ]),
144
146
  key: "0"
145
147
  } : void 0
@@ -148,13 +150,13 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
148
150
  }
149
151
  });
150
152
 
151
- /* unplugin-vue-components disabled */const header = "_header_8k9xf_1";
152
- const segmented = "_segmented_8k9xf_13";
153
- const reset = "_reset_8k9xf_17";
154
- const divider = "_divider_8k9xf_21";
153
+ /* unplugin-vue-components disabled */const header = "_header_7xy5t_1";
154
+ const segmented = "_segmented_7xy5t_13";
155
+ const reset = "_reset_7xy5t_17";
156
+ const divider = "_divider_7xy5t_21";
155
157
  const style0$1 = {
156
158
  header: header,
157
- "mode-wrapper": "_mode-wrapper_8k9xf_7",
159
+ "mode-wrapper": "_mode-wrapper_7xy5t_7",
158
160
  segmented: segmented,
159
161
  reset: reset,
160
162
  divider: divider
@@ -179,6 +181,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
179
181
  columnSetterSize: { default: "small" },
180
182
  columnToStorage: { type: Boolean },
181
183
  columnResetVisible: { type: Boolean, default: true },
184
+ columnFormatterNameOptions: { default: () => [] },
182
185
  bottomBorder: { type: Boolean }
183
186
  },
184
187
  emits: ["refresh", "fullscreen", "search", "layout", "create", "configConfirm", "columnReset"],
@@ -304,6 +307,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
304
307
  size: __props.columnSetterSize,
305
308
  "column-to-storage": __props.columnToStorage,
306
309
  "reset-visible": __props.columnResetVisible,
310
+ "formatter-name-options": __props.columnFormatterNameOptions,
307
311
  onConfigConfirm: _cache[6] || (_cache[6] = (val) => emits("configConfirm", val)),
308
312
  onReset: _cache[7] || (_cache[7] = ($event) => emits("columnReset"))
309
313
  }, {
@@ -317,7 +321,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
317
321
  }, null, 8, ["class", "throttle"])
318
322
  ]),
319
323
  _: 1
320
- }, 8, ["data", "tools-key", "size", "column-to-storage", "reset-visible"])) : createCommentVNode("", true)
324
+ }, 8, ["data", "tools-key", "size", "column-to-storage", "reset-visible", "formatter-name-options"])) : createCommentVNode("", true)
321
325
  ], 64);
322
326
  }), 128))
323
327
  ], 2)) : createCommentVNode("", true)
@@ -326,13 +330,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
326
330
  }
327
331
  });
328
332
 
329
- /* unplugin-vue-components disabled */const buttons = "_buttons_1m5u8_15";
330
- const tools = "_tools_1m5u8_24";
331
- const layout = "_layout_1m5u8_35";
332
- const fullscreen = "_fullscreen_1m5u8_40";
333
+ /* unplugin-vue-components disabled */const buttons = "_buttons_tlzkv_15";
334
+ const tools = "_tools_tlzkv_24";
335
+ const layout = "_layout_tlzkv_35";
336
+ const fullscreen = "_fullscreen_tlzkv_40";
333
337
  const style0 = {
334
- "explorer-tools": "_explorer-tools_1m5u8_1",
335
- "bottom-border": "_bottom-border_1m5u8_10",
338
+ "explorer-tools": "_explorer-tools_tlzkv_1",
339
+ "bottom-border": "_bottom-border_tlzkv_10",
336
340
  buttons: buttons,
337
341
  tools: tools,
338
342
  layout: layout,
@@ -34,6 +34,10 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerToolsProps
34
34
  createText: string;
35
35
  columnSetterSize: "small" | "default" | "large";
36
36
  columnResetVisible: boolean;
37
+ columnFormatterNameOptions: {
38
+ label: string;
39
+ value: string;
40
+ }[];
37
41
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
38
42
  declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
39
43
  export default _default;
@@ -1,64 +1,64 @@
1
1
  /* source: src/components/explorer-tools/components/column-setter.vue,src/components/explorer-tools/explorer-tools.vue */
2
- ._header_8k9xf_1 {
2
+ ._header_7xy5t_1 {
3
3
  display: flex;
4
4
  justify-content: space-between;
5
5
  align-items: center;
6
6
  }
7
- ._mode-wrapper_8k9xf_7 {
7
+ ._mode-wrapper_7xy5t_7 {
8
8
  display: flex;
9
- align-items: center;
10
9
  column-gap: 8px;
10
+ align-items: center;
11
11
  }
12
- ._segmented_8k9xf_13 .el-segmented__item-label {
12
+ ._segmented_7xy5t_13 .el-segmented__item-label {
13
13
  line-height: 1;
14
14
  }
15
- ._reset_8k9xf_17 {
15
+ ._reset_7xy5t_17 {
16
16
  height: 28px;
17
17
  }
18
- div._divider_8k9xf_21 {
18
+ div._divider_7xy5t_21 {
19
19
  margin: 8px 0;
20
- }._explorer-tools_1m5u8_1 {
20
+ }._explorer-tools_tlzkv_1 {
21
21
  display: flex;
22
- align-items: center;
23
- justify-content: space-between;
24
- padding: 0 0 8px 0;
25
- flex-wrap: wrap;
26
22
  row-gap: 8px;
23
+ flex-wrap: wrap;
24
+ justify-content: space-between;
25
+ align-items: center;
27
26
  box-sizing: border-box;
27
+ padding: 0 0 8px 0;
28
28
  }
29
- ._explorer-tools_1m5u8_1._bottom-border_1m5u8_10 {
30
- border-bottom: 1px solid var(--el-border-color-lighter);
29
+ ._explorer-tools_tlzkv_1._bottom-border_tlzkv_10 {
31
30
  margin-bottom: 8px;
31
+ border-bottom: 1px solid var(--el-border-color-lighter);
32
32
  }
33
- ._buttons_1m5u8_15 {
33
+ ._buttons_tlzkv_15 {
34
34
  display: flex;
35
- align-items: center;
36
35
  column-gap: 8px;
36
+ align-items: center;
37
37
  }
38
- ._buttons_1m5u8_15 button {
38
+ ._buttons_tlzkv_15 button {
39
39
  margin-left: 0 !important;
40
40
  }
41
- ._tools_1m5u8_24 {
41
+ ._tools_tlzkv_24 {
42
42
  display: flex;
43
- align-items: center;
44
43
  column-gap: 8px;
44
+ align-items: center;
45
45
  }
46
- ._tools_1m5u8_24 button.vc-icon-button {
46
+ ._tools_tlzkv_24 button.vc-icon-button {
47
+ margin-left: 0 !important;
47
48
  padding: 4px;
48
49
  font-size: 18px;
49
- margin-left: 0 !important;
50
50
  }
51
- ._layout_1m5u8_35 .el-radio-button__inner {
51
+ ._layout_tlzkv_35 .el-radio-button__inner {
52
52
  padding: 6px 8px;
53
53
  font-size: 18px;
54
54
  }
55
- ._fullscreen_1m5u8_40 {
55
+ ._fullscreen_tlzkv_40 {
56
56
  position: fixed !important;
57
- background-color: var(--el-bg-color) !important;
58
57
  top: 0 !important;
59
- left: 0 !important;
60
58
  right: 0 !important;
61
59
  bottom: 0 !important;
60
+ left: 0 !important;
61
+ background-color: var(--el-bg-color) !important;
62
62
  width: 100% !important;
63
63
  height: 100% !important;
64
64
  }
@@ -1,6 +1,6 @@
1
1
  import { w as withInstall } from '../../chunk/DZ5W9TaA.mjs';
2
- import { C as Component } from './thousand-separator.mjs';
2
+ import { _ as _sfc_main } from './thousand-separator.mjs';
3
3
 
4
- const VcThousandSeparator = withInstall(Component);
4
+ const VcThousandSeparator = withInstall(_sfc_main);
5
5
 
6
6
  export { VcThousandSeparator, VcThousandSeparator as default };
@@ -1,75 +1,73 @@
1
- import './index.css'
2
- import { defineComponent, computed, createElementBlock, openBlock, normalizeClass, toDisplayString, unref } from 'vue';
3
- import { i as isNumber } from '../../chunk/nq3VKXVp.mjs';
4
- import { r as root } from '../../chunk/Fo0dZYnz.mjs';
5
- import { _ as _export_sfc } from '../../chunk/pcqpp-6-.mjs';
1
+ import { defineComponent, computed, createElementBlock, openBlock, toDisplayString, unref } from 'vue';
2
+ import '../../chunk/D9iEroQw.mjs';
6
3
 
7
- /* Built-in method references for those with the same name as other `lodash` methods. */
8
- var nativeIsFinite = root.isFinite;
9
-
10
- /**
11
- * Checks if `value` is a finite primitive number.
12
- *
13
- * **Note:** This method is based on
14
- * [`Number.isFinite`](https://mdn.io/Number/isFinite).
15
- *
16
- * @static
17
- * @memberOf _
18
- * @since 0.1.0
19
- * @category Lang
20
- * @param {*} value The value to check.
21
- * @returns {boolean} Returns `true` if `value` is a finite number, else `false`.
22
- * @example
23
- *
24
- * _.isFinite(3);
25
- * // => true
26
- *
27
- * _.isFinite(Number.MIN_VALUE);
28
- * // => true
29
- *
30
- * _.isFinite(Infinity);
31
- * // => false
32
- *
33
- * _.isFinite('3');
34
- * // => false
35
- */
36
- function isFinite(value) {
37
- return typeof value == 'number' && nativeIsFinite(value);
4
+ function thousandSeparator(value, options = {}) {
5
+ if (value === null || value === void 0 || value === "") {
6
+ return "";
7
+ }
8
+ const separator = options.separator ?? ",";
9
+ const decimalPlaces = options.decimalPlaces ?? 0;
10
+ if (typeof value === "string") {
11
+ const cleanStr = value.split(separator).join("").trim();
12
+ if (/^[+-]?(?:\d+(?:\.\d*)?|\.\d+)$/.test(cleanStr)) {
13
+ return formatNumericString(cleanStr, separator, decimalPlaces);
14
+ }
15
+ const num = Number.parseFloat(cleanStr);
16
+ if (Number.isNaN(num)) {
17
+ return value;
18
+ }
19
+ return formatNumber(num, separator, decimalPlaces);
20
+ }
21
+ return formatNumber(value, separator, decimalPlaces);
38
22
  }
39
-
40
- /**
41
- * Checks if `value` is `NaN`.
42
- *
43
- * **Note:** This method is based on
44
- * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as
45
- * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for
46
- * `undefined` and other non-number values.
47
- *
48
- * @static
49
- * @memberOf _
50
- * @since 0.1.0
51
- * @category Lang
52
- * @param {*} value The value to check.
53
- * @returns {boolean} Returns `true` if `value` is `NaN`, else `false`.
54
- * @example
55
- *
56
- * _.isNaN(NaN);
57
- * // => true
58
- *
59
- * _.isNaN(new Number(NaN));
60
- * // => true
61
- *
62
- * isNaN(undefined);
63
- * // => true
64
- *
65
- * _.isNaN(undefined);
66
- * // => false
67
- */
68
- function isNaN(value) {
69
- // An `NaN` primitive is the only value that is not equal to itself.
70
- // Perform the `toStringTag` check first to avoid errors with some
71
- // ActiveX objects in IE.
72
- return isNumber(value) && value != +value;
23
+ function formatNumber(num, separator, decimalPlaces) {
24
+ if (!Number.isFinite(num))
25
+ return String(num);
26
+ const safeNum = Object.is(num, -0) ? 0 : num;
27
+ const formatter = new Intl.NumberFormat("en-US", buildOptions(safeNum, decimalPlaces));
28
+ return formatter.formatToParts(safeNum).map((part) => part.type === "group" ? separator : part.value).join("");
29
+ }
30
+ function buildOptions(num, decimalPlaces) {
31
+ if (decimalPlaces < 0) {
32
+ const decimalLength = (String(Math.abs(num)).split(".")[1] ?? "").length;
33
+ return {
34
+ useGrouping: true,
35
+ minimumFractionDigits: 0,
36
+ maximumFractionDigits: decimalLength
37
+ };
38
+ }
39
+ return {
40
+ useGrouping: true,
41
+ minimumFractionDigits: decimalPlaces,
42
+ maximumFractionDigits: decimalPlaces
43
+ };
44
+ }
45
+ function formatNumericString(cleanStr, separator, decimalPlaces) {
46
+ const negative = cleanStr.startsWith("-");
47
+ const s = negative || cleanStr.startsWith("+") ? cleanStr.slice(1) : cleanStr;
48
+ let [intPart = "0", decPart = ""] = s.split(".");
49
+ intPart = intPart.replace(/^0+(?=\d)/, "") || "0";
50
+ if (decimalPlaces >= 0) {
51
+ const keep = decimalPlaces;
52
+ const nextDigit = decPart[keep];
53
+ let kept = decPart.slice(0, keep);
54
+ if (nextDigit && nextDigit >= "5") {
55
+ const combined = BigInt(intPart + kept.padEnd(keep, "0")) + BigInt(1);
56
+ const str = combined.toString().padStart(intPart.length + keep, "0");
57
+ if (keep === 0) {
58
+ intPart = str;
59
+ kept = "";
60
+ } else {
61
+ intPart = str.slice(0, -keep);
62
+ kept = str.slice(-keep);
63
+ }
64
+ }
65
+ decPart = kept.padEnd(keep, "0");
66
+ }
67
+ const groupedInt = intPart.replace(/\B(?=(\d{3})+(?!\d))/g, separator);
68
+ const dec = decPart ? `.${decPart}` : "";
69
+ const isZero = intPart === "0" && !/[1-9]/.test(decPart);
70
+ return (negative && !isZero ? "-" : "") + groupedInt + dec;
73
71
  }
74
72
 
75
73
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -82,61 +80,19 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
82
80
  },
83
81
  setup(__props) {
84
82
  const props = __props;
85
- function formatNumber(num) {
86
- if (!isFinite(num))
87
- return String(num);
88
- const parts = num.toString().split(".");
89
- let integerPart = parts[0];
90
- const decimalPart = parts.length > 1 ? `.${parts[1]}` : "";
91
- const isNegative = integerPart.startsWith("-");
92
- if (isNegative) {
93
- integerPart = integerPart.slice(1);
94
- }
95
- const formattedInteger = integerPart.replace(/\B(?=(\d{3})+(?!\d))/g, props.separator);
96
- let finalDecimal = decimalPart;
97
- if (props.decimalPlaces === 0) {
98
- finalDecimal = "";
99
- } else if (props.decimalPlaces > 0) {
100
- finalDecimal = `.${num.toFixed(props.decimalPlaces).split(".")[1]}`;
101
- }
102
- return (isNegative ? "-" : "") + formattedInteger + finalDecimal;
103
- }
104
83
  const formattedValue = computed(() => {
105
84
  if (props.value === null || props.value === void 0 || props.value === "") {
106
85
  return props.placeholder;
107
86
  }
108
- let num;
109
- if (typeof props.value === "string") {
110
- const cleanStr = props.value.replace(new RegExp(`\\${props.separator}`, "g"), "");
111
- num = Number.parseFloat(cleanStr);
112
- } else {
113
- num = props.value;
114
- }
115
- if (isNaN(num)) {
116
- return String(props.value);
117
- }
118
- return formatNumber(num);
87
+ return thousandSeparator(props.value, {
88
+ separator: props.separator,
89
+ decimalPlaces: props.decimalPlaces
90
+ });
119
91
  });
120
92
  return (_ctx, _cache) => {
121
- return openBlock(), createElementBlock("span", {
122
- class: normalizeClass(_ctx.$style["thousand-separator"])
123
- }, toDisplayString(unref(formattedValue)), 3);
93
+ return openBlock(), createElementBlock("span", null, toDisplayString(unref(formattedValue)), 1);
124
94
  };
125
95
  }
126
96
  });
127
97
 
128
- /* unplugin-vue-components disabled */const style0 = {
129
- "thousand-separator": "_thousand-separator_1s3bf_2"
130
- };
131
-
132
- const cssModules = {
133
- "$style": style0
134
- };
135
- const Component = /* @__PURE__ */ _export_sfc(_sfc_main, [["__cssModules", cssModules]]);
136
-
137
- const __vite_glob_0_57 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
138
- __proto__: null,
139
- default: Component
140
- }, Symbol.toStringTag, { value: 'Module' }));
141
-
142
- export { Component as C, __vite_glob_0_57 as _ };
98
+ export { _sfc_main as _ };
package/dist/es/index.mjs CHANGED
@@ -103,8 +103,7 @@ import { _ as __vite_glob_0_55 } from './components/text-ellipsis/text-ellipsis.
103
103
  export { C as VcTextEllipsis } from './components/text-ellipsis/text-ellipsis.mjs';
104
104
  import { _ as __vite_glob_0_56 } from './components/thousand-input/thousand-input.mjs';
105
105
  export { C as VcThousandInput } from './components/thousand-input/thousand-input.mjs';
106
- import { _ as __vite_glob_0_57 } from './components/thousand-separator/thousand-separator.mjs';
107
- export { C as VcThousandSeparator } from './components/thousand-separator/thousand-separator.mjs';
106
+ import { _ as _sfc_main$9 } from './components/thousand-separator/thousand-separator.mjs';
108
107
  import { _ as __vite_glob_0_58 } from './components/tinymce/tinymce.mjs';
109
108
  export { C as VcTinymce } from './components/tinymce/tinymce.mjs';
110
109
  import { _ as __vite_glob_0_59 } from './components/transfer-panel/transfer-panel.mjs';
@@ -166,7 +165,12 @@ const __vite_glob_0_50 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
166
165
  default: _sfc_main$8
167
166
  }, Symbol.toStringTag, { value: 'Module' }));
168
167
 
169
- const version = "1.14.0";
168
+ const __vite_glob_0_57 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.defineProperty({
169
+ __proto__: null,
170
+ default: _sfc_main$9
171
+ }, Symbol.toStringTag, { value: 'Module' }));
172
+
173
+ const version = "1.14.2";
170
174
 
171
175
  const modules = /* #__PURE__ */ Object.assign({"./components/awesome-icon/awesome-icon.vue": __vite_glob_0_0,"./components/backbottom/backbottom.vue": __vite_glob_0_1,"./components/button/button.vue": __vite_glob_0_2,"./components/chat-container/chat-container.vue": __vite_glob_0_3,"./components/choice-boolean/choice-boolean.vue": __vite_glob_0_4,"./components/choice/choice.vue": __vite_glob_0_5,"./components/color-switch/color-switch.vue": __vite_glob_0_6,"./components/config-provider/config-provider.vue": __vite_glob_0_7,"./components/cropper/cropper.vue": __vite_glob_0_8,"./components/currency/currency.vue": __vite_glob_0_9,"./components/dark-switch/dark-switch.vue": __vite_glob_0_10,"./components/daterange-picker/daterange-picker.vue": __vite_glob_0_11,"./components/dialog-camera-upload/dialog-camera-upload.vue": __vite_glob_0_12,"./components/dialog-map-point/dialog-map-point.vue": __vite_glob_0_13,"./components/dialog-upload-images/dialog-upload-images.vue": __vite_glob_0_14,"./components/dialog/dialog.vue": __vite_glob_0_15,"./components/drag-verify/drag-verify.vue": __vite_glob_0_16,"./components/drawer/drawer.vue": __vite_glob_0_17,"./components/easy-pagination/easy-pagination.vue": __vite_glob_0_18,"./components/el-icon/el-icon.vue": __vite_glob_0_19,"./components/explorer-column-table/explorer-column-table.vue": __vite_glob_0_20,"./components/explorer-container/explorer-container.vue": __vite_glob_0_21,"./components/explorer-filter/explorer-filter.vue": __vite_glob_0_22,"./components/explorer-footer/explorer-footer.vue": __vite_glob_0_23,"./components/explorer-form/explorer-form.vue": __vite_glob_0_24,"./components/explorer-list/explorer-list.vue": __vite_glob_0_25,"./components/explorer-modal-form/explorer-modal-form.vue": __vite_glob_0_26,"./components/explorer-panel/explorer-panel.vue": __vite_glob_0_27,"./components/explorer-query/explorer-query.vue": __vite_glob_0_28,"./components/explorer-table/explorer-table.vue": __vite_glob_0_29,"./components/explorer-tools/explorer-tools.vue": __vite_glob_0_30,"./components/explorer-tree/explorer-tree.vue": __vite_glob_0_31,"./components/explorer/explorer.vue": __vite_glob_0_32,"./components/flag/flag.vue": __vite_glob_0_33,"./components/form-item/form-item.vue": __vite_glob_0_34,"./components/gen-input/gen-input.vue": __vite_glob_0_35,"./components/icon-picker/icon-picker.vue": __vite_glob_0_36,"./components/icon/icon.vue": __vite_glob_0_37,"./components/iconify-icon/iconify-icon.vue": __vite_glob_0_38,"./components/image/image.vue": __vite_glob_0_39,"./components/info-tooltip/info-tooltip.vue": __vite_glob_0_40,"./components/input-number/input-number.vue": __vite_glob_0_41,"./components/input/input.vue": __vite_glob_0_42,"./components/pca-picker/pca-picker.vue": __vite_glob_0_43,"./components/qr-code/qr-code.vue": __vite_glob_0_44,"./components/screenfull/screenfull.vue": __vite_glob_0_45,"./components/scrollbar/scrollbar.vue": __vite_glob_0_46,"./components/select/select.vue": __vite_glob_0_47,"./components/single-player/single-player.vue": __vite_glob_0_48,"./components/splitter-panel/splitter-panel.vue": __vite_glob_0_49,"./components/splitter/splitter.vue": __vite_glob_0_50,"./components/svg-icon/svg-icon.vue": __vite_glob_0_51,"./components/switch/switch.vue": __vite_glob_0_52,"./components/sync-scroll-container/sync-scroll-container.vue": __vite_glob_0_53,"./components/tags/tags.vue": __vite_glob_0_54,"./components/text-ellipsis/text-ellipsis.vue": __vite_glob_0_55,"./components/thousand-input/thousand-input.vue": __vite_glob_0_56,"./components/thousand-separator/thousand-separator.vue": __vite_glob_0_57,"./components/tinymce/tinymce.vue": __vite_glob_0_58,"./components/transfer-panel/transfer-panel.vue": __vite_glob_0_59,"./components/transfer/transfer.vue": __vite_glob_0_60,"./components/tree-picker/tree-picker.vue": __vite_glob_0_61,"./components/tree-select/tree-select.vue": __vite_glob_0_62,"./components/upload-file/upload-file.vue": __vite_glob_0_63});
172
176
  const upper = (_, letter) => letter.toUpperCase();
@@ -186,4 +190,4 @@ const index = {
186
190
  install
187
191
  };
188
192
 
189
- export { _sfc_main as VcAwesomeIcon, _sfc_main$1 as VcBackbottom, _sfc_main$3 as VcChoiceBoolean, _sfc_main$4 as VcConfigProvider, _sfc_main$6 as VcDaterangePicker, _sfc_main$5 as VcFlag, _sfc_main$2 as VcIcon, _sfc_main$7 as VcQrCode, _sfc_main$8 as VcSplitter, index as default };
193
+ export { _sfc_main as VcAwesomeIcon, _sfc_main$1 as VcBackbottom, _sfc_main$3 as VcChoiceBoolean, _sfc_main$4 as VcConfigProvider, _sfc_main$6 as VcDaterangePicker, _sfc_main$5 as VcFlag, _sfc_main$2 as VcIcon, _sfc_main$7 as VcQrCode, _sfc_main$8 as VcSplitter, _sfc_main$9 as VcThousandSeparator, index as default };
package/dist/index.css CHANGED
@@ -525,55 +525,46 @@ div._main_16nf4_1 ._header_16nf4_50 h4 {
525
525
  vertical-align: -0.17em;
526
526
  }
527
527
  /* source: src/components/explorer-column-table/explorer-column-table.vue */
528
- div._table_1vtct_1 {
528
+ div._table_basev_1 {
529
529
  flex-grow: 1;
530
530
  height: 100px;
531
531
  --el-table-header-bg-color: var(--el-color-info-light-9);
532
532
  --el-table-row-hover-bg-color: var(--vc-highlight-bg-color, var(--el-fill-color-light));
533
533
  }
534
- ._label_1vtct_8 {
534
+ ._label_basev_8 {
535
535
  display: inline-flex;
536
- width: 100%;
537
536
  align-items: center;
538
- }
539
- ._label_1vtct_8 .el-checkbox {
540
537
  width: 100%;
538
+ }
539
+ ._label_basev_8 .el-checkbox {
541
540
  display: flex;
542
541
  align-items: center;
542
+ width: 100%;
543
543
  }
544
- ._label_1vtct_8 .el-checkbox__label {
544
+ ._label_basev_8 .el-checkbox__label {
545
+ flex-grow: 1;
545
546
  min-width: 0;
546
547
  overflow: hidden;
547
548
  text-overflow: ellipsis;
548
549
  white-space: nowrap;
549
- flex-grow: 1;
550
550
  }
551
- ._label_1vtct_8 .iconify {
551
+ ._label_basev_8 .iconify {
552
552
  margin-left: 4px;
553
553
  }
554
- ._handle_1vtct_29 {
554
+ ._handle_basev_29 {
555
555
  cursor: move;
556
556
  }
557
- ._item-container_1vtct_33 {
557
+ ._item-container_basev_33 {
558
558
  display: inline-flex;
559
- align-items: center;
560
559
  column-gap: 4px;
560
+ align-items: center;
561
+ vertical-align: middle;
561
562
  padding: 1px 0;
562
563
  line-height: 0;
563
- vertical-align: middle;
564
564
  }
565
- ._item-container_1vtct_33 > div {
565
+ ._item-container_basev_33 > div {
566
566
  vertical-align: middle;
567
567
  }
568
- ._truncate_1vtct_45 {
569
- padding: 0 9px !important;
570
- }
571
- ._truncate_1vtct_45.el-checkbox--small {
572
- padding: 0 7px !important;
573
- }
574
- ._truncate_1vtct_45.el-checkbox--large {
575
- padding: 0 11px !important;
576
- }
577
568
  /* source: src/components/explorer-container/explorer-container.vue */
578
569
  ._explorer-container_1xzxe_1 {
579
570
  display: flex;
@@ -822,7 +813,7 @@ div._table_o4h9r_7 .el-table__column-resize-proxy {
822
813
  border-color: var(--el-color-primary);
823
814
  }
824
815
  div._table_o4h9r_7 .el-table__empty-block {
825
- display: var(--v34b07a80);
816
+ display: var(--v490937e0);
826
817
  }
827
818
  ._selection_o4h9r_27 .cell {
828
819
  display: flex;
@@ -851,66 +842,66 @@ div._table_o4h9r_7 .el-table__empty-block {
851
842
  height: 0;
852
843
  }
853
844
  /* source: src/components/explorer-tools/components/column-setter.vue,src/components/explorer-tools/explorer-tools.vue */
854
- ._header_8k9xf_1 {
845
+ ._header_7xy5t_1 {
855
846
  display: flex;
856
847
  justify-content: space-between;
857
848
  align-items: center;
858
849
  }
859
- ._mode-wrapper_8k9xf_7 {
850
+ ._mode-wrapper_7xy5t_7 {
860
851
  display: flex;
861
- align-items: center;
862
852
  column-gap: 8px;
853
+ align-items: center;
863
854
  }
864
- ._segmented_8k9xf_13 .el-segmented__item-label {
855
+ ._segmented_7xy5t_13 .el-segmented__item-label {
865
856
  line-height: 1;
866
857
  }
867
- ._reset_8k9xf_17 {
858
+ ._reset_7xy5t_17 {
868
859
  height: 28px;
869
860
  }
870
- div._divider_8k9xf_21 {
861
+ div._divider_7xy5t_21 {
871
862
  margin: 8px 0;
872
- }._explorer-tools_1m5u8_1 {
863
+ }._explorer-tools_tlzkv_1 {
873
864
  display: flex;
874
- align-items: center;
875
- justify-content: space-between;
876
- padding: 0 0 8px 0;
877
- flex-wrap: wrap;
878
865
  row-gap: 8px;
866
+ flex-wrap: wrap;
867
+ justify-content: space-between;
868
+ align-items: center;
879
869
  box-sizing: border-box;
870
+ padding: 0 0 8px 0;
880
871
  }
881
- ._explorer-tools_1m5u8_1._bottom-border_1m5u8_10 {
882
- border-bottom: 1px solid var(--el-border-color-lighter);
872
+ ._explorer-tools_tlzkv_1._bottom-border_tlzkv_10 {
883
873
  margin-bottom: 8px;
874
+ border-bottom: 1px solid var(--el-border-color-lighter);
884
875
  }
885
- ._buttons_1m5u8_15 {
876
+ ._buttons_tlzkv_15 {
886
877
  display: flex;
887
- align-items: center;
888
878
  column-gap: 8px;
879
+ align-items: center;
889
880
  }
890
- ._buttons_1m5u8_15 button {
881
+ ._buttons_tlzkv_15 button {
891
882
  margin-left: 0 !important;
892
883
  }
893
- ._tools_1m5u8_24 {
884
+ ._tools_tlzkv_24 {
894
885
  display: flex;
895
- align-items: center;
896
886
  column-gap: 8px;
887
+ align-items: center;
897
888
  }
898
- ._tools_1m5u8_24 button.vc-icon-button {
889
+ ._tools_tlzkv_24 button.vc-icon-button {
890
+ margin-left: 0 !important;
899
891
  padding: 4px;
900
892
  font-size: 18px;
901
- margin-left: 0 !important;
902
893
  }
903
- ._layout_1m5u8_35 .el-radio-button__inner {
894
+ ._layout_tlzkv_35 .el-radio-button__inner {
904
895
  padding: 6px 8px;
905
896
  font-size: 18px;
906
897
  }
907
- ._fullscreen_1m5u8_40 {
898
+ ._fullscreen_tlzkv_40 {
908
899
  position: fixed !important;
909
- background-color: var(--el-bg-color) !important;
910
900
  top: 0 !important;
911
- left: 0 !important;
912
901
  right: 0 !important;
913
902
  bottom: 0 !important;
903
+ left: 0 !important;
904
+ background-color: var(--el-bg-color) !important;
914
905
  width: 100% !important;
915
906
  height: 100% !important;
916
907
  }
@@ -1626,12 +1617,6 @@ span._draggable_1tp7v_5 > * {
1626
1617
  ._main_m3b07_1 .el-input__wrapper input {
1627
1618
  text-align: right;
1628
1619
  }
1629
- /* source: src/components/thousand-separator/thousand-separator.vue */
1630
- @charset "UTF-8";
1631
- ._thousand-separator_1s3bf_2 {
1632
- font-variant-numeric: tabular-nums;
1633
- /* 可选:继承父元素样式,无需额外样式 */
1634
- }
1635
1620
  /* source: src/components/tinymce/tinymce.vue */
1636
1621
  ._tinymce_aa7a3_1 {
1637
1622
  width: 100%;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfrog/vc-ui",
3
- "version": "1.14.0",
3
+ "version": "1.14.2",
4
4
  "packageManager": "pnpm@10.20.0",
5
5
  "description": "vue3 组件库 vc-ui",
6
6
  "author": "wellfrog",
@@ -1,37 +0,0 @@
1
- import { i as isObjectLike, b as baseGetTag } from './Fo0dZYnz.mjs';
2
-
3
- /** `Object#toString` result references. */
4
- var numberTag = '[object Number]';
5
-
6
- /**
7
- * Checks if `value` is classified as a `Number` primitive or object.
8
- *
9
- * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are
10
- * classified as numbers, use the `_.isFinite` method.
11
- *
12
- * @static
13
- * @memberOf _
14
- * @since 0.1.0
15
- * @category Lang
16
- * @param {*} value The value to check.
17
- * @returns {boolean} Returns `true` if `value` is a number, else `false`.
18
- * @example
19
- *
20
- * _.isNumber(3);
21
- * // => true
22
- *
23
- * _.isNumber(Number.MIN_VALUE);
24
- * // => true
25
- *
26
- * _.isNumber(Infinity);
27
- * // => true
28
- *
29
- * _.isNumber('3');
30
- * // => false
31
- */
32
- function isNumber(value) {
33
- return typeof value == 'number' ||
34
- (isObjectLike(value) && baseGetTag(value) == numberTag);
35
- }
36
-
37
- export { isNumber as i };
@@ -1,6 +0,0 @@
1
- /* source: src/components/thousand-separator/thousand-separator.vue */
2
- @charset "UTF-8";
3
- ._thousand-separator_1s3bf_2 {
4
- font-variant-numeric: tabular-nums;
5
- /* 可选:继承父元素样式,无需额外样式 */
6
- }