yc-design-vue 1.0.6 → 1.0.8
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/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/es/ColorPicker/hooks/useContext.d.ts +1 -1
- package/es/Descriptions/hooks/useContext.d.ts +1 -1
- package/es/Image/ImagePreview.vue.js +1 -1
- package/es/Image/ImagePreview.vue2.js +2 -1
- package/es/InputNumber/InputOperaBtn.vue2.js +1 -1
- package/es/Modal/hooks/useModalClose.d.ts +1 -1
- package/es/Modal/hooks/useModalClose.js +2 -2
- package/es/Pagination/hooks/useContext.d.ts +1 -1
- package/es/Tabs/hooks/useContext.d.ts +1 -1
- package/es/Transfer/TransferPanel.vue2.js +2 -2
- package/es/Trigger/index.vue.js +1 -1
- package/es/Trigger/index.vue2.js +5 -2
- package/es/_shared/icons/IconDelete.vue.js +16 -1
- package/es/_shared/icons/IconDelete.vue2.js +1 -16
- package/es/_shared/icons/IconMinus.vue.js +16 -1
- package/es/_shared/icons/IconMinus.vue2.js +1 -16
- package/es/_shared/icons/IconSearch.vue.js +16 -1
- package/es/_shared/icons/IconSearch.vue2.js +1 -16
- package/es/_shared/icons/IconSeparator.vue.js +16 -1
- package/es/_shared/icons/IconSeparator.vue2.js +1 -16
- package/es/_shared/utils/global-config.d.ts +7 -5
- package/es/_shared/utils/global-config.js +5 -3
- package/es/style.css +1 -1
- package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
- package/lib/ColorPicker/hooks/useContext.d.ts +1 -1
- package/lib/Descriptions/hooks/useContext.d.ts +1 -1
- package/lib/Image/ImagePreview.vue.js +1 -1
- package/lib/Image/ImagePreview.vue2.js +1 -1
- package/lib/InputNumber/InputOperaBtn.vue2.js +1 -1
- package/lib/Modal/hooks/useModalClose.d.ts +1 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- package/lib/Pagination/hooks/useContext.d.ts +1 -1
- package/lib/Tabs/hooks/useContext.d.ts +1 -1
- package/lib/Transfer/TransferPanel.vue2.js +1 -1
- package/lib/Trigger/index.vue.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/_shared/icons/IconDelete.vue.js +1 -1
- package/lib/_shared/icons/IconDelete.vue2.js +1 -1
- package/lib/_shared/icons/IconMinus.vue.js +1 -1
- package/lib/_shared/icons/IconMinus.vue2.js +1 -1
- package/lib/_shared/icons/IconSearch.vue.js +1 -1
- package/lib/_shared/icons/IconSearch.vue2.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue.js +1 -1
- package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
- package/lib/_shared/utils/global-config.d.ts +7 -5
- package/lib/_shared/utils/global-config.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
@@ -5,7 +5,7 @@ import { isUndefined } from "../_shared/utils/is.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$1 from "../_shared/icons/IconSeparator.
|
8
|
+
import _sfc_main$1 from "../_shared/icons/IconSeparator.vue.js";
|
9
9
|
const _hoisted_1 = { class: "yc-breadcrumb-item-separator" };
|
10
10
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
11
11
|
__name: "BreadcrumbSeparator",
|
@@ -19,7 +19,7 @@ type ColorPickerContext = {
|
|
19
19
|
declare const _default: () => {
|
20
20
|
provide: (props: Props, emits: ColorPickerEmits) => {
|
21
21
|
popupVisible: Ref<boolean, boolean>;
|
22
|
-
size:
|
22
|
+
size: import('vue').ComputedRef<number | boolean | import('../../_shared/type').PopupContainer | undefined>;
|
23
23
|
computedColor: import('vue').WritableComputedRef<any, string>;
|
24
24
|
};
|
25
25
|
inject: () => ColorPickerContext;
|
@@ -12,7 +12,7 @@ type DescriptionsContext = {
|
|
12
12
|
declare const _default: () => {
|
13
13
|
provide: (props: Props) => {
|
14
14
|
data: import('vue').ComputedRef<DescData[]>;
|
15
|
-
size:
|
15
|
+
size: import('vue').ComputedRef<number | boolean | import('../../_shared/type').PopupContainer | undefined>;
|
16
16
|
column: import('vue').ComputedRef<number>;
|
17
17
|
layout: Ref<import('..').DescriptionsLayout, import('..').DescriptionsLayout>;
|
18
18
|
};
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./ImagePreview.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const ImagePreview = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-094a0de9"]]);
|
5
5
|
export {
|
6
6
|
ImagePreview as default
|
7
7
|
};
|
@@ -56,6 +56,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
56
56
|
popupContainer: _popupContainer
|
57
57
|
} = toRefs(props);
|
58
58
|
const { zIndex, popupContainer } = getGlobalConfig(props);
|
59
|
+
console.log(popupContainer.value, "popupContainer");
|
59
60
|
const imageRef = ref();
|
60
61
|
const scale = useControlValue(ref(), defaultScale.value);
|
61
62
|
const rotate = ref(0);
|
@@ -163,7 +164,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
163
164
|
transform: `scale(${unref(scale)}, ${unref(scale)})`
|
164
165
|
}),
|
165
166
|
class: "yc-image-preview-img-container",
|
166
|
-
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(handleClose)("mask", $event), ["self"]))
|
167
|
+
onClick: _cache[0] || (_cache[0] = withModifiers(($event) => unref(handleClose)("mask", $event, false), ["self"]))
|
167
168
|
}, [
|
168
169
|
createElementVNode("img", {
|
169
170
|
src: _ctx.src,
|
@@ -5,7 +5,7 @@ import "../_shared/utils/dom.js";
|
|
5
5
|
import "../_shared/utils/time.js";
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
|
-
import _sfc_main$2 from "../_shared/icons/IconMinus.
|
8
|
+
import _sfc_main$2 from "../_shared/icons/IconMinus.vue.js";
|
9
9
|
import _sfc_main$3 from "../_shared/icons/IconPlus.vue.js";
|
10
10
|
import Button from "../Button/index.js";
|
11
11
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
@@ -13,7 +13,7 @@ declare const _default: (params: {
|
|
13
13
|
asyncLoading: Ref<boolean, boolean>;
|
14
14
|
outerVisible: Ref<boolean, boolean>;
|
15
15
|
innerVisible: import('vue').WritableComputedRef<any, boolean>;
|
16
|
-
handleClose: (type: CloseEventType, ev: MouseEvent | KeyboardEvent) => Promise<void>;
|
16
|
+
handleClose: (type: CloseEventType, ev: MouseEvent | KeyboardEvent, cancelEmits?: boolean) => Promise<void>;
|
17
17
|
handleAfterLeave: () => void;
|
18
18
|
};
|
19
19
|
export default _default;
|
@@ -30,7 +30,7 @@ const useModalClose = (params) => {
|
|
30
30
|
emits("close");
|
31
31
|
outerVisible.value = false;
|
32
32
|
};
|
33
|
-
const handleClose = async (type, ev) => {
|
33
|
+
const handleClose = async (type, ev, cancelEmits = true) => {
|
34
34
|
const isClose = ["confirmBtn", "cancelBtn"].includes(type) ? await useOnBeforeClose(type, asyncLoading, onBeforeOk, onBeforeCancel) : true;
|
35
35
|
if (!isClose) {
|
36
36
|
return;
|
@@ -41,7 +41,7 @@ const useModalClose = (params) => {
|
|
41
41
|
if (type == "confirmBtn") {
|
42
42
|
emits("ok");
|
43
43
|
}
|
44
|
-
emits("cancel", ev);
|
44
|
+
cancelEmits && emits("cancel", ev);
|
45
45
|
innerVisible.value = false;
|
46
46
|
};
|
47
47
|
if (escToClose.value) {
|
@@ -14,7 +14,7 @@ interface PaginationContext {
|
|
14
14
|
declare const _default: () => {
|
15
15
|
provide: (props: Props, emits: PaginationEmits) => {
|
16
16
|
total: import('vue').WritableComputedRef<any, number>;
|
17
|
-
size:
|
17
|
+
size: import('vue').ComputedRef<number | boolean | import('../../_shared/type').PopupContainer | undefined>;
|
18
18
|
pages: import('vue').ComputedRef<number>;
|
19
19
|
pagesArray: import('vue').ComputedRef<(string | number)[]>;
|
20
20
|
computedCurrent: import('vue').WritableComputedRef<any, number>;
|
@@ -23,7 +23,7 @@ export type PaneNode = {
|
|
23
23
|
declare const _default: () => {
|
24
24
|
provide: (props: Props, emits: TabsEmits, listRef: Ref<HTMLDivElement | undefined>) => {
|
25
25
|
computedActiveKey: import('vue').WritableComputedRef<any, TabKey>;
|
26
|
-
size:
|
26
|
+
size: import('vue').ComputedRef<number | boolean | import('../../_shared/type').PopupContainer | undefined>;
|
27
27
|
direction: import('vue').ComputedRef<Direction>;
|
28
28
|
position: Ref<TabPositon, TabPositon>;
|
29
29
|
autoSwitch: Ref<boolean, boolean>;
|
@@ -5,8 +5,8 @@ import "../_shared/utils/time.js";
|
|
5
5
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
6
6
|
/* empty css */
|
7
7
|
import _sfc_main$3 from "../_shared/icons/IconClose.vue.js";
|
8
|
-
import _sfc_main$1 from "../_shared/icons/IconDelete.
|
9
|
-
import _sfc_main$2 from "../_shared/icons/IconSearch.
|
8
|
+
import _sfc_main$1 from "../_shared/icons/IconDelete.vue.js";
|
9
|
+
import _sfc_main$2 from "../_shared/icons/IconSearch.vue.js";
|
10
10
|
import useContext from "./hooks/useContext.js";
|
11
11
|
import Checkbox from "../Checkbox/index.js";
|
12
12
|
import Scrollbar from "../Scrollbar/index.js";
|
package/es/Trigger/index.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./index.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _Trigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _Trigger = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-93ea11ef"]]);
|
5
5
|
export {
|
6
6
|
_Trigger as default
|
7
7
|
};
|
package/es/Trigger/index.vue2.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
|
-
import { defineComponent, useSlots, ref, computed, createElementBlock, openBlock, Fragment, createBlock, resolveDynamicComponent, unref, withModifiers, Teleport, createVNode, Transition, withCtx, withDirectives, createCommentVNode, normalizeStyle, normalizeClass, createElementVNode, renderSlot, vShow } from "vue";
|
1
|
+
import { defineComponent, useSlots, toRefs, ref, computed, createElementBlock, openBlock, Fragment, createBlock, resolveDynamicComponent, unref, withModifiers, Teleport, createVNode, Transition, withCtx, withDirectives, createCommentVNode, normalizeStyle, normalizeClass, createElementVNode, renderSlot, vShow } from "vue";
|
2
2
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "../_shared/utils/dom.js";
|
4
|
+
import { isUndefined } from "../_shared/utils/is.js";
|
4
5
|
import "../_shared/utils/time.js";
|
5
6
|
import { findFirstLegitChild } from "../_shared/utils/vue-utils.js";
|
6
7
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
@@ -67,6 +68,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
67
68
|
const slots = useSlots();
|
68
69
|
const props = __props;
|
69
70
|
const emits = __emit;
|
71
|
+
const { popupContainer: _popupContainer } = toRefs(props);
|
70
72
|
const { popupContainer } = getGlobalConfig(props);
|
71
73
|
const popupRef = ref();
|
72
74
|
const triggerRef = ref();
|
@@ -141,7 +143,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
141
143
|
"yc-trigger",
|
142
144
|
`yc-trigger-position-${unref(position)}`,
|
143
145
|
{
|
144
|
-
"yc-trigger-transform-origin": _ctx.needTransformOrigin
|
146
|
+
"yc-trigger-transform-origin": _ctx.needTransformOrigin,
|
147
|
+
"yc-trigger-absolute": !unref(isUndefined)(unref(_popupContainer))
|
145
148
|
},
|
146
149
|
_ctx.$attrs.class
|
147
150
|
]),
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconDelete",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconDelete",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconDelete.vue.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconMinus",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M5 24h38" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconMinus",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M5 24h38" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconMinus.vue.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconSearch",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconSearch",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M33.072 33.071c6.248-6.248 6.248-16.379 0-22.627-6.249-6.249-16.38-6.249-22.628 0-6.248 6.248-6.248 16.379 0 22.627 6.248 6.248 16.38 6.248 22.628 0Zm0 0 8.485 8.485" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconSearch.vue.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -1,4 +1,19 @@
|
|
1
|
-
import
|
1
|
+
import { defineComponent, createBlock, openBlock, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
|
2
|
+
import YcIcon from "../components/Icon.vue2.js";
|
3
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
+
__name: "IconSeparator",
|
5
|
+
setup(__props) {
|
6
|
+
return (_ctx, _cache) => {
|
7
|
+
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
+
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
+
createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
|
10
|
+
])),
|
11
|
+
_: 1,
|
12
|
+
__: [0]
|
13
|
+
}, 16);
|
14
|
+
};
|
15
|
+
}
|
16
|
+
});
|
2
17
|
export {
|
3
18
|
_sfc_main as default
|
4
19
|
};
|
@@ -1,19 +1,4 @@
|
|
1
|
-
import
|
2
|
-
import YcIcon from "../components/Icon.vue2.js";
|
3
|
-
const _sfc_main = /* @__PURE__ */ defineComponent({
|
4
|
-
__name: "IconSeparator",
|
5
|
-
setup(__props) {
|
6
|
-
return (_ctx, _cache) => {
|
7
|
-
return openBlock(), createBlock(YcIcon, normalizeProps(guardReactiveProps(_ctx.$attrs)), {
|
8
|
-
default: withCtx(() => _cache[0] || (_cache[0] = [
|
9
|
-
createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
|
10
|
-
])),
|
11
|
-
_: 1,
|
12
|
-
__: [0]
|
13
|
-
}, 16);
|
14
|
-
};
|
15
|
-
}
|
16
|
-
});
|
1
|
+
import _sfc_main from "./IconSeparator.vue.js";
|
17
2
|
export {
|
18
3
|
_sfc_main as default
|
19
4
|
};
|
@@ -11,14 +11,15 @@ export interface ConfigProviderProvide {
|
|
11
11
|
exchangeTime: Ref<boolean>;
|
12
12
|
slots: Partial<ConfigconfigSlots>;
|
13
13
|
}
|
14
|
+
type ValueType = string | number | boolean | PopupContainer | undefined;
|
14
15
|
export declare const getGlobalConfig: (props?: Props) => {
|
15
16
|
slots: Partial<ConfigconfigSlots>;
|
16
17
|
zIndex: Ref<number, number>;
|
17
|
-
size:
|
18
|
-
updateAtScroll:
|
19
|
-
scrollToClose:
|
20
|
-
popupContainer:
|
21
|
-
exchangeTime:
|
18
|
+
size: import('vue').ComputedRef<ValueType>;
|
19
|
+
updateAtScroll: import('vue').ComputedRef<ValueType>;
|
20
|
+
scrollToClose: import('vue').ComputedRef<ValueType>;
|
21
|
+
popupContainer: import('vue').ComputedRef<ValueType>;
|
22
|
+
exchangeTime: import('vue').ComputedRef<ValueType>;
|
22
23
|
renderEmpty: (name: EmptyComponent) => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
23
24
|
[key: string]: any;
|
24
25
|
}> | (() => VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
@@ -28,3 +29,4 @@ export declare const getGlobalConfig: (props?: Props) => {
|
|
28
29
|
[key: string]: any;
|
29
30
|
}> | (() => VNode[]);
|
30
31
|
};
|
32
|
+
export {};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { inject, ref, toRefs, reactive, isReactive } from "vue";
|
1
|
+
import { inject, ref, toRefs, reactive, isReactive, computed } from "vue";
|
2
2
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "./dom.js";
|
4
4
|
import { isUndefined, isString } from "./is.js";
|
@@ -8,8 +8,10 @@ import Empty from "../../Empty/index.js";
|
|
8
8
|
import _sfc_main from "../icons/IconLoading.vue.js";
|
9
9
|
const CONFIG_PROVIDER_PROVIDE_KEY = "config-props";
|
10
10
|
const getVar = (value, _value) => {
|
11
|
-
|
12
|
-
|
11
|
+
return computed(() => {
|
12
|
+
var _a;
|
13
|
+
return isUndefined(value == null ? void 0 : value.value) || isString(value == null ? void 0 : value.value) && !((_a = value == null ? void 0 : value.value) == null ? void 0 : _a.length) ? _value.value : value.value;
|
14
|
+
});
|
13
15
|
};
|
14
16
|
const getGlobalConfig = (props = {}) => {
|
15
17
|
const {
|