yc-design-vue 2.2.0 → 2.2.2

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 (45) hide show
  1. package/dist/index.umd.js +1 -1
  2. package/dist/style.css +1 -1
  3. package/es/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  4. package/es/Cascader/Cascader.vue.d.ts +2 -1
  5. package/es/Cascader/Cascader.vue.js +5 -3
  6. package/es/Cascader/CascaderDataPanel.vue.d.ts +33 -0
  7. package/es/Cascader/CascaderDataPanel.vue.js +48 -0
  8. package/es/Cascader/CascaderDataPanel.vue2.js +4 -0
  9. package/es/Cascader/CascaderPanel.vue.js +8 -2
  10. package/es/Cascader/index.css +1 -1
  11. package/es/Cascader/index.d.ts +9 -3
  12. package/es/Cascader/index.js +3 -0
  13. package/es/Cascader/type.d.ts +9 -0
  14. package/es/Input/InputSearch.vue.js +17 -8
  15. package/es/Transfer/TransferPanel.vue.js +1 -1
  16. package/es/Upload/UploadFileList.vue2.js +1 -1
  17. package/es/Upload/UploadPictureCard.vue2.js +1 -1
  18. package/es/_shared/icons/IconDelete.vue.js +28 -1
  19. package/es/_shared/icons/IconDelete.vue2.js +1 -28
  20. package/es/_shared/icons/IconSeparator.vue.js +1 -28
  21. package/es/_shared/icons/IconSeparator.vue2.js +28 -1
  22. package/es/index.js +8 -6
  23. package/es/style.css +1 -1
  24. package/lib/Breadcrumb/BreadcrumbSeparator.vue.js +1 -1
  25. package/lib/Cascader/Cascader.vue.d.ts +2 -1
  26. package/lib/Cascader/Cascader.vue.js +1 -1
  27. package/lib/Cascader/CascaderDataPanel.vue.d.ts +33 -0
  28. package/lib/Cascader/CascaderDataPanel.vue.js +1 -0
  29. package/lib/Cascader/CascaderDataPanel.vue2.js +1 -0
  30. package/lib/Cascader/CascaderPanel.vue.js +1 -1
  31. package/lib/Cascader/index.css +1 -1
  32. package/lib/Cascader/index.d.ts +9 -3
  33. package/lib/Cascader/index.js +1 -1
  34. package/lib/Cascader/type.d.ts +9 -0
  35. package/lib/Input/InputSearch.vue.js +1 -1
  36. package/lib/Transfer/TransferPanel.vue.js +1 -1
  37. package/lib/Upload/UploadFileList.vue2.js +1 -1
  38. package/lib/Upload/UploadPictureCard.vue2.js +1 -1
  39. package/lib/_shared/icons/IconDelete.vue.js +1 -1
  40. package/lib/_shared/icons/IconDelete.vue2.js +1 -1
  41. package/lib/_shared/icons/IconSeparator.vue.js +1 -1
  42. package/lib/_shared/icons/IconSeparator.vue2.js +1 -1
  43. package/lib/index.js +1 -1
  44. package/lib/style.css +1 -1
  45. package/package.json +1 -1
@@ -13,7 +13,7 @@ import "../_shared/utils/time.js";
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  /* empty css */
16
- import _sfc_main$1 from "../_shared/icons/IconSeparator.vue.js";
16
+ import _sfc_main$1 from "../_shared/icons/IconSeparator.vue2.js";
17
17
  const _hoisted_1 = { class: "yc-breadcrumb-item-separator" };
18
18
  const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  __name: "BreadcrumbSeparator",
@@ -196,11 +196,12 @@ declare const __VLS_component: import('vue').DefineComponent<CascaderProps, {},
196
196
  triggerProps: import('../Trigger').TriggerProps;
197
197
  searchDelay: number;
198
198
  tagNowrap: boolean;
199
+ hideTrigger: boolean;
199
200
  pathMode: boolean;
200
201
  expandTrigger: import('..').EventTrigger;
202
+ loadMore: import('./type').LoadMore;
201
203
  expandChild: boolean;
202
204
  searchOptionOnlyLabel: boolean;
203
- loadMore: import('./type').LoadMore;
204
205
  fallback: boolean | import('..').FallBack<CascaderOptionValue | CascaderOptionValue[], string>;
