yc-design-vue 1.8.3 → 1.8.5

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 (82) hide show
  1. package/es/Alert/index.vue.js +2 -2
  2. package/es/Calendar/Calendar.vue.js +3 -3
  3. package/es/Cascader/CascaderIcon.vue.js +2 -2
  4. package/es/Checkbox/Checkbox.vue.js +2 -2
  5. package/es/Collapse/CollapseItem.vue.js +2 -2
  6. package/es/ColorPicker/ColorList.vue.js +2 -4
  7. package/es/ColorPicker/ColorPanel.vue.js +2 -4
  8. package/es/Drawer/Drawer.vue.js +4 -6
  9. package/es/Empty/index.vue.js +5 -13
  10. package/es/Image/Image.vue.js +1 -3
  11. package/es/Image/ImagePreviewToolbar.vue.js +2 -4
  12. package/es/Input/Input.vue.js +2 -2
  13. package/es/Input/InputSuffix.vue.js +2 -2
  14. package/es/InputTag/index.vue.js +2 -2
  15. package/es/Menu/SubMenu.vue.js +1 -1
  16. package/es/Message/Message.vue.js +2 -2
  17. package/es/Modal/Modal.vue.js +4 -6
  18. package/es/Notification/Notification.vue.js +2 -2
  19. package/es/PageHeader/index.vue.js +2 -2
  20. package/es/Pagination/Pagination.vue.js +3 -4
  21. package/es/Popconfirm/index.vue.js +2 -4
  22. package/es/Radio/Radio.vue.js +2 -2
  23. package/es/Select/SelectIcon.vue.js +2 -2
  24. package/es/Tabs/TabButton.vue.js +2 -2
  25. package/es/Tag/index.vue.js +2 -2
  26. package/es/Textarea/index.vue.js +2 -2
  27. package/es/TimePicker/TimePicker.vue.js +2 -2
  28. package/es/Transfer/TransferPanel.vue.js +4 -4
  29. package/es/Trigger/index.vue.js +1 -1
  30. package/es/Typography/TypographyBase.vue.js +4 -6
  31. package/es/_shared/components/IconButton.vue3.js +2 -2
  32. package/es/_shared/icons/IconCopy.vue.js +17 -1
  33. package/es/_shared/icons/IconCopy.vue2.js +1 -17
  34. package/es/_shared/icons/IconDelete.vue.js +1 -17
  35. package/es/_shared/icons/IconDelete.vue2.js +17 -1
  36. package/es/_shared/icons/IconEdit.vue.js +17 -1
  37. package/es/_shared/icons/IconEdit.vue2.js +1 -17
  38. package/es/_shared/icons/IconSearch.vue.js +1 -17
  39. package/es/_shared/icons/IconSearch.vue2.js +17 -1
  40. package/es/_shared/locale/i18n.js +1 -1
  41. package/lib/Alert/index.vue.js +1 -1
  42. package/lib/Calendar/Calendar.vue.js +1 -1
  43. package/lib/Cascader/CascaderIcon.vue.js +1 -1
  44. package/lib/Checkbox/Checkbox.vue.js +1 -1
  45. package/lib/Collapse/CollapseItem.vue.js +1 -1
  46. package/lib/ColorPicker/ColorList.vue.js +1 -1
  47. package/lib/ColorPicker/ColorPanel.vue.js +1 -1
  48. package/lib/Drawer/Drawer.vue.js +1 -1
  49. package/lib/Empty/index.vue.js +1 -1
  50. package/lib/Image/Image.vue.js +1 -1
  51. package/lib/Image/ImagePreviewToolbar.vue.js +1 -1
  52. package/lib/Input/Input.vue.js +1 -1
  53. package/lib/Input/InputSuffix.vue.js +1 -1
  54. package/lib/InputTag/index.vue.js +1 -1
  55. package/lib/Menu/SubMenu.vue.js +1 -1
  56. package/lib/Message/Message.vue.js +1 -1
  57. package/lib/Modal/Modal.vue.js +1 -1
  58. package/lib/Notification/Notification.vue.js +1 -1
  59. package/lib/PageHeader/index.vue.js +1 -1
  60. package/lib/Pagination/Pagination.vue.js +1 -1
  61. package/lib/Popconfirm/index.vue.js +1 -1
  62. package/lib/Radio/Radio.vue.js +1 -1
  63. package/lib/Select/SelectIcon.vue.js +1 -1
  64. package/lib/Tabs/TabButton.vue.js +1 -1
  65. package/lib/Tag/index.vue.js +1 -1
  66. package/lib/Textarea/index.vue.js +1 -1
  67. package/lib/TimePicker/TimePicker.vue.js +1 -1
  68. package/lib/Transfer/TransferPanel.vue.js +1 -1
  69. package/lib/Trigger/index.vue.js +1 -1
  70. package/lib/Typography/TypographyBase.vue.js +1 -1
  71. package/lib/_shared/components/IconButton.vue3.js +1 -1
  72. package/lib/_shared/icons/IconCopy.vue.js +1 -1
  73. package/lib/_shared/icons/IconCopy.vue2.js +1 -1
  74. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  75. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  76. package/lib/_shared/icons/IconEdit.vue.js +1 -1
  77. package/lib/_shared/icons/IconEdit.vue2.js +1 -1
  78. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  79. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  80. package/package.json +1 -1
  81. /package/es/_shared/components/{IconButton.vue2.js → IconButton.vue.js} +0 -0
  82. /package/lib/_shared/components/{IconButton.vue2.js → IconButton.vue.js} +0 -0
