@wfrog/vc-ui 1.11.8 → 1.11.10
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.
- package/dist/es/components/explorer-table/explorer-table.d.ts +1 -0
- package/dist/es/components/explorer-table/explorer-table.mjs +15 -9
- package/dist/es/components/explorer-table/explorer-table.vue.d.ts +2 -0
- package/dist/es/components/explorer-table/index.css +16 -9
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +16 -9
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import '../../chunk/NsldgdCh.mjs';
|
|
|
6
6
|
/* empty css */
|
|
7
7
|
import '../../chunk/CoGexPPD.mjs';
|
|
8
8
|
import '../../chunk/CjLR27-a.mjs';
|
|
9
|
-
import { defineComponent, h, useCssModule, useTemplateRef, computed, ref, watch, withDirectives, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps, createSlots, withCtx, createBlock, createCommentVNode, renderSlot, withModifiers, isRef, Fragment, renderList, createTextVNode, toDisplayString, resolveDynamicComponent } from 'vue';
|
|
9
|
+
import { defineComponent, h, useCssVars, useCssModule, useTemplateRef, computed, ref, watch, withDirectives, createElementBlock, openBlock, normalizeClass, unref, createVNode, mergeProps, createSlots, withCtx, createBlock, createCommentVNode, renderSlot, withModifiers, isRef, Fragment, renderList, createTextVNode, toDisplayString, resolveDynamicComponent } from 'vue';
|
|
10
10
|
import { promiseTimeout } from '@vueuse/core';
|
|
11
11
|
import { ElTableColumn, ElRadio, ElCheckbox } from 'element-plus';
|
|
12
12
|
import { i as injectExplorerPanelState } from '../explorer-panel/explorer-panel2.mjs';
|
|
@@ -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 },
|
|
@@ -35,6 +36,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
35
36
|
},
|
|
36
37
|
emits: ["columnEvent", "singleSelectionChange", "multipleSelectionChange", "selectionChange", "selectAll"],
|
|
37
38
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
39
|
+
useCssVars((_ctx) => ({
|
|
40
|
+
"v71449210": `${_ctx.empty ? "flex" : "none"}`
|
|
41
|
+
}));
|
|
38
42
|
const props = __props;
|
|
39
43
|
const emits = __emit;
|
|
40
44
|
const state = injectExplorerPanelState();
|
|
@@ -63,7 +67,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
67
|
}
|
|
64
68
|
});
|
|
65
69
|
const indeterminate = computed(() => {
|
|
66
|
-
if (!isMultipleSelection.value) {
|
|
70
|
+
if (!isMultipleSelection.value || !props.data.length) {
|
|
67
71
|
return false;
|
|
68
72
|
}
|
|
69
73
|
return selectedValues.value.size > 0 && selectedValues.value.size < props.data.length;
|
|
@@ -157,7 +161,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
157
161
|
onHeaderDragend
|
|
158
162
|
}), createSlots({
|
|
159
163
|
empty: withCtx(() => [
|
|
160
|
-
|
|
164
|
+
renderSlot(_ctx.$slots, "empty", {}, () => [
|
|
165
|
+
!__props.loading && !__props.pending ? (openBlock(), createElementBlock("div", _hoisted_1, toDisplayString(__props.emptyText), 1)) : (openBlock(), createElementBlock("div", _hoisted_2))
|
|
166
|
+
])
|
|
161
167
|
]),
|
|
162
168
|
default: withCtx(() => [
|
|
163
169
|
__props.selection ? (openBlock(), createBlock(unref(ElTableColumn), {
|
|
@@ -263,17 +269,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
263
269
|
}
|
|
264
270
|
});
|
|
265
271
|
|
|
266
|
-
/* unplugin-vue-components disabled */const table = "
|
|
267
|
-
const selection = "
|
|
268
|
-
const radio = "
|
|
269
|
-
const checkbox = "
|
|
272
|
+
/* unplugin-vue-components disabled */const table = "_table_p2qu9_7";
|
|
273
|
+
const selection = "_selection_p2qu9_27";
|
|
274
|
+
const radio = "_radio_p2qu9_32";
|
|
275
|
+
const checkbox = "_checkbox_p2qu9_39";
|
|
270
276
|
const style0 = {
|
|
271
|
-
"explorer-table": "_explorer-
|
|
277
|
+
"explorer-table": "_explorer-table_p2qu9_1",
|
|
272
278
|
table: table,
|
|
273
279
|
selection: selection,
|
|
274
280
|
radio: radio,
|
|
275
281
|
checkbox: checkbox,
|
|
276
|
-
"selected-row": "_selected-
|
|
282
|
+
"selected-row": "_selected-row_p2qu9_43"
|
|
277
283
|
};
|
|
278
284
|
|
|
279
285
|
const cssModules = {
|
|
@@ -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;
|
|
@@ -1,34 +1,41 @@
|
|
|
1
1
|
/* source: src/components/explorer-table/explorer-table.vue */
|
|
2
|
-
._explorer-
|
|
2
|
+
._explorer-table_p2qu9_1 {
|
|
3
3
|
display: flex;
|
|
4
4
|
flex-direction: column;
|
|
5
5
|
flex-grow: 1;
|
|
6
6
|
}
|
|
7
|
-
div.
|
|
7
|
+
div._table_p2qu9_7 {
|
|
8
8
|
flex-grow: 1;
|
|
9
9
|
height: 100px;
|
|
10
10
|
--el-table-header-bg-color: var(--el-color-info-light-9);
|
|
11
11
|
--el-table-row-hover-bg-color: var(--el-color-primary-light-9);
|
|
12
12
|
}
|
|
13
|
-
div.
|
|
13
|
+
div._table_p2qu9_7 .el-scrollbar__view {
|
|
14
|
+
min-height: 100%;
|
|
15
|
+
height: 100px;
|
|
16
|
+
}
|
|
17
|
+
div._table_p2qu9_7 .el-table__header-wrapper .el-table__cell:hover {
|
|
14
18
|
border-right-color: var(--el-color-primary-light-5) !important;
|
|
15
19
|
}
|
|
16
|
-
div.
|
|
20
|
+
div._table_p2qu9_7 .el-table__column-resize-proxy {
|
|
17
21
|
border-color: var(--el-color-primary);
|
|
18
22
|
}
|
|
19
|
-
.
|
|
23
|
+
div._table_p2qu9_7 .el-table__empty-block {
|
|
24
|
+
display: var(--v71449210);
|
|
25
|
+
}
|
|
26
|
+
._selection_p2qu9_27 .cell {
|
|
20
27
|
display: flex;
|
|
21
28
|
align-items: center;
|
|
22
29
|
}
|
|
23
|
-
.
|
|
30
|
+
._radio_p2qu9_32 {
|
|
24
31
|
height: unset;
|
|
25
32
|
}
|
|
26
|
-
.
|
|
33
|
+
._radio_p2qu9_32 .el-radio__label {
|
|
27
34
|
display: none;
|
|
28
35
|
}
|
|
29
|
-
.
|
|
36
|
+
._checkbox_p2qu9_39 {
|
|
30
37
|
height: unset;
|
|
31
38
|
}
|
|
32
|
-
._selected-
|
|
39
|
+
._selected-row_p2qu9_43 td.el-table__cell {
|
|
33
40
|
background-color: var(--el-color-primary-light-9) !important;
|
|
34
41
|
}
|
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.
|
|
163
|
+
const version = "1.11.10";
|
|
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/dist/index.css
CHANGED
|
@@ -833,37 +833,44 @@ div._main_k37nc_1 ._header_k37nc_48 {
|
|
|
833
833
|
margin-left: 0;
|
|
834
834
|
}
|
|
835
835
|
/* source: src/components/explorer-table/explorer-table.vue */
|
|
836
|
-
._explorer-
|
|
836
|
+
._explorer-table_p2qu9_1 {
|
|
837
837
|
display: flex;
|
|
838
838
|
flex-direction: column;
|
|
839
839
|
flex-grow: 1;
|
|
840
840
|
}
|
|
841
|
-
div.
|
|
841
|
+
div._table_p2qu9_7 {
|
|
842
842
|
flex-grow: 1;
|
|
843
843
|
height: 100px;
|
|
844
844
|
--el-table-header-bg-color: var(--el-color-info-light-9);
|
|
845
845
|
--el-table-row-hover-bg-color: var(--el-color-primary-light-9);
|
|
846
846
|
}
|
|
847
|
-
div.
|
|
847
|
+
div._table_p2qu9_7 .el-scrollbar__view {
|
|
848
|
+
min-height: 100%;
|
|
849
|
+
height: 100px;
|
|
850
|
+
}
|
|
851
|
+
div._table_p2qu9_7 .el-table__header-wrapper .el-table__cell:hover {
|
|
848
852
|
border-right-color: var(--el-color-primary-light-5) !important;
|
|
849
853
|
}
|
|
850
|
-
div.
|
|
854
|
+
div._table_p2qu9_7 .el-table__column-resize-proxy {
|
|
851
855
|
border-color: var(--el-color-primary);
|
|
852
856
|
}
|
|
853
|
-
.
|
|
857
|
+
div._table_p2qu9_7 .el-table__empty-block {
|
|
858
|
+
display: var(--v71449210);
|
|
859
|
+
}
|
|
860
|
+
._selection_p2qu9_27 .cell {
|
|
854
861
|
display: flex;
|
|
855
862
|
align-items: center;
|
|
856
863
|
}
|
|
857
|
-
.
|
|
864
|
+
._radio_p2qu9_32 {
|
|
858
865
|
height: unset;
|
|
859
866
|
}
|
|
860
|
-
.
|
|
867
|
+
._radio_p2qu9_32 .el-radio__label {
|
|
861
868
|
display: none;
|
|
862
869
|
}
|
|
863
|
-
.
|
|
870
|
+
._checkbox_p2qu9_39 {
|
|
864
871
|
height: unset;
|
|
865
872
|
}
|
|
866
|
-
._selected-
|
|
873
|
+
._selected-row_p2qu9_43 td.el-table__cell {
|
|
867
874
|
background-color: var(--el-color-primary-light-9) !important;
|
|
868
875
|
}
|
|
869
876
|
/* source: src/components/explorer-tools/components/column-setter.vue,src/components/explorer-tools/explorer-tools.vue */
|