205
206
  }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
206
207
  inputRef: ({
@@ -63,7 +63,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
63
  valueKey: { default: "value" },
64
64
  fallback: { type: [Boolean, Function], default: true },
65
65
  expandChild: { type: Boolean, default: false },
66
- tagNowrap: { type: Boolean, default: false }
66
+ tagNowrap: { type: Boolean, default: false },
67
+ hideTrigger: { type: Boolean, default: false }
67
68
  },
68
69
  emits: ["update:modelValue", "update:inputValue", "update:popupVisible", "change", "input-value-change", "clear", "search", "popup-visible-change", "focus", "blur"],
69
70
  setup(__props, { emit: __emit }) {
@@ -156,7 +157,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
156
157
  }
157
158
  };
158
159
  return (_ctx, _cache) => {
159
- return openBlock(), createBlock(unref(Trigger), mergeProps({
160
+ return !_ctx.hideTrigger ? (openBlock(), createBlock(unref(Trigger), mergeProps({
161
+ key: 0,
160
162
  "popup-visible": unref(computedVisible),
161
163
  "onUpdate:popupVisible": _cache[11] || (_cache[11] = ($event) => isRef(computedVisible) ? computedVisible.value = $event : null),
162
164
  "popup-offset": 4,
@@ -286,7 +288,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
286
288
  ];
287
289
  }),
288
290
  _: 3
289
- }, 16, ["popup-visible", "popup-container", "disabled"]);
291
+ }, 16, ["popup-visible", "popup-container", "disabled"])) : (openBlock(), createBlock(_sfc_main$3, { key: 1 }));
290
292
  };
291
293
  }
292
294
  });
@@ -0,0 +1,33 @@
1
+ import { CascaderPanelProps } from './type';
2
+ declare function __VLS_template(): {
3
+ attrs: Partial<{}>;
4
+ slots: any;
5
+ refs: {};
6
+ rootEl: any;
7
+ };
8
+ type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
9
+ declare const __VLS_component: import('vue').DefineComponent<CascaderPanelProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
10
+ change: (value: import('./type').CascaderValue) => any;
11
+ "update:modelValue": (value: import('./type').CascaderValue) => any;
12
+ }, string, import('vue').PublicProps, Readonly<CascaderPanelProps> & Readonly<{
13
+ onChange?: ((value: import('./type').CascaderValue) => any) | undefined;
14
+ "onUpdate:modelValue"?: ((value: import('./type').CascaderValue) => any) | undefined;
15
+ }>, {
16
+ multiple: boolean;
17
+ modelValue: import('./type').CascaderValue;
18
+ defaultValue: import('./type').CascaderValue;
19
+ options: import('./type').CascaderOption[];
20
+ fieldNames: Record<string, string>;
21
+ valueKey: string;
22
+ pathMode: boolean;
23
+ expandTrigger: import('..').EventTrigger;
24
+ loadMore: import('./type').LoadMore;
25
+ expandChild: boolean;
26
+ }, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
27
+ declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
28
+ export default _default;
29
+ type __VLS_WithTemplateSlots<T, S> = T & {
30
+ new (): {
31
+ $slots: S;
32
+ };
33
+ };
@@ -0,0 +1,48 @@
1
+ import { defineComponent, useSlots, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot } from "vue";
2
+ import _sfc_main$1 from "./Cascader.vue.js";
3
+ /* empty css */
4
+ const _sfc_main = /* @__PURE__ */ defineComponent({
5
+ ...{
6
+ name: "CascaderPanel"
7
+ },
8
+ __name: "CascaderDataPanel",
9
+ props: {
10
+ pathMode: { type: Boolean, default: false },
11
+ multiple: { type: Boolean, default: false },
12
+ modelValue: { default: void 0 },
13
+ defaultValue: { default: (props) => {
14
+ return props.multiple ? [] : "";
15
+ } },
16
+ options: { default: () => [] },
17
+ expandTrigger: { default: "click" },
18
+ loadMore: { type: Function, default: void 0 },
19
+ fieldNames: { default: () => {
20
+ return {};
21
+ } },
22
+ valueKey: { default: "value" },
23
+ expandChild: { type: Boolean, default: false }
24
+ },
25
+ emits: ["update:modelValue", "change"],
26
+ setup(__props) {
27
+ const $slots = useSlots();
28
+ const props = __props;
29
+ return (_ctx, _cache) => {
30
+ return openBlock(), createBlock(_sfc_main$1, mergeProps(props, {
31
+ "hide-trigger": "",
32
+ onChange: _cache[0] || (_cache[0] = (v) => _ctx.$emit("change", v)),
33
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = (v) => _ctx.$emit("update:modelValue", v))
34
+ }), createSlots({ _: 2 }, [
35
+ $slots.empty ? {
36
+ name: "empty",
37
+ fn: withCtx(() => [
38
+ renderSlot(_ctx.$slots, "empty")
39
+ ]),
40
+ key: "0"
41
+ } : void 0
42
+ ]), 1040);
43
+ };
44
+ }
45
+ });
46
+ export {
47
+ _sfc_main as default
48
+ };
@@ -0,0 +1,4 @@
1
+ import _sfc_main from "./CascaderDataPanel.vue.js";
2
+ export {
3
+ _sfc_main as default
4
+ };
@@ -6,6 +6,10 @@ import Scrollbar from "../Scrollbar/index.js";
6
6
  import Spin from "../Spin/index.js";