@@ -1,7 +1,7 @@
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 _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
4
- /* empty css */
3
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
4
+ /* empty css */
5
5
  import "../node_modules/tinycolor2/esm/tinycolor.js";
6
6
  import "../_shared/utils/dom.js";
7
7
  import "../_shared/utils/time.js";
@@ -7,8 +7,8 @@ import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
9
9
  import useControlValue from "../_shared/utils/control.js";
10
- import _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
11
- /* empty css */
10
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
11
+ /* empty css */
12
12
  /* empty css */
13
13
  import Button from "../Button/index.js";
14
14
  import "../Radio/index.js";
@@ -159,7 +159,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
159
159
  size: "small"
160
160
  }, {
161
161
  default: withCtx(() => [
162
- createTextVNode(toDisplayString(unref(t)("calendar.today")), 1)
162
+ createTextVNode(toDisplayString(_ctx.$t("calendar.today")), 1)
163
163
  ]),
164
164
  _: 1
165
165
  })
@@ -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 _sfc_main$2 from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  import Spin from "../Spin/index.js";
13
13
  const _hoisted_1 = { class: "yc-cascader-suffix-icon" };
@@ -8,8 +8,8 @@ import "../Empty/index.js";
8
8
  import _sfc_main$2 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 _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
12
- /* empty css */
11
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
12
+ /* empty css */
13
13
  /* empty css */
14
14
  const _hoisted_1 = ["value", "disabled", "checked"];
15
15
  const _hoisted_2 = { class: "yc-checkbox-icon" };
@@ -6,8 +6,8 @@ import "../_shared/utils/time.js";
6
6
  import "../Empty/index.js";
7
7
  /* empty css */
8
8
  import _sfc_main$2 from "../_shared/icons/IconRight.vue.js";
9
- import _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  import _sfc_main$3 from "../_shared/components/ExpandTransition.vue2.js";
12
12
  /* empty css */
13
13
  const _hoisted_1 = { class: "yc-collapse-item-header-title text-ellipsis" };
@@ -1,5 +1,4 @@
1
- import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, toDisplayString, unref, Fragment, renderList, normalizeStyle } from "vue";
2
- import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
1
+ import { defineComponent, createElementBlock, openBlock, createElementVNode, createCommentVNode, toDisplayString, Fragment, renderList, normalizeStyle } from "vue";
3
2
  const _hoisted_1 = { class: "yc-color-picker-colors-section" };
4
3
  const _hoisted_2 = { class: "yc-color-picker-colors-text" };
5
4
  const _hoisted_3 = {
@@ -16,11 +15,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
16
15
  },
17
16
  emits: ["colorClick"],
