yc-design-vue 1.2.2 → 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.
Files changed (71) hide show
  1. package/es/Alert/index.vue2.js +2 -2
  2. package/es/Calendar/Calendar.vue2.js +2 -2
  3. package/es/Cascader/CascaderIcon.vue2.js +2 -2
  4. package/es/Checkbox/Checkbox.vue2.js +2 -2
  5. package/es/Collapse/CollapseItem.vue2.js +2 -2
  6. package/es/Drawer/Drawer.vue2.js +2 -2
  7. package/es/Grid/Grid.vue.js +1 -1
  8. package/es/Grid/Grid.vue2.js +2 -2
  9. package/es/Input/Input.vue2.js +2 -2
  10. package/es/Input/InputSuffix.vue2.js +2 -2
  11. package/es/InputTag/index.vue2.js +2 -2
  12. package/es/Menu/SubMenu.vue2.js +2 -2
  13. package/es/Message/Message.vue2.js +2 -2
  14. package/es/Modal/Modal.vue2.js +2 -2
  15. package/es/Notification/Notification.vue2.js +2 -2
  16. package/es/PageHeader/index.vue2.js +2 -2
  17. package/es/Radio/Radio.vue2.js +2 -2
  18. package/es/Select/SelectIcon.vue2.js +2 -2
  19. package/es/Tabs/TabButton.vue2.js +2 -2
  20. package/es/Tag/index.vue2.js +2 -2
  21. package/es/Textarea/index.vue2.js +2 -2
  22. package/es/TimePicker/TimePicker.vue2.js +2 -2
  23. package/es/Timeline/Timeline.vue.js +1 -1
  24. package/es/Timeline/Timeline.vue2.js +2 -25
  25. package/es/Timeline/TimelineItemPending.vue.d.ts +22 -0
  26. package/es/Timeline/TimelineItemPending.vue.js +34 -0
  27. package/es/Timeline/TimelineItemPending.vue2.js +4 -0
  28. package/es/Timeline/hooks/useContext.d.ts +3 -1
  29. package/es/Timeline/hooks/useContext.js +5 -2
  30. package/es/Transfer/TransferPanel.vue2.js +2 -2
  31. package/es/Trigger/index.vue2.js +2 -2
  32. package/es/_shared/components/{ExpandTransition.vue.js → ExpandTransition.vue2.js} +1 -1
  33. package/es/_shared/components/{IconButton.vue.js → IconButton.vue2.js} +1 -1
  34. package/es/style.css +1 -1
  35. package/lib/Alert/index.vue2.js +1 -1
  36. package/lib/Calendar/Calendar.vue2.js +1 -1
  37. package/lib/Cascader/CascaderIcon.vue2.js +1 -1
  38. package/lib/Checkbox/Checkbox.vue2.js +1 -1
  39. package/lib/Collapse/CollapseItem.vue2.js +1 -1
  40. package/lib/Drawer/Drawer.vue2.js +1 -1
  41. package/lib/Grid/Grid.vue.js +1 -1
  42. package/lib/Grid/Grid.vue2.js +1 -1
  43. package/lib/Input/Input.vue2.js +1 -1
  44. package/lib/Input/InputSuffix.vue2.js +1 -1
  45. package/lib/InputTag/index.vue2.js +1 -1
  46. package/lib/Menu/SubMenu.vue2.js +1 -1
  47. package/lib/Message/Message.vue2.js +1 -1
  48. package/lib/Modal/Modal.vue2.js +1 -1
  49. package/lib/Notification/Notification.vue2.js +1 -1
  50. package/lib/PageHeader/index.vue2.js +1 -1
  51. package/lib/Radio/Radio.vue2.js +1 -1
  52. package/lib/Select/SelectIcon.vue2.js +1 -1
  53. package/lib/Tabs/TabButton.vue2.js +1 -1
  54. package/lib/Tag/index.vue2.js +1 -1
  55. package/lib/Textarea/index.vue2.js +1 -1
  56. package/lib/TimePicker/TimePicker.vue2.js +1 -1
  57. package/lib/Timeline/Timeline.vue.js +1 -1
  58. package/lib/Timeline/Timeline.vue2.js +1 -1
  59. package/lib/Timeline/TimelineItemPending.vue.d.ts +22 -0
  60. package/lib/Timeline/TimelineItemPending.vue.js +1 -0
  61. package/lib/Timeline/TimelineItemPending.vue2.js +1 -0
  62. package/lib/Timeline/hooks/useContext.d.ts +3 -1
  63. package/lib/Timeline/hooks/useContext.js +1 -1
  64. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  65. package/lib/Trigger/index.vue2.js +1 -1
  66. package/lib/_shared/components/ExpandTransition.vue2.js +1 -0
  67. package/lib/_shared/components/IconButton.vue2.js +1 -0
  68. package/lib/style.css +1 -1
  69. package/package.json +1 -1
  70. package/lib/_shared/components/ExpandTransition.vue.js +0 -1
  71. package/lib/_shared/components/IconButton.vue.js +0 -1
@@ -1,12 +1,12 @@
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.vue.js";
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
  import "../Empty/index.js";
8
8
  /* empty css */
9
- /* empty css */
9
+ /* empty css */
10
10
  const _hoisted_1 = {
11
11
  key: 0,
12
12
  class: "yc-alert-icon"
@@ -7,8 +7,8 @@ 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.vue.js";
11
- /* empty css */
10
+ import IconButton from "../_shared/components/IconButton.vue2.js";
11
+ /* empty css */
12
12
  import Button from "../Button/index.js";
13
13
  import "../Radio/index.js";
14
14
  import MonthCalendar from "./CalendarMonth.vue.js";
@@ -6,8 +6,8 @@ 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.vue.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue2.js";
10
+ /* empty css */
11
11
  import Spin from "../Spin/index.js";
12
12
  const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
13
13
  const _hoisted_2 = {
@@ -8,8 +8,8 @@ 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.vue.js";
12
- /* empty css */
11
+ import IconButton from "../_shared/components/IconButton.vue2.js";
12
+ /* empty css */
13
13
  const _hoisted_1 = ["value", "disabled", "checked"];
14
14
  const _hoisted_2 = { class: "yc-checkbox-icon" };
15
15
  const _hoisted_3 = {
@@ -6,8 +6,8 @@ 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.vue.js";
10
- import ExpandTransition from "../_shared/components/ExpandTransition.vue.js";
9
+ import IconButton from "../_shared/components/IconButton.vue2.js";
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
13
  key: 1,
@@ -5,8 +5,8 @@ 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.vue.js";
9
- /* empty css */
8
+ import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ /* empty css */
10
10
  /* empty css */
11
11
  const _hoisted_1 = {
12
12
  key: 0,
@@ -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-8bbcc82b"]]);
4
+ const _Grid = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-671eadee"]]);
5
5
  export {
6
6
  _Grid as default
7
7
  };
@@ -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(rowGap))}`,
30
+ gap: `${unref(valueToPx)(unref(rowGap))} ${unref(valueToPx)(unref(colGap))}`,
31
31
  gridTemplateColumns: `repeat(${unref(cols)}, minmax(0px, 1fr))`
32
32
  })
33
33
  }, [
@@ -5,9 +5,9 @@ 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.vue.js";
8
+ import IconButton from "../_shared/components/IconButton.vue2.js";
9
9
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
10
- /* empty css */
10
+ /* empty css */
11
11
  /* empty css */
12
12
  import InputSuffix from "./InputSuffix.vue.js";
13
13
  const _hoisted_1 = ["value", "type", "disabled", "readonly", "placeholder"];
@@ -6,9 +6,9 @@ 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.vue.js";
9
+ import IconButton from "../_shared/components/IconButton.vue2.js";
10
10
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
11
- /* empty css */
11
+ /* empty css */
12
12
  const _hoisted_1 = {
13
13
  key: 0,
14
14
  class: "yc-input-word-limit"
@@ -8,9 +8,9 @@ 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.vue.js";
11
+ import IconButton from "../_shared/components/IconButton.vue2.js";
12
12
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
13
- /* empty css */
13
+ /* empty css */
14
14
  /* empty css */
15
15
  const _hoisted_1 = ["disabled", "readonly", "placeholder"];
16
16
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -6,8 +6,8 @@ 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 */
10
- import ExpandTransition from "../_shared/components/ExpandTransition.vue.js";
9
+ /* empty css */
10
+ import ExpandTransition from "../_shared/components/ExpandTransition.vue2.js";
11
11
  import "./index.js";
12
12
  import MenuItem from "./MenuItem.vue.js";
13
13
  const _hoisted_1 = { class: "yc-menu-inline" };
@@ -6,8 +6,8 @@ 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.vue.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue2.js";
10
+ /* empty css */
11
11
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
12
12
  const _hoisted_1 = {
13
13
  key: 0,
@@ -6,8 +6,8 @@ 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.vue.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue2.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = {
13
13
  key: 0,
@@ -7,8 +7,8 @@ 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.vue.js";
11
- /* empty css */
10
+ import IconButton from "../_shared/components/IconButton.vue2.js";
11
+ /* empty css */
12
12
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
13
13
  const _hoisted_1 = { class: "yc-notification-left" };
14
14
  const _hoisted_2 = {
@@ -6,8 +6,8 @@ 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.vue.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue2.js";
10
+ /* empty css */
11
11
  const _hoisted_1 = { class: "yc-page-header" };
12
12
  const _hoisted_2 = { class: "yc-page-header-wrapper" };
13
13
  const _hoisted_3 = {
@@ -6,8 +6,8 @@ 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.vue.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue2.js";
10
+ /* empty css */
11
11
  const _hoisted_1 = ["value", "checked", "disabled"];
12
12
  const _hoisted_2 = {
13
13
  key: 0,
@@ -6,8 +6,8 @@ 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.vue.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue2.js";
10
+ /* empty css */
11
11
  import Spin from "../Spin/index.js";
12
12
  const _hoisted_1 = { class: "yc-select-suffix-icon" };
13
13
  const _hoisted_2 = {
@@ -1,11 +1,11 @@
1
1
  import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createCommentVNode } from "vue";
2
- import IconButton from "../_shared/components/IconButton.vue.js";
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";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
- /* empty css */
8
+ /* empty css */
9
9
  const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "TabButton",
11
11
  props: {
@@ -6,8 +6,8 @@ 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.vue.js";
10
- /* empty css */
9
+ import IconButton from "../_shared/components/IconButton.vue2.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = {
13
13
  key: 0,
@@ -1,14 +1,14 @@
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.vue.js";
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";
8
8
  import "../_shared/utils/time.js";
9
9
  import "../Empty/index.js";
10
10
  /* empty css */
11
- /* empty css */
11
+ /* empty css */
12
12
  const _hoisted_1 = ["value", "disabled", "readonly", "placeholder"];
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  ...{
@@ -5,8 +5,8 @@ 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.vue.js";
9
- /* empty css */
8
+ import IconButton from "../_shared/components/IconButton.vue2.js";
9
+ /* empty css */
10
10
  /* empty css */
11
11
  import _sfc_main$1 from "../_shared/icons/IconTime.vue.js";
12
12
  import Trigger from "../Trigger/index.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-cf2690e2"]]);
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, createBlock, createCommentVNode, Fragment, renderList, resolveDynamicComponent, withCtx, toDisplayString, renderSlot, createVNode } from "vue";
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
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./TimelineItemPending.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -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
- return findComponentsFromVnodes(
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,8 +11,8 @@ 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.vue.js";
15
- /* empty css */
14
+ import IconButton from "../_shared/components/IconButton.vue2.js";
15
+ /* empty css */
16
16
  const _hoisted_1 = { class: "yc-transfer-view" };
17
17
  const _hoisted_2 = { class: "yc-transfer-view-header" };
18
18
  const _hoisted_3 = { class: "yc-transfer-view-header-title" };
@@ -7,9 +7,9 @@ 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
- /* empty css */
12
+ /* empty css */
13
13
  const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  ...{
15
15
  name: "Trigger",
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from "./ExpandTransition.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const ExpandTransition = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-6e588238"]]);
5
5
  export {
@@ -1,5 +1,5 @@
1
1
  import _sfc_main from "./IconButton.vue3.js";
2
- /* empty css */
2
+ /* empty css */
3
3
  import _export_sfc from "../../_virtual/_plugin-vue_export-helper.js";
4
4
  const IconButton = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-8fb80b1e"]]);
5
5
  export {