yc-design-vue 1.0.5 → 1.0.7

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 (123) hide show
  1. package/es/Alert/index.d.ts +3 -3
  2. package/es/Alert/index.vue.d.ts +1 -1
  3. package/es/AutoComplete/index.d.ts +10 -10
  4. package/es/AutoComplete/index.vue.d.ts +20 -20
  5. package/es/BackTop/index.vue.js +1 -1
  6. package/es/BackTop/index.vue2.js +0 -1
  7. package/es/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
  8. package/es/Cascader/Cascader.vue.js +1 -1
  9. package/es/Cascader/Cascader.vue2.js +0 -2
  10. package/es/Cascader/CascaderOption.vue.d.ts +1 -1
  11. package/es/ColorPicker/hooks/useContext.d.ts +1 -1
  12. package/es/Descriptions/Descriptions.vue.d.ts +1 -1
  13. package/es/Descriptions/hooks/useContext.d.ts +1 -1
  14. package/es/Descriptions/index.d.ts +3 -3
  15. package/es/Drawer/Drawer.vue.d.ts +1 -1
  16. package/es/Drawer/DrawerService.vue.d.ts +1 -1
  17. package/es/Drawer/index.d.ts +3 -3
  18. package/es/Drawer/index.js +0 -1
  19. package/es/Image/ImagePreview.vue.js +1 -1
  20. package/es/Image/ImagePreview.vue2.js +2 -1
  21. package/es/InputTag/index.d.ts +5 -5
  22. package/es/InputTag/index.vue.d.ts +2 -2
  23. package/es/List/List.vue.d.ts +2 -2
  24. package/es/List/index.d.ts +1 -1
  25. package/es/Mention/index.d.ts +13 -13
  26. package/es/Mention/index.vue.d.ts +21 -21
  27. package/es/Menu/hooks/useContext.js +0 -1
  28. package/es/Message/Message.vue.d.ts +1 -1
  29. package/es/Message/index.d.ts +3 -3
  30. package/es/Modal/Modal.vue.d.ts +2 -2
  31. package/es/Modal/ModalService.vue.d.ts +2 -2
  32. package/es/Modal/hooks/useModalClose.d.ts +1 -1
  33. package/es/Modal/hooks/useModalClose.js +2 -2
  34. package/es/Modal/index.d.ts +6 -6
  35. package/es/Modal/index.js +0 -1
  36. package/es/Notification/Notification.vue.d.ts +3 -3
  37. package/es/Notification/index.d.ts +9 -9
  38. package/es/Pagination/hooks/useContext.d.ts +1 -1
  39. package/es/Popover/index.d.ts +3 -3
  40. package/es/Popover/index.vue.d.ts +1 -1
  41. package/es/Progress/ProgressCircle.vue2.js +1 -1
  42. package/es/Select/Select.vue.d.ts +12 -12
  43. package/es/Select/index.d.ts +10 -10
  44. package/es/Statistic/Countdown.vue.d.ts +1 -1
  45. package/es/Statistic/Statistic.vue.d.ts +1 -1
  46. package/es/Statistic/index.d.ts +6 -6
  47. package/es/Tabs/hooks/useContext.d.ts +1 -1
  48. package/es/Transfer/Transfer.vue.d.ts +1 -1
  49. package/es/Transfer/TransferPanel.vue2.js +2 -2
  50. package/es/Transfer/index.d.ts +3 -3
  51. package/es/_shared/icons/IconDelete.vue.js +16 -1
  52. package/es/_shared/icons/IconDelete.vue2.js +1 -16
  53. package/es/_shared/icons/IconExclamation.vue.js +1 -27
  54. package/es/_shared/icons/IconExclamation.vue2.js +27 -1
  55. package/es/_shared/icons/IconSearch.vue.js +16 -1
  56. package/es/_shared/icons/IconSearch.vue2.js +1 -16
  57. package/es/_shared/icons/IconSeparator.vue.js +16 -1
  58. package/es/_shared/icons/IconSeparator.vue2.js +1 -16
  59. package/es/_shared/utils/dom.d.ts +1 -1
  60. package/es/_shared/utils/fn.js +0 -1
  61. package/es/_shared/utils/global-config.d.ts +7 -5
  62. package/es/_shared/utils/global-config.js +5 -3
  63. package/es/index.d.ts +3 -3
  64. package/es/style.css +1 -1
  65. package/lib/Alert/index.d.ts +3 -3
  66. package/lib/Alert/index.vue.d.ts +1 -1
  67. package/lib/AutoComplete/index.d.ts +10 -10
  68. package/lib/AutoComplete/index.vue.d.ts +20 -20
  69. package/lib/BackTop/index.vue.js +1 -1
  70. package/lib/Breadcrumb/BreadcrumbSeparator.vue2.js +1 -1
  71. package/lib/Cascader/Cascader.vue.js +1 -1
  72. package/lib/Cascader/CascaderOption.vue.d.ts +1 -1
  73. package/lib/ColorPicker/hooks/useContext.d.ts +1 -1
  74. package/lib/Descriptions/Descriptions.vue.d.ts +1 -1
  75. package/lib/Descriptions/hooks/useContext.d.ts +1 -1
  76. package/lib/Descriptions/index.d.ts +3 -3
  77. package/lib/Drawer/Drawer.vue.d.ts +1 -1
  78. package/lib/Drawer/DrawerService.vue.d.ts +1 -1
  79. package/lib/Drawer/index.d.ts +3 -3
  80. package/lib/Image/ImagePreview.vue.js +1 -1
  81. package/lib/Image/ImagePreview.vue2.js +1 -1
  82. package/lib/InputTag/index.d.ts +5 -5
  83. package/lib/InputTag/index.vue.d.ts +2 -2
  84. package/lib/List/List.vue.d.ts +2 -2
  85. package/lib/List/index.d.ts +1 -1
  86. package/lib/Mention/index.d.ts +13 -13
  87. package/lib/Mention/index.vue.d.ts +21 -21
  88. package/lib/Message/Message.vue.d.ts +1 -1
  89. package/lib/Message/index.d.ts +3 -3
  90. package/lib/Modal/Modal.vue.d.ts +2 -2
  91. package/lib/Modal/ModalService.vue.d.ts +2 -2
  92. package/lib/Modal/hooks/useModalClose.d.ts +1 -1
  93. package/lib/Modal/hooks/useModalClose.js +1 -1
  94. package/lib/Modal/index.d.ts +6 -6
  95. package/lib/Notification/Notification.vue.d.ts +3 -3
  96. package/lib/Notification/index.d.ts +9 -9
  97. package/lib/Pagination/hooks/useContext.d.ts +1 -1
  98. package/lib/Popover/index.d.ts +3 -3
  99. package/lib/Popover/index.vue.d.ts +1 -1
  100. package/lib/Progress/ProgressCircle.vue2.js +1 -1
  101. package/lib/Select/Select.vue.d.ts +12 -12
  102. package/lib/Select/index.d.ts +10 -10
  103. package/lib/Statistic/Countdown.vue.d.ts +1 -1
  104. package/lib/Statistic/Statistic.vue.d.ts +1 -1
  105. package/lib/Statistic/index.d.ts +6 -6
  106. package/lib/Tabs/hooks/useContext.d.ts +1 -1
  107. package/lib/Transfer/Transfer.vue.d.ts +1 -1
  108. package/lib/Transfer/TransferPanel.vue2.js +1 -1
  109. package/lib/Transfer/index.d.ts +3 -3
  110. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  111. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  112. package/lib/_shared/icons/IconExclamation.vue.js +1 -1
  113. package/lib/_shared/icons/IconExclamation.vue2.js +1 -1
  114. package/lib/_shared/icons/IconSearch.vue.js +1 -1
  115. package/lib/_shared/icons/IconSearch.vue2.js +1 -1
  116. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  117. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  118. package/lib/_shared/utils/dom.d.ts +1 -1
  119. package/lib/_shared/utils/global-config.d.ts +7 -5
  120. package/lib/_shared/utils/global-config.js +1 -1
  121. package/lib/index.d.ts +3 -3
  122. package/lib/style.css +1 -1
  123. package/package.json +1 -1
@@ -1,30 +1,4 @@
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: "IconExclamation",
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: "M23 9h2v21h-2z" }, null, -1),
10
- createElementVNode("path", {
11
- fill: "currentColor",
12
- stroke: "none",
13
- d: "M23 9h2v21h-2z"
14
- }, null, -1),
15
- createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
16
- createElementVNode("path", {
17
- fill: "currentColor",
18
- stroke: "none",
19
- d: "M23 37h2v2h-2z"
20
- }, null, -1)
21
- ])),
22
- _: 1,
23
- __: [0]
24
- }, 16);
25
- };
26
- }
27
- });
1
+ import _sfc_main from "./IconExclamation.vue2.js";
28
2
  export {
29
3
  _sfc_main as default
30
4
  };
@@ -1,4 +1,30 @@
1
- import _sfc_main from "./IconExclamation.vue.js";
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: "IconExclamation",
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: "M23 9h2v21h-2z" }, null, -1),
10
+ createElementVNode("path", {
11
+ fill: "currentColor",
12
+ stroke: "none",
13
+ d: "M23 9h2v21h-2z"
14
+ }, null, -1),
15
+ createElementVNode("path", { d: "M23 37h2v2h-2z" }, null, -1),
16
+ createElementVNode("path", {
17
+ fill: "currentColor",
18
+ stroke: "none",
19
+ d: "M23 37h2v2h-2z"
20
+ }, null, -1)
21
+ ])),
22
+ _: 1,
23
+ __: [0]
24
+ }, 16);
25
+ };
26
+ }
27
+ });
2
28
  export {
3
29
  _sfc_main as default
4
30
  };
@@ -1,4 +1,19 @@
1
- import _sfc_main from "./IconSearch.vue2.js";
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 { 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
- });
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 _sfc_main from "./IconSeparator.vue2.js";
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 { 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
- });
1
+ import _sfc_main from "./IconSeparator.vue.js";
17
2
  export {
18
3
  _sfc_main as default
19
4
  };
@@ -18,7 +18,7 @@ export declare const findFirstScrollableParent: (element?: HTMLElement) => HTMLE
18
18
  */
19
19
  export declare const calculateEllipsis: (originElement: HTMLElement, ellipsisConfig: EllipsisConfig | undefined, operations: (HTMLElement | HTMLElement[] | null) | undefined, fullText: string) => {
20
20
  tooltip?: {
21
- type?: "tooltip" | "popover" | undefined;
21
+ type?: "popover" | "tooltip" | undefined;
22
22
  props?: Record<string, any> | undefined;
23
23
  title: string;
24
24
  } | undefined;
@@ -68,7 +68,6 @@ const valueToPx = (value) => {
68
68
  if (isNumber(value) || isString(value) && numberReg.test(value)) {
69
69
  return value + "px";
70
70
  }
71
- console.log("value", value);
72
71
  return value;
73
72
  };
74
73
  export {
@@ -11,14 +11,15 @@ export interface ConfigProviderProvide {
11
11
  exchangeTime: Ref<boolean>;
12
12
  slots: Partial<ConfigconfigSlots>;
13
13
  }
14
+ type ValueType = string | undefined | number;
14
15
  export declare const getGlobalConfig: (props?: Props) => {
15
16
  slots: Partial<ConfigconfigSlots>;
16
17
  zIndex: Ref<number, number>;
17
- size: Ref<any, any>;
18
- updateAtScroll: Ref<any, any>;
19
- scrollToClose: Ref<any, any>;
20
- popupContainer: Ref<any, any>;
21
- exchangeTime: Ref<any, any>;
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
- var _a;
12
- 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;
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 {
package/es/index.d.ts CHANGED
@@ -420,9 +420,9 @@ declare const _default: {
420
420
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
421
421
  finish: () => any;
422
422
  }, import('vue').PublicProps, {
423
+ title: string;
423
424
  value: number;
424
425
  start: boolean;
425
- title: string;
426
426
  format: string;
427
427
  easeing: string;
428
428
  valueStyle: import('vue').CSSProperties;
@@ -437,9 +437,9 @@ declare const _default: {
437
437
  }, Readonly<import('./Statistic').CountdownProps> & Readonly<{
438
438
  onFinish?: (() => any) | undefined;
439
439
  }>, {}, {}, {}, {}, {
440
+ title: string;
440
441
  value: number;
441
442
  start: boolean;
442
- title: string;
443
443
  format: string;
444
444
  easeing: string;
445
445
  valueStyle: import('vue').CSSProperties;
@@ -453,9 +453,9 @@ declare const _default: {
453
453
  }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
454
454
  finish: () => any;
455
455
  }, string, {
456
+ title: string;
456
457
  value: number;
457
458
  start: boolean;
458
- title: string;
459
459
  format: string;
460
460
  easeing: string;
461
461
  valueStyle: import('vue').CSSProperties;