@wfrog/vc-ui 1.13.0 → 1.13.1

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.
@@ -25,7 +25,7 @@ export interface IExplorerTableProps {
25
25
  }
26
26
  export interface IExplorerTableEmits {
27
27
  (e: 'columnEvent', column: IColumnConfig, row: Record<string, any>, value: Record<string, any>): void;
28
- (e: 'singleSelectionChange', row: Record<string, any>): void;
28
+ (e: 'singleSelectionChange', row: Record<string, any>, value: string | number): void;
29
29
  (e: 'multipleSelectionChange', row: Record<string, any>, values: Array<string | number>): void;
30
30
  (e: 'selectionChange', rows: Record<string, any>[]): void;
31
31
  (e: 'selectAll', checked: boolean, values: Array<string | number>): void;
@@ -36,7 +36,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
36
36
  emits: ["columnEvent", "singleSelectionChange", "multipleSelectionChange", "selectionChange", "selectAll"],
37
37
  setup(__props, { expose: __expose, emit: __emit }) {
38
38
  useCssVars((_ctx) => ({
39
- "dc3c53f8": `${_ctx.empty ? "flex" : "none"}`
39
+ "v36843294": `${_ctx.empty ? "flex" : "none"}`
40
40
  }));
41
41
  const props = __props;
42
42
  const emits = __emit;
@@ -53,7 +53,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
53
53
  if (!isMultipleSelection.value) {
54
54
  return false;
55
55
  }
56
- return selectedValues.value.size === props.data.length;
56
+ return selectedValues.value.size > 0 && Array.from(selectedValues.value).every((value) => props.data.some((row) => getRowValue(row) === value));
57
57
  },
58
58
  set(val) {
59
59
  if (!isMultipleSelection.value) {
@@ -69,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
69
  if (!isMultipleSelection.value || !props.data.length) {
70
70
  return false;
71
71
  }
72
- return selectedValues.value.size > 0 && selectedValues.value.size < props.data.length;
72
+ return selectedValues.value.size > 0 && selectedValues.value.size < props.data.length && Array.from(selectedValues.value).some((value) => props.data.some((row) => getRowValue(row) !== value));
73
73
  });
74
74
  function getRowValue(row) {
75
75
  if (!row || !props.rowKey)
@@ -86,7 +86,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
86
  const value = getRowValue(row);
87
87
  if (selectedValue.value !== value) {
88
88
  selectedValue.value = value;
89
- emits("singleSelectionChange", row);
89
+ emits("singleSelectionChange", row, selectedValue.value);
90
90
  }
91
91
  }
92
92
  async function handleCheckboxClick(row) {
@@ -2966,13 +2966,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerTableProps
2966
2966
  }> | null>>;
2967
2967
  }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
2968
2968
  columnEvent: (column: IColumnConfig, row: Record<string, any>, value: Record<string, any>) => any;
2969
- singleSelectionChange: (row: Record<string, any>) => any;
2969
+ singleSelectionChange: (row: Record<string, any>, value: string | number) => any;
2970
2970
  multipleSelectionChange: (row: Record<string, any>, values: (string | number)[]) => any;
2971
2971
  selectionChange: (rows: Record<string, any>[]) => any;
2972
2972
  selectAll: (checked: boolean, values: (string | number)[]) => any;
2973
2973
  }, string, import('vue').PublicProps, Readonly<IExplorerTableProps> & Readonly<{
2974
2974
  onColumnEvent?: ((column: IColumnConfig, row: Record<string, any>, value: Record<string, any>) => any) | undefined;
2975
- onSingleSelectionChange?: ((row: Record<string, any>) => any) | undefined;
2975
+ onSingleSelectionChange?: ((row: Record<string, any>, value: string | number) => any) | undefined;
2976
2976
  onMultipleSelectionChange?: ((row: Record<string, any>, values: (string | number)[]) => any) | undefined;
2977
2977
  onSelectionChange?: ((rows: Record<string, any>[]) => any) | undefined;
2978
2978
  onSelectAll?: ((checked: boolean, values: (string | number)[]) => any) | undefined;
@@ -21,7 +21,7 @@ div._table_1dvo4_7 .el-table__column-resize-proxy {
21
21
  border-color: var(--el-color-primary);
22
22
  }
23
23
  div._table_1dvo4_7 .el-table__empty-block {
24
- display: var(--dc3c53f8);
24
+ display: var(--v36843294);
25
25
  }
26
26
  ._selection_1dvo4_27 .cell {
27
27
  display: flex;
package/dist/es/index.mjs CHANGED
@@ -164,7 +164,7 @@ const __vite_glob_0_50 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
164
164
  default: _sfc_main$8
165
165
  }, Symbol.toStringTag, { value: 'Module' }));
166
166
 
167
- const version = "1.13.0";
167
+ const version = "1.13.1";
168
168
 
169
169
  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/tinymce/tinymce.vue": __vite_glob_0_57,"./components/transfer-panel/transfer-panel.vue": __vite_glob_0_58,"./components/transfer/transfer.vue": __vite_glob_0_59,"./components/tree-picker/tree-picker.vue": __vite_glob_0_60,"./components/tree-select/tree-select.vue": __vite_glob_0_61,"./components/upload-file/upload-file.vue": __vite_glob_0_62});
170
170
  const upper = (_, letter) => letter.toUpperCase();
package/dist/index.css CHANGED
@@ -828,7 +828,7 @@ div._table_1dvo4_7 .el-table__column-resize-proxy {
828
828
  border-color: var(--el-color-primary);
829
829
  }
830
830
  div._table_1dvo4_7 .el-table__empty-block {
831
- display: var(--dc3c53f8);
831
+ display: var(--v36843294);
832
832
  }
833
833
  ._selection_1dvo4_27 .cell {
834
834
  display: flex;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfrog/vc-ui",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "packageManager": "pnpm@10.20.0",
5
5
  "description": "vue3 组件库 vc-ui",
6
6
  "author": "wellfrog",