yc-design-vue 1.2.1 → 1.2.3
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/Alert/index.vue2.js +1 -1
- package/es/Calendar/Calendar.vue2.js +1 -1
- package/es/Carousel/Carousel.vue.js +1 -1
- package/es/Carousel/Carousel.vue2.js +9 -10
- package/es/Cascader/CascaderIcon.vue2.js +1 -1
- package/es/Checkbox/Checkbox.vue2.js +1 -1
- package/es/Collapse/CollapseItem.vue2.js +1 -1
- package/es/Descriptions/Descriptions.vue.d.ts +1 -1
- package/es/Descriptions/index.d.ts +3 -3
- package/es/Drawer/Drawer.vue2.js +1 -1
- package/es/Grid/Grid.vue.js +1 -1
- package/es/Grid/Grid.vue2.js +2 -2
- package/es/Grid/GridCol.vue.js +38 -5
- package/es/Input/Input.vue2.js +1 -1
- package/es/Input/InputSuffix.vue2.js +1 -1
- package/es/InputTag/index.vue2.js +1 -1
- package/es/Menu/SubMenu.vue2.js +1 -1
- package/es/Message/Message.vue2.js +1 -1
- package/es/Modal/Modal.vue2.js +1 -1
- package/es/Modal/hooks/useModalClose.d.ts +1 -1
- package/es/Modal/hooks/useModalClose.js +16 -10
- package/es/Notification/Notification.vue2.js +1 -1
- package/es/PageHeader/index.vue2.js +1 -1
- package/es/Radio/Radio.vue2.js +1 -1
- package/es/Select/SelectIcon.vue2.js +1 -1
- package/es/Tabs/TabButton.vue2.js +1 -1
- package/es/Tag/index.vue2.js +1 -1
- package/es/Textarea/index.vue2.js +1 -1
- package/es/TimePicker/TimePicker.vue2.js +1 -1
- package/es/Timeline/Timeline.vue.js +1 -1
- package/es/Timeline/Timeline.vue2.js +2 -25
- package/es/Timeline/TimelineItemPending.vue.d.ts +22 -0
- package/es/Timeline/TimelineItemPending.vue.js +34 -0
- package/es/Timeline/TimelineItemPending.vue2.js +4 -0
- package/es/Timeline/hooks/useContext.d.ts +3 -1
- package/es/Timeline/hooks/useContext.js +5 -2
- package/es/Transfer/TransferPanel.vue2.js +1 -1
- package/es/Trigger/index.vue2.js +1 -1
- package/es/Typography/TypographyBase.vue2.js +2 -2
- package/es/Watermark/index.d.ts +3 -3
- package/es/Watermark/index.vue.d.ts +1 -1
- package/es/_shared/components/{IconButton.vue.js → IconButton.vue2.js} +1 -1
- package/es/_shared/icons/IconCopy.vue.js +1 -16
- package/es/_shared/icons/IconCopy.vue2.js +16 -1
- package/es/_shared/icons/IconEdit.vue.js +1 -16
- package/es/_shared/icons/IconEdit.vue2.js +16 -1
- package/es/node_modules/@vueuse/core/index.js +1 -3
- package/es/node_modules/@vueuse/shared/index.js +1 -76
- package/es/style.css +1 -1
- package/lib/Alert/index.vue2.js +1 -1
- package/lib/Calendar/Calendar.vue2.js +1 -1
- package/lib/Carousel/Carousel.vue.js +1 -1
- package/lib/Carousel/Carousel.vue2.js +1 -1
- package/lib/Cascader/CascaderIcon.vue2.js +1 -1
- package/lib/Checkbox/Checkbox.vue2.js +1 -1
- package/lib/Collapse/CollapseItem.vue2.js +1 -1
- package/lib/Descriptions/Descriptions.vue.d.ts +1 -1
- package/lib/Descriptions/index.d.ts +3 -3
- package/lib/Drawer/Drawer.vue2.js +1 -1
- package/lib/Grid/Grid.vue.js +1 -1
- package/lib/Grid/Grid.vue2.js +1 -1
- package/lib/Grid/GridCol.vue.js +1 -1
- package/lib/Input/Input.vue2.js +1 -1
- package/lib/Input/InputSuffix.vue2.js +1 -1
- package/lib/InputTag/index.vue2.js +1 -1
- package/lib/Menu/SubMenu.vue2.js +1 -1
- package/lib/Message/Message.vue2.js +1 -1
- package/lib/Modal/Modal.vue2.js +1 -1
- package/lib/Modal/hooks/useModalClose.d.ts +1 -1
- package/lib/Modal/hooks/useModalClose.js +1 -1
- package/lib/Notification/Notification.vue2.js +1 -1
- package/lib/PageHeader/index.vue2.js +1 -1
- package/lib/Radio/Radio.vue2.js +1 -1
- package/lib/Select/SelectIcon.vue2.js +1 -1
- package/lib/Tabs/TabButton.vue2.js +1 -1
- package/lib/Tag/index.vue2.js +1 -1
- package/lib/Textarea/index.vue2.js +1 -1
- package/lib/TimePicker/TimePicker.vue2.js +1 -1
- package/lib/Timeline/Timeline.vue.js +1 -1
- package/lib/Timeline/Timeline.vue2.js +1 -1
- package/lib/Timeline/TimelineItemPending.vue.d.ts +22 -0
- package/lib/Timeline/TimelineItemPending.vue.js +1 -0
- package/lib/Timeline/TimelineItemPending.vue2.js +1 -0
- package/lib/Timeline/hooks/useContext.d.ts +3 -1
- package/lib/Timeline/hooks/useContext.js +1 -1
- package/lib/Transfer/TransferPanel.vue2.js +1 -1
- package/lib/Trigger/index.vue2.js +1 -1
- package/lib/Typography/TypographyBase.vue2.js +1 -1
- package/lib/Watermark/index.d.ts +3 -3
- package/lib/Watermark/index.vue.d.ts +1 -1
- package/lib/_shared/components/IconButton.vue2.js +1 -0
- package/lib/_shared/icons/IconCopy.vue.js +1 -1
- package/lib/_shared/icons/IconCopy.vue2.js +1 -1
- package/lib/_shared/icons/IconEdit.vue.js +1 -1
- package/lib/_shared/icons/IconEdit.vue2.js +1 -1
- package/lib/node_modules/@vueuse/core/index.js +1 -1
- package/lib/node_modules/@vueuse/shared/index.js +1 -1
- package/lib/style.css +1 -1
- package/package.json +1 -1
- package/lib/_shared/components/IconButton.vue.js +0 -1
package/es/Alert/index.vue2.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { defineComponent, ref, createBlock, openBlock, Transition, withCtx, createElementBlock, createCommentVNode, normalizeClass, createElementVNode, renderSlot, resolveDynamicComponent, unref, createTextVNode, toDisplayString, createVNode } from "vue";
|
2
2
|
import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
|
3
|
-
import IconButton from "../_shared/components/IconButton.
|
3
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
4
4
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
5
5
|
import "../_shared/utils/dom.js";
|
6
6
|
import "../_shared/utils/time.js";
|
@@ -7,7 +7,7 @@ import "../Empty/index.js";
|
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
11
11
|
/* empty css */
|
12
12
|
import Button from "../Button/index.js";
|
13
13
|
import "../Radio/index.js";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./Carousel.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _Carousel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _Carousel = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c790779f"]]);
|
5
5
|
export {
|
6
6
|
_Carousel as default
|
7
7
|
};
|
@@ -8,7 +8,6 @@ import "../Empty/index.js";
|
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
9
|
import CarouselArrow from "./CarouselArrow.vue.js";
|
10
10
|
import CarouselIndicator from "./CarouselIndicator.vue.js";
|
11
|
-
import { useInterval } from "../node_modules/@vueuse/shared/index.js";
|
12
11
|
const _hoisted_1 = {
|
13
12
|
key: 0,
|
14
13
|
class: "yc-carousel-indicator-wrapper"
|
@@ -42,21 +41,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
41
|
const props = __props;
|
43
42
|
const emits = __emit;
|
44
43
|
const { slideTo, computedCurrent, autoPlay, carouselItems } = useContext().provide(props, emits);
|
45
|
-
|
44
|
+
const autoPlayTimer = ref(0);
|
46
45
|
const stopAutoPlay = () => {
|
46
|
+
if (!autoPlayTimer.value) return;
|
47
47
|
clearInterval(autoPlayTimer.value);
|
48
|
+
autoPlayTimer.value = 0;
|
48
49
|
};
|
49
50
|
const setAutoPlay = () => {
|
50
51
|
var _a;
|
51
52
|
if (!autoPlay.value) return;
|
52
|
-
|
53
|
-
|
54
|
-
{
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
}
|
59
|
-
}
|
53
|
+
stopAutoPlay();
|
54
|
+
autoPlayTimer.value = window.setInterval(
|
55
|
+
() => {
|
56
|
+
slideTo(computedCurrent.value + 1);
|
57
|
+
},
|
58
|
+
((_a = autoPlay.value) == null ? void 0 : _a.interval) ?? 3e3
|
60
59
|
);
|
61
60
|
};
|
62
61
|
const handleChange = async (index) => {
|
@@ -6,7 +6,7 @@ import "../_shared/utils/dom.js";
|
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
/* empty css */
|
11
11
|
import Spin from "../Spin/index.js";
|
12
12
|
const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
|
@@ -8,7 +8,7 @@ import "../Empty/index.js";
|
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconCheckboxChecked.vue.js";
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
10
|
import useContext from "./hooks/useContext.js";
|
11
|
-
import IconButton from "../_shared/components/IconButton.
|
11
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
12
12
|
/* empty css */
|
13
13
|
const _hoisted_1 = ["value", "disabled", "checked"];
|
14
14
|
const _hoisted_2 = { class: "yc-checkbox-icon" };
|
@@ -6,7 +6,7 @@ import "../_shared/utils/time.js";
|
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
8
|
import _sfc_main$1 from "../_shared/icons/IconRight.vue.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
|
11
11
|
const _hoisted_1 = { class: "yc-collapse-item-header-title text-ellipsis" };
|
12
12
|
const _hoisted_2 = {
|
@@ -13,8 +13,8 @@ declare const __VLS_component: import('vue').DefineComponent<DescriptionsProps,
|
|
13
13
|
data: DescData[];
|
14
14
|
title: string;
|
15
15
|
bordered: boolean;
|
16
|
-
align: import('./type').DescriptionsAlign;
|
17
16
|
tableLayout: import('./type').TableLayout;
|
17
|
+
align: import('./type').DescriptionsAlign;
|
18
18
|
labelStyle: import('vue').CSSProperties;
|
19
19
|
valueStyle: import('vue').CSSProperties;
|
20
20
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
@@ -12,8 +12,8 @@ declare const Descriptions: {
|
|
12
12
|
data: import('./type').DescData[];
|
13
13
|
title: string;
|
14
14
|
bordered: boolean;
|
15
|
-
align: import('./type').DescriptionsAlign;
|
16
15
|
tableLayout: import('./type').TableLayout;
|
16
|
+
align: import('./type').DescriptionsAlign;
|
17
17
|
labelStyle: import('vue').CSSProperties;
|
18
18
|
valueStyle: import('vue').CSSProperties;
|
19
19
|
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
@@ -30,8 +30,8 @@ declare const Descriptions: {
|
|
30
30
|
data: import('./type').DescData[];
|
31
31
|
title: string;
|
32
32
|
bordered: boolean;
|
33
|
-
align: import('./type').DescriptionsAlign;
|
34
33
|
tableLayout: import('./type').TableLayout;
|
34
|
+
align: import('./type').DescriptionsAlign;
|
35
35
|
labelStyle: import('vue').CSSProperties;
|
36
36
|
valueStyle: import('vue').CSSProperties;
|
37
37
|
}>;
|
@@ -45,8 +45,8 @@ declare const Descriptions: {
|
|
45
45
|
data: import('./type').DescData[];
|
46
46
|
title: string;
|
47
47
|
bordered: boolean;
|
48
|
-
align: import('./type').DescriptionsAlign;
|
49
48
|
tableLayout: import('./type').TableLayout;
|
49
|
+
align: import('./type').DescriptionsAlign;
|
50
50
|
labelStyle: import('vue').CSSProperties;
|
51
51
|
valueStyle: import('vue').CSSProperties;
|
52
52
|
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
|
package/es/Drawer/Drawer.vue2.js
CHANGED
@@ -5,7 +5,7 @@ import "../_shared/utils/time.js";
|
|
5
5
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
6
6
|
import useModalClose from "../Modal/hooks/useModalClose.js";
|
7
7
|
import Button from "../Button/index.js";
|
8
|
-
import IconButton from "../_shared/components/IconButton.
|
8
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
9
9
|
/* empty css */
|
10
10
|
/* empty css */
|
11
11
|
const _hoisted_1 = {
|
package/es/Grid/Grid.vue.js
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./Grid.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _Grid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _Grid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-671eadee"]]);
|
5
5
|
export {
|
6
6
|
_Grid as default
|
7
7
|
};
|
package/es/Grid/Grid.vue2.js
CHANGED
@@ -19,7 +19,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
19
19
|
},
|
20
20
|
setup(__props) {
|
21
21
|
const props = __props;
|
22
|
-
const { breakpoint, cols, rowGap } = useContext().provide(props);
|
22
|
+
const { breakpoint, cols, rowGap, colGap } = useContext().provide(props);
|
23
23
|
mediaQueryHandler((name) => {
|
24
24
|
breakpoint.value = name;
|
25
25
|
});
|
@@ -27,7 +27,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
27
27
|
return openBlock(), createElementBlock("div", {
|
28
28
|
class: "yc-grid",
|
29
29
|
style: normalizeStyle({
|
30
|
-
gap: `${unref(valueToPx)(unref(rowGap))} ${unref(valueToPx)(unref(
|
30
|
+
gap: `${unref(valueToPx)(unref(rowGap))} ${unref(valueToPx)(unref(colGap))}`,
|
31
31
|
gridTemplateColumns: `repeat(${unref(cols)}, minmax(0px, 1fr))`
|
32
32
|
})
|
33
33
|
}, [
|
package/es/Grid/GridCol.vue.js
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
import { defineComponent, toRefs, computed, createElementBlock, openBlock, normalizeStyle, normalizeClass, unref, renderSlot } from "vue";
|
2
2
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import { getBreakpointValue, valueToPx } from "../_shared/utils/dom.js";
|
4
|
+
import { isString } from "../_shared/utils/is.js";
|
4
5
|
import "../_shared/utils/time.js";
|
5
6
|
import "../Empty/index.js";
|
6
7
|
/* empty css */
|
@@ -21,12 +22,44 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
21
22
|
const { span, order, offset, flex } = toRefs(props);
|
22
23
|
const { gutter, div, breakpoint } = useContext().inject();
|
23
24
|
const style = computed(() => {
|
25
|
+
const curFlex = getBreakpointValue(breakpoint.value, flex.value);
|
26
|
+
const curSpan = getBreakpointValue(
|
27
|
+
breakpoint.value,
|
28
|
+
span.value,
|
29
|
+
24
|
30
|
+
);
|
31
|
+
const curOffset = getBreakpointValue(
|
32
|
+
breakpoint.value,
|
33
|
+
offset.value,
|
34
|
+
0
|
35
|
+
);
|
36
|
+
const baseStyle = {
|
37
|
+
padding: `${valueToPx(gutter.value[1] / 2)} ${valueToPx(
|
38
|
+
gutter.value[0] / 2
|
39
|
+
)}`,
|
40
|
+
order: getBreakpointValue(breakpoint.value, order.value, 0)
|
41
|
+
};
|
42
|
+
if (!curFlex) {
|
43
|
+
if (!curSpan) {
|
44
|
+
return {
|
45
|
+
display: "none"
|
46
|
+
};
|
47
|
+
}
|
48
|
+
return {
|
49
|
+
...baseStyle,
|
50
|
+
flex: `0 0 ${curSpan / 24 * 100}%`,
|
51
|
+
marginLeft: `calc(${curOffset / 24 * 100}%)`
|
52
|
+
};
|
53
|
+
}
|
54
|
+
let styleFlex = "";
|
55
|
+
if (isString(curFlex)) {
|
56
|
+
styleFlex = /\d/.test(curFlex) ? `0 0 ${curFlex}` : curFlex;
|
57
|
+
} else {
|
58
|
+
styleFlex = `${curFlex} 1 0%`;
|
59
|
+
}
|
24
60
|
return {
|
25
|
-
|
26
|
-
|
27
|
-
marginLeft: offset.value ? `calc((100% / 24) * ${getBreakpointValue(breakpoint.value, offset.value, 0)})` : "",
|
28
|
-
order: getBreakpointValue(breakpoint.value, order.value),
|
29
|
-
flex: getBreakpointValue(breakpoint.value, flex.value)
|
61
|
+
...baseStyle,
|
62
|
+
flex: styleFlex
|
30
63
|
};
|
31
64
|
});
|
32
65
|
return (_ctx, _cache) => {
|
package/es/Input/Input.vue2.js
CHANGED
@@ -5,7 +5,7 @@ import "../_shared/utils/time.js";
|
|
5
5
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
6
6
|
import useControlValue from "../_shared/utils/control.js";
|
7
7
|
import useLimitedInput from "./hooks/useLimitedInput.js";
|
8
|
-
import IconButton from "../_shared/components/IconButton.
|
8
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
9
9
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
10
10
|
/* empty css */
|
11
11
|
/* empty css */
|
@@ -6,7 +6,7 @@ import "../Empty/index.js";
|
|
6
6
|
/* empty css */
|
7
7
|
import _sfc_main$3 from "../_shared/icons/IconEyeClose.vue2.js";
|
8
8
|
import _sfc_main$2 from "../_shared/icons/IconEyeOpen.vue2.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
11
11
|
/* empty css */
|
12
12
|
const _hoisted_1 = {
|
@@ -8,7 +8,7 @@ import "../_shared/utils/time.js";
|
|
8
8
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
9
9
|
import useControlValue from "../_shared/utils/control.js";
|
10
10
|
import Tag from "../Tag/index.js";
|
11
|
-
import IconButton from "../_shared/components/IconButton.
|
11
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
12
12
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
13
13
|
/* empty css */
|
14
14
|
/* empty css */
|
package/es/Menu/SubMenu.vue2.js
CHANGED
@@ -6,7 +6,7 @@ import "../_shared/utils/dom.js";
|
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
|
-
/* empty css
|
9
|
+
/* empty css */
|
10
10
|
import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
|
11
11
|
import "./index.js";
|
12
12
|
import MenuItem from "./MenuItem.vue.js";
|
@@ -6,7 +6,7 @@ import "../_shared/utils/time.js";
|
|
6
6
|
import "../Empty/index.js";
|
7
7
|
/* empty css */
|
8
8
|
import { TYPE_ICON_MAP } from "../_shared/constants/index.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
/* empty css */
|
11
11
|
import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
|
12
12
|
const _hoisted_1 = {
|
package/es/Modal/Modal.vue2.js
CHANGED
@@ -6,7 +6,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
|
6
6
|
import useModalClose from "./hooks/useModalClose.js";
|
7
7
|
import useModalDraggable from "./hooks/useModalDraggable.js";
|
8
8
|
import Button from "../Button/index.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
const _hoisted_1 = {
|
@@ -12,7 +12,7 @@ declare const _default: (params: {
|
|
12
12
|
}) => {
|
13
13
|
asyncLoading: Ref<boolean, boolean>;
|
14
14
|
outerVisible: Ref<boolean, boolean>;
|
15
|
-
innerVisible:
|
15
|
+
innerVisible: Ref<boolean, boolean>;
|
16
16
|
handleClose: (type: CloseEventType, ev: MouseEvent | KeyboardEvent, cancelEmits?: boolean) => Promise<void>;
|
17
17
|
handleAfterLeave: () => void;
|
18
18
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { ref, watch } from "vue";
|
1
|
+
import { ref, watch, nextTick } from "vue";
|
2
2
|
import { onKeyStroke } from "../../node_modules/@vueuse/core/index.js";
|
3
3
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
4
4
|
import "../../_shared/utils/dom.js";
|
@@ -17,15 +17,16 @@ const useModalClose = (params) => {
|
|
17
17
|
onBeforeOk,
|
18
18
|
emits
|
19
19
|
} = params;
|
20
|
-
const
|
21
|
-
const asyncLoading = ref(false);
|
22
|
-
const innerVisible = useControlValue(
|
20
|
+
const computedVisible = useControlValue(
|
23
21
|
visible,
|
24
22
|
defaultVisible.value,
|
25
23
|
(val) => {
|
26
24
|
emits("update:visible", val);
|
27
25
|
}
|
28
26
|
);
|
27
|
+
const outerVisible = ref(false);
|
28
|
+
const innerVisible = ref(false);
|
29
|
+
const asyncLoading = ref(false);
|
29
30
|
const handleAfterLeave = () => {
|
30
31
|
emits("close");
|
31
32
|
outerVisible.value = false;
|
@@ -42,19 +43,24 @@ const useModalClose = (params) => {
|
|
42
43
|
emits("ok");
|
43
44
|
}
|
44
45
|
cancelEmits && emits("cancel", ev);
|
45
|
-
|
46
|
+
computedVisible.value = false;
|
46
47
|
};
|
47
48
|
if (escToClose.value) {
|
48
49
|
onKeyStroke(["Escape"], (ev) => {
|
49
|
-
if (!
|
50
|
+
if (!computedVisible.value) return;
|
50
51
|
handleClose("esc", ev);
|
51
52
|
});
|
52
53
|
}
|
53
54
|
watch(
|
54
|
-
() =>
|
55
|
-
(val) => {
|
56
|
-
if (!val)
|
57
|
-
|
55
|
+
() => computedVisible.value,
|
56
|
+
async (val) => {
|
57
|
+
if (!val) {
|
58
|
+
innerVisible.value = val;
|
59
|
+
} else {
|
60
|
+
outerVisible.value = val;
|
61
|
+
await nextTick();
|
62
|
+
innerVisible.value = val;
|
63
|
+
}
|
58
64
|
},
|
59
65
|
{
|
60
66
|
immediate: true
|
@@ -7,7 +7,7 @@ import "../_shared/utils/time.js";
|
|
7
7
|
import { getSlotFunction } from "../_shared/utils/vue-utils.js";
|
8
8
|
import "../Empty/index.js";
|
9
9
|
/* empty css */
|
10
|
-
import IconButton from "../_shared/components/IconButton.
|
10
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
11
11
|
/* empty css */
|
12
12
|
import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
|
13
13
|
const _hoisted_1 = { class: "yc-notification-left" };
|
@@ -6,7 +6,7 @@ import "../Empty/index.js";
|
|
6
6
|
/* empty css */
|
7
7
|
import _sfc_main$1 from "../_shared/icons/IconArrowRight.vue.js";
|
8
8
|
import Divider from "../Divider/index.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
/* empty css */
|
11
11
|
const _hoisted_1 = { class: "yc-page-header" };
|
12
12
|
const _hoisted_2 = { class: "yc-page-header-wrapper" };
|
package/es/Radio/Radio.vue2.js
CHANGED
@@ -6,7 +6,7 @@ import "../Empty/index.js";
|
|
6
6
|
/* empty css */
|
7
7
|
import useControlValue from "../_shared/utils/control.js";
|
8
8
|
import useContext from "./hooks/useContext.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
/* empty css */
|
11
11
|
const _hoisted_1 = ["value", "checked", "disabled"];
|
12
12
|
const _hoisted_2 = {
|
@@ -6,7 +6,7 @@ import "../_shared/utils/dom.js";
|
|
6
6
|
import "../_shared/utils/time.js";
|
7
7
|
import "../Empty/index.js";
|
8
8
|
/* empty css */
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
/* empty css */
|
11
11
|
import Spin from "../Spin/index.js";
|
12
12
|
const _hoisted_1 = { class: "yc-select-suffix-icon" };
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createCommentVNode } from "vue";
|
2
|
-
import IconButton from "../_shared/components/IconButton.
|
2
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
3
3
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
4
4
|
import "../_shared/utils/dom.js";
|
5
5
|
import "../_shared/utils/time.js";
|
package/es/Tag/index.vue2.js
CHANGED
@@ -6,7 +6,7 @@ import "../_shared/utils/time.js";
|
|
6
6
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
7
7
|
import useControlValue from "../_shared/utils/control.js";
|
8
8
|
import Spin from "../Spin/index.js";
|
9
|
-
import IconButton from "../_shared/components/IconButton.
|
9
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
10
10
|
/* empty css */
|
11
11
|
/* empty css */
|
12
12
|
const _hoisted_1 = {
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { defineComponent, toRefs, ref, createElementBlock, openBlock, normalizeClass, unref, createCommentVNode, createElementVNode, createBlock, toDisplayString, normalizeStyle, withCtx, createTextVNode } from "vue";
|
2
2
|
import useTextareaHeight from "./hooks/useTextareaHeight.js";
|
3
3
|
import useLimitedInput from "../Input/hooks/useLimitedInput.js";
|
4
|
-
import IconButton from "../_shared/components/IconButton.
|
4
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
5
5
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
6
6
|
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
7
7
|
import "../_shared/utils/dom.js";
|
@@ -5,7 +5,7 @@ import { isArray } from "../_shared/utils/is.js";
|
|
5
5
|
import { isValidTimeRange } from "../_shared/utils/time.js";
|
6
6
|
import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
7
7
|
import useContext from "./hooks/useContext.js";
|
8
|
-
import IconButton from "../_shared/components/IconButton.
|
8
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
9
9
|
/* empty css */
|
10
10
|
/* empty css */
|
11
11
|
import _sfc_main$1 from "../_shared/icons/IconTime.vue.js";
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import _sfc_main from "./Timeline.vue2.js";
|
2
2
|
/* empty css */
|
3
3
|
import _export_sfc from "../_virtual/_plugin-vue_export-helper.js";
|
4
|
-
const _Timeline = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
4
|
+
const _Timeline = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-5c440608"]]);
|
5
5
|
export {
|
6
6
|
_Timeline as default
|
7
7
|
};
|
@@ -1,14 +1,5 @@
|
|
1
|
-
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref,
|
2
|
-
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
3
|
-
import "../_shared/utils/dom.js";
|
4
|
-
import { isString } from "../_shared/utils/is.js";
|
5
|
-
import "../_shared/utils/time.js";
|
6
|
-
import "../Empty/index.js";
|
7
|
-
/* empty css */
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, Fragment, renderList, createBlock, resolveDynamicComponent } from "vue";
|
8
2
|
import useContext from "./hooks/useContext.js";
|
9
|
-
import TimelineItem from "./TimelineItem.vue.js";
|
10
|
-
import Spin from "../Spin/index.js";
|
11
|
-
const _hoisted_1 = { key: 0 };
|
12
3
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
13
4
|
...{
|
14
5
|
name: "Timeline"
|
@@ -53,21 +44,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
53
44
|
key: i,
|
54
45
|
mode: getPoistion(i)
|
55
46
|
}, null, 8, ["mode"]);
|
56
|
-
}), 128))
|
57
|
-
_ctx.pending ? (openBlock(), createBlock(TimelineItem, {
|
58
|
-
key: 0,
|
59
|
-
"is-ghost": ""
|
60
|
-
}, {
|
61
|
-
dot: withCtx(() => [
|
62
|
-
renderSlot(_ctx.$slots, "dot", {}, () => [
|
63
|
-
createVNode(unref(Spin), { size: 12 })
|
64
|
-
], true)
|
65
|
-
]),
|
66
|
-
default: withCtx(() => [
|
67
|
-
unref(isString)(_ctx.pending) ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.pending), 1)) : createCommentVNode("", true)
|
68
|
-
]),
|
69
|
-
_: 3
|
70
|
-
})) : createCommentVNode("", true)
|
47
|
+
}), 128))
|
71
48
|
], 2);
|
72
49
|
};
|
73
50
|
}
|
@@ -0,0 +1,22 @@
|
|
1
|
+
type __VLS_Props = {
|
2
|
+
pending: boolean | string;
|
3
|
+
};
|
4
|
+
declare function __VLS_template(): {
|
5
|
+
attrs: Partial<{}>;
|
6
|
+
slots: {
|
7
|
+
dot?(_: {}): any;
|
8
|
+
};
|
9
|
+
refs: {};
|
10
|
+
rootEl: HTMLDivElement;
|
11
|
+
};
|
12
|
+
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
13
|
+
declare const __VLS_component: import('vue').DefineComponent<__VLS_Props, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
14
|
+
pending: boolean | string;
|
15
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, HTMLDivElement>;
|
16
|
+
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
17
|
+
export default _default;
|
18
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
19
|
+
new (): {
|
20
|
+
$slots: S;
|
21
|
+
};
|
22
|
+
};
|
@@ -0,0 +1,34 @@
|
|
1
|
+
import { defineComponent, createBlock, openBlock, withCtx, createElementBlock, createCommentVNode, unref, toDisplayString, renderSlot, createVNode } from "vue";
|
2
|
+
import TimelineItem from "./TimelineItem.vue.js";
|
3
|
+
import "../node_modules/tinycolor2/esm/tinycolor.js";
|
4
|
+
import "../_shared/utils/dom.js";
|
5
|
+
import { isString } from "../_shared/utils/is.js";
|
6
|
+
import "../_shared/utils/time.js";
|
7
|
+
import "../Empty/index.js";
|
8
|
+
/* empty css */
|
9
|
+
import Spin from "../Spin/index.js";
|
10
|
+
const _hoisted_1 = { key: 0 };
|
11
|
+
const _sfc_main = /* @__PURE__ */ defineComponent({
|
12
|
+
__name: "TimelineItemPending",
|
13
|
+
props: {
|
14
|
+
pending: { type: [Boolean, String], default: "" }
|
15
|
+
},
|
16
|
+
setup(__props) {
|
17
|
+
return (_ctx, _cache) => {
|
18
|
+
return openBlock(), createBlock(TimelineItem, { "is-ghost": "" }, {
|
19
|
+
dot: withCtx(() => [
|
20
|
+
renderSlot(_ctx.$slots, "dot", {}, () => [
|
21
|
+
createVNode(unref(Spin), { size: 12 })
|
22
|
+
])
|
23
|
+
]),
|
24
|
+
default: withCtx(() => [
|
25
|
+
unref(isString)(_ctx.pending) ? (openBlock(), createElementBlock("span", _hoisted_1, toDisplayString(_ctx.pending), 1)) : createCommentVNode("", true)
|
26
|
+
]),
|
27
|
+
_: 3
|
28
|
+
});
|
29
|
+
};
|
30
|
+
}
|
31
|
+
});
|
32
|
+
export {
|
33
|
+
_sfc_main as default
|
34
|
+
};
|
@@ -11,7 +11,9 @@ declare const _default: () => {
|
|
11
11
|
provide: (props: Props) => {
|
12
12
|
direction: Ref<Direction, Direction>;
|
13
13
|
mode: import('vue').ComputedRef<TimelineMode>;
|
14
|
-
timelineItems: import('vue').ComputedRef<import('../../_shared/type').ObjectData
|
14
|
+
timelineItems: import('vue').ComputedRef<(import('../../_shared/type').ObjectData | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
15
|
+
[key: string]: any;
|
16
|
+
}>)[]>;
|
15
17
|
};
|
16
18
|
inject: () => TimelineContext;
|
17
19
|
};
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import { toRefs, useSlots, computed, provide, inject, ref } from "vue";
|
1
|
+
import { toRefs, useSlots, computed, h, provide, inject, ref } from "vue";
|
2
2
|
import "../../node_modules/tinycolor2/esm/tinycolor.js";
|
3
3
|
import "../../_shared/utils/dom.js";
|
4
4
|
import "../../_shared/utils/time.js";
|
@@ -6,6 +6,7 @@ import { findComponentsFromVnodes } from "../../_shared/utils/vue-utils.js";
|
|
6
6
|
import "../../Empty/index.js";
|
7
7
|
/* empty css */
|
8
8
|
import TimelineItem from "../TimelineItem.vue.js";
|
9
|
+
import _sfc_main from "../TimelineItemPending.vue.js";
|
9
10
|
const TIMELINE_CONTEXT_KEY = "timeline-context";
|
10
11
|
const useContext = () => {
|
11
12
|
const provide$1 = (props) => {
|
@@ -13,6 +14,7 @@ const useContext = () => {
|
|
13
14
|
direction,
|
14
15
|
labelPosition,
|
15
16
|
reverse,
|
17
|
+
pending,
|
16
18
|
mode: _mode
|
17
19
|
} = toRefs(props);
|
18
20
|
const slots = useSlots();
|
@@ -26,10 +28,11 @@ const useContext = () => {
|
|
26
28
|
});
|
27
29
|
const timelineItems = computed(() => {
|
28
30
|
var _a;
|
29
|
-
|
31
|
+
const nodes = findComponentsFromVnodes(
|
30
32
|
((_a = slots.default) == null ? void 0 : _a.call(slots)) || [],
|
31
33
|
TimelineItem.name
|
32
34
|
);
|
35
|
+
return pending.value ? [...nodes, h(_sfc_main, { pending: pending.value }, slots)] : nodes;
|
33
36
|
});
|
34
37
|
provide(TIMELINE_CONTEXT_KEY, {
|
35
38
|
direction,
|
@@ -11,7 +11,7 @@ import useContext from "./hooks/useContext.js";
|
|
11
11
|
import Checkbox from "../Checkbox/index.js";
|
12
12
|
import Scrollbar from "../Scrollbar/index.js";
|
13
13
|
import Input from "../Input/index.js";
|
14
|
-
import IconButton from "../_shared/components/IconButton.
|
14
|
+
import IconButton from "../_shared/components/IconButton.vue2.js";
|
15
15
|
/* empty css */
|
16
16
|
const _hoisted_1 = { class: "yc-transfer-view" };
|
17
17
|
const _hoisted_2 = { class: "yc-transfer-view-header" };
|
package/es/Trigger/index.vue2.js
CHANGED
@@ -7,7 +7,7 @@ import { getGlobalConfig } from "../_shared/utils/global-config.js";
|
|
7
7
|
import useTriggerVisible from "./hooks/useTriggerVisible.js";
|
8
8
|
import useTriggerPosition from "./hooks/useTriggerPosition.js";
|
9
9
|
/* empty css */
|
10
|
-
/* empty css
|
10
|
+
/* empty css */
|
11
11
|
import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
|
12
12
|
/* empty css */
|
13
13
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|