@rft-rc/recycle-ui 0.0.1-rc.7 → 0.0.2-rc.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.
@@ -1,9 +1,11 @@
1
1
  type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
2
2
  type ButtonSize = 'mini' | 'small' | 'medium' | 'large';
3
+ type ButtonMode = 'outline' | 'text';
3
4
  interface Props {
4
5
  type?: ButtonType;
5
6
  size?: ButtonSize;
6
- plain?: boolean;
7
+ /** 按钮模式:outline 中空模式,text 文本模式 */
8
+ mode?: ButtonMode;
7
9
  block?: boolean;
8
10
  /** 按钮文本,提供时可不写默认插槽 */
9
11
  label?: string;
@@ -11,24 +13,34 @@ interface Props {
11
13
  round?: number | string | boolean;
12
14
  disabled?: boolean;
13
15
  loading?: boolean;
16
+ /** 前置图标名称 */
17
+ preIcon?: string;
18
+ /** 后置图标名称 */
19
+ suffixIcon?: string;
14
20
  }
15
- declare var __VLS_1: {};
21
+ declare var __VLS_1: {}, __VLS_6: {}, __VLS_8: {};
16
22
  type __VLS_Slots = {} & {
17
- default?: (props: typeof __VLS_1) => any;
23
+ preIcon?: (props: typeof __VLS_1) => any;
24
+ } & {
25
+ default?: (props: typeof __VLS_6) => any;
26
+ } & {
27
+ suffixIcon?: (props: typeof __VLS_8) => any;
18
28
  };
19
29
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
20
30
  click: (ev: MouseEvent) => any;
21
31
  }, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
22
32
  onClick?: ((ev: MouseEvent) => any) | undefined;
23
33
  }>, {
24
- type: ButtonType;
25
34
  size: ButtonSize;
26
- plain: boolean;
27
- block: boolean;
35
+ type: ButtonType;
28
36
  label: string;
37
+ mode: ButtonMode;
38
+ block: boolean;
29
39
  round: number | string | boolean;
30
40
  disabled: boolean;
31
41
  loading: boolean;
42
+ preIcon: string;
43
+ suffixIcon: string;
32
44
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
33
45
  declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
34
46
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.vue"],"names":[],"mappings":"AAmHA,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC3E,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AAExD,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AA0ED,QAAA,IAAI,OAAO,IAAW,CAAE;AACxB,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB/C,QAAA,MAAM,eAAe;;;;;UA7GZ,UAAU;UACV,UAAU;WACT,OAAO;WACP,OAAO;WAEP,MAAM;WAEN,MAAM,GAAG,MAAM,GAAG,OAAO;cACtB,OAAO;aACR,OAAO;6EA4GjB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,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MT,MAAM;UAHP,UAAU;WACT,OAAO;WAIP,MAAM,GAAG,MAAM,GAAG,OAAO;cACtB,OAAO;aACR,OAAO;aAEP,MAAM;gBAEH,MAAM;6EAoKnB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -37,11 +37,11 @@ type __VLS_Slots = {} & {
37
37
  action?: (props: typeof __VLS_9) => any;
38
38
  };
39
39
  declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
40
- round: number | string;
40
+ color: string;
41
41
  title: string;
42
+ round: number | string;
42
43
  width: string | number;
43
44
  gap: number | string;
44
- color: string;
45
45
  topBgColor: string;
46
46
  status: string;
47
47
  statusColor: string;
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/card/index.vue"],"names":[],"mappings":"AAyLA,UAAU,KAAK;IACb,mBAAmB;IACnB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,cAAc;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,gCAAgC;IAChC,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,aAAa;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0BAA0B;IAC1B,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,mCAAmC;IACnC,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,+BAA+B;IAC/B,OAAO,CAAC,EAAE,MAAM,CAAC;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AK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB9C,QAAA,MAAM,eAAe;WA5MX,MAAM;WAIN,MAAM;WAMN,MAAM,GAAG,MAAM;WAUf,MAAM,GAAG,MAAM;SAFjB,MAAM,GAAG,MAAM;gBAhBR,MAAM;YAIV,MAAM;iBAED,MAAM;cAIT,OAAO;eAEN,MAAM;aAER,MAAM;YAMP,MAAM,GAAG,MAAM;6EA6LxB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -15,9 +15,9 @@ export declare const RcIcon: import("vue").DefineComponent<{
15
15
  code?: string | number;
16
16
  }> & Readonly<{}>, {
17
17
  size: number | string;
18
- code: string | number;
19
18
  color: string;
20
19
  spin: boolean;
20
+ code: string | number;
21
21
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
22
22
  export default Icon;
23
23
  //# sourceMappingURL=index.d.ts.map
@@ -12,9 +12,9 @@ type __VLS_Props = {
12
12
  };
13
13
  declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
14
14
  size: number | string;
15
- code: string | number;
16
15
  color: string;
17
16
  spin: boolean;
17
+ code: string | number;
18
18
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
19
  export default _default;
20
20
  //# sourceMappingURL=index.vue.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.vue"],"names":[],"mappings":"AA0GA,KAAK,WAAW,GAAG;IACjB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;;UAPO,MAAM,GAAG,MAAM;UAMf,MAAM,GAAG,MAAM;WAJd,MAAM;UAEP,OAAO;;AA+GhB,wBAOG"}
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.vue"],"names":[],"mappings":"AA0GA,KAAK,WAAW,GAAG;IACjB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;;UAPO,MAAM,GAAG,MAAM;WAEd,MAAM;UAEP,OAAO;UAEP,MAAM,GAAG,MAAM;;AA6GxB,wBAOG"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * @description 基础用法
3
+ */
4
+ import type { App } from 'vue';
5
+ import RcSearchArea from './index.vue';
6
+ export { RcSearchArea };
7
+ export type { FilterItem, FilterOption } from './index.vue';
8
+ export declare const install: (app: App) => void;
9
+ export default RcSearchArea;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/search-area/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,YAAY,MAAM,aAAa,CAAC;AAEvC,OAAO,EAAE,YAAY,EAAE,CAAC;AACxB,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AAE5D,eAAO,MAAM,OAAO,GAAI,KAAK,GAAG,SAG/B,CAAC;AAEF,eAAe,YAAY,CAAC"}
@@ -0,0 +1,70 @@
1
+ export interface FilterOption {
2
+ label: string;
3
+ value: any;
4
+ [key: string]: any;
5
+ }
6
+ export interface FilterItem {
7
+ /** 筛选项标签 */
8
+ label: string;
9
+ /** 筛选项唯一标识 */
10
+ key: string;
11
+ /** 选项列表 */
12
+ options: FilterOption[] | string[];
13
+ /** 筛选类型:single 单选,multiple 多选,tree-single 树形单选,tree-multiple 树形多选,input 输入框(默认 multiple) */
14
+ type?: 'single' | 'multiple' | 'tree-single' | 'tree-multiple' | 'input';
15
+ /** 多选时的列数(默认 2) */
16
+ column?: number;
17
+ /** 格式化 value,默认返回原始数据。为 string 时,会作为 key 从原始数据中获取值,相当于 (d) => d[format]。为函数时,以函数返回结果作为 value */
18
+ format?: ((data: FilterOption) => any) | string;
19
+ /** 渲染选项内容。为 string 时,返回 d[string]。为 function 时,返回函数结果 */
20
+ renderItem?: ((data: FilterOption) => any) | string;
21
+ /** 选中后在结果中显示的内容,默认和 renderItem 相同 */
22
+ renderResult?: ((data: FilterOption) => any) | string;
23
+ /** 树形数据下,指定子数据的属性名,有值时可以展示树形结构 */
24
+ childrenKey?: string;
25
+ /** 输入框类型的占位符(仅 type='input' 时有效) */
26
+ placeholder?: string;
27
+ /** 是否使用插槽自定义渲染,为 true 时使用名为 key 的插槽 */
28
+ slot?: boolean;
29
+ }
30
+ type __VLS_Props = {
31
+ /** 筛选项配置 */
32
+ items: FilterItem[];
33
+ /** 当前筛选值(支持 v-model) */
34
+ modelValue?: Record<string, any>;
35
+ /** 是否显示蒙层 */
36
+ showMask?: boolean;
37
+ };
38
+ declare var __VLS_14: string, __VLS_15: {
39
+ value: any;
40
+ 'update:value': (val: any) => void;
41
+ };
42
+ type __VLS_Slots = {} & {
43
+ [K in NonNullable<typeof __VLS_14>]?: (props: typeof __VLS_15) => any;
44
+ };
45
+ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
46
+ /** 获取当前筛选值 */
47
+ getValues: () => {
48
+ [x: string]: any;
49
+ };
50
+ /** 重置所有筛选 */
51
+ reset: () => void;
52
+ }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
53
+ "update:modelValue": (values: Record<string, any>) => any;
54
+ change: (values: Record<string, any>, item: FilterItem) => any;
55
+ }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
56
+ "onUpdate:modelValue"?: ((values: Record<string, any>) => any) | undefined;
57
+ onChange?: ((values: Record<string, any>, item: FilterItem) => any) | undefined;
58
+ }>, {
59
+ items: FilterItem[];
60
+ modelValue: Record<string, any>;
61
+ showMask: boolean;
62
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
63
+ declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
64
+ export default _default;
65
+ type __VLS_WithSlots<T, S> = T & {
66
+ new (): {
67
+ $slots: S;
68
+ };
69
+ };
70
+ //# sourceMappingURL=index.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/search-area/index.vue"],"names":[],"mappings":"AAwmCA,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,KAAK,EAAE,GAAG,CAAC;IACX,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;CACpB;AAED,MAAM,WAAW,UAAU;IACzB,YAAY;IACZ,KAAK,EAAE,MAAM,CAAC;IACd,cAAc;IACd,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW;IACX,OAAO,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAAC;IACnC,4FAA4F;IAC5F,IAAI,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,e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Ae,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
@@ -0,0 +1,10 @@
1
+ <svg width="32" height="32" viewBox="0 0 1162 1024" fill="none" xmlns="http://www.w3.org/2000/svg">
2
+ <defs>
3
+ <!-- 统一蓝色渐变 -->
4
+ <linearGradient id="faviconGradient" x1="0%" y1="0%" x2="100%" y2="100%">
5
+ <stop offset="0%" style="stop-color:#1890ff;stop-opacity:1" />
6
+ <stop offset="100%" style="stop-color:#40a9ff;stop-opacity:1" />
7
+ </linearGradient>
8
+ </defs>
9
+ <path d="M1162 453.2C1162 238.2 901.8 64 581 64S0 238.2 0 453.2C0 644.8 206.6 804 478.8 836.2V960h198.2v-123c48.6-5.4 95.2-14.8 138.8-27.8L896 960h224l-134.8-227.4c109-70.8 176.8-169.8 176.8-279.4z m-933.6 29c0-147 197.8-266 441.6-266s423.8 81.4 423.8 266c0 100.2-53 170-140.6 212.8-4.8-3.2-9.4-5.8-12.8-7.4-20.4-10.4-55.6-21-55.6-21s173.2-12.8 173.2-185.4-181.2-175.8-181.2-175.8h-398V722c-148.2-43-250.4-134.2-250.4-239.8z m450.2 76.6v-111.2c115.6 0 175.6-13.6 175.6 54.6 0 73-76.4 56.6-175.6 56.6z m-1.8 145H730c21.6 0 37.8 23.4 48 38.4-32.2 3.8-66 5.6-101.2 5.8v-44.2z" fill="url(#faviconGradient)"></path>
10
+ </svg>
package/dist/index.cjs CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),A=["disabled"],P={key:0,class:"rc-button__spinner"},F=e.defineComponent({__name:"index",props:{type:{default:"default"},size:{default:"medium"},plain:{type:Boolean,default:!1},block:{type:Boolean,default:!1},label:{default:""},round:{type:[Number,String,Boolean],default:6},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1}},emits:["click"],setup(t,{emit:n}){const o=t,s=n,r=i=>{!o.disabled&&!o.loading&&s("click",i)},d=e.computed(()=>{const i=o.round;return typeof i=="boolean"?i?"999px":"6px":typeof i=="number"?`${i}px`:String(i)});return(i,a)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["rc-button",[`rc-button--${t.type}`,`rc-button--${t.size}`,{"is-plain":t.plain,"is-block":t.block,"is-disabled":t.disabled,"is-loading":t.loading}]]),style:e.normalizeStyle({borderRadius:d.value}),disabled:t.disabled||t.loading,onClick:r},[t.loading?(e.openBlock(),e.createElementBlock("span",P)):e.createCommentVNode("",!0),e.renderSlot(i.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)],14,A))}}),v=(t,n)=>{const o=t.__vccOpts||t;for(const[s,r]of n)o[s]=r;return o},x=v(F,[["__scopeId","data-v-a70e95bb"]]);x.name="rc-button";function N(t){return t.component(x.name,x),t}const O={class:"rc-desc-item__value"},Y=e.defineComponent({name:"rc-descriptions-item",__name:"item",props:{label:{default:""},value:{default:""},labelWidth:{default:""},span:{default:1}},setup(t){const n=t;e.inject("rcDescItemWidth",void 0),e.inject("rcDescSingleWidth",""),e.inject("rcDescGap","0px");const o=e.inject("rcDescGapPx",0),s=e.inject("rcDescColCount",1),r=e.inject("rcDescLabelWidth",""),d=e.computed(()=>{const c=typeof n.span=="string"?parseInt(n.span,10):n.span,l=typeof(s==null?void 0:s.value)=="number"?s.value:s,u=!Number.isNaN(c)&&c>0?c:1;return Math.min(u,l||1)}),i=e.computed(()=>{const c=typeof(s==null?void 0:s.value)=="number"?s.value:s,l=typeof(o==null?void 0:o.value)=="number"?o.value:o,u=d.value;if(!c||c<=1||u>=c)return"100%";const m=(c-1)*l,f=(u-1)*l;return`calc((100% - ${m}px) * ${u} / ${c} + ${f}px)`}),a=e.computed(()=>{const c=typeof(r==null?void 0:r.value)=="string"?r.value:r,l=n.labelWidth!==""?n.labelWidth:c||"";return l?{width:typeof l=="number"?`${l}px`:String(l),flex:"0 0 auto"}:{}});return(c,l)=>(e.openBlock(),e.createElementBlock("div",{class:"rc-desc-item",style:e.normalizeStyle({width:i.value,flex:`0 0 ${i.value}`})},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(a.value)},[e.renderSlot(c.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)],4),e.createElementVNode("div",O,[e.renderSlot(c.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)],!0)])],4))}}),k=v(Y,[["__scopeId","data-v-970d0b99"]]),q={class:"rc-descriptions"},H={key:0,class:"rc-descriptions__title"},K=e.defineComponent({name:"rc-descriptions",__name:"index",props:{title:{},column:{default:2},gap:{default:4},labelWidth:{default:""},data:{default:()=>[]},keyMap:{}},setup(t){const n=t,o=e.ref(null),s=e.computed(()=>typeof n.gap=="number"?`${n.gap}px`:String(n.gap)),r=e.computed(()=>{const l=typeof n.column=="string"?Number.parseInt(n.column,10):n.column??1;return!Number.isNaN(l)&&l>0?l:1}),d=e.ref("100%"),i=e.ref("100%");e.watchEffect(()=>{const l=r.value;if(l<=1)d.value="100%",i.value="100%";else{const u=typeof n.gap=="number"?n.gap:parseFloat(String(n.gap))||0,f=`calc((100% - ${(l-1)*u}px) / ${l})`;i.value=f,d.value=f}}),e.provide("rcDescItemWidth",d),e.provide("rcDescSingleWidth",i),e.provide("rcDescColCount",r),e.provide("rcDescGapPx",e.computed(()=>typeof n.gap=="number"?n.gap:parseFloat(String(n.gap))||0));const a=e.computed(()=>n.labelWidth===""||n.labelWidth===void 0?"":typeof n.labelWidth=="number"?`${n.labelWidth}px`:String(n.labelWidth));e.provide("rcDescLabelWidth",a),e.provide("rcDescGap",e.computed(()=>typeof n.gap=="number"?`${n.gap}px`:String(n.gap)));const c=e.computed(()=>{var m,f,W;const l=((m=n.keyMap)==null?void 0:m.key)??"label",u=((f=n.keyMap)==null?void 0:f.value)??"value";return(W=n.data)!=null&&W.length?n.data.map(b=>({label:b==null?void 0:b[l],value:b==null?void 0:b[u]})):[]});return(l,u)=>(e.openBlock(),e.createElementBlock("div",q,[l.$slots.title||t.title?(e.openBlock(),e.createElementBlock("div",H,[e.renderSlot(l.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:s.value}),ref_key:"wrapEl",ref:o},[c.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(c.value,(m,f)=>(e.openBlock(),e.createBlock(k,{key:f,label:m.label,value:m.value,"label-width":t.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(l.$slots,"default",{key:1},void 0,!0)],4)]))}}),$=v(K,[["__scopeId","data-v-5fcaa235"]]);$.name="rc-descriptions";k.name="rc-descriptions-item";function D(t){return t.component($.name,$),t.component("RcDescriptions",$),t.component(k.name,k),t.component("RcDescriptionsItem",k),t}const U=$,L=k,J={class:"rc-card__title"},Q={class:"rc-card__title-text"},X={key:0,class:"rc-card__status"},Z={key:1,class:"rc-card__divider"},ee={key:2,class:"rc-card__action"},te=e.defineComponent({name:"rc-card",__name:"index",props:{color:{default:"var(--rc-white)"},topBgColor:{default:"rgba(29, 133, 252, 0.05)"},title:{default:""},status:{default:""},statusColor:{default:"var(--rc-primary)"},round:{default:8},bordered:{type:Boolean,default:!1},elevation:{default:2},padding:{default:"16px"},gap:{default:12},width:{default:"100%"},height:{default:""}},setup(t){const n=t,o=e.computed(()=>{const a=typeof n.round=="boolean"?n.round?"12px":"0":typeof n.round=="number"?`${n.round}px`:String(n.round);return{backgroundColor:n.color||"var(--rc-white)",borderRadius:a,boxShadow:i(n.elevation),width:d(n.width),height:d(n.height)}}),s=e.computed(()=>n.padding||"16px"),r=e.computed(()=>typeof n.gap=="number"?`${n.gap}px`:String(n.gap));function d(a){return a==null||a===""?"":typeof a=="number"?`${a}px`:String(a)}function i(a){if(!a||a<=0)return"none";const c=4*a;return`0 ${Math.round(c/2)}px ${c}px rgba(0,0,0,0.06), 0 ${Math.round(c/4)}px ${Math.round(c/2)}px rgba(0,0,0,0.04)`}return(a,c)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":t.bordered}]]),style:e.normalizeStyle(o.value)},[a.$slots.title||t.title||a.$slots.status||t.status?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-card__top",style:e.normalizeStyle({backgroundColor:t.topBgColor||"rgba(29, 133, 252, 0.05)"})},[e.createElementVNode("div",J,[e.renderSlot(a.$slots,"title",{},()=>[e.createElementVNode("span",Q,e.toDisplayString(t.title),1)],!0)]),a.$slots.status||t.status?(e.openBlock(),e.createElementBlock("div",X,[e.renderSlot(a.$slots,"status",{},()=>[e.createElementVNode("span",{class:"rc-card__status-text",style:e.normalizeStyle({color:t.statusColor||"var(--rc-primary)"})},e.toDisplayString(t.status),5)],!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-card__body",style:e.normalizeStyle({padding:s.value,gap:r.value})},[e.renderSlot(a.$slots,"content",{},()=>[e.renderSlot(a.$slots,"default",{},void 0,!0)],!0)],4),a.$slots.action?(e.openBlock(),e.createElementBlock("div",Z)):e.createCommentVNode("",!0),a.$slots.action?(e.openBlock(),e.createElementBlock("div",ee,[e.renderSlot(a.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),C=v(te,[["__scopeId","data-v-a7b95214"]]);C.name="rc-card";const ne="RcCard";function I(t){return t.component(C.name,C),t.component(ne,C),t}const oe={key:0,class:"rc-toast__mask"},ce={class:"rc-toast__content"},ae={key:0,class:"rc-toast__spinner"},le={key:1,class:"rc-toast__icon rc-toast__icon--success"},se={key:2,class:"rc-toast__icon rc-toast__icon--fail"},re={class:"rc-toast__text"},ie=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(t,{expose:n}){const o=t,s=e.ref(!0);let r;function d(){r&&(clearTimeout(r),r=null)}function i(){d(),s.value=!1}return n({close:i}),e.onMounted(()=>{o.duration&&o.duration>0&&(r=setTimeout(()=>{i()},o.duration))}),e.onUnmounted(()=>{d()}),(a,c)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-toast-fade",onAfterLeave:t.onAfterLeave},{default:e.withCtx(()=>[s.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${t.type}`]])},[t.mask?(e.openBlock(),e.createElementBlock("div",oe)):e.createCommentVNode("",!0),e.createElementVNode("div",ce,[t.type==="loading"?(e.openBlock(),e.createElementBlock("div",ae)):t.type==="success"?(e.openBlock(),e.createElementBlock("div",le)):t.type==="fail"?(e.openBlock(),e.createElementBlock("div",se)):e.createCommentVNode("",!0),e.createElementVNode("div",re,e.toDisplayString(t.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(a.$slots,"default",{},void 0,!0)],64))}}),S=v(ie,[["__scopeId","data-v-d234c9c5"]]);let g=null,_=null;function T(){g&&(g.unmount(),g=null),_&&(document.body.removeChild(_),_=null)}function de(t){const n=typeof t=="string"?{message:t}:t||{};T(),_=document.createElement("div"),document.body.appendChild(_);const o={message:n.message,type:n.type??"text",duration:n.duration??2e3,mask:n.mask??!1,onAfterLeave:()=>{var s;T(),(s=n.onClose)==null||s.call(n)}};return g=e.createApp(S,o),g.mount(_),{close:G}}function G(){var t,n,o;g&&((o=(n=(t=g._instance)==null?void 0:t.exposed)==null?void 0:n.close)==null||o.call(n))}S.name="rc-toast";function M(t){return t.component(S.name,S),t}const ue={class:"rc-message",role:"alert","aria-live":"polite"},me={class:"rc-message__content"},fe=e.defineComponent({__name:"index",setup(t,{expose:n}){const o=e.reactive([]);let s=1;function r(i){const a=o.findIndex(c=>c.id===i);a>=0&&o.splice(a,1)}function d(i,a,c){const l=s++;return o.push({id:l,type:i,content:a,duration:c}),c>0&&window.setTimeout(()=>r(l),c),l}return n({add:d,remove:r}),(i,a)=>(e.openBlock(),e.createElementBlock("div",ue,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(o,c=>(e.openBlock(),e.createElementBlock("div",{key:c.id,class:e.normalizeClass(["rc-message__item",`rc-message--${c.type}`])},[e.createElementVNode("span",me,e.toDisplayString(c.content),1)],2))),128))]),_:1})]))}}),pe=v(fe,[["__scopeId","data-v-87811df0"]]);let y=null,p=null;function ye(){var n;if(y&&p)return;y=document.createElement("div"),document.body.appendChild(y);const t=e.createVNode(pe,{});e.render(t,y),p=(n=t.component)==null?void 0:n.exposed}function h(t,n,o){var r;ye();const s=typeof o=="number"?o:t==="loading"?0:2e3;return(r=p==null?void 0:p.add)==null?void 0:r.call(p,t,n,s)}const j={open(t){return h(t.type||"info",t.content,t.duration)},info(t,n){return h("info",t,n)},success(t,n){return h("success",t,n)},warning(t,n){return h("warning",t,n)},error(t,n){return h("error",t,n)},loading(t,n){return h("loading",t,n)},destroy(){y&&(e.render(null,y),y.remove(),y=null,p=null)}};function w(t){return t.config.globalProperties.$message=j,t}const ge={key:0,class:"rc-icon__unicode"},ve=e.defineComponent({name:"rc-icon",__name:"index",props:{name:{},size:{default:16},color:{default:""},spin:{type:Boolean,default:!1},code:{default:""}},setup(t){const n=t,o=e.inject(E,{}),s=e.computed(()=>(o==null?void 0:o.iconClass)||"iconfont"),r=e.computed(()=>n.name||""),d=e.computed(()=>typeof n.size=="number"?`${n.size}px`:n.size||"16px"),i=e.computed(()=>({fontSize:d.value,color:n.color||void 0,lineHeight:1,fontFamily:(o==null?void 0:o.iconClass)||"iconfont"})),a=e.computed(()=>{const c=n.code;if(c==null||c===""||c===0)return"";if(typeof c=="number")return String.fromCharCode(c);const l=String(c).replace(/^0x/i,""),u=parseInt(l,16);return Number.isNaN(u)?"":String.fromCharCode(u)});return e.onMounted(()=>{if(typeof window>"u")return;const c=o&&o.iconCssUrl||z.iconCssUrl;if(!c)return;const l=`link[rel="stylesheet"][data-rcui-icon="true"][href="${c}"]`;if(!document.head.querySelector(l)){const m=document.createElement("link");m.rel="stylesheet",m.href=c,m.setAttribute("data-rcui-icon","true"),document.head.appendChild(m)}}),(c,l)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[s.value,r.value,{"rc-icon--spin":t.spin}]]),style:e.normalizeStyle(i.value),"aria-hidden":"true"},[a.value?(e.openBlock(),e.createElementBlock("span",ge,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)],6))}}),B=v(ve,[["__scopeId","data-v-3857a892"]]);B.name="rc-icon";function V(t){return t.component(B.name,B),t.component("RcIcon",B),t}const E=Symbol("RECYCLE_UI_CONFIG"),z={prefix:"rc",autoRegister:!0,provideKey:E,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_9vcnw0pnmkh.css",iconClass:"iconfont"};function be(t,n){n.autoRegister!==!1&&(typeof N=="function"&&N(t),typeof D=="function"&&D(t),typeof I=="function"&&I(t),typeof M=="function"&&M(t),typeof V=="function"&&V(t),typeof w=="function"&&w(t))}const R=(t,n)=>{const o={...z,...n||{}};if(t.provide(o.provideKey??E,o),t.config.globalProperties.$recycleUI=o,typeof window<"u"&&o.iconCssUrl){const s=`link[rel="stylesheet"][data-rcui-icon="true"][href="${o.iconCssUrl}"]`;if(!document.head.querySelector(s)){const d=document.createElement("link");d.rel="stylesheet",d.href=o.iconCssUrl,d.setAttribute("data-rcui-icon","true"),document.head.appendChild(d)}}return be(t,o),t},he={install:R};function ke(t){return{install(n){R(n,t)}}}exports.RECYCLE_UI_SYMBOL=E;exports.RcButton=x;exports.RcCard=C;exports.RcDescriptions=U;exports.RcDescriptionsItem=L;exports.RcIcon=B;exports.RcToast=S;exports.createRecycleUI=ke;exports.default=he;exports.defaultRecycleUIConfig=z;exports.hideToast=G;exports.install=R;exports.installButton=N;exports.installCard=I;exports.installDescriptions=D;exports.installIcon=V;exports.installMessage=w;exports.message=j;exports.rcDescriptions=U;exports.rcDescriptionsItem=L;exports.showToast=de;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),Ie={key:0,class:"rc-icon__unicode"},De=e.defineComponent({name:"rc-icon",__name:"index",props:{name:{},size:{default:16},color:{default:""},spin:{type:Boolean,default:!1},code:{default:""}},setup(n){const r=n,c=e.inject(O,{}),f=e.computed(()=>(c==null?void 0:c.iconClass)||"iconfont"),v=e.computed(()=>r.name||""),p=e.computed(()=>typeof r.size=="number"?`${r.size}px`:r.size||"16px"),m=e.computed(()=>({fontSize:p.value,color:r.color||void 0,lineHeight:1,fontFamily:(c==null?void 0:c.iconClass)||"iconfont"})),u=e.computed(()=>{const s=r.code;if(s==null||s===""||s===0)return"";if(typeof s=="number")return String.fromCharCode(s);const d=String(s).replace(/^0x/i,""),B=parseInt(d,16);return Number.isNaN(B)?"":String.fromCharCode(B)});return e.onMounted(()=>{if(typeof window>"u")return;const s=c&&c.iconCssUrl||te.iconCssUrl;if(!s)return;const d=`link[rel="stylesheet"][data-rcui-icon="true"][href="${s}"]`;if(!document.head.querySelector(d)){const y=document.createElement("link");y.rel="stylesheet",y.href=s,y.setAttribute("data-rcui-icon","true"),document.head.appendChild(y)}}),(s,d)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[f.value,v.value,{"rc-icon--spin":n.spin}]]),style:e.normalizeStyle(m.value),"aria-hidden":"true"},[u.value?(e.openBlock(),e.createElementBlock("span",Ie,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0)],6))}}),w=(n,r)=>{const c=n.__vccOpts||n;for(const[f,v]of r)c[f]=v;return c},C=w(De,[["__scopeId","data-v-3857a892"]]),Ae=["disabled"],Re={key:0,class:"rc-button__spinner"},ze={key:0,class:"rc-button__icon rc-button__icon--prefix"},Le={key:2,class:"rc-button__icon rc-button__icon--suffix"},Te=e.defineComponent({__name:"index",props:{type:{default:"default"},size:{default:"medium"},mode:{default:void 0},block:{type:Boolean,default:!1},label:{default:""},round:{type:[Number,String,Boolean],default:6},disabled:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},preIcon:{default:""},suffixIcon:{default:""}},emits:["click"],setup(n,{emit:r}){const c=n,f=r,v=m=>{!c.disabled&&!c.loading&&f("click",m)},p=e.computed(()=>{const m=c.round;return typeof m=="boolean"?m?"999px":"6px":typeof m=="number"?`${m}px`:String(m)});return(m,u)=>(e.openBlock(),e.createElementBlock("button",{class:e.normalizeClass(["rc-button",[`rc-button--${n.type}`,`rc-button--${n.size}`,n.mode?`rc-button--${n.mode}`:"",{"is-block":n.block,"is-disabled":n.disabled,"is-loading":n.loading}]]),style:e.normalizeStyle({borderRadius:p.value}),disabled:n.disabled||n.loading,onClick:v},[n.loading?(e.openBlock(),e.createElementBlock("span",Re)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.preIcon||m.$slots.preIcon?(e.openBlock(),e.createElementBlock("span",ze,[e.renderSlot(m.$slots,"preIcon",{},()=>[n.preIcon?(e.openBlock(),e.createBlock(C,{key:0,name:n.preIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],64)),e.renderSlot(m.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0),!n.loading&&(n.suffixIcon||m.$slots.suffixIcon)?(e.openBlock(),e.createElementBlock("span",Le,[e.renderSlot(m.$slots,"suffixIcon",{},()=>[n.suffixIcon?(e.openBlock(),e.createBlock(C,{key:0,name:n.suffixIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],14,Ae))}}),F=w(Te,[["__scopeId","data-v-3ed3109f"]]);F.name="rc-button";function q(n){return n.component(F.name,F),n}const Fe={class:"rc-desc-item__value"},Me=e.defineComponent({name:"rc-descriptions-item",__name:"item",props:{label:{default:""},value:{default:""},labelWidth:{default:""},span:{default:1}},setup(n){const r=n;e.inject("rcDescItemWidth",void 0),e.inject("rcDescSingleWidth",""),e.inject("rcDescGap","0px");const c=e.inject("rcDescGapPx",0),f=e.inject("rcDescColCount",1),v=e.inject("rcDescLabelWidth",""),p=e.computed(()=>{const s=typeof r.span=="string"?parseInt(r.span,10):r.span,d=typeof(f==null?void 0:f.value)=="number"?f.value:f,B=!Number.isNaN(s)&&s>0?s:1;return Math.min(B,d||1)}),m=e.computed(()=>{const s=typeof(f==null?void 0:f.value)=="number"?f.value:f,d=typeof(c==null?void 0:c.value)=="number"?c.value:c,B=p.value;if(!s||s<=1||B>=s)return"100%";const y=(s-1)*d,b=(B-1)*d;return`calc((100% - ${y}px) * ${B} / ${s} + ${b}px)`}),u=e.computed(()=>{const s=typeof(v==null?void 0:v.value)=="string"?v.value:v,d=r.labelWidth!==""?r.labelWidth:s||"";return d?{width:typeof d=="number"?`${d}px`:String(d),flex:"0 0 auto"}:{}});return(s,d)=>(e.openBlock(),e.createElementBlock("div",{class:"rc-desc-item",style:e.normalizeStyle({width:m.value,flex:`0 0 ${m.value}`})},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(u.value)},[e.renderSlot(s.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0)],4),e.createElementVNode("div",Fe,[e.renderSlot(s.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value),1)],!0)])],4))}}),L=w(Me,[["__scopeId","data-v-970d0b99"]]),We={class:"rc-descriptions"},Ue={key:0,class:"rc-descriptions__title"},je=e.defineComponent({name:"rc-descriptions",__name:"index",props:{title:{},column:{default:2},gap:{default:4},labelWidth:{default:""},data:{default:()=>[]},keyMap:{}},setup(n){const r=n,c=e.ref(null),f=e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap)),v=e.computed(()=>{const d=typeof r.column=="string"?Number.parseInt(r.column,10):r.column??1;return!Number.isNaN(d)&&d>0?d:1}),p=e.ref("100%"),m=e.ref("100%");e.watchEffect(()=>{const d=v.value;if(d<=1)p.value="100%",m.value="100%";else{const B=typeof r.gap=="number"?r.gap:parseFloat(String(r.gap))||0,b=`calc((100% - ${(d-1)*B}px) / ${d})`;m.value=b,p.value=b}}),e.provide("rcDescItemWidth",p),e.provide("rcDescSingleWidth",m),e.provide("rcDescColCount",v),e.provide("rcDescGapPx",e.computed(()=>typeof r.gap=="number"?r.gap:parseFloat(String(r.gap))||0));const u=e.computed(()=>r.labelWidth===""||r.labelWidth===void 0?"":typeof r.labelWidth=="number"?`${r.labelWidth}px`:String(r.labelWidth));e.provide("rcDescLabelWidth",u),e.provide("rcDescGap",e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap)));const s=e.computed(()=>{var y,b,S;const d=((y=r.keyMap)==null?void 0:y.key)??"label",B=((b=r.keyMap)==null?void 0:b.value)??"value";return(S=r.data)!=null&&S.length?r.data.map(k=>({label:k==null?void 0:k[d],value:k==null?void 0:k[B]})):[]});return(d,B)=>(e.openBlock(),e.createElementBlock("div",We,[d.$slots.title||n.title?(e.openBlock(),e.createElementBlock("div",Ue,[e.renderSlot(d.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:f.value}),ref_key:"wrapEl",ref:c},[s.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(s.value,(y,b)=>(e.openBlock(),e.createBlock(L,{key:b,label:y.label,value:y.value,"label-width":n.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(d.$slots,"default",{key:1},void 0,!0)],4)]))}}),W=w(je,[["__scopeId","data-v-5fcaa235"]]);W.name="rc-descriptions";L.name="rc-descriptions-item";function H(n){return n.component(W.name,W),n.component("RcDescriptions",W),n.component(L.name,L),n.component("RcDescriptionsItem",L),n}const ke=W,he=L,Ke={class:"rc-card__title"},Ge={class:"rc-card__title-text"},Oe={key:0,class:"rc-card__status"},Pe={key:1,class:"rc-card__divider"},Ye={key:2,class:"rc-card__action"},qe=e.defineComponent({name:"rc-card",__name:"index",props:{color:{default:"var(--rc-white)"},topBgColor:{default:"rgba(29, 133, 252, 0.05)"},title:{default:""},status:{default:""},statusColor:{default:"var(--rc-primary)"},round:{default:8},bordered:{type:Boolean,default:!1},elevation:{default:2},padding:{default:"16px"},gap:{default:12},width:{default:"100%"},height:{default:""}},setup(n){const r=n,c=e.computed(()=>{const u=typeof r.round=="boolean"?r.round?"12px":"0":typeof r.round=="number"?`${r.round}px`:String(r.round);return{backgroundColor:r.color||"var(--rc-white)",borderRadius:u,boxShadow:m(r.elevation),width:p(r.width),height:p(r.height)}}),f=e.computed(()=>r.padding||"16px"),v=e.computed(()=>typeof r.gap=="number"?`${r.gap}px`:String(r.gap));function p(u){return u==null||u===""?"":typeof u=="number"?`${u}px`:String(u)}function m(u){if(!u||u<=0)return"none";const s=4*u;return`0 ${Math.round(s/2)}px ${s}px rgba(0,0,0,0.06), 0 ${Math.round(s/4)}px ${Math.round(s/2)}px rgba(0,0,0,0.04)`}return(u,s)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":n.bordered}]]),style:e.normalizeStyle(c.value)},[u.$slots.title||n.title||u.$slots.status||n.status?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-card__top",style:e.normalizeStyle({backgroundColor:n.topBgColor||"rgba(29, 133, 252, 0.05)"})},[e.createElementVNode("div",Ke,[e.renderSlot(u.$slots,"title",{},()=>[e.createElementVNode("span",Ge,e.toDisplayString(n.title),1)],!0)]),u.$slots.status||n.status?(e.openBlock(),e.createElementBlock("div",Oe,[e.renderSlot(u.$slots,"status",{},()=>[e.createElementVNode("span",{class:"rc-card__status-text",style:e.normalizeStyle({color:n.statusColor||"var(--rc-primary)"})},e.toDisplayString(n.status),5)],!0)])):e.createCommentVNode("",!0)],4)):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-card__body",style:e.normalizeStyle({padding:f.value,gap:v.value})},[e.renderSlot(u.$slots,"content",{},()=>[e.renderSlot(u.$slots,"default",{},void 0,!0)],!0)],4),u.$slots.action?(e.openBlock(),e.createElementBlock("div",Pe)):e.createCommentVNode("",!0),u.$slots.action?(e.openBlock(),e.createElementBlock("div",Ye,[e.renderSlot(u.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),U=w(qe,[["__scopeId","data-v-a7b95214"]]);U.name="rc-card";const He="RcCard";function J(n){return n.component(U.name,U),n.component(He,U),n}const Je={key:0,class:"rc-toast__mask"},Qe={class:"rc-toast__content"},Xe={key:0,class:"rc-toast__spinner"},Ze={key:1,class:"rc-toast__icon rc-toast__icon--success"},et={key:2,class:"rc-toast__icon rc-toast__icon--fail"},tt={class:"rc-toast__text"},nt=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(n,{expose:r}){const c=n,f=e.ref(!0);let v;function p(){v&&(clearTimeout(v),v=null)}function m(){p(),f.value=!1}return r({close:m}),e.onMounted(()=>{c.duration&&c.duration>0&&(v=setTimeout(()=>{m()},c.duration))}),e.onUnmounted(()=>{p()}),(u,s)=>(e.openBlock(),e.createElementBlock(e.Fragment,null,[(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-toast-fade",onAfterLeave:n.onAfterLeave},{default:e.withCtx(()=>[f.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${n.type}`]])},[n.mask?(e.openBlock(),e.createElementBlock("div",Je)):e.createCommentVNode("",!0),e.createElementVNode("div",Qe,[n.type==="loading"?(e.openBlock(),e.createElementBlock("div",Xe)):n.type==="success"?(e.openBlock(),e.createElementBlock("div",Ze)):n.type==="fail"?(e.openBlock(),e.createElementBlock("div",et)):e.createCommentVNode("",!0),e.createElementVNode("div",tt,e.toDisplayString(n.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(u.$slots,"default",{},void 0,!0)],64))}}),j=w(nt,[["__scopeId","data-v-d234c9c5"]]);let A=null,T=null;function ve(){A&&(A.unmount(),A=null),T&&(document.body.removeChild(T),T=null)}function rt(n){const r=typeof n=="string"?{message:n}:n||{};ve(),T=document.createElement("div"),document.body.appendChild(T);const c={message:r.message,type:r.type??"text",duration:r.duration??2e3,mask:r.mask??!1,onAfterLeave:()=>{var f;ve(),(f=r.onClose)==null||f.call(r)}};return A=e.createApp(j,c),A.mount(T),{close:ge}}function ge(){var n,r,c;A&&((c=(r=(n=A._instance)==null?void 0:n.exposed)==null?void 0:r.close)==null||c.call(r))}j.name="rc-toast";function ye(n){return n.component(j.name,j),n}const lt={class:"rc-message",role:"alert","aria-live":"polite"},ot={class:"rc-message__content"},at=e.defineComponent({__name:"index",setup(n,{expose:r}){const c=e.reactive([]);let f=1;function v(m){const u=c.findIndex(s=>s.id===m);u>=0&&c.splice(u,1)}function p(m,u,s){const d=f++;return c.push({id:d,type:m,content:u,duration:s}),s>0&&window.setTimeout(()=>v(d),s),d}return r({add:p,remove:v}),(m,u)=>(e.openBlock(),e.createElementBlock("div",lt,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(c,s=>(e.openBlock(),e.createElementBlock("div",{key:s.id,class:e.normalizeClass(["rc-message__item",`rc-message--${s.type}`])},[e.createElementVNode("span",ot,e.toDisplayString(s.content),1)],2))),128))]),_:1})]))}}),ct=w(at,[["__scopeId","data-v-87811df0"]]);let x=null,N=null;function st(){var r;if(x&&N)return;x=document.createElement("div"),document.body.appendChild(x);const n=e.createVNode(ct,{});e.render(n,x),N=(r=n.component)==null?void 0:r.exposed}function z(n,r,c){var v;st();const f=typeof c=="number"?c:n==="loading"?0:2e3;return(v=N==null?void 0:N.add)==null?void 0:v.call(N,n,r,f)}const _e={open(n){return z(n.type||"info",n.content,n.duration)},info(n,r){return z("info",n,r)},success(n,r){return z("success",n,r)},warning(n,r){return z("warning",n,r)},error(n,r){return z("error",n,r)},loading(n,r){return z("loading",n,r)},destroy(){x&&(e.render(null,x),x.remove(),x=null,N=null)}};function Q(n){return n.config.globalProperties.$message=_e,n}C.name="rc-icon";function X(n){return n.component(C.name,C),n.component("RcIcon",C),n}const it={class:"rc-search-area"},ut={class:"rc-search-area__bar"},dt=["onClick"],ft={class:"rc-search-area__item-label"},mt={class:"rc-search-area__panel-content"},pt={key:1,class:"rc-search-area__input-wrapper"},vt=["placeholder"],yt={key:2,class:"rc-search-area__tree-container"},kt={class:"rc-search-area__tree-group-title"},ht={class:"rc-search-area__tree-group-options"},gt=["onClick"],_t={class:"rc-search-area__option-label"},Bt={key:3,class:"rc-search-area__tree-container"},bt={class:"rc-search-area__tree-group-title"},Ct={class:"rc-search-area__tree-group-options"},St=["onClick"],$t={class:"rc-search-area__option-label"},Et={key:4,class:"rc-search-area__options-grid"},Vt=["onClick"],Nt={class:"rc-search-area__option-label"},xt={key:5,class:"rc-search-area__options-grid"},wt=["onClick"],It={class:"rc-search-area__option-label"},Dt={key:6,class:"rc-search-area__empty"},At={key:0,class:"rc-search-area__panel-footer"},Rt=e.defineComponent({name:"rc-search-area",__name:"index",props:{items:{default:()=>[]},modelValue:{default:()=>({})},showMask:{type:Boolean,default:!0}},emits:["update:modelValue","change"],setup(n,{expose:r,emit:c}){const f=n,v=c,p=e.ref(null),m=e.ref(null),u=e.ref(null),s=e.ref({top:"0px"}),d=async()=>{if(p.value===null||!m.value)return;await e.nextTick();const l=m.value.getBoundingClientRect().top;s.value={top:`${l}px`}},B=t=>{if(p.value===null||!m.value)return;const l=t.target;if(m.value.contains(l))return;const o=m.value.closest(".rc-search-area");if(o){const i=o.querySelector(".rc-search-area__bar");if(i&&i.contains(l))return}K()};e.watch(p,async t=>{t!==null?(await e.nextTick(),d(),window.addEventListener("resize",d),window.addEventListener("scroll",d,!0),document.addEventListener("click",B,!0)):(window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),document.removeEventListener("click",B,!0))}),e.onUnmounted(()=>{window.removeEventListener("resize",d),window.removeEventListener("scroll",d,!0),document.removeEventListener("click",B,!0)});const y=e.ref({}),b=e.ref(""),S=e.ref({}),k=e.ref({...f.modelValue});e.watch(()=>f.modelValue,t=>{k.value={...t||{}}},{deep:!0,immediate:!0});const a=e.computed(()=>p.value===null?null:f.items[p.value]),Be=e.computed(()=>{if(!a.value)return"";const t=xe(a.value);return t>0?`(${t}项)`:""}),be=t=>{const l=k.value[t.key];if(l==null||l===""||t.slot)return t.label;if(t.type==="input"){if(l&&String(l).trim())return`${t.label}: ${l}`}else if(t.type==="single"||t.type==="tree-single"){const o=P(t,l);if(o)return`${t.label}: ${re(o,t)}`}else{const o=Array.isArray(l)?l:[l];if(o.length>0){const i=o.map(g=>{const h=P(t,g);return h?re(h,t):null}).filter(g=>g!==null);if(i.length>0)return`${t.label}: ${i.join("、")}`}}return t.label},Ce=t=>{const l=f.items[t];if(!l)return;if(p.value===t){p.value=null;return}const o=k.value[l.key];l.slot?S.value[l.key]=o!==void 0?typeof o=="object"&&o!==null?{...o}:o:void 0:l.type==="input"?b.value=o!=null?String(o):"":l.type==="single"||l.type==="tree-single"?y.value[l.key]=o!==void 0?o:null:y.value[l.key]=o!==void 0?Array.isArray(o)?[...o]:[o]:[],p.value=t},K=()=>{p.value=null},I=(t,l)=>{if(!l)return typeof t=="string"?t:t.label||String(t.value);const o=t;if(l.renderItem){if(typeof l.renderItem=="string")return String(typeof o=="object"&&o!==null?o[l.renderItem]??"":o);{const i=l.renderItem(o);return i!=null?String(i):""}}return typeof t=="string"?t:t.label||String(t.value)},G=(t,l)=>{if(!l)return typeof t=="string"?t:t.value!==void 0?t.value:t;const o=t;return l.format?typeof l.format=="string"?typeof o=="object"&&o!==null?o[l.format]:o:l.format(o):typeof t=="string"?t:t.value!==void 0?t.value:t},re=(t,l)=>{const o=t,i=l.renderResult||l.renderItem;if(i){if(typeof i=="string")return String(typeof o=="object"&&o!==null?o[i]??"":o);{const g=i(o);return g!=null?String(g):""}}return I(t,l)},P=(t,l,o)=>{const i=o||t.options,g=t.childrenKey||"children";for(const h of i){const E=G(h,t);if(E===l||String(E)===String(l))return h;if(t.childrenKey&&typeof h=="object"&&h!==null){const R=h[g];if(Array.isArray(R)&&R.length>0){const M=P(t,l,R);if(M)return M}}}return null},le=(t,l)=>{const o=l||t.options,i=t.childrenKey||"children",g=[];for(const h of o)if(g.push(h),t.childrenKey&&typeof h=="object"&&h!==null){const E=h[i];Array.isArray(E)&&E.length>0&&g.push(...le(t,E))}return g},V=t=>{if(!a.value)return!1;const l=a.value.key,o=y.value[l],i=G(t,a.value);return a.value.type==="single"||a.value.type==="tree-single"?o!=null&&o===i:(Array.isArray(o)?o:[]).some(h=>h===i||String(h)===String(i))},oe=t=>t?t.childrenKey?le(t):t.options:[],ae=t=>{if(!t)return[];const l=t.childrenKey||"children";return(t.options||[]).filter(o=>{if(typeof o=="string")return!1;const i=o[l];return Array.isArray(i)&&i.length>0})},ce=(t,l)=>{if(!l||typeof t=="string")return[];const o=l.childrenKey||"children",i=t[o];return Array.isArray(i)?i:[]},Se=t=>{if(t)return S.value[t.key]!==void 0?S.value[t.key]:k.value[t.key]},$e=(t,l)=>{t&&(S.value[t.key]=l)},se=t=>{if(!a.value)return;const l=a.value.key,o=G(t,a.value);k.value[l];let i;y.value[l]===o?i=void 0:i=o,k.value[l]=i,v("update:modelValue",{...k.value}),v("change",{...k.value},a.value),K()},ie=t=>{if(!a.value)return;const l=a.value.key,o=G(t,a.value),i=Array.isArray(y.value[l])?[...y.value[l]]:[],g=i.findIndex(h=>h===o||String(h)===String(o));g>=0?i.splice(g,1):i.push(o),y.value[l]=i},Ee=()=>{if(!a.value)return;const t=a.value.key;a.value.slot?S.value[t]=void 0:a.value.type==="input"?b.value="":a.value.type==="single"||a.value.type==="tree-single"?y.value[t]=null:y.value[t]=[]},Ve=()=>{},Ne=()=>{if(!a.value)return;const t=a.value.key;k.value[t];let l;if(a.value.slot)l=S.value[t],k.value[t]=l;else if(a.value.type==="input")l=b.value.trim()||void 0,k.value[t]=l;else if(a.value.type==="single"||a.value.type==="tree-single"){const o=y.value[t];l=o??void 0,k.value[t]=l}else{const o=y.value[t];l=Array.isArray(o)&&o.length>0?o:void 0,k.value[t]=l}v("update:modelValue",{...k.value}),v("change",{...k.value},a.value),K()},ue=t=>{const l=k.value[t.key];return l==null||l===""?0:t.slot?1:t.type==="input"?String(l).trim()?1:0:t.type==="single"||t.type==="tree-single"?1:Array.isArray(l)?l.length:l?1:0},xe=t=>{if(t.slot){const o=S.value[t.key];return o!=null&&o!==""?1:0}else if(t.type==="input")return b.value.trim()?1:0;const l=y.value[t.key];return l==null||l===""?0:t.type==="single"||t.type==="tree-single"?1:Array.isArray(l)?l.length:0};return r({getValues:()=>({...k.value}),reset:()=>{k.value={},y.value={},S.value={},v("update:modelValue",{})}}),(t,l)=>(e.openBlock(),e.createElementBlock("div",it,[e.createElementVNode("div",ut,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(f.items,(o,i)=>(e.openBlock(),e.createElementBlock("div",{key:i,class:e.normalizeClass(["rc-search-area__item",{"is-active":p.value===i,"has-value":ue(o)>0}]),onClick:g=>Ce(i)},[e.createElementVNode("span",ft,e.toDisplayString(be(o)),1),e.createVNode(e.unref(C),{name:"icon_a-xiala2",color:p.value!==i&&ue(o)>0?"#1677ff":"#969799",class:e.normalizeClass(["rc-search-area__item-arrow",{"is-up":p.value===i}])},null,8,["color","class"])],10,dt))),128))]),e.createVNode(e.Transition,{name:"rc-search-area-fade"},{default:e.withCtx(()=>[p.value!==null&&f.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"maskRef",ref:u,class:"rc-search-area__mask",style:e.normalizeStyle(s.value),onClick:K},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"rc-search-area-slide"},{default:e.withCtx(()=>{var o,i,g,h,E,R,M,de,fe,me,pe;return[p.value!==null?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"panelRef",ref:m,class:"rc-search-area__panel"},[e.createElementVNode("div",mt,[(o=a.value)!=null&&o.slot&&t.$slots[a.value.key]?e.renderSlot(t.$slots,a.value.key,{key:0,value:Se(a.value),"update:value":_=>$e(a.value,_)},void 0,!0):((i=a.value)==null?void 0:i.type)==="input"?(e.openBlock(),e.createElementBlock("div",pt,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":l[0]||(l[0]=_=>b.value=_),type:"text",class:"rc-search-area__input",placeholder:a.value.placeholder||"请输入",onInput:Ve},null,40,vt),[[e.vModelText,b.value]])])):((g=a.value)==null?void 0:g.type)==="tree-single"?(e.openBlock(),e.createElementBlock("div",yt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae(a.value),(_,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:"rc-search-area__tree-group"},[e.createElementVNode("div",kt,e.toDisplayString(I(_,a.value||void 0)),1),e.createElementVNode("div",ht,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce(_,a.value),($,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V($)}]),onClick:we=>se($)},[e.createElementVNode("span",_t,e.toDisplayString(I($,a.value||void 0)),1),V($)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,gt))),128))])]))),128))])):((h=a.value)==null?void 0:h.type)==="tree-multiple"?(e.openBlock(),e.createElementBlock("div",Bt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ae(a.value),(_,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:"rc-search-area__tree-group"},[e.createElementVNode("div",bt,e.toDisplayString(I(_,a.value||void 0)),1),e.createElementVNode("div",Ct,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(ce(_,a.value),($,Y)=>(e.openBlock(),e.createElementBlock("div",{key:Y,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V($)}]),onClick:we=>ie($)},[e.createElementVNode("span",$t,e.toDisplayString(I($,a.value||void 0)),1),V($)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,St))),128))])]))),128))])):((E=a.value)==null?void 0:E.type)==="single"?(e.openBlock(),e.createElementBlock("div",Et,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(a.value),(_,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V(_)}]),onClick:$=>se(_)},[e.createElementVNode("span",Nt,e.toDisplayString(I(_,a.value||void 0)),1),V(_)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Vt))),128))])):(e.openBlock(),e.createElementBlock("div",xt,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(oe(a.value),(_,D)=>(e.openBlock(),e.createElementBlock("div",{key:D,class:e.normalizeClass(["rc-search-area__option",{"is-selected":V(_)}]),onClick:$=>ie(_)},[e.createElementVNode("span",It,e.toDisplayString(I(_,a.value||void 0)),1),V(_)?(e.openBlock(),e.createBlock(e.unref(C),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,wt))),128))])),((R=a.value)==null?void 0:R.type)!=="input"&&!((M=a.value)!=null&&M.slot)&&((fe=(de=a.value)==null?void 0:de.options)==null?void 0:fe.length)===0?(e.openBlock(),e.createElementBlock("div",Dt,[...l[1]||(l[1]=[e.createElementVNode("p",null,"暂无选项",-1)])])):e.createCommentVNode("",!0)]),((me=a.value)==null?void 0:me.type)!=="single"&&((pe=a.value)==null?void 0:pe.type)!=="tree-single"?(e.openBlock(),e.createElementBlock("div",At,[e.createVNode(e.unref(F),{block:"",onClick:Ee},{default:e.withCtx(()=>[...l[2]||(l[2]=[e.createTextVNode(" 重置 ",-1)])]),_:1}),e.createVNode(e.unref(F),{type:"primary",block:"",onClick:Ne},{default:e.withCtx(()=>[e.createTextVNode(" 确定"+e.toDisplayString(Be.value),1)]),_:1})])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)]}),_:3})]))}}),Z=w(Rt,[["__scopeId","data-v-26a764e2"]]),ee=n=>{n.component("RcSearchArea",Z),n.component("rc-search-area",Z)},O=Symbol("RECYCLE_UI_CONFIG"),te={prefix:"rc",autoRegister:!0,provideKey:O,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_9vcnw0pnmkh.css",iconClass:"iconfont"};function zt(n,r){r.autoRegister!==!1&&(typeof q=="function"&&q(n),typeof H=="function"&&H(n),typeof J=="function"&&J(n),typeof ye=="function"&&ye(n),typeof X=="function"&&X(n),typeof Q=="function"&&Q(n),typeof ee=="function"&&ee(n))}const ne=(n,r)=>{const c={...te,...r||{}};if(n.provide(c.provideKey??O,c),n.config.globalProperties.$recycleUI=c,typeof window<"u"&&c.iconCssUrl){const f=`link[rel="stylesheet"][data-rcui-icon="true"][href="${c.iconCssUrl}"]`;if(!document.head.querySelector(f)){const p=document.createElement("link");p.rel="stylesheet",p.href=c.iconCssUrl,p.setAttribute("data-rcui-icon","true"),document.head.appendChild(p)}}return zt(n,c),n},Lt={install:ne};function Tt(n){return{install(r){ne(r,n)}}}exports.RECYCLE_UI_SYMBOL=O;exports.RcButton=F;exports.RcCard=U;exports.RcDescriptions=ke;exports.RcDescriptionsItem=he;exports.RcIcon=C;exports.RcSearchArea=Z;exports.RcToast=j;exports.createRecycleUI=Tt;exports.default=Lt;exports.defaultRecycleUIConfig=te;exports.hideToast=ge;exports.install=ne;exports.installButton=q;exports.installCard=J;exports.installDescriptions=H;exports.installIcon=X;exports.installMessage=Q;exports.installSearchArea=ee;exports.message=_e;exports.rcDescriptions=ke;exports.rcDescriptionsItem=he;exports.showToast=rt;
2
2
  //# sourceMappingURL=index.cjs.map