@wfrog/vc-ui 1.9.17 → 1.9.19
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-column-table/explorer-column-table.mjs +21 -7
- package/dist/es/components/explorer-column-table/explorer-column-table.vue.d.ts +23 -0
- package/dist/es/components/explorer-filter/explorer-filter.mjs +2 -2
- package/dist/es/components/explorer-filter/index.css +3 -2
- package/dist/es/components/explorer-form/explorer-form.mjs +2 -2
- package/dist/es/components/explorer-form/explorer-form.vue.d.ts +3 -1
- package/dist/es/components/explorer-modal-form/explorer-modal-form.mjs +2 -2
- package/dist/es/components/explorer-tools/components/column-setter.vue.d.ts +50 -2
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +3 -2
- package/package.json +1 -1
|
@@ -6,7 +6,7 @@ import { a as ElCheckbox } from '../../chunk/DBf73TLo.mjs';
|
|
|
6
6
|
import '../../chunk/BH1e_-Fa.mjs';
|
|
7
7
|
import '../../chunk/CqhShW5K.mjs';
|
|
8
8
|
/* empty css */
|
|
9
|
-
import { defineComponent, useTemplateRef, useCssModule, shallowRef, computed, ref, createBlock, createCommentVNode, unref, openBlock, normalizeClass, createSlots, withCtx, renderSlot, createElementVNode, createVNode, nextTick } from 'vue';
|
|
9
|
+
import { defineComponent, useTemplateRef, useCssModule, shallowRef, computed, ref, watch, onBeforeUnmount, createBlock, createCommentVNode, unref, openBlock, normalizeClass, createSlots, withCtx, renderSlot, createElementVNode, createVNode, nextTick } from 'vue';
|
|
10
10
|
import { useDraggable } from 'vue-draggable-plus';
|
|
11
11
|
import { C as Component$3 } from '../choice/choice.mjs';
|
|
12
12
|
import { C as Component$2 } from '../iconify-icon/iconify-icon.mjs';
|
|
@@ -61,15 +61,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
61
61
|
{ label: "左", value: "left" },
|
|
62
62
|
{ label: "右", value: "right" }
|
|
63
63
|
];
|
|
64
|
-
const widthConfig =
|
|
64
|
+
const widthConfig = ref({ width: 240, data: 160, fixed: 120, truncate: 60 });
|
|
65
|
+
const widthConfigWatch = watch(() => props.size, () => {
|
|
65
66
|
if (props.size === "small") {
|
|
66
|
-
|
|
67
|
+
widthConfig.value = { width: 210, data: 140, fixed: 100, truncate: 50 };
|
|
68
|
+
return;
|
|
67
69
|
}
|
|
68
70
|
if (props.size === "default") {
|
|
69
|
-
|
|
71
|
+
widthConfig.value = { width: 240, data: 160, fixed: 120, truncate: 60 };
|
|
72
|
+
return;
|
|
70
73
|
}
|
|
71
|
-
|
|
72
|
-
});
|
|
74
|
+
widthConfig.value = { width: 260, data: 200, fixed: 140, truncate: 76 };
|
|
75
|
+
}, { immediate: true });
|
|
73
76
|
const isFullMode = computed(() => props.mode === "full");
|
|
74
77
|
function getLabel(row) {
|
|
75
78
|
if (row.label) {
|
|
@@ -127,7 +130,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
127
130
|
await nextTick();
|
|
128
131
|
tableVisible.value = true;
|
|
129
132
|
}
|
|
130
|
-
__expose({
|
|
133
|
+
__expose({
|
|
134
|
+
init,
|
|
135
|
+
tableRef,
|
|
136
|
+
rerender,
|
|
137
|
+
setWidthConfig: (params) => {
|
|
138
|
+
widthConfig.value = params;
|
|
139
|
+
},
|
|
140
|
+
getWidthConfig: () => {
|
|
141
|
+
return widthConfig.value;
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
onBeforeUnmount(() => widthConfigWatch.stop());
|
|
131
145
|
return (_ctx, _cache) => {
|
|
132
146
|
const _component_ElCheckbox = ElCheckbox;
|
|
133
147
|
const _component_ElTableColumn = ElTableColumn;
|
|
@@ -1,4 +1,20 @@
|
|
|
1
1
|
import { IColumnConfig, IExplorerColumnTableProps } from './explorer-column-table';
|
|
2
|
+
declare const widthConfig: globalThis.Ref<{
|
|
3
|
+
width: number;
|
|
4
|
+
data: number;
|
|
5
|
+
fixed: number;
|
|
6
|
+
truncate: number;
|
|
7
|
+
}, {
|
|
8
|
+
width: number;
|
|
9
|
+
data: number;
|
|
10
|
+
fixed: number;
|
|
11
|
+
truncate: number;
|
|
12
|
+
} | {
|
|
13
|
+
width: number;
|
|
14
|
+
data: number;
|
|
15
|
+
fixed: number;
|
|
16
|
+
truncate: number;
|
|
17
|
+
}>;
|
|
2
18
|
declare function init(): void;
|
|
3
19
|
declare function rerender(): Promise<void>;
|
|
4
20
|
declare function __VLS_template(): {
|
|
@@ -2955,6 +2971,13 @@ declare const __VLS_component: import('vue').DefineComponent<IExplorerColumnTabl
|
|
|
2955
2971
|
preserveExpandedContent: boolean;
|
|
2956
2972
|
}> | null>>;
|
|
2957
2973
|
rerender: typeof rerender;
|
|
2974
|
+
setWidthConfig: (params: typeof widthConfig.value) => void;
|
|
2975
|
+
getWidthConfig: () => {
|
|
2976
|
+
width: number;
|
|
2977
|
+
data: number;
|
|
2978
|
+
fixed: number;
|
|
2979
|
+
truncate: number;
|
|
2980
|
+
};
|
|
2958
2981
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2959
2982
|
"update:data": (data: IColumnConfig[]) => any;
|
|
2960
2983
|
}, string, import('vue').PublicProps, Readonly<IExplorerColumnTableProps> & Readonly<{
|
|
@@ -21,7 +21,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
21
21
|
emits: ["filter", "create"],
|
|
22
22
|
setup(__props, { emit: __emit }) {
|
|
23
23
|
useCssVars((_ctx) => ({
|
|
24
|
-
"
|
|
24
|
+
"cd3fe400": `${_ctx.paddingBottom}px`
|
|
25
25
|
}));
|
|
26
26
|
const props = __props;
|
|
27
27
|
const emits = __emit;
|
|
@@ -65,7 +65,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
65
65
|
});
|
|
66
66
|
|
|
67
67
|
/* unplugin-vue-components disabled */const style0 = {
|
|
68
|
-
"explorer-filter": "_explorer-
|
|
68
|
+
"explorer-filter": "_explorer-filter_fuuuf_1"
|
|
69
69
|
};
|
|
70
70
|
|
|
71
71
|
const cssModules = {
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
/* source: src/components/explorer-filter/explorer-filter.vue */
|
|
2
|
-
._explorer-
|
|
3
|
-
padding-bottom: var(--
|
|
2
|
+
._explorer-filter_fuuuf_1 {
|
|
3
|
+
padding-bottom: var(--cd3fe400);
|
|
4
4
|
display: flex;
|
|
5
5
|
column-gap: 8px;
|
|
6
6
|
border-bottom: 1px solid var(--el-border-color-lighter);
|
|
7
|
+
margin-bottom: 8px;
|
|
7
8
|
}
|
|
@@ -32,8 +32,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
32
32
|
isEditing.value = true;
|
|
33
33
|
}
|
|
34
34
|
async function handleCancel() {
|
|
35
|
-
formRef.value.resetFields();
|
|
36
35
|
emits("cancel");
|
|
36
|
+
formRef.value.resetFields();
|
|
37
37
|
isEditing.value = false;
|
|
38
38
|
}
|
|
39
39
|
async function handleSave() {
|
|
@@ -135,7 +135,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
135
135
|
class: _ctx.$style.form
|
|
136
136
|
}), {
|
|
137
137
|
default: withCtx(() => [
|
|
138
|
-
renderSlot(_ctx.$slots, "default")
|
|
138
|
+
renderSlot(_ctx.$slots, "default", { isEditing: unref(isEditing) })
|
|
139
139
|
]),
|
|
140
140
|
_: 3
|
|
141
141
|
}, 16, ["model", "rules", "disabled", "label-position", "class"])
|
|
@@ -36,8 +36,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
36
36
|
const component = computed(() => props.type === "dialog" ? Component$1 : Component$2);
|
|
37
37
|
const modalTitle = computed(() => props.title || (props.form.fields.id ? "编辑" : "新增"));
|
|
38
38
|
function handleCancel() {
|
|
39
|
-
modalVisible.value = false;
|
|
40
39
|
emits("cancel");
|
|
40
|
+
modalVisible.value = false;
|
|
41
41
|
}
|
|
42
42
|
async function handleSave() {
|
|
43
43
|
try {
|
|
@@ -52,8 +52,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
54
|
function handleEdit() {
|
|
55
|
-
isEditing.value = true;
|
|
56
55
|
emits("edit");
|
|
56
|
+
isEditing.value = true;
|
|
57
57
|
}
|
|
58
58
|
const visibleWatch = watch(modalVisible, (val) => {
|
|
59
59
|
if (!val) {
|
|
@@ -2978,6 +2978,18 @@ declare function __VLS_template(): {
|
|
|
2978
2978
|
preserveExpandedContent: boolean;
|
|
2979
2979
|
}> | null>>;
|
|
2980
2980
|
rerender: () => Promise<void>;
|
|
2981
|
+
setWidthConfig: (params: {
|
|
2982
|
+
width: number;
|
|
2983
|
+
data: number;
|
|
2984
|
+
fixed: number;
|
|
2985
|
+
truncate: number;
|
|
2986
|
+
}) => void;
|
|
2987
|
+
getWidthConfig: () => {
|
|
2988
|
+
width: number;
|
|
2989
|
+
data: number;
|
|
2990
|
+
fixed: number;
|
|
2991
|
+
truncate: number;
|
|
2992
|
+
};
|
|
2981
2993
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
2982
2994
|
"update:data": (data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any;
|
|
2983
2995
|
}, string, {
|
|
@@ -3016,7 +3028,7 @@ declare function __VLS_template(): {
|
|
|
3016
3028
|
emptyColumn: boolean;
|
|
3017
3029
|
}> & Omit<Readonly<import('../../explorer-column-table/explorer-column-table').IExplorerColumnTableProps> & Readonly<{
|
|
3018
3030
|
"onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
|
|
3019
|
-
}>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn") | "tableRef" | "rerender"> & import('vue').ShallowUnwrapRef<{
|
|
3031
|
+
}>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn") | "tableRef" | "rerender" | "setWidthConfig" | "getWidthConfig"> & import('vue').ShallowUnwrapRef<{
|
|
3020
3032
|
init: () => void;
|
|
3021
3033
|
tableRef: Readonly<globalThis.ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
3022
3034
|
data: {
|
|
@@ -4489,6 +4501,18 @@ declare function __VLS_template(): {
|
|
|
4489
4501
|
preserveExpandedContent: boolean;
|
|
4490
4502
|
}> | null>>;
|
|
4491
4503
|
rerender: () => Promise<void>;
|
|
4504
|
+
setWidthConfig: (params: {
|
|
4505
|
+
width: number;
|
|
4506
|
+
data: number;
|
|
4507
|
+
fixed: number;
|
|
4508
|
+
truncate: number;
|
|
4509
|
+
}) => void;
|
|
4510
|
+
getWidthConfig: () => {
|
|
4511
|
+
width: number;
|
|
4512
|
+
data: number;
|
|
4513
|
+
fixed: number;
|
|
4514
|
+
truncate: number;
|
|
4515
|
+
};
|
|
4492
4516
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
4493
4517
|
$slots: {
|
|
4494
4518
|
default?(_: {}): any;
|
|
@@ -7483,6 +7507,18 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
|
|
|
7483
7507
|
preserveExpandedContent: boolean;
|
|
7484
7508
|
}> | null>>;
|
|
7485
7509
|
rerender: () => Promise<void>;
|
|
7510
|
+
setWidthConfig: (params: {
|
|
7511
|
+
width: number;
|
|
7512
|
+
data: number;
|
|
7513
|
+
fixed: number;
|
|
7514
|
+
truncate: number;
|
|
7515
|
+
}) => void;
|
|
7516
|
+
getWidthConfig: () => {
|
|
7517
|
+
width: number;
|
|
7518
|
+
data: number;
|
|
7519
|
+
fixed: number;
|
|
7520
|
+
truncate: number;
|
|
7521
|
+
};
|
|
7486
7522
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
7487
7523
|
"update:data": (data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any;
|
|
7488
7524
|
}, string, {
|
|
@@ -7521,7 +7557,7 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
|
|
|
7521
7557
|
emptyColumn: boolean;
|
|
7522
7558
|
}> & Omit<Readonly<import('../../explorer-column-table/explorer-column-table').IExplorerColumnTableProps> & Readonly<{
|
|
7523
7559
|
"onUpdate:data"?: ((data: import('../../explorer-column-table/explorer-column-table').IColumnConfig[]) => any) | undefined;
|
|
7524
|
-
}>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn") | "tableRef" | "rerender"> & import('vue').ShallowUnwrapRef<{
|
|
7560
|
+
}>, "init" | ("mode" | "size" | "height" | "editable" | "highlightCurrent" | "emptyColumn") | "tableRef" | "rerender" | "setWidthConfig" | "getWidthConfig"> & import('vue').ShallowUnwrapRef<{
|
|
7525
7561
|
init: () => void;
|
|
7526
7562
|
tableRef: Readonly<globalThis.ShallowRef<import('vue').CreateComponentPublicInstanceWithMixins<Readonly<globalThis.ExtractPropTypes<{
|
|
7527
7563
|
data: {
|
|
@@ -8994,6 +9030,18 @@ declare const __VLS_component: import('vue').DefineComponent<IColumnSetterProps,
|
|
|
8994
9030
|
preserveExpandedContent: boolean;
|
|
8995
9031
|
}> | null>>;
|
|
8996
9032
|
rerender: () => Promise<void>;
|
|
9033
|
+
setWidthConfig: (params: {
|
|
9034
|
+
width: number;
|
|
9035
|
+
data: number;
|
|
9036
|
+
fixed: number;
|
|
9037
|
+
truncate: number;
|
|
9038
|
+
}) => void;
|
|
9039
|
+
getWidthConfig: () => {
|
|
9040
|
+
width: number;
|
|
9041
|
+
data: number;
|
|
9042
|
+
fixed: number;
|
|
9043
|
+
truncate: number;
|
|
9044
|
+
};
|
|
8997
9045
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
8998
9046
|
$slots: {
|
|
8999
9047
|
default?(_: {}): any;
|
package/dist/es/index.mjs
CHANGED
|
@@ -156,7 +156,7 @@ const __vite_glob_0_47 = /*#__PURE__*/Object.freeze(/*#__PURE__*/Object.definePr
|
|
|
156
156
|
default: _sfc_main$8
|
|
157
157
|
}, Symbol.toStringTag, { value: 'Module' }));
|
|
158
158
|
|
|
159
|
-
const version = "1.9.
|
|
159
|
+
const version = "1.9.18";
|
|
160
160
|
|
|
161
161
|
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-switcher/color-switcher.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-switcher/dark-switcher.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/icon-picker/icon-picker.vue": __vite_glob_0_34,"./components/icon/icon.vue": __vite_glob_0_35,"./components/iconify-icon/iconify-icon.vue": __vite_glob_0_36,"./components/image/image.vue": __vite_glob_0_37,"./components/input-number/input-number.vue": __vite_glob_0_38,"./components/input/input.vue": __vite_glob_0_39,"./components/pca-picker/pca-picker.vue": __vite_glob_0_40,"./components/qr-code/qr-code.vue": __vite_glob_0_41,"./components/screenfull/screenfull.vue": __vite_glob_0_42,"./components/scrollbar/scrollbar.vue": __vite_glob_0_43,"./components/select/select.vue": __vite_glob_0_44,"./components/single-player/single-player.vue": __vite_glob_0_45,"./components/splitter-panel/splitter-panel.vue": __vite_glob_0_46,"./components/splitter/splitter.vue": __vite_glob_0_47,"./components/svg-icon/svg-icon.vue": __vite_glob_0_48,"./components/switch/switch.vue": __vite_glob_0_49,"./components/sync-scroll-container/sync-scroll-container.vue": __vite_glob_0_50,"./components/tags/tags.vue": __vite_glob_0_51,"./components/text-ellipsis/text-ellipsis.vue": __vite_glob_0_52,"./components/thousand-input/thousand-input.vue": __vite_glob_0_53,"./components/tinymce/tinymce.vue": __vite_glob_0_54,"./components/transfer-panel/transfer-panel.vue": __vite_glob_0_55,"./components/transfer/transfer.vue": __vite_glob_0_56,"./components/tree-picker/tree-picker.vue": __vite_glob_0_57,"./components/upload-file/upload-file.vue": __vite_glob_0_58});
|
|
162
162
|
const upper = (_, letter) => letter.toUpperCase();
|
package/dist/index.css
CHANGED
|
@@ -630,11 +630,12 @@ div._main_k37nc_1 ._header_k37nc_48 {
|
|
|
630
630
|
margin: 0 -8px;
|
|
631
631
|
}
|
|
632
632
|
/* source: src/components/explorer-filter/explorer-filter.vue */
|
|
633
|
-
._explorer-
|
|
634
|
-
padding-bottom: var(--
|
|
633
|
+
._explorer-filter_fuuuf_1 {
|
|
634
|
+
padding-bottom: var(--cd3fe400);
|
|
635
635
|
display: flex;
|
|
636
636
|
column-gap: 8px;
|
|
637
637
|
border-bottom: 1px solid var(--el-border-color-lighter);
|
|
638
|
+
margin-bottom: 8px;
|
|
638
639
|
}
|
|
639
640
|
/* source: src/components/explorer-footer/explorer-footer.vue */
|
|
640
641
|
._explorer-footer_ntz3b_1 {
|