@wfrog/vc-ui 1.13.9 → 1.13.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.
|
@@ -3,7 +3,7 @@ import { ElDialog, ElButton } from 'element-plus/es';
|
|
|
3
3
|
import 'element-plus/es/components/base/style/css';
|
|
4
4
|
import 'element-plus/es/components/dialog/style/css';
|
|
5
5
|
import 'element-plus/es/components/button/style/css';
|
|
6
|
-
import { defineComponent, useCssModule, ref, computed, watch, createBlock, createCommentVNode, unref, openBlock, normalizeStyle, normalizeClass, isRef, createSlots, withCtx, createVNode, renderSlot, createElementVNode, createTextVNode, toDisplayString, withDirectives, vShow } from 'vue';
|
|
6
|
+
import { defineComponent, useCssModule, useSlots, ref, computed, watch, createBlock, createCommentVNode, unref, openBlock, normalizeStyle, normalizeClass, isRef, createSlots, withCtx, createVNode, renderSlot, createElementVNode, createTextVNode, toDisplayString, withDirectives, vShow } from 'vue';
|
|
7
7
|
import { CopyDocument, FullScreen, Close } from '@element-plus/icons-vue';
|
|
8
8
|
import { C as Component$2 } from '../button/button.mjs';
|
|
9
9
|
import { C as Component$1 } from '../scrollbar/scrollbar.mjs';
|
|
@@ -20,9 +20,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
20
20
|
showDefaultFooter: { type: Boolean, default: false },
|
|
21
21
|
lazy: { type: Boolean, default: true },
|
|
22
22
|
height: {},
|
|
23
|
-
maxHeight: { default: "
|
|
23
|
+
maxHeight: { default: "calc(100vh - 98px)" },
|
|
24
24
|
fullscreenHeight: {},
|
|
25
25
|
fullscreen: { type: Boolean, default: false },
|
|
26
|
+
smallFullscreen: { type: Boolean },
|
|
26
27
|
boxPadding: { type: Boolean, default: true },
|
|
27
28
|
padding: { default: "0px" },
|
|
28
29
|
viewMargin: { default: "12px" },
|
|
@@ -33,16 +34,23 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
33
34
|
const props = __props;
|
|
34
35
|
const emits = __emit;
|
|
35
36
|
const $style = useCssModule();
|
|
37
|
+
const $slots = useSlots();
|
|
36
38
|
const dialogVisible = useVModel(props, "modelValue", emits);
|
|
37
39
|
const visible = ref(false);
|
|
38
40
|
const isFullscreen = ref(false);
|
|
39
41
|
const toggleFullscreen = useToggle(isFullscreen);
|
|
40
42
|
const Icon = computed(() => isFullscreen.value ? CopyDocument : FullScreen);
|
|
43
|
+
const extraHeight = computed(() => {
|
|
44
|
+
if (props.showDefaultFooter || $slots["footer-action"] || $slots["footer-extra"]) {
|
|
45
|
+
return "98px";
|
|
46
|
+
}
|
|
47
|
+
return "49px";
|
|
48
|
+
});
|
|
41
49
|
const myFullscreenHeight = computed(() => {
|
|
42
50
|
if (props.fullscreenHeight) {
|
|
43
51
|
return props.fullscreenHeight;
|
|
44
52
|
}
|
|
45
|
-
return
|
|
53
|
+
return `calc(100vh - ${extraHeight.value})`;
|
|
46
54
|
});
|
|
47
55
|
const myMaxHeight = computed(() => {
|
|
48
56
|
if (isFullscreen.value || !props.maxHeight) {
|
|
@@ -50,6 +58,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
50
58
|
}
|
|
51
59
|
return props.maxHeight;
|
|
52
60
|
});
|
|
61
|
+
const myWidth = computed(() => {
|
|
62
|
+
if (props.smallFullscreen) {
|
|
63
|
+
return "calc(100vw - 100px)";
|
|
64
|
+
}
|
|
65
|
+
return props.width;
|
|
66
|
+
});
|
|
67
|
+
const myHeight = computed(() => {
|
|
68
|
+
if (props.smallFullscreen) {
|
|
69
|
+
return `calc(100vh - 100px - ${extraHeight.value})`;
|
|
70
|
+
}
|
|
71
|
+
if (typeof props.height === "string") {
|
|
72
|
+
return `calc(${props.height} - ${extraHeight.value})`;
|
|
73
|
+
}
|
|
74
|
+
return props.height;
|
|
75
|
+
});
|
|
53
76
|
watch(dialogVisible, (val) => {
|
|
54
77
|
if (val) {
|
|
55
78
|
isFullscreen.value = props.fullscreen;
|
|
@@ -69,7 +92,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
69
92
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => isRef(dialogVisible) ? dialogVisible.value = $event : null),
|
|
70
93
|
"append-to-body": "",
|
|
71
94
|
"align-center": "",
|
|
72
|
-
width:
|
|
95
|
+
width: unref(myWidth),
|
|
73
96
|
"show-close": false,
|
|
74
97
|
fullscreen: unref(isFullscreen),
|
|
75
98
|
"close-on-click-modal": false,
|
|
@@ -116,7 +139,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
116
139
|
default: withCtx(() => [
|
|
117
140
|
createVNode(Component$1, {
|
|
118
141
|
"max-height": unref(myMaxHeight),
|
|
119
|
-
height:
|
|
142
|
+
height: unref(myHeight),
|
|
120
143
|
always: "",
|
|
121
144
|
"view-margin": __props.viewMargin,
|
|
122
145
|
"fill-height": false
|
|
@@ -129,7 +152,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
129
152
|
]),
|
|
130
153
|
_: 2
|
|
131
154
|
}, [
|
|
132
|
-
__props.showDefaultFooter ||
|
|
155
|
+
__props.showDefaultFooter || unref($slots)["footer-action"] || unref($slots)["footer-extra"] ? {
|
|
133
156
|
name: "footer",
|
|
134
157
|
fn: withCtx(() => [
|
|
135
158
|
createElementVNode("div", null, [
|
|
@@ -14,7 +14,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
14
14
|
},
|
|
15
15
|
setup(__props) {
|
|
16
16
|
useCssVars((_ctx) => ({
|
|
17
|
-
"
|
|
17
|
+
"v4e1feee3": unref(myWidth)
|
|
18
18
|
}));
|
|
19
19
|
const props = __props;
|
|
20
20
|
const myOptions = computed(() => {
|
|
@@ -25,8 +25,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
25
25
|
});
|
|
26
26
|
const $style = useCssModule();
|
|
27
27
|
const className = computed(() => ({
|
|
28
|
-
[$style["select-width"]]: !!props.width
|
|
29
|
-
[$style.select]: true
|
|
28
|
+
[$style["select-width"]]: !!props.width
|
|
30
29
|
}));
|
|
31
30
|
const myWidth = computed(() => props.width ? formatToPx(props.width) : "auto");
|
|
32
31
|
return (_ctx, _cache) => {
|
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.
|
|
167
|
+
const version = "1.13.10";
|
|
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
|
@@ -1431,7 +1431,7 @@ div._input-width_wnpjs_1 {
|
|
|
1431
1431
|
background-color: var(--vc-highlight-bg-color, var(--el-fill-color-light));
|
|
1432
1432
|
}
|
|
1433
1433
|
div._select-width_jk1e7_5 {
|
|
1434
|
-
width: var(--
|
|
1434
|
+
width: var(--v4e1feee3);
|
|
1435
1435
|
}
|
|
1436
1436
|
/* source: src/components/single-player/single-player.vue */
|
|
1437
1437
|
._main_15lus_1 {
|