@wfrog/vc-ui 1.10.8 → 1.10.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.
- package/dist/es/components/explorer-panel/explorer-panel.d.ts +2 -0
- package/dist/es/components/explorer-panel/explorer-panel.mjs +12 -4
- package/dist/es/components/explorer-panel/index.css +1 -1
- package/dist/es/components/explorer-panel/index.d.ts +1 -0
- package/dist/es/components/explorer-panel/index.mjs +1 -0
- package/dist/es/index.mjs +1 -1
- package/dist/index.css +1 -1
- package/package.json +6 -1
- package/dist/es/components/document.vue.d.ts +0 -14
- package/dist/es/components/example-wrapper.vue.d.ts +0 -19
|
@@ -3,6 +3,7 @@ import { IColumnConfig } from '../explorer-column-table/explorer-column-table';
|
|
|
3
3
|
export interface IExplorerPanelProps {
|
|
4
4
|
resizable?: boolean;
|
|
5
5
|
padding?: number;
|
|
6
|
+
commonState?: Record<string, any>;
|
|
6
7
|
}
|
|
7
8
|
export interface IExplorerPanelState {
|
|
8
9
|
fullscreenTarget: Ref<HTMLElement>;
|
|
@@ -11,6 +12,7 @@ export interface IExplorerPanelState {
|
|
|
11
12
|
actions: Reactive<{
|
|
12
13
|
saveColumnConfig: () => void;
|
|
13
14
|
}>;
|
|
15
|
+
commonState: Ref<Record<string, any>>;
|
|
14
16
|
}
|
|
15
17
|
export declare const KEY_NAME: unique symbol;
|
|
16
18
|
export declare const injectExplorerPanelState: () => IExplorerPanelState;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import './index.css'
|
|
2
2
|
import '../../chunk/Gk1J52Yw.mjs';
|
|
3
3
|
/* empty css */
|
|
4
|
-
import { defineComponent, useCssVars, useTemplateRef, ref, reactive, onMounted, createBlock, openBlock, mergeProps, withCtx, createElementVNode, normalizeClass, renderSlot } from 'vue';
|
|
4
|
+
import { defineComponent, useCssVars, useTemplateRef, ref, reactive, watch, onMounted, onBeforeUnmount, createBlock, openBlock, mergeProps, withCtx, createElementVNode, normalizeClass, renderSlot } from 'vue';
|
|
5
5
|
import { useProvide } from '../../use/useStore/index.mjs';
|
|
6
6
|
import { K as KEY_NAME } from './explorer-panel2.mjs';
|
|
7
7
|
import { a as ElSplitterPanel } from '../../chunk/C0XgBrDz.mjs';
|
|
@@ -11,12 +11,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
11
11
|
__name: "explorer-panel",
|
|
12
12
|
props: {
|
|
13
13
|
resizable: { type: Boolean, default: false },
|
|
14
|
-
padding: { default: 8 }
|
|
14
|
+
padding: { default: 8 },
|
|
15
|
+
commonState: {}
|
|
15
16
|
},
|
|
16
17
|
setup(__props) {
|
|
17
18
|
useCssVars((_ctx) => ({
|
|
18
|
-
"
|
|
19
|
+
"e4d70126": `${_ctx.padding}px`
|
|
19
20
|
}));
|
|
21
|
+
const props = __props;
|
|
20
22
|
const panelRef = useTemplateRef("panelRef");
|
|
21
23
|
const fullscreenTarget = ref();
|
|
22
24
|
const columnConfig = ref([]);
|
|
@@ -25,17 +27,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
27
|
saveColumnConfig: () => {
|
|
26
28
|
}
|
|
27
29
|
});
|
|
30
|
+
const commonState = ref();
|
|
28
31
|
useProvide(KEY_NAME, {
|
|
29
32
|
fullscreenTarget,
|
|
30
33
|
columnConfig,
|
|
31
34
|
filterKeyword,
|
|
32
|
-
actions
|
|
35
|
+
actions,
|
|
36
|
+
commonState
|
|
33
37
|
});
|
|
38
|
+
const commonStateWatch = watch(() => props.commonState, () => {
|
|
39
|
+
commonState.value = props.commonState;
|
|
40
|
+
}, { immediate: true, deep: true });
|
|
34
41
|
onMounted(() => {
|
|
35
42
|
if (panelRef.value?.splitterPanelRef) {
|
|
36
43
|
fullscreenTarget.value = panelRef.value.splitterPanelRef;
|
|
37
44
|
}
|
|
38
45
|
});
|
|
46
|
+
onBeforeUnmount(() => commonStateWatch.stop());
|
|
39
47
|
return (_ctx, _cache) => {
|
|
40
48
|
const _component_ElSplitterPanel = ElSplitterPanel;
|
|
41
49
|
return openBlock(), createBlock(_component_ElSplitterPanel, mergeProps({
|
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.10.
|
|
159
|
+
const version = "1.10.9";
|
|
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-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/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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wfrog/vc-ui",
|
|
3
|
-
"version": "1.10.
|
|
3
|
+
"version": "1.10.9",
|
|
4
4
|
"packageManager": "pnpm@10.20.0",
|
|
5
5
|
"description": "vue3 组件库 vc-ui",
|
|
6
6
|
"author": "wellfrog",
|
|
@@ -27,6 +27,11 @@
|
|
|
27
27
|
"types": "./dist/es/directives/*/index.d.ts",
|
|
28
28
|
"default": "./dist/es/directives/*/index.mjs"
|
|
29
29
|
},
|
|
30
|
+
"./es/use/*/type": "./dist/es/use/*/index.d.ts",
|
|
31
|
+
"./es/use/*": {
|
|
32
|
+
"types": "./dist/es/use/*/index.d.ts",
|
|
33
|
+
"default": "./dist/es/use/*/index.mjs"
|
|
34
|
+
},
|
|
30
35
|
"./resolver": {
|
|
31
36
|
"types": "./dist/es/utils/resolver.d.ts",
|
|
32
37
|
"default": "./dist/es/utils/resolver.mjs"
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<globalThis.ExtractPropTypes<{
|
|
2
|
-
data: {
|
|
3
|
-
type: ObjectConstructor;
|
|
4
|
-
default: () => {};
|
|
5
|
-
};
|
|
6
|
-
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<globalThis.ExtractPropTypes<{
|
|
7
|
-
data: {
|
|
8
|
-
type: ObjectConstructor;
|
|
9
|
-
default: () => {};
|
|
10
|
-
};
|
|
11
|
-
}>> & Readonly<{}>, {
|
|
12
|
-
data: Record<string, any>;
|
|
13
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
14
|
-
export default _default;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
declare function __VLS_template(): {
|
|
2
|
-
attrs: Partial<{}>;
|
|
3
|
-
slots: {
|
|
4
|
-
default?(_: {
|
|
5
|
-
direction: string;
|
|
6
|
-
}): any;
|
|
7
|
-
};
|
|
8
|
-
refs: {};
|
|
9
|
-
rootEl: any;
|
|
10
|
-
};
|
|
11
|
-
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
13
|
-
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
14
|
-
export default _default;
|
|
15
|
-
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
-
new (): {
|
|
17
|
-
$slots: S;
|
|
18
|
-
};
|
|
19
|
-
};
|