@wfrog/vc-ui 1.11.8 → 1.11.9

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,6 +7,7 @@ export interface IExplorerTableProps {
7
7
  multipleCheckedKey?: string;
8
8
  index?: boolean;
9
9
  highlightCurrent?: boolean;
10
+ empty?: boolean;
10
11
  emptyText?: string;
11
12
  pending?: boolean;
12
13
  loading?: boolean;
@@ -23,6 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  multipleCheckedKey: { default: "checked" },
24
24
  index: { type: Boolean },
25
25
  highlightCurrent: { type: Boolean, default: false },
26
+ empty: { type: Boolean, default: true },
26
27
  emptyText: { default: "没有数据" },
27
28
  pending: { type: Boolean },
28
29
  loading: { type: Boolean, default: false },
@@ -63,7 +64,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
64
  }
64
65
  });
65
66
  const indeterminate = computed(() => {
66
- if (!isMultipleSelection.value) {
67
+ if (!isMultipleSelection.value || !props.data.length) {
67
68
  return false;
68
69
  }
69
70
  return selectedValues.value.size > 0 && selectedValues.value.size < props.data.length;
@@ -156,9 +157,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
157
  "row-class-name": rowClassName,
157
158
  onHeaderDragend
158
159
  }), createSlots({
159
- empty: withCtx(() => [
160
- !__props.loading && !__props.pending ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.emptyText), 1)) : (openBlock(), createElementBlock("div", _hoisted_2))
161
- ]),
162
160
  default: withCtx(() => [
163
161
  __props.selection ? (openBlock(), createBlock(unref(ElTableColumn), {
164
162
  key: 0,
@@ -254,6 +252,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
254
252
  renderSlot(_ctx.$slots, "append")
255
253
  ]),
256
254
  key: "0"
255
+ } : void 0,
256
+ __props.empty ? {
257
+ name: "empty",
258
+ fn: withCtx(() => [
259
+ renderSlot(_ctx.$slots, "empty", {}, () => [
260
+ !__props.loading && !__props.pending ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.emptyText), 1)) : (openBlock(), createElementBlock("div", _hoisted_2))
261
+ ])
262
+ ]),
263
+ key: "1"
257
264
  } : void 0
258
265
  ]), 1040, ["data", "class", "size", "highlight-current-row", "row-key"])
259
266
  ], 2)), [
@@ -12,6 +12,7 @@ declare function __VLS_template(): {
12
12
  }): any;
13
13
  default?(_: {}): any;
14
14
  append?(_: {}): any;
15
+ empty?(_: {}): any;
15
16
  };
16
17
  refs: {
17
18
  tableRef: import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
@@ -2981,6 +2982,7 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerTableProps
2981
2982
  emptyText: string;
2982
2983
  highlightCurrent: boolean;
2983
2984
  rowKey: string | ((row: any) => string);
2985
+ empty: boolean;
2984
2986
  multipleCheckedKey: string;
2985
2987
  columnRender: (column: IColumnConfig, row: Record<string, any>, emits: IExplorerTableEmits, index: number) => VNode;
2986
2988
  startIndex: number;
package/dist/es/index.mjs CHANGED
@@ -160,7 +160,7 @@ const __vite_glob_0_49 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
160
160
  default: _sfc_main$8
161
161
  }, Symbol.toStringTag, { value: 'Module' }));
162
162
 
163
- const version = "1.11.8";
163
+ const version = "1.11.9";
164
164
 
165
165
  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/icon-picker/icon-picker.vue": __vite_glob_0_35,"./components/icon/icon.vue": __vite_glob_0_36,"./components/iconify-icon/iconify-icon.vue": __vite_glob_0_37,"./components/image/image.vue": __vite_glob_0_38,"./components/info-tooltip/info-tooltip.vue": __vite_glob_0_39,"./components/input-number/input-number.vue": __vite_glob_0_40,"./components/input/input.vue": __vite_glob_0_41,"./components/pca-picker/pca-picker.vue": __vite_glob_0_42,"./components/qr-code/qr-code.vue": __vite_glob_0_43,"./components/screenfull/screenfull.vue": __vite_glob_0_44,"./components/scrollbar/scrollbar.vue": __vite_glob_0_45,"./components/select/select.vue": __vite_glob_0_46,"./components/single-player/single-player.vue": __vite_glob_0_47,"./components/splitter-panel/splitter-panel.vue": __vite_glob_0_48,"./components/splitter/splitter.vue": __vite_glob_0_49,"./components/svg-icon/svg-icon.vue": __vite_glob_0_50,"./components/switch/switch.vue": __vite_glob_0_51,"./components/sync-scroll-container/sync-scroll-container.vue": __vite_glob_0_52,"./components/tags/tags.vue": __vite_glob_0_53,"./components/text-ellipsis/text-ellipsis.vue": __vite_glob_0_54,"./components/thousand-input/thousand-input.vue": __vite_glob_0_55,"./components/tinymce/tinymce.vue": __vite_glob_0_56,"./components/transfer-panel/transfer-panel.vue": __vite_glob_0_57,"./components/transfer/transfer.vue": __vite_glob_0_58,"./components/tree-picker/tree-picker.vue": __vite_glob_0_59,"./components/upload-file/upload-file.vue": __vite_glob_0_60});
166
166
  const upper = (_, letter) => letter.toUpperCase();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wfrog/vc-ui",
3
- "version": "1.11.8",
3
+ "version": "1.11.9",
4
4
  "packageManager": "pnpm@10.20.0",
5
5
  "description": "vue3 组件库 vc-ui",
6
6
  "author": "wellfrog",