18
17
  setup(__props) {
19
- const { t } = useI18n();
20
18
  return (_ctx, _cache) => {
21
19
  return openBlock(), createElementBlock("div", _hoisted_1, [
22
20
  createElementVNode("div", _hoisted_2, toDisplayString(_ctx.label), 1),
23
- !_ctx.colors.length ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(unref(t)("colorPicker.empty")), 1)) : createCommentVNode("", true),
21
+ !_ctx.colors.length ? (openBlock(), createElementBlock("div", _hoisted_3, toDisplayString(_ctx.$t("colorPicker.empty")), 1)) : createCommentVNode("", true),
24
22
  createElementVNode("div", _hoisted_4, [
25
23
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.colors, (color, index) => {
26
24
  return openBlock(), createElementBlock("div", {
@@ -8,7 +8,6 @@ import _sfc_main$4 from "./ColorList.vue.js";
8
8
  /* empty css */
9
9
  import _sfc_main$2 from "./ColorControl.vue.js";
10
10
  /* empty css */
11
- import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
12
11
  const _hoisted_1 = { class: "yc-color-picker-panel-control" };
13
12
  const _hoisted_2 = { class: "yc-color-picker-control-wrapper" };
14
13
  const _hoisted_3 = { class: "yc-color-picker-control-bar-bg" };
@@ -32,7 +31,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
31
  presetColors,
33
32
  historyColors
34
33
  } = useContext().inject();
35
- const { t } = useI18n();
36
34
  const colorBarRef = ref();
37
35
  const alphaBarRef = ref();
38
36
  const paletteRef = ref();
@@ -130,13 +128,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
130
128
  unref(showHistory) || unref(showPreset) ? (openBlock(), createElementBlock("div", _hoisted_4, [
131
129
  unref(showHistory) ? (openBlock(), createBlock(_sfc_main$4, {
132
130
  key: 0,
133
- label: unref(t)("colorPicker.history"),
131
+ label: _ctx.$t("colorPicker.history"),
134
132
  colors: unref(historyColors),
135
133
  onColorClick: handleColorClick
136
134
  }, null, 8, ["label", "colors"])) : createCommentVNode("", true),
137
135
  unref(showPreset) ? (openBlock(), createBlock(_sfc_main$4, {
138
136
  key: 1,
139
- label: unref(t)("colorPicker.preset"),
137
+ label: _ctx.$t("colorPicker.preset"),
140
138
  colors: unref(presetColors),
141
139
  onColorClick: handleColorClick
142
140
  }, null, 8, ["label", "colors"])) : createCommentVNode("", true)
@@ -5,11 +5,10 @@ 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 _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
9
- /* empty css */
8
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
9
+ /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
- import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
13
12
  const _hoisted_1 = {
14
13
  key: 0,
15
14
  class: "yc-drawer-header"
@@ -80,7 +79,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
79
  } = toRefs(props);
81
80
  const { onBeforeOk, onBeforeCancel } = props;
82
81
  const { zIndex, popupContainer } = getGlobalConfig(props);
83
- const { t } = useI18n();
84
82
  const drawerStyle = computed(() => {
85
83
  return {
86
84
  height: placement.value == "left" || placement.value == "right" ? "" : valueToPx(height.value),
@@ -171,7 +169,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
171
169
  onClick: _cache[2] || (_cache[2] = ($event) => unref(handleClose)("cancelBtn", $event))
172
170
  }), {
173
171
  default: withCtx(() => [
174
- createTextVNode(toDisplayString(_ctx.cancelText || unref(t)("drawer.cancelText")), 1)
172
+ createTextVNode(toDisplayString(_ctx.cancelText || _ctx.$t("drawer.cancelText")), 1)
175
173
  ]),
176
174
  _: 1
177
175
  }, 16)) : createCommentVNode("", true),
@@ -182,7 +180,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
182
180
  onClick: _cache[3] || (_cache[3] = ($event) => unref(handleClose)("confirmBtn", $event))
183
181
  }), {
184
182
  default: withCtx(() => [
185
- createTextVNode(toDisplayString(_ctx.okText || unref(t)("drawer.okText")), 1)
183
+ createTextVNode(toDisplayString(_ctx.okText || _ctx.$t("drawer.okText")), 1)
186
184
  ]),
187
185
  _: 1
188
186
  }, 16, ["loading"])
@@ -1,18 +1,14 @@
1
- import { defineComponent, toRefs, computed, createElementBlock, openBlock, createElementVNode, createCommentVNode, renderSlot, createVNode, unref, createTextVNode, toDisplayString } from "vue";
1
+ import { defineComponent, toRefs, createElementBlock, openBlock, createElementVNode, renderSlot, createCommentVNode, createVNode, unref, createTextVNode, toDisplayString } 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";
5
5
  import "./index.js";
6
6
  /* empty css */
7
7
  import _sfc_main$1 from "../_shared/icons/IconEmpty.vue.js";
8
- import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
9
8
  const _hoisted_1 = { class: "yc-empty" };
10
9
  const _hoisted_2 = { class: "yc-empty-image" };
11
10
  const _hoisted_3 = ["src"];
12
- const _hoisted_4 = {
13
- key: 0,
14
- class: "yc-empty-description"
15
- };
11
+ const _hoisted_4 = { class: "yc-empty-description" };
16
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
17
13
  ...{
18
14
  name: "Empty"
@@ -25,10 +21,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25
21
  setup(__props) {
26
22
  const props = __props;
27
23
  const { description: _description } = toRefs(props);
28
- const { t } = useI18n();
29
- const description = computed(
30
- () => _description.value || t("empty.description")
31
- );
32
24
  return (_ctx, _cache) => {
33
25
  return openBlock(), createElementBlock("div", _hoisted_1, [
34
26
  createElementVNode("div", _hoisted_2, [
@@ -41,11 +33,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
33
  createVNode(unref(_sfc_main$1))
42
34
  ])
43
35
  ]),
44
- description.value ? (openBlock(), createElementBlock("div", _hoisted_4, [
36
+ createElementVNode("div", _hoisted_4, [
45
37
  renderSlot(_ctx.$slots, "default", {}, () => [
46
- createTextVNode(toDisplayString(description.value), 1)
38
+ createTextVNode(toDisplayString(_ctx.description || _ctx.$t("empty.description")), 1)
47
39
  ])
48
- ])) : createCommentVNode("", true)
40
+ ])
49
41
  ]);
50
42
  };
51
43
  }
@@ -10,7 +10,6 @@ import useContext from "./hooks/useContext.js";
10
10
  import Spin from "../Spin/index.js";
11
11
  import _sfc_main$1 from "./ImagePreview.vue.js";
12
12
  /* empty css */
13
- import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
14
13
  const _hoisted_1 = ["src", "title", "alt"];
15
14
  const _hoisted_2 = {
16
15
  key: 1,
@@ -61,7 +60,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
61
60
  const emits = __emit;
62
61
  const { src, preview, previewVisible, defaultPreviewVisible } = toRefs(props);
63
62
  const { hasGroupFather, handleClick: previewImage } = useContext().inject();
64
- const { t } = useI18n();
65
63
  const computedVisible = useControlValue(
66
64
  previewVisible,
67
65
  defaultPreviewVisible.value,
@@ -138,7 +136,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
138
136
  renderSlot(_ctx.$slots, "loader", {}, () => [
139
137
  createVNode(unref(Spin), {
140
138
  size: 30,
141
- tip: unref(t)("image.loading")
139
+ tip: _ctx.$t("image.loading")
142
140
  }, null, 8, ["tip"])
143
141
  ])
144
142
  ])
@@ -1,4 +1,4 @@
1
- import { defineComponent, createElementBlock, createCommentVNode, openBlock, renderSlot, Fragment, renderList, createBlock, unref, withCtx, resolveDynamicComponent } from "vue";
1
+ import { defineComponent, createElementBlock, createCommentVNode, openBlock, renderSlot, Fragment, renderList, createBlock, withCtx, resolveDynamicComponent } 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";
@@ -12,7 +12,6 @@ import _sfc_main$3 from "../_shared/icons/IconZoomIn.vue2.js";
12
12
  import _sfc_main$2 from "../_shared/icons/IconZoomOut.vue2.js";
13
13
  import _sfc_main$7 from "./ImagePreviewAction.vue.js";
14
14
  /* empty css */
15
- import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
16
15
  const _hoisted_1 = {
17
16
  key: 0,
18
17
  class: "yc-image-preview-toolbar"
@@ -24,7 +23,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
24
23
  },
25
24
  emits: ["click"],
26
25
  setup(__props) {
27
- const { t } = useI18n();
28
26
  const iconMap = {
29
27
  fullScreen: _sfc_main$6,
30
28
  rotateRight: _sfc_main$5,
@@ -39,7 +37,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
39
37
  return openBlock(), createElementBlock(Fragment, { key: action }, [
40
38
  iconMap[action] ? (openBlock(), createBlock(_sfc_main$7, {
41
39
  key: 0,
42
- name: unref(t)(`imagePreview.${action}`),
40
+ name: _ctx.$t(`imagePreview.${action}`),
43
41
  onClick: (ev) => _ctx.$emit("click", action, ev)
44
42
  }, {
45
43
  default: withCtx(() => [
@@ -5,8 +5,8 @@ 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 _sfc_main$2 from "../_shared/components/IconButton.vue2.js";
9
- /* empty css */
8
+ import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
9
+ /* empty css */
10
10
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
11
11
  /* empty css */
12
12
  /* empty css */
@@ -6,8 +6,8 @@ import "../Empty/index.js";
6
6
  /* empty css */
7
7
  import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue2.js";
8
8
  import _sfc_main$3 from "../_shared/icons/IconEyeOpen.vue2.js";
9
- import _sfc_main$2 from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
12
12
  /* empty css */
13
13
  const _hoisted_1 = {
@@ -8,8 +8,8 @@ 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 _sfc_main$2 from "../_shared/components/IconButton.vue2.js";
12
- /* empty css */
11
+ import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
12
+ /* empty css */
13
13
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
14
14
  /* empty css */
15
15
  /* empty css */
@@ -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 _sfc_main$3 from "../_shared/components/ExpandTransition.vue2.js";
11
11
  /* empty css */
12
12
  import "./index.js";
@@ -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 _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
13
13
  const _hoisted_1 = {
@@ -6,11 +6,10 @@ 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 _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  /* empty css */
13
- import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
14
13
  const _hoisted_1 = {
15
14
  key: 0,
16
15
  class: "yc-modal-footer"
@@ -91,7 +90,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
91
90
  } = toRefs(props);
92
91
  const { onBeforeOk, onBeforeCancel } = props;
93
92
  const { popupContainer, zIndex } = getGlobalConfig(props);
94
- const { t } = useI18n();
95
93
  const {
96
94
  outerVisible,
97
95
  innerVisible,
@@ -223,7 +221,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
223
221
  onClick: _cache[1] || (_cache[1] = ($event) => unref(handleClose)("cancelBtn", $event))
224
222
  }), {
225
223
  default: withCtx(() => [
226
- createTextVNode(toDisplayString(_ctx.cancelText || unref(t)("modal.cancelText")), 1)
224
+ createTextVNode(toDisplayString(_ctx.cancelText || _ctx.$t("modal.cancelText")), 1)
227
225
  ]),
228
226
  _: 1
229
227
  }, 16)) : createCommentVNode("", true),
@@ -234,7 +232,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
234
232
  onClick: _cache[2] || (_cache[2] = ($event) => unref(handleClose)("confirmBtn", $event))
235
233
  }), {
236
234
  default: withCtx(() => [
237
- createTextVNode(toDisplayString(_ctx.okText || unref(t)("modal.okText")), 1)
235
+ createTextVNode(toDisplayString(_ctx.okText || _ctx.$t("modal.okText")), 1)
238
236
  ]),
239
237
  _: 1
240
238
  }, 16, ["loading"])
@@ -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 _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
11
- /* empty css */
10
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
11
+ /* empty css */
12
12
  /* empty css */
13
13
  import { useTimeoutFn } from "../node_modules/@vueuse/shared/index.js";
14
14
  const _hoisted_1 = { class: "yc-notification-left" };
@@ -6,8 +6,8 @@ import "../Empty/index.js";
6
6
  /* empty css */
7
7
  import _sfc_main$2 from "../_shared/icons/IconArrowRight.vue.js";
8
8
  import Divider from "../Divider/index.js";
9
- import _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = { class: "yc-page-header" };
13
13
  const _hoisted_2 = { class: "yc-page-header-wrapper" };
@@ -72,8 +72,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
72
  computedPageSize,
73
73
  size,
74
74
  total,
75
- sizeOptions,
76
- t
75
+ sizeOptions
77
76
  } = useContext().provide(props, emits);
78
77
  const tempCurrent = ref(computedCurrent.value);
79
78
  watch(
@@ -100,7 +99,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
99
  }, [
101
100
  _ctx.showTotal ? (openBlock(), createElementBlock("span", _hoisted_1, [
102
101
  renderSlot(_ctx.$slots, "total", { total: unref(total) }, () => [
103
- createTextVNode(toDisplayString(unref(t)("pagination.total", [unref(total)])), 1)
102
+ createTextVNode(toDisplayString(_ctx.$t("pagination.total", [unref(total)])), 1)
104
103
  ])
105
104
  ])) : createCommentVNode("", true),
106
105
  createElementVNode("ul", {
@@ -172,7 +171,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
172
171
  }, _ctx.pageSizeProps, { disabled: _ctx.disabled }), null, 16, ["modelValue", "options", "size", "disabled"])
173
172
  ])) : createCommentVNode("", true),
174
173
  _ctx.showJumper ? (openBlock(), createElementBlock("span", _hoisted_5, [
175
- createElementVNode("span", _hoisted_6, toDisplayString(unref(t)("pagination.goto")), 1),
174
+ createElementVNode("span", _hoisted_6, toDisplayString(_ctx.$t("pagination.goto")), 1),
176
175
  createVNode(unref(InputNumber), {
177
176
  modelValue: tempCurrent.value,
178
177
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => tempCurrent.value = $event),
@@ -9,7 +9,6 @@ import useControlValue from "../_shared/utils/control.js";
9
9
  import useOnBeforeClose from "../Modal/hooks/useOnBeforeClose.js";
10
10
  import Trigger from "../Trigger/index.js";
11
11
  import Button from "../Button/index.js";
12
- import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
13
12
  const _hoisted_1 = { class: "yc-popconfirm-body" };
14
13
  const _hoisted_2 = { class: "yc-popconfirm-icon" };
15
14
  const _hoisted_3 = { class: "yc-popconfirm-content" };
@@ -55,7 +54,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
54
  const emits = __emit;
56
55
  const { popupVisible, defaultPopupVisible, type } = toRefs(props);
57
56
  const { onBeforeOk, onBeforeCancel } = props;
58
- const { t } = useI18n();
59
57
  const asyncLoading = ref(false);
60
58
  const triggerRef = ref();
61
59
  const computedVisible = useControlValue(
@@ -134,7 +132,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
134
132
  createElementVNode("div", _hoisted_4, [
135
133
  createVNode(unref(Button), mergeProps({ size: "mini" }, _ctx.cancelButtonProps, { onClick: handleCancel }), {
136
134
  default: withCtx(() => [
137
- createTextVNode(toDisplayString(_ctx.cancelText || unref(t)("popconfirm.cancelText")), 1)
135
+ createTextVNode(toDisplayString(_ctx.cancelText || _ctx.$t("popconfirm.cancelText")), 1)
138
136
  ]),
139
137
  _: 1
140
138
  }, 16),
@@ -144,7 +142,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
144
142
  loading: _ctx.okLoading || asyncLoading.value
145
143
  }, _ctx.okButtonProps, { onClick: handleOk }), {
146
144
  default: withCtx(() => [
147
- createTextVNode(toDisplayString(_ctx.okText || unref(t)("popconfirm.okText")), 1)
145
+ createTextVNode(toDisplayString(_ctx.okText || _ctx.$t("popconfirm.okText")), 1)
148
146
  ]),
149
147
  _: 1
150
148
  }, 16, ["loading"])
@@ -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 _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  const _hoisted_1 = ["value", "checked", "disabled"];
13
13
  const _hoisted_2 = {
@@ -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 _sfc_main$2 from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  import Spin from "../Spin/index.js";
13
13
  const _hoisted_1 = { class: "yc-select-suffix-icon" };
@@ -1,6 +1,6 @@
1
1
  import { defineComponent, createBlock, openBlock, unref, mergeProps, withCtx, renderSlot, createCommentVNode } from "vue";
2
- import _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
3
- /* empty css */
2
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
3
+ /* empty css */
4
4
  import "../node_modules/tinycolor2/esm/tinycolor.js";
5
5
  import "../_shared/utils/dom.js";
6
6
  import "../_shared/utils/time.js";
@@ -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 _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
10
- /* empty css */
9
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
10
+ /* empty css */
11
11
  /* empty css */
12
12
  /* empty css */
13
13
  const _hoisted_1 = {
@@ -1,8 +1,8 @@
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 _sfc_main$2 from "../_shared/components/IconButton.vue2.js";
5
- /* empty css */
4
+ import _sfc_main$2 from "../_shared/components/IconButton.vue.js";
5
+ /* empty css */
6
6
  import _sfc_main$1 from "../_shared/components/PreventFocus.vue.js";
7
7
  import "../node_modules/tinycolor2/esm/tinycolor.js";
8
8
  import "../_shared/utils/dom.js";
@@ -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 _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
9
- /* empty css */
8
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
9
+ /* empty css */
10
10
  /* empty css */
11
11
  /* empty css */
12
12
  import _sfc_main$2 from "../_shared/icons/IconTime.vue.js";
@@ -5,14 +5,14 @@ import "../_shared/utils/time.js";
5
5
  import { getGlobalConfig } from "../_shared/utils/global-config.js";
6
6
  /* empty css */
7
7
  import _sfc_main$4 from "../_shared/icons/IconClose.vue.js";
8
- import _sfc_main$2 from "../_shared/icons/IconDelete.vue.js";
9
- import _sfc_main$3 from "../_shared/icons/IconSearch.vue.js";
8
+ import _sfc_main$2 from "../_shared/icons/IconDelete.vue2.js";
9
+ import _sfc_main$3 from "../_shared/icons/IconSearch.vue2.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";
13
13
  import Input from "../Input/index.js";
14
- import _sfc_main$1 from "../_shared/components/IconButton.vue2.js";
15
- /* empty css */
14
+ import _sfc_main$1 from "../_shared/components/IconButton.vue.js";
15
+ /* empty css */
16
16
  /* empty css */
17
17
  const _hoisted_1 = { class: "yc-transfer-view" };
18
18
  const _hoisted_2 = { class: "yc-transfer-view-header" };
@@ -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({
@@ -5,13 +5,12 @@ import { getDomText, sleep } from "../_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$3 from "../_shared/icons/IconCopy.vue2.js";
9
- import _sfc_main$1 from "../_shared/icons/IconEdit.vue2.js";
8
+ import _sfc_main$3 from "../_shared/icons/IconCopy.vue.js";
9
+ import _sfc_main$1 from "../_shared/icons/IconEdit.vue.js";
10
10
  import _sfc_main$2 from "../_shared/icons/IconInfo.vue.js";
11
11
  import useControlValue from "../_shared/utils/control.js";
12
12
  import Input from "../Input/index.js";
13
13
  import Tooltip from "../Tooltip/index.js";
14
- import { useI18n } from "../node_modules/@intlify/vue-i18n-core/dist/vue-i18n-core.js";
15
14
  const _sfc_main = /* @__PURE__ */ defineComponent({
16
15
  ...{
17
16
  name: "TypographyBase"
@@ -58,7 +57,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
57
  underline,
59
58
  bold
60
59
  } = toRefs(props);
61
- const { t } = useI18n();
62
60
  const { isSupported, copy } = useClipboard();
63
61
  const isCopied = ref(false);
64
62
  const contentRef = ref();
@@ -159,7 +157,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
159
157
  onClick: handleEdit
160
158
  }, [
161
159
  createVNode(unref(Tooltip), mergeProps({
162
- content: unref(t)("typography.edit"),
160
+ content: _ctx.$t("typography.edit"),
163
161
  position: "top"
164
162
  }, _ctx.editTooltiProps), {
165
163
  default: withCtx(() => [
@@ -178,7 +176,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
178
176
  createVNode(unref(Tooltip), mergeProps({ position: "top" }, _ctx.copyTooltiProps), {
179
177
  content: withCtx(() => [
180
178
  renderSlot(_ctx.$slots, "copy-tooltip", { copied: isCopied.value }, () => [
181
- createTextVNode(toDisplayString(unref(t)(`typography.${isCopied.value ? "copied" : "copy"}`)), 1)
179
+ createTextVNode(toDisplayString(_ctx.$t(`typography.${isCopied.value ? "copied" : "copy"}`)), 1)
182
180
  ])
183
181
  ]),
184
182
  default: withCtx(() => [
@@ -1,5 +1,5 @@
1
- import _sfc_main from "./IconButton.vue2.js";
2
- /* empty css */
1
+ import _sfc_main from "./IconButton.vue.js";
2
+ /* empty css */
3
3
  export {
4
4
  _sfc_main as default
5
5
  };