7
7
  import Empty from "../Empty/index.js";
8
8
  const _hoisted_1 = {
9
+ key: 1,
10
+ class: "yc-cascader-empty"
11
+ };
12
+ const _hoisted_2 = {
9
13
  role: "menu",
10
14
  class: "yc-cascader-list"
11
15
  };
@@ -23,7 +27,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
27
  unref(loading) ? (openBlock(), createBlock(unref(Spin), {
24
28
  key: 0,
25
29
  loading: unref(loading)
26
- }, null, 8, ["loading"])) : !unref(options).length ? (openBlock(), createBlock(resolveDynamicComponent(unref(slots).empty || unref(Empty)), { key: 1 })) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(unref(maxLevel), (i) => {
30
+ }, null, 8, ["loading"])) : !unref(options).length ? (openBlock(), createElementBlock("div", _hoisted_1, [
31
+ (openBlock(), createBlock(resolveDynamicComponent(unref(slots).empty || unref(Empty))))
32
+ ])) : (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList(unref(maxLevel), (i) => {
27
33
  return withDirectives((openBlock(), createElementBlock("div", {
28
34
  key: i,
29
35
  style: normalizeStyle({
@@ -33,7 +39,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
33
39
  }, [
34
40
  createVNode(unref(Scrollbar), { class: "yc-cascader-column-content" }, {
35
41
  default: withCtx(() => [
36
- createElementVNode("ul", _hoisted_1, [
42
+ createElementVNode("ul", _hoisted_2, [
37
43
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(findOptions)(
38
44
  unref(options),
39
45
  i,
@@ -1 +1 @@
1
- .yc-cascader-panel{overflow:hidden;height:200px;background-color:var(--color-bg-popup);border-radius:var(--border-radius-medium);border:1px solid var(--color-fill-3);box-shadow:0 4px 10px rgba(0,0,0,0.1);display:inline-flex}.yc-cascader-panel .yc-cascader-panel-column{position:relative;min-width:120px;border-right:1px solid transparent;background-color:var(--color-bg-popup);display:inline-flex;flex-direction:column}.yc-cascader-panel .yc-cascader-panel-column:not(:last-child){border-right-color:var(--color-fill-3)}.yc-cascader-panel .yc-scrollbar .yc-scrollbar-container{max-height:200px;overflow-y:auto}.yc-cascader-panel .yc-spin{height:100%;min-width:120px;display:flex;justify-content:center;align-items:center}.yc-cascader-panel .yc-empty{min-width:120px}.yc-cascader-search-panel{position:relative;width:100%}.yc-cascader-search-panel .yc-scrollbar{width:100%}.yc-cascader-search-panel .yc-cascader-empty{position:absolute;height:100%;width:100%;display:flex;justify-content:center;align-items:center}.yc-cascader-option{cursor:pointer;position:relative;height:36px;padding-left:12px;min-width:100px;background-color:transparent;color:var(--color-text-1);font-size:14px;line-height:36px;transition:all .2s cubic-bezier(0, 0, 1, 1);display:flex;align-items:center;gap:8px}.yc-cascader-option:not(.yc-cascader-option-disabled):hover{background-color:var(--color-fill-2)}.yc-cascader-option .yc-checkbox{padding-left:0}.yc-cascader-option .yc-cascader-option-label{flex:1;padding-right:34px}.yc-cascader-option .yc-cascader-option-label .yc-icon{position:absolute;top:calc((100% - 12px) / 2);right:10px;color:var(--color-text-2);font-size:12px}.yc-cascader-option-selected{background-color:var(--color-fill-2)}.yc-cascader-option-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.yc-cascader{width:100%;display:inline-flex;align-items:center}.yc-cascader .yc-input-outer .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-1)}.yc-cascader .yc-input-placeholder{color:var(--color-text-3)}.yc-cascader .yc-cascader-suffix-icon,.yc-cascader .yc-cascader-search-icon,.yc-cascader .yc-cascader-clear-icon,.yc-cascader .yc-spin{font-size:12px;color:inherit;flex-shrink:0}.yc-cascader-allow-search .yc-cascader-search-icon{display:none}.yc-cascader-allow-search:focus-within .yc-cascader-clear-icon,.yc-cascader-allow-search:focus-within .yc-cascader-suffix-icon{display:none}.yc-cascader-allow-search:focus-within .yc-cascader-search-icon{display:block}.yc-cascader-allow-search .yc-input-outer .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-3)}.yc-cascader-allow-clear .yc-cascader-clear-icon{display:none}.yc-cascader-allow-clear:hover .yc-cascader-search-icon,.yc-cascader-allow-clear:hover .yc-cascader-suffix-icon{display:none}.yc-cascader-allow-clear:hover .yc-cascader-clear-icon{display:flex}
1
+ .yc-cascader-panel{overflow:hidden;height:200px;background-color:var(--color-bg-popup);border-radius:var(--border-radius-medium);border:1px solid var(--color-fill-3);box-shadow:0 4px 10px rgba(0,0,0,0.1);display:inline-flex}.yc-cascader-panel .yc-cascader-panel-column{position:relative;min-width:120px;border-right:1px solid transparent;background-color:var(--color-bg-popup);display:inline-flex;flex-direction:column}.yc-cascader-panel .yc-cascader-panel-column:not(:last-child){border-right-color:var(--color-fill-3)}.yc-cascader-panel .yc-scrollbar .yc-scrollbar-container{max-height:200px;overflow-y:auto}.yc-cascader-panel .yc-spin{height:100%;min-width:120px;display:flex;justify-content:center;align-items:center}.yc-cascader-panel .yc-cascader-empty .yc-empty{min-width:120px}.yc-cascader-search-panel{position:relative;width:100%}.yc-cascader-search-panel .yc-scrollbar{width:100%}.yc-cascader-search-panel .yc-cascader-empty{position:absolute;height:100%;width:100%;display:flex;justify-content:center;align-items:center}.yc-cascader-option{cursor:pointer;position:relative;height:36px;padding-left:12px;min-width:100px;background-color:transparent;color:var(--color-text-1);font-size:14px;line-height:36px;transition:all .2s cubic-bezier(0, 0, 1, 1);display:flex;align-items:center;gap:8px}.yc-cascader-option:not(.yc-cascader-option-disabled):hover{background-color:var(--color-fill-2)}.yc-cascader-option .yc-checkbox{padding-left:0}.yc-cascader-option .yc-cascader-option-label{flex:1;padding-right:34px}.yc-cascader-option .yc-cascader-option-label .yc-icon{position:absolute;top:calc((100% - 12px) / 2);right:10px;color:var(--color-text-2);font-size:12px}.yc-cascader-option-selected{background-color:var(--color-fill-2)}.yc-cascader-option-disabled{color:var(--color-text-4);background-color:transparent;cursor:not-allowed}.yc-cascader{width:100%;display:inline-flex;align-items:center}.yc-cascader .yc-input-outer .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-1)}.yc-cascader .yc-input-placeholder{color:var(--color-text-3)}.yc-cascader .yc-cascader-suffix-icon,.yc-cascader .yc-cascader-search-icon,.yc-cascader .yc-cascader-clear-icon,.yc-cascader .yc-spin{font-size:12px;color:inherit;flex-shrink:0}.yc-cascader-allow-search .yc-cascader-search-icon{display:none}.yc-cascader-allow-search:focus-within .yc-cascader-clear-icon,.yc-cascader-allow-search:focus-within .yc-cascader-suffix-icon{display:none}.yc-cascader-allow-search:focus-within .yc-cascader-search-icon{display:block}.yc-cascader-allow-search .yc-input-outer .yc-input-wrapper .yc-input::placeholder{color:var(--color-text-3)}.yc-cascader-allow-clear .yc-cascader-clear-icon{display:none}.yc-cascader-allow-clear:hover .yc-cascader-search-icon,.yc-cascader-allow-clear:hover .yc-cascader-suffix-icon{display:none}.yc-cascader-allow-clear:hover .yc-cascader-clear-icon{display:flex}
@@ -1,5 +1,6 @@
1
1
  import { App } from 'vue';
2
2
  import { default as _Cascader } from './Cascader.vue';
3
+ import { default as _CascaderPanel } from './CascaderDataPanel.vue';
3
4
  export type CascaderInstance = InstanceType<typeof _Cascader>;
4
5
  export * from './type';
5
6
  declare const Cascader: {
@@ -50,11 +51,12 @@ declare const Cascader: {
50
51
  triggerProps: import('..').TriggerProps;
51
52
  searchDelay: number;
52
53
  tagNowrap: boolean;
54
+ hideTrigger: boolean;
53
55
  pathMode: boolean;
54
56
  expandTrigger: import('..').EventTrigger;
57
+ loadMore: import('./type').LoadMore;
55
58
  expandChild: boolean;
56
59
  searchOptionOnlyLabel: boolean;
57
- loadMore: import('./type').LoadMore;
58
60
  fallback: boolean | import('..').FallBack<import('./type').CascaderOptionValue | import('./type').CascaderOptionValue[], string>;
59
61
  }, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {
60
62
  inputRef: ({
@@ -235,11 +237,12 @@ declare const Cascader: {
235
237
  triggerProps: import('..').TriggerProps;
236
238
  searchDelay: number;
237
239
  tagNowrap: boolean;
240
+ hideTrigger: boolean;
238
241
  pathMode: boolean;
239
242
  expandTrigger: import('..').EventTrigger;
243
+ loadMore: import('./type').LoadMore;
240
244
  expandChild: boolean;
241
245
  searchOptionOnlyLabel: boolean;
242
- loadMore: import('./type').LoadMore;
243
246
  fallback: boolean | import('..').FallBack<import('./type').CascaderOptionValue | import('./type').CascaderOptionValue[], string>;
244
247
  }>;
245
248
  __isFragment?: never;
@@ -292,11 +295,12 @@ declare const Cascader: {
292
295
  triggerProps: import('..').TriggerProps;
293
296
  searchDelay: number;
294
297
  tagNowrap: boolean;
298
+ hideTrigger: boolean;
295
299
  pathMode: boolean;
296
300
  expandTrigger: import('..').EventTrigger;
301
+ loadMore: import('./type').LoadMore;
297
302
  expandChild: boolean;
298
303
  searchOptionOnlyLabel: boolean;
299
- loadMore: import('./type').LoadMore;
300
304
  fallback: boolean | import('..').FallBack<import('./type').CascaderOptionValue | import('./type').CascaderOptionValue[], string>;
301
305
  }, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & (new () => {
302
306
  $slots: {
@@ -310,9 +314,11 @@ declare const Cascader: {
310
314
  }) & {
311
315
  install: (app: App) => void;
312
316
  };
317
+ export { _CascaderPanel as CascaderPanel };
313
318
  declare module 'vue' {
314
319
  interface GlobalComponents {
315
320
  YcCascader: typeof Cascader;
321
+ YcCascaderPanel: typeof _CascaderPanel;
316
322
  }
317
323
  }
318
324
  export default Cascader;
@@ -1,10 +1,13 @@
1
1
  import _sfc_main from "./Cascader.vue.js";
2
2
  /* empty css */
3
+ import _sfc_main$1 from "./CascaderDataPanel.vue.js";
3
4
  const Cascader = Object.assign(_sfc_main, {
4
5
  install: (app) => {
5
6
  app.component("Yc" + _sfc_main.name, _sfc_main);
7
+ app.component("Yc" + _sfc_main$1.name, _sfc_main$1);
6
8
  }
7
9
  });
8
10
  export {
11
+ _sfc_main$1 as CascaderPanel,
9
12
  Cascader as default
10
13
  };
@@ -33,6 +33,7 @@ export interface CascaderProps {
33
33
  fallback?: boolean | FallBack<CascaderOptionValue | CascaderOptionValue[], string>;
34
34
  expandChild?: boolean;
35
35
  tagNowrap?: boolean;
36
+ hideTrigger?: boolean;
36
37
  }
37
38
  export interface CascaderEmits {
38
39
  (e: 'update:modelValue', value: CascaderValue): void;
@@ -59,6 +60,14 @@ export interface CascaderSlots {
59
60
  data: CascaderOption;
60
61
  }) => VNode[];
61
62
  }
63
+ export type CascaderPanelProps = Pick<CascaderProps, 'pathMode' | 'multiple' | 'modelValue' | 'defaultValue' | 'options' | 'expandTrigger' | 'loadMore' | 'fieldNames' | 'valueKey' | 'expandChild'>;
64
+ export type CascaderPanelEmits = {
65
+ (e: 'update:modelValue', value: CascaderValue): void;
66
+ (e: 'change', value: CascaderValue): void;
67
+ };
68
+ export type CascaderPanelSlots = {
69
+ empty?: () => VNode[];
70
+ };
62
71
  export type CascaderValue = CascaderOptionValue | CascaderOptionValue[] | CascaderOptionValue[][];
63
72
  export type CascaderOptionValue = string | number | Record<string, any>;
64
73
  export type CascaderOption = {
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createVNode, unref } from "vue";
1
+ import { defineComponent, ref, createBlock, openBlock, mergeProps, createSlots, withCtx, renderSlot, createVNode, unref, createTextVNode, toDisplayString } from "vue";
2
2
  import _sfc_main$3 from "../_shared/components/IconButton/index.vue.js";
3
3
  /* empty css */
4
4
  import "../node_modules/b-tween/dist/b-tween.es.js";
@@ -28,7 +28,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  loading: { type: Boolean, default: false },
29
29
  disabled: { type: Boolean, default: false },
30
30
  size: { default: void 0 },
31
- buttonText: { default: "" },
31
+ buttonText: { default: void 0 },
32
32
  buttonProps: { default: () => ({}) }
33
33
  },
34
34
  emits: ["search"],
@@ -80,12 +80,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
80
80
  size: _ctx.size,
81
81
  disabled: _ctx.disabled,
82
82
  loading: _ctx.loading
83
- }, _ctx.buttonProps, { onClick: handleSearch }), {
84
- icon: withCtx(() => [
85
- createVNode(unref(_sfc_main$2))
86
- ]),
87
- _: 1
88
- }, 16, ["size", "disabled", "loading"])
83
+ }, _ctx.buttonProps, { onClick: handleSearch }), createSlots({ _: 2 }, [
84
+ _ctx.buttonText ? {
85
+ name: "default",
86
+ fn: withCtx(() => [
87
+ createTextVNode(toDisplayString(_ctx.buttonText), 1)
88
+ ]),
89
+ key: "0"
90
+ } : {
91
+ name: "icon",
92
+ fn: withCtx(() => [
93
+ createVNode(unref(_sfc_main$2))
94
+ ]),
95
+ key: "1"
96
+ }
97
+ ]), 1040, ["size", "disabled", "loading"])
89
98
  ])
90
99
  ]),
91
100
  key: "1"
@@ -14,7 +14,7 @@ import "../_shared/utils/time.js";
14
14
  /* empty css */
15
15
  /* empty css */
16
16
  import _sfc_main$4 from "../_shared/icons/IconClose.vue.js";
17
- import _sfc_main$2 from "../_shared/icons/IconDelete.vue2.js";
17
+ import _sfc_main$2 from "../_shared/icons/IconDelete.vue.js";
18
18
  import _sfc_main$3 from "../_shared/icons/IconSearch.vue.js";
19
19
  import useTransferContext from "./hooks/useContext.js";
20
20
  import Checkbox from "../Checkbox/index.js";
@@ -14,7 +14,7 @@ import "../_shared/utils/locale.js";
14
14
  import "../_shared/utils/time.js";
15
15
  /* empty css */
16
16
  /* empty css */
17
- import _sfc_main$3 from "../_shared/icons/IconDelete.vue2.js";
17
+ import _sfc_main$3 from "../_shared/icons/IconDelete.vue.js";
18
18
  import _sfc_main$2 from "../_shared/icons/IconFile.vue2.js";
19
19
  const _hoisted_1 = { class: "yc-upload-list-item-content" };
20
20
  const _hoisted_2 = {
@@ -13,7 +13,7 @@ import "../_shared/utils/time.js";
13
13
  /* empty css */
14
14
  /* empty css */
15
15
  /* empty css */
16
- import _sfc_main$3 from "../_shared/icons/IconDelete.vue2.js";
16
+ import _sfc_main$3 from "../_shared/icons/IconDelete.vue.js";
17
17
  import _sfc_main$4 from "../_shared/icons/IconEyeClose.vue.js";
18
18
  import _sfc_main$2 from "../_shared/icons/IconPlus.vue.js";
19
19
  import "../Image/index.js";
@@ -1,4 +1,31 @@
1
- import _sfc_main from "./IconDelete.vue2.js";
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import "../../node_modules/b-tween/dist/b-tween.es.js";
3
+ import "../../node_modules/dayjs/dayjs.min.js";
4
+ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
+ import "../../node_modules/dayjs/plugin/duration.js";
6
+ import "../../node_modules/dayjs/plugin/toObject.js";
7
+ import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
8
+ import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
9
+ import "../utils/dom.js";
10
+ import "../utils/locale.js";
11
+ import "../utils/time.js";
12
+ /* empty css */
13
+ /* empty css */
14
+ import _sfc_main$1 from "../components/Icon/index.vue3.js";
15
+ /* empty css */
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
+ __name: "IconDelete",
18
+ setup(__props) {
19
+ return (_ctx, _cache) => {
20
+ return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
21
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
22
+ createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
23
+ ])]),
24
+ _: 1
25
+ }, 16);
26
+ };
27
+ }
28
+ });
2
29
  export {
3
30
  _sfc_main as default
4
31
  };
@@ -1,31 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import "../../node_modules/b-tween/dist/b-tween.es.js";
3
- import "../../node_modules/dayjs/dayjs.min.js";
4
- import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../../node_modules/dayjs/plugin/duration.js";
6
- import "../../node_modules/dayjs/plugin/toObject.js";
7
- import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
9
- import "../utils/dom.js";
10
- import "../utils/locale.js";
11
- import "../utils/time.js";
12
- /* empty css */
13
- /* empty css */
14
- import _sfc_main$1 from "../components/Icon/index.vue3.js";
15
- /* empty css */
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- __name: "IconDelete",
18
- setup(__props) {
19
- return (_ctx, _cache) => {
20
- return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
21
- default: withCtx(() => [..._cache[0] || (_cache[0] = [
22
- createElementVNode("path", { d: "M5 11h5.5m0 0v29a1 1 0 0 0 1 1h25a1 1 0 0 0 1-1V11m-27 0H16m21.5 0H43m-5.5 0H32m-16 0V7h16v4m-16 0h16M20 18v15m8-15v15" }, null, -1)
23
- ])]),
24
- _: 1
25
- }, 16);
26
- };
27
- }
28
- });
1
+ import _sfc_main from "./IconDelete.vue.js";
29
2
  export {
30
3
  _sfc_main as default
31
4
  };
@@ -1,31 +1,4 @@
1
- import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
- import "../../node_modules/b-tween/dist/b-tween.es.js";
3
- import "../../node_modules/dayjs/dayjs.min.js";
4
- import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
- import "../../node_modules/dayjs/plugin/duration.js";
6
- import "../../node_modules/dayjs/plugin/toObject.js";
7
- import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
8
- import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
9
- import "../utils/dom.js";
10
- import "../utils/locale.js";
11
- import "../utils/time.js";
12
- /* empty css */
13
- /* empty css */
14
- import _sfc_main$1 from "../components/Icon/index.vue3.js";
15
- /* empty css */
16
- const _sfc_main = /* @__PURE__ */ defineComponent({
17
- __name: "IconSeparator",
18
- setup(__props) {
19
- return (_ctx, _cache) => {
20
- return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
21
- default: withCtx(() => [..._cache[0] || (_cache[0] = [
22
- createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
23
- ])]),
24
- _: 1
25
- }, 16);
26
- };
27
- }
28
- });
1
+ import _sfc_main from "./IconSeparator.vue2.js";
29
2
  export {
30
3
  _sfc_main as default
31
4
  };
@@ -1,4 +1,31 @@
1
- import _sfc_main from "./IconSeparator.vue.js";
1
+ import { defineComponent, createBlock, openBlock, unref, normalizeProps, guardReactiveProps, withCtx, createElementVNode } from "vue";
2
+ import "../../node_modules/b-tween/dist/b-tween.es.js";
3
+ import "../../node_modules/dayjs/dayjs.min.js";
4
+ import "../../node_modules/tinycolor2/esm/tinycolor.js";
5
+ import "../../node_modules/dayjs/plugin/duration.js";
6
+ import "../../node_modules/dayjs/plugin/toObject.js";
7
+ import "../../node_modules/dayjs/plugin/isSameOrAfter.js";
8
+ import "../../node_modules/dayjs/plugin/isSameOrBefore.js";
9
+ import "../utils/dom.js";
10
+ import "../utils/locale.js";
11
+ import "../utils/time.js";
12
+ /* empty css */
13
+ /* empty css */
14
+ import _sfc_main$1 from "../components/Icon/index.vue3.js";
15
+ /* empty css */
16
+ const _sfc_main = /* @__PURE__ */ defineComponent({
17
+ __name: "IconSeparator",
18
+ setup(__props) {
19
+ return (_ctx, _cache) => {
20
+ return openBlock(), createBlock(unref(_sfc_main$1), normalizeProps(guardReactiveProps(_ctx.$attrs)), {
21
+ default: withCtx(() => [..._cache[0] || (_cache[0] = [
22
+ createElementVNode("path", { d: "M29.506 6.502 18.493 41.498" }, null, -1)
23
+ ])]),
24
+ _: 1
25
+ }, 16);
26
+ };
27
+ }
28
+ });
2
29
  export {
3
30
  _sfc_main as default
4
31
  };
package/es/index.js CHANGED
@@ -142,10 +142,11 @@ import _sfc_main$D from "./Avatar/AvatarGroup.vue.js";
142
142
  /* empty css */
143
143
  import _sfc_main$E from "./Anchor/AnchorLink.vue.js";
144
144
  /* empty css */
145
- import { default as default2 } from "./Input/InputGroup.vue.js";
145
+ import { default as default2 } from "./Cascader/CascaderDataPanel.vue.js";
146
+ import { default as default3 } from "./Input/InputGroup.vue.js";
146
147
  /* empty css */
147
- import { default as default3 } from "./Input/InputPassword.vue.js";
148
- import { default as default4 } from "./Input/InputSearch.vue.js";
148
+ import { default as default4 } from "./Input/InputPassword.vue.js";
149
+ import { default as default5 } from "./Input/InputSearch.vue.js";
149
150
  const components = {
150
151
  Affix,
151
152
  Alert,
@@ -286,6 +287,7 @@ export {
286
287
  Carousel,
287
288
  _sfc_main$y as CarouselItem,
288
289
  Cascader,
290
+ default2 as CascaderPanel,
289
291
  Checkbox,
290
292
  _sfc_main$x as CheckboxGroup,
291
293
  Collapse,
@@ -313,10 +315,10 @@ export {
313
315
  _sfc_main$l as ImagePreviewAction,
314
316
  _sfc_main$k as ImagePreviewGroup,
315
317
  Input,
316
- default2 as InputGroup,
318
+ default3 as InputGroup,
317
319
  InputNumber,
318
- default3 as InputPassword,
319
- default4 as InputSearch,
320
+ default4 as InputPassword,
321
+ default5 as InputSearch,
320
322
  InputTag,
321
323
  Layout,
322
324
  _sfc_main$j as LayoutContent,