@rft-rc/recycle-ui 0.0.2 → 0.0.3-rc.11
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.
- package/README.md +38 -34
- package/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button/index.vue.d.ts +25 -6
- package/dist/components/button/index.vue.d.ts.map +1 -1
- package/dist/components/calendar/index.d.ts +5 -0
- package/dist/components/calendar/index.d.ts.map +1 -0
- package/dist/components/calendar/index.vue.d.ts +64 -0
- package/dist/components/calendar/index.vue.d.ts.map +1 -0
- package/dist/components/calendar/panel-content.vue.d.ts +38 -0
- package/dist/components/calendar/panel-content.vue.d.ts.map +1 -0
- package/dist/components/card/index.vue.d.ts +2 -2
- package/dist/components/card/index.vue.d.ts.map +1 -1
- package/dist/components/checkbox/button.vue.d.ts +51 -0
- package/dist/components/checkbox/button.vue.d.ts.map +1 -0
- package/dist/components/checkbox/group.vue.d.ts +58 -0
- package/dist/components/checkbox/group.vue.d.ts.map +1 -0
- package/dist/components/checkbox/index.d.ts +8 -0
- package/dist/components/checkbox/index.d.ts.map +1 -0
- package/dist/components/checkbox/index.vue.d.ts +60 -0
- package/dist/components/checkbox/index.vue.d.ts.map +1 -0
- package/dist/components/descriptions/index.d.ts +12 -0
- package/dist/components/descriptions/index.d.ts.map +1 -1
- package/dist/components/descriptions/index.vue.d.ts +3 -0
- package/dist/components/descriptions/index.vue.d.ts.map +1 -1
- package/dist/components/descriptions/item.vue.d.ts +3 -0
- package/dist/components/descriptions/item.vue.d.ts.map +1 -1
- package/dist/components/dropdown/index.d.ts +8 -0
- package/dist/components/dropdown/index.d.ts.map +1 -0
- package/dist/components/dropdown/index.vue.d.ts +49 -0
- package/dist/components/dropdown/index.vue.d.ts.map +1 -0
- package/dist/components/dropdown/item.vue.d.ts +24 -0
- package/dist/components/dropdown/item.vue.d.ts.map +1 -0
- package/dist/components/dropdown/menu.vue.d.ts +32 -0
- package/dist/components/dropdown/menu.vue.d.ts.map +1 -0
- package/dist/components/dropdown/types.d.ts +2 -0
- package/dist/components/dropdown/types.d.ts.map +1 -0
- package/dist/components/form/index.d.ts +8 -0
- package/dist/components/form/index.d.ts.map +1 -0
- package/dist/components/form/index.vue.d.ts +76 -0
- package/dist/components/form/index.vue.d.ts.map +1 -0
- package/dist/components/form/item.vue.d.ts +49 -0
- package/dist/components/form/item.vue.d.ts.map +1 -0
- package/dist/components/icon/index.d.ts +1 -1
- package/dist/components/icon/index.d.ts.map +1 -1
- package/dist/components/icon/index.vue.d.ts +1 -1
- package/dist/components/icon/index.vue.d.ts.map +1 -1
- package/dist/components/input/index.d.ts +5 -0
- package/dist/components/input/index.d.ts.map +1 -0
- package/dist/components/input/index.vue.d.ts +158 -0
- package/dist/components/input/index.vue.d.ts.map +1 -0
- package/dist/components/popup/index.d.ts +5 -0
- package/dist/components/popup/index.d.ts.map +1 -0
- package/dist/components/popup/index.vue.d.ts +70 -0
- package/dist/components/popup/index.vue.d.ts.map +1 -0
- package/dist/components/radio/button.vue.d.ts +42 -0
- package/dist/components/radio/button.vue.d.ts.map +1 -0
- package/dist/components/radio/group.vue.d.ts +50 -0
- package/dist/components/radio/group.vue.d.ts.map +1 -0
- package/dist/components/radio/index.d.ts +8 -0
- package/dist/components/radio/index.d.ts.map +1 -0
- package/dist/components/radio/index.vue.d.ts +48 -0
- package/dist/components/radio/index.vue.d.ts.map +1 -0
- package/dist/components/search-area/index.vue.d.ts +51 -11
- package/dist/components/search-area/index.vue.d.ts.map +1 -1
- package/dist/components/toast/index.vue.d.ts +2 -2
- package/dist/components/toast/index.vue.d.ts.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +16 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +3190 -492
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/dist/types.d.ts +4 -0
- package/dist/types.d.ts.map +1 -1
- package/package.json +15 -4
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.vue.d.ts","sourceRoot":"","sources":["../../../src/components/radio/button.vue"],"names":[],"mappings":"AA6TA,KAAK,WAAW,GAAG;IACjB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAuLF,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;AAgC/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;UA1NZ,MAAM;WAJL,MAAM,GAAG,MAAM,GAAG,OAAO;cAEtB,OAAO;gBAJL,MAAM,GAAG,MAAM,GAAG,OAAO;6EAyOtC,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"}
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
export interface RadioGroupContext {
|
|
3
|
+
modelValue: ComputedRef<string | number | boolean>;
|
|
4
|
+
changeEvent: (value: string | number | boolean) => void;
|
|
5
|
+
size?: 'large' | 'default' | 'small';
|
|
6
|
+
disabled?: boolean;
|
|
7
|
+
name?: string;
|
|
8
|
+
fill?: string;
|
|
9
|
+
textColor?: string;
|
|
10
|
+
}
|
|
11
|
+
type __VLS_Props = {
|
|
12
|
+
/** 绑定值 */
|
|
13
|
+
modelValue?: string | number | boolean;
|
|
14
|
+
/** Radio 按钮组尺寸,仅对按钮样式的 Radio 有效 */
|
|
15
|
+
size?: 'large' | 'default' | 'small';
|
|
16
|
+
/** 是否禁用 */
|
|
17
|
+
disabled?: boolean;
|
|
18
|
+
/** 按钮形式的 Radio 激活时的文本颜色 */
|
|
19
|
+
textColor?: string;
|
|
20
|
+
/** 按钮形式的 Radio 激活时的填充色和边框色 */
|
|
21
|
+
fill?: string;
|
|
22
|
+
/** 原生 name 属性 */
|
|
23
|
+
name?: string;
|
|
24
|
+
};
|
|
25
|
+
declare var __VLS_1: {};
|
|
26
|
+
type __VLS_Slots = {} & {
|
|
27
|
+
default?: (props: typeof __VLS_1) => any;
|
|
28
|
+
};
|
|
29
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
30
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
31
|
+
change: (value: string | number | boolean) => any;
|
|
32
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
33
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
34
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
name: string;
|
|
37
|
+
fill: string;
|
|
38
|
+
size: "large" | "default" | "small";
|
|
39
|
+
disabled: boolean;
|
|
40
|
+
modelValue: string | number | boolean;
|
|
41
|
+
textColor: string;
|
|
42
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
43
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
44
|
+
export default _default;
|
|
45
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
46
|
+
new (): {
|
|
47
|
+
$slots: S;
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
//# sourceMappingURL=group.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.vue.d.ts","sourceRoot":"","sources":["../../../src/components/radio/group.vue"],"names":[],"mappings":"AAuFA,OAAO,EAAoC,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;AAIzE,MAAM,WAAW,iBAAiB;IAChC,UAAU,EAAE,WAAW,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC;IACnD,WAAW,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,KAAK,IAAI,CAAC;IACxD,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACrC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,KAAK,WAAW,GAAG;IACjB,UAAU;IACV,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,mCAAmC;IACnC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACrC,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAsEF,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;AAqB/C,QAAA,MAAM,eAAe;;;;;;;UA9FZ,MAAM;UAFN,MAAM;UANN,OAAO,GAAG,SAAS,GAAG,OAAO;cAEzB,OAAO;gBAJL,MAAM,GAAG,MAAM,GAAG,OAAO;eAM1B,MAAM;6EA0GlB,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"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import Radio from './index.vue';
|
|
3
|
+
import RadioGroup from './group.vue';
|
|
4
|
+
import RadioButton from './button.vue';
|
|
5
|
+
export declare function install(app: App): App<any>;
|
|
6
|
+
export { RadioGroup, RadioButton };
|
|
7
|
+
export default Radio;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/radio/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,OAAO,UAAU,MAAM,aAAa,CAAC;AACrC,OAAO,WAAW,MAAM,cAAc,CAAC;AAMvC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAQ/B;AAED,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,CAAC;AACnC,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 绑定值,使用 RadioGroup 时不需要单独设置 */
|
|
3
|
+
modelValue?: string | number | boolean;
|
|
4
|
+
/** Radio 的 value */
|
|
5
|
+
label?: string | number | boolean;
|
|
6
|
+
/** 是否禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 是否显示边框 */
|
|
9
|
+
border?: boolean;
|
|
10
|
+
/** Radio 的尺寸,仅在 border 为真时有效 */
|
|
11
|
+
size?: 'large' | 'default' | 'small';
|
|
12
|
+
/** 原生 name 属性 */
|
|
13
|
+
name?: string;
|
|
14
|
+
};
|
|
15
|
+
declare var __VLS_1: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
default?: (props: typeof __VLS_1) => any;
|
|
18
|
+
};
|
|
19
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
20
|
+
radioRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
21
|
+
focus: () => void;
|
|
22
|
+
blur: () => void;
|
|
23
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
24
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
25
|
+
change: (value: string | number | boolean) => any;
|
|
26
|
+
blur: (event: FocusEvent) => any;
|
|
27
|
+
focus: (event: FocusEvent) => any;
|
|
28
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
29
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
30
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
31
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
32
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
33
|
+
}>, {
|
|
34
|
+
name: string;
|
|
35
|
+
size: "large" | "default" | "small";
|
|
36
|
+
label: string | number | boolean;
|
|
37
|
+
disabled: boolean;
|
|
38
|
+
modelValue: string | number | boolean;
|
|
39
|
+
border: boolean;
|
|
40
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
41
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
42
|
+
export default _default;
|
|
43
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
44
|
+
new (): {
|
|
45
|
+
$slots: S;
|
|
46
|
+
};
|
|
47
|
+
};
|
|
48
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/radio/index.vue"],"names":[],"mappings":"AA4VA,KAAK,WAAW,GAAG;IACjB,iCAAiC;IACjC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,oBAAoB;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa;IACb,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,gCAAgC;IAChC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACrC,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf,CAAC;AAkLF,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;AA6B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;UAlNZ,MAAM;UAFN,OAAO,GAAG,SAAS,GAAG,OAAO;WAN5B,MAAM,GAAG,MAAM,GAAG,OAAO;cAEtB,OAAO;gBAJL,MAAM,GAAG,MAAM,GAAG,OAAO;YAM7B,OAAO;6EA+NhB,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"}
|
|
@@ -8,12 +8,42 @@ export interface FilterItem {
|
|
|
8
8
|
label: string;
|
|
9
9
|
/** 筛选项唯一标识 */
|
|
10
10
|
key: string;
|
|
11
|
+
/** 筛选类型:single 单选,multiple 多选,tree-single 树形单选,tree-multiple 树形多选,input 输入框,calendar 日期选择器(默认 multiple) */
|
|
12
|
+
type: 'single' | 'multiple' | 'tree-single' | 'tree-multiple' | 'input' | 'calendar';
|
|
11
13
|
/** 选项列表 */
|
|
12
|
-
options
|
|
13
|
-
/** 筛选类型:single 单选,multiple 多选(默认) */
|
|
14
|
-
type?: 'single' | 'multiple';
|
|
14
|
+
options?: FilterOption[] | string[];
|
|
15
15
|
/** 多选时的列数(默认 2) */
|
|
16
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
|
+
/** 日期选择器相关配置(仅 type='calendar' 时有效) */
|
|
30
|
+
calendarConfig?: {
|
|
31
|
+
/** 是否支持区间选择:true/false 或数字(表示区间可选的最大天数) */
|
|
32
|
+
range?: boolean | number;
|
|
33
|
+
/** 最小可选日期,格式为 YYYY-MM-DD */
|
|
34
|
+
minDate?: string;
|
|
35
|
+
/** 最大可选日期,格式为 YYYY-MM-DD */
|
|
36
|
+
maxDate?: string;
|
|
37
|
+
/** 禁用日期函数 */
|
|
38
|
+
disabledDate?: (date: Date) => boolean;
|
|
39
|
+
/** 日期格式化函数 */
|
|
40
|
+
formatter?: (day: any) => {
|
|
41
|
+
text?: string;
|
|
42
|
+
bottomInfo?: string;
|
|
43
|
+
};
|
|
44
|
+
/** 区间模式下,结束日期是否自动加一天(选中日期为结束日期时,实际返回的结束日期会加一天) */
|
|
45
|
+
endDateOffset?: boolean;
|
|
46
|
+
};
|
|
17
47
|
}
|
|
18
48
|
type __VLS_Props = {
|
|
19
49
|
/** 筛选项配置 */
|
|
@@ -22,8 +52,17 @@ type __VLS_Props = {
|
|
|
22
52
|
modelValue?: Record<string, any>;
|
|
23
53
|
/** 是否显示蒙层 */
|
|
24
54
|
showMask?: boolean;
|
|
55
|
+
/** 是否自动确认:为 true 时,每次修改立即触发 change 事件并关闭弹窗,不显示确定和重置按钮 */
|
|
56
|
+
autoConfirm?: boolean;
|
|
57
|
+
};
|
|
58
|
+
declare var __VLS_14: string, __VLS_15: {
|
|
59
|
+
value: any;
|
|
60
|
+
'update:value': (val: any) => void;
|
|
61
|
+
};
|
|
62
|
+
type __VLS_Slots = {} & {
|
|
63
|
+
[K in NonNullable<typeof __VLS_14>]?: (props: typeof __VLS_15) => any;
|
|
25
64
|
};
|
|
26
|
-
declare const
|
|
65
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
27
66
|
/** 获取当前筛选值 */
|
|
28
67
|
getValues: () => {
|
|
29
68
|
[x: string]: any;
|
|
@@ -33,19 +72,20 @@ declare const _default: import("vue").DefineComponent<__VLS_Props, {
|
|
|
33
72
|
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
34
73
|
"update:modelValue": (values: Record<string, any>) => any;
|
|
35
74
|
change: (values: Record<string, any>, item: FilterItem) => any;
|
|
36
|
-
confirm: (values: Record<string, any>, item: FilterItem) => any;
|
|
37
|
-
reset: (key?: string | undefined) => any;
|
|
38
|
-
"item-change": (key: string, value: any) => any;
|
|
39
75
|
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
40
76
|
"onUpdate:modelValue"?: ((values: Record<string, any>) => any) | undefined;
|
|
41
77
|
onChange?: ((values: Record<string, any>, item: FilterItem) => any) | undefined;
|
|
42
|
-
onConfirm?: ((values: Record<string, any>, item: FilterItem) => any) | undefined;
|
|
43
|
-
onReset?: ((key?: string | undefined) => any) | undefined;
|
|
44
|
-
"onItem-change"?: ((key: string, value: any) => any) | undefined;
|
|
45
78
|
}>, {
|
|
46
|
-
items: FilterItem[];
|
|
47
79
|
modelValue: Record<string, any>;
|
|
80
|
+
items: FilterItem[];
|
|
48
81
|
showMask: boolean;
|
|
82
|
+
autoConfirm: boolean;
|
|
49
83
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
84
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
50
85
|
export default _default;
|
|
86
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
87
|
+
new (): {
|
|
88
|
+
$slots: S;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
51
91
|
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/search-area/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/search-area/index.vue"],"names":[],"mappings":"AAguCA,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,2GAA2G;IAC3G,IAAI,EAAE,QAAQ,GAAG,UAAU,GAAG,aAAa,GAAG,eAAe,GAAG,OAAO,GAAG,UAAU,CAAC;IACrF,WAAW;IACX,OAAO,CAAC,EAAE,YAAY,EAAE,GAAG,MAAM,EAAE,CAAC;IACpC,mBAAmB;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gGAAgG;IAChG,MAAM,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IAChD,yDAAyD;IACzD,UAAU,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IACpD,qCAAqC;IACrC,YAAY,CAAC,EAAE,CAAC,CAAC,IAAI,EAAE,YAAY,KAAK,GAAG,CAAC,GAAG,MAAM,CAAC;IACtD,kCAAkC;IAClC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oCAAoC;IACpC,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,uCAAuC;IACvC,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,uCAAuC;IACvC,cAAc,CAAC,EAAE;QACf,2CAA2C;QAC3C,KAAK,CAAC,EAAE,OAAO,GAAG,MAAM,CAAC;QACzB,4BAA4B;QAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,4BAA4B;QAC5B,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,aAAa;QACb,YAAY,CAAC,EAAE,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO,CAAC;QACvC,cAAc;QACd,SAAS,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK;YAAE,IAAI,CAAC,EAAE,MAAM,CAAC;YAAC,UAAU,CAAC,EAAE,MAAM,CAAA;SAAE,CAAC;QACjE,kDAAkD;QAClD,aAAa,CAAC,EAAE,OAAO,CAAC;KACzB,CAAC;CACH;AAED,KAAK,WAAW,GAAG;IACjB,YAAY;IACZ,KAAK,EAAE,UAAU,EAAE,CAAC;IACpB,wBAAwB;IACxB,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;IACjC,aAAa;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,yDAAyD;IACzD,WAAW,CAAC,EAAE,OAAO,CAAC;CACvB,CAAC;AAgnCF,QAAA,IAAI,QAAQ,QAAW,EAAE,QAAQ;;0BAhUV,GAAG;CAgUmB,CAAE;AAC/C,KAAK,WAAW,GAAG,EAAE,GACnB;KAAG,CAAC,IAAI,WAAW,CAAC,OAAO,QAAQ,CAAC,CAAC,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG;CAAE,CAAC;AAmD5E,QAAA,MAAM,eAAe;IAnfnB,cAAc;;;;IAEd,aAAa;;;;;;;;;gBAzrBA,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAFzB,UAAU,EAAE;cAIR,OAAO;iBAEJ,OAAO;6EA+qCrB,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"}
|
|
@@ -8,9 +8,9 @@ export interface ToastProps {
|
|
|
8
8
|
onAfterLeave?: () => void;
|
|
9
9
|
}
|
|
10
10
|
declare function close(): void;
|
|
11
|
-
declare var
|
|
11
|
+
declare var __VLS_17: {};
|
|
12
12
|
type __VLS_Slots = {} & {
|
|
13
|
-
default?: (props: typeof
|
|
13
|
+
default?: (props: typeof __VLS_17) => any;
|
|
14
14
|
};
|
|
15
15
|
declare const __VLS_component: import("vue").DefineComponent<ToastProps, {
|
|
16
16
|
close: typeof close;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/toast/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/toast/index.vue"],"names":[],"mappings":"AAkKA,MAAM,MAAM,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,CAAC;AAChE,MAAM,WAAW,UAAU;IACzB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,SAAS,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,qBAAqB;IACrB,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B;AAoBD,iBAAS,KAAK,SAGb;AA+HD,QAAA,IAAI,QAAQ,IAAY,CAAE;AAC1B,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAqBhD,QAAA,MAAM,eAAe;;;UAlLZ,SAAS;UAET,OAAO;aAHJ,MAAM;cAEL,MAAM;6EAyLjB,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"}
|
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"),me=["disabled"],fe={key:0,class:"rc-button__spinner"},pe=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 l=t,i=n,m=f=>{!l.disabled&&!l.loading&&i("click",f)},d=e.computed(()=>{const f=l.round;return typeof f=="boolean"?f?"999px":"6px":typeof f=="number"?`${f}px`:String(f)});return(f,c)=>(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:m},[t.loading?(e.openBlock(),e.createElementBlock("span",fe)):e.createCommentVNode("",!0),e.renderSlot(f.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)],14,me))}}),E=(t,n)=>{const l=t.__vccOpts||t;for(const[i,m]of n)l[i]=m;return l},D=E(pe,[["__scopeId","data-v-a70e95bb"]]);D.name="rc-button";function F(t){return t.component(D.name,D),t}const ve={class:"rc-desc-item__value"},ye=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 l=e.inject("rcDescGapPx",0),i=e.inject("rcDescColCount",1),m=e.inject("rcDescLabelWidth",""),d=e.computed(()=>{const r=typeof n.span=="string"?parseInt(n.span,10):n.span,s=typeof(i==null?void 0:i.value)=="number"?i.value:i,g=!Number.isNaN(r)&&r>0?r:1;return Math.min(g,s||1)}),f=e.computed(()=>{const r=typeof(i==null?void 0:i.value)=="number"?i.value:i,s=typeof(l==null?void 0:l.value)=="number"?l.value:l,g=d.value;if(!r||r<=1||g>=r)return"100%";const v=(r-1)*s,k=(g-1)*s;return`calc((100% - ${v}px) * ${g} / ${r} + ${k}px)`}),c=e.computed(()=>{const r=typeof(m==null?void 0:m.value)=="string"?m.value:m,s=n.labelWidth!==""?n.labelWidth:r||"";return s?{width:typeof s=="number"?`${s}px`:String(s),flex:"0 0 auto"}:{}});return(r,s)=>(e.openBlock(),e.createElementBlock("div",{class:"rc-desc-item",style:e.normalizeStyle({width:f.value,flex:`0 0 ${f.value}`})},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(c.value)},[e.renderSlot(r.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(t.label),1)],!0)],4),e.createElementVNode("div",ve,[e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(t.value),1)],!0)])],4))}}),x=E(ye,[["__scopeId","data-v-970d0b99"]]),ke={class:"rc-descriptions"},ge={key:0,class:"rc-descriptions__title"},he=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,l=e.ref(null),i=e.computed(()=>typeof n.gap=="number"?`${n.gap}px`:String(n.gap)),m=e.computed(()=>{const s=typeof n.column=="string"?Number.parseInt(n.column,10):n.column??1;return!Number.isNaN(s)&&s>0?s:1}),d=e.ref("100%"),f=e.ref("100%");e.watchEffect(()=>{const s=m.value;if(s<=1)d.value="100%",f.value="100%";else{const g=typeof n.gap=="number"?n.gap:parseFloat(String(n.gap))||0,k=`calc((100% - ${(s-1)*g}px) / ${s})`;f.value=k,d.value=k}}),e.provide("rcDescItemWidth",d),e.provide("rcDescSingleWidth",f),e.provide("rcDescColCount",m),e.provide("rcDescGapPx",e.computed(()=>typeof n.gap=="number"?n.gap:parseFloat(String(n.gap))||0));const c=e.computed(()=>n.labelWidth===""||n.labelWidth===void 0?"":typeof n.labelWidth=="number"?`${n.labelWidth}px`:String(n.labelWidth));e.provide("rcDescLabelWidth",c),e.provide("rcDescGap",e.computed(()=>typeof n.gap=="number"?`${n.gap}px`:String(n.gap)));const r=e.computed(()=>{var v,k,y;const s=((v=n.keyMap)==null?void 0:v.key)??"label",g=((k=n.keyMap)==null?void 0:k.value)??"value";return(y=n.data)!=null&&y.length?n.data.map(C=>({label:C==null?void 0:C[s],value:C==null?void 0:C[g]})):[]});return(s,g)=>(e.openBlock(),e.createElementBlock("div",ke,[s.$slots.title||t.title?(e.openBlock(),e.createElementBlock("div",ge,[e.renderSlot(s.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(t.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:i.value}),ref_key:"wrapEl",ref:l},[r.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(r.value,(v,k)=>(e.openBlock(),e.createBlock(x,{key:k,label:v.label,value:v.value,"label-width":t.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(s.$slots,"default",{key:1},void 0,!0)],4)]))}}),I=E(he,[["__scopeId","data-v-5fcaa235"]]);I.name="rc-descriptions";x.name="rc-descriptions-item";function O(t){return t.component(I.name,I),t.component("RcDescriptions",I),t.component(x.name,x),t.component("RcDescriptionsItem",x),t}const ee=I,te=x,_e={class:"rc-card__title"},be={class:"rc-card__title-text"},Ce={key:0,class:"rc-card__status"},Be={key:1,class:"rc-card__divider"},$e={key:2,class:"rc-card__action"},Se=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,l=e.computed(()=>{const c=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:c,boxShadow:f(n.elevation),width:d(n.width),height:d(n.height)}}),i=e.computed(()=>n.padding||"16px"),m=e.computed(()=>typeof n.gap=="number"?`${n.gap}px`:String(n.gap));function d(c){return c==null||c===""?"":typeof c=="number"?`${c}px`:String(c)}function f(c){if(!c||c<=0)return"none";const r=4*c;return`0 ${Math.round(r/2)}px ${r}px rgba(0,0,0,0.06), 0 ${Math.round(r/4)}px ${Math.round(r/2)}px rgba(0,0,0,0.04)`}return(c,r)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":t.bordered}]]),style:e.normalizeStyle(l.value)},[c.$slots.title||t.title||c.$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",_e,[e.renderSlot(c.$slots,"title",{},()=>[e.createElementVNode("span",be,e.toDisplayString(t.title),1)],!0)]),c.$slots.status||t.status?(e.openBlock(),e.createElementBlock("div",Ce,[e.renderSlot(c.$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:i.value,gap:m.value})},[e.renderSlot(c.$slots,"content",{},()=>[e.renderSlot(c.$slots,"default",{},void 0,!0)],!0)],4),c.$slots.action?(e.openBlock(),e.createElementBlock("div",Be)):e.createCommentVNode("",!0),c.$slots.action?(e.openBlock(),e.createElementBlock("div",$e,[e.renderSlot(c.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),R=E(Se,[["__scopeId","data-v-a7b95214"]]);R.name="rc-card";const Ee="RcCard";function j(t){return t.component(R.name,R),t.component(Ee,R),t}const Ve={key:0,class:"rc-toast__mask"},Ne={class:"rc-toast__content"},xe={key:0,class:"rc-toast__spinner"},we={key:1,class:"rc-toast__icon rc-toast__icon--success"},De={key:2,class:"rc-toast__icon rc-toast__icon--fail"},Ie={class:"rc-toast__text"},Re=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(t,{expose:n}){const l=t,i=e.ref(!0);let m;function d(){m&&(clearTimeout(m),m=null)}function f(){d(),i.value=!1}return n({close:f}),e.onMounted(()=>{l.duration&&l.duration>0&&(m=setTimeout(()=>{f()},l.duration))}),e.onUnmounted(()=>{d()}),(c,r)=>(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(()=>[i.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${t.type}`]])},[t.mask?(e.openBlock(),e.createElementBlock("div",Ve)):e.createCommentVNode("",!0),e.createElementVNode("div",Ne,[t.type==="loading"?(e.openBlock(),e.createElementBlock("div",xe)):t.type==="success"?(e.openBlock(),e.createElementBlock("div",we)):t.type==="fail"?(e.openBlock(),e.createElementBlock("div",De)):e.createCommentVNode("",!0),e.createElementVNode("div",Ie,e.toDisplayString(t.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(c.$slots,"default",{},void 0,!0)],64))}}),z=E(Re,[["__scopeId","data-v-d234c9c5"]]);let V=null,w=null;function X(){V&&(V.unmount(),V=null),w&&(document.body.removeChild(w),w=null)}function ze(t){const n=typeof t=="string"?{message:t}:t||{};X(),w=document.createElement("div"),document.body.appendChild(w);const l={message:n.message,type:n.type??"text",duration:n.duration??2e3,mask:n.mask??!1,onAfterLeave:()=>{var i;X(),(i=n.onClose)==null||i.call(n)}};return V=e.createApp(z,l),V.mount(w),{close:ne}}function ne(){var t,n,l;V&&((l=(n=(t=V._instance)==null?void 0:t.exposed)==null?void 0:n.close)==null||l.call(n))}z.name="rc-toast";function Z(t){return t.component(z.name,z),t}const Ae={class:"rc-message",role:"alert","aria-live":"polite"},Te={class:"rc-message__content"},Le=e.defineComponent({__name:"index",setup(t,{expose:n}){const l=e.reactive([]);let i=1;function m(f){const c=l.findIndex(r=>r.id===f);c>=0&&l.splice(c,1)}function d(f,c,r){const s=i++;return l.push({id:s,type:f,content:c,duration:r}),r>0&&window.setTimeout(()=>m(s),r),s}return n({add:d,remove:m}),(f,c)=>(e.openBlock(),e.createElementBlock("div",Ae,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,r=>(e.openBlock(),e.createElementBlock("div",{key:r.id,class:e.normalizeClass(["rc-message__item",`rc-message--${r.type}`])},[e.createElementVNode("span",Te,e.toDisplayString(r.content),1)],2))),128))]),_:1})]))}}),We=E(Le,[["__scopeId","data-v-87811df0"]]);let $=null,B=null;function Me(){var n;if($&&B)return;$=document.createElement("div"),document.body.appendChild($);const t=e.createVNode(We,{});e.render(t,$),B=(n=t.component)==null?void 0:n.exposed}function N(t,n,l){var m;Me();const i=typeof l=="number"?l:t==="loading"?0:2e3;return(m=B==null?void 0:B.add)==null?void 0:m.call(B,t,n,i)}const oe={open(t){return N(t.type||"info",t.content,t.duration)},info(t,n){return N("info",t,n)},success(t,n){return N("success",t,n)},warning(t,n){return N("warning",t,n)},error(t,n){return N("error",t,n)},loading(t,n){return N("loading",t,n)},destroy(){$&&(e.render(null,$),$.remove(),$=null,B=null)}};function G(t){return t.config.globalProperties.$message=oe,t}const Ue={key:0,class:"rc-icon__unicode"},Fe=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,l=e.inject(W,{}),i=e.computed(()=>(l==null?void 0:l.iconClass)||"iconfont"),m=e.computed(()=>n.name||""),d=e.computed(()=>typeof n.size=="number"?`${n.size}px`:n.size||"16px"),f=e.computed(()=>({fontSize:d.value,color:n.color||void 0,lineHeight:1,fontFamily:(l==null?void 0:l.iconClass)||"iconfont"})),c=e.computed(()=>{const r=n.code;if(r==null||r===""||r===0)return"";if(typeof r=="number")return String.fromCharCode(r);const s=String(r).replace(/^0x/i,""),g=parseInt(s,16);return Number.isNaN(g)?"":String.fromCharCode(g)});return e.onMounted(()=>{if(typeof window>"u")return;const r=l&&l.iconCssUrl||H.iconCssUrl;if(!r)return;const s=`link[rel="stylesheet"][data-rcui-icon="true"][href="${r}"]`;if(!document.head.querySelector(s)){const v=document.createElement("link");v.rel="stylesheet",v.href=r,v.setAttribute("data-rcui-icon","true"),document.head.appendChild(v)}}),(r,s)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[i.value,m.value,{"rc-icon--spin":t.spin}]]),style:e.normalizeStyle(f.value),"aria-hidden":"true"},[c.value?(e.openBlock(),e.createElementBlock("span",Ue,e.toDisplayString(c.value),1)):e.createCommentVNode("",!0)],6))}}),S=E(Fe,[["__scopeId","data-v-3857a892"]]);S.name="rc-icon";function P(t){return t.component(S.name,S),t.component("RcIcon",S),t}const Oe={class:"rc-search-area"},je={class:"rc-search-area__bar"},Ge=["onClick"],Pe={class:"rc-search-area__item-label"},Ye={class:"rc-search-area__panel-content"},qe={key:0,class:"rc-search-area__options-grid"},He=["onClick"],Ke={class:"rc-search-area__option-label"},Je={key:1,class:"rc-search-area__options-grid"},Qe=["onClick"],Xe={class:"rc-search-area__option-label"},Ze={key:2,class:"rc-search-area__empty"},et={class:"rc-search-area__panel-footer"},tt=e.defineComponent({name:"rc-search-area",__name:"index",props:{items:{default:()=>[]},modelValue:{default:()=>({})},showMask:{type:Boolean,default:!0}},emits:["update:modelValue","change","confirm","reset","item-change"],setup(t,{expose:n,emit:l}){const i=t,m=l,d=e.ref(null),f=e.ref(null),c=e.ref(null),r=e.ref({top:"0px"}),s=async()=>{if(d.value===null||!f.value)return;await e.nextTick();const a=f.value.getBoundingClientRect().top;r.value={top:`${a}px`}},g=o=>{if(d.value===null||!f.value)return;const a=o.target;if(f.value.contains(a))return;const u=f.value.closest(".rc-search-area");if(u){const p=u.querySelector(".rc-search-area__bar");if(p&&p.contains(a))return}M()};e.watch(d,async o=>{o!==null?(await e.nextTick(),s(),window.addEventListener("resize",s),window.addEventListener("scroll",s,!0),document.addEventListener("click",g,!0)):(window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0),document.removeEventListener("click",g,!0))}),e.onUnmounted(()=>{window.removeEventListener("resize",s),window.removeEventListener("scroll",s,!0),document.removeEventListener("click",g,!0)});const v=e.ref({}),k=e.ref({...i.modelValue});e.watch(()=>i.modelValue,o=>{k.value={...o||{}}},{deep:!0,immediate:!0});const y=e.computed(()=>d.value===null?null:i.items[d.value]),C=e.computed(()=>{if(!y.value)return"";const o=ue(y.value);return o>0?`(${o}项)`:""}),ae=o=>{const a=k.value[o.key];if(a==null||a==="")return o.label;if(o.type==="single"){const u=J(o,a);if(u)return`${o.label}: ${A(u)}`}else{const u=Array.isArray(a)?a:[a];if(u.length>0){const p=u.map(h=>{const _=J(o,h);return _?A(_):null}).filter(h=>h!==null);if(p.length>0)return`${o.label}: ${p.join("、")}`}}return o.label},le=o=>{const a=i.items[o];if(!a)return;if(d.value===o){d.value=null;return}const u=k.value[a.key];a.type==="single"?v.value[a.key]=u!==void 0?u:null:v.value[a.key]=u!==void 0?Array.isArray(u)?[...u]:[u]:[],d.value=o},M=()=>{d.value=null},A=o=>typeof o=="string"?o:o.label||String(o.value),T=o=>typeof o=="string"?o:o.value!==void 0?o.value:o,J=(o,a)=>o.options.find(u=>{const p=T(u);return p===a||String(p)===String(a)})||null,L=o=>{if(!y.value)return!1;const a=y.value.key,u=v.value[a],p=T(o);return y.value.type==="single"?u!=null&&u===p:(Array.isArray(u)?u:[]).some(_=>_===p||String(_)===String(p))},re=o=>{if(!y.value)return;const a=y.value.key,u=T(o);v.value[a]===u?v.value[a]=null:v.value[a]=u},ce=o=>{if(!y.value)return;const a=y.value.key,u=T(o),p=Array.isArray(v.value[a])?[...v.value[a]]:[],h=p.findIndex(_=>_===u||String(_)===String(u));h>=0?p.splice(h,1):p.push(u),v.value[a]=p},se=()=>{if(!y.value)return;const o=y.value.key;y.value.type==="single"?v.value[o]=null:v.value[o]=[]},ie=()=>{if(!y.value)return;const o=y.value.key,a=v.value[o],u=k.value[o];let p;y.value.type==="single"?(p=a??void 0,k.value[o]=p):(p=Array.isArray(a)&&a.length>0?a:void 0,k.value[o]=p),m("update:modelValue",{...k.value}),m("change",{...k.value},y.value),m("confirm",{...k.value},y.value),JSON.stringify(u)!==JSON.stringify(p)&&m("item-change",o,p),M()},Q=o=>{const a=k.value[o.key];return a==null||a===""?0:o.type==="single"?1:Array.isArray(a)?a.length:a?1:0},ue=o=>{const a=v.value[o.key];return a==null||a===""?0:o.type==="single"?1:Array.isArray(a)?a.length:0};return n({getValues:()=>({...k.value}),reset:()=>{k.value={},v.value={},m("update:modelValue",{}),m("change",{},null),m("reset")}}),(o,a)=>(e.openBlock(),e.createElementBlock("div",Oe,[e.createElementVNode("div",je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.items,(u,p)=>(e.openBlock(),e.createElementBlock("div",{key:p,class:e.normalizeClass(["rc-search-area__item",{"is-active":d.value===p,"has-value":Q(u)>0}]),onClick:h=>le(p)},[e.createElementVNode("span",Pe,e.toDisplayString(ae(u)),1),e.createVNode(e.unref(S),{name:"icon_a-xiala2",color:d.value!==p&&Q(u)>0?"#1677ff":"#969799",class:e.normalizeClass(["rc-search-area__item-arrow",{"is-up":d.value===p}])},null,8,["color","class"])],10,Ge))),128))]),e.createVNode(e.Transition,{name:"rc-search-area-fade"},{default:e.withCtx(()=>[d.value!==null&&i.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"maskRef",ref:c,class:"rc-search-area__mask",style:e.normalizeStyle(r.value),onClick:M},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"rc-search-area-slide"},{default:e.withCtx(()=>{var u,p,h,_;return[d.value!==null?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"panelRef",ref:f,class:"rc-search-area__panel"},[e.createElementVNode("div",Ye,[((u=y.value)==null?void 0:u.type)==="single"?(e.openBlock(),e.createElementBlock("div",qe,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(y.value.options,(b,U)=>(e.openBlock(),e.createElementBlock("div",{key:U,class:e.normalizeClass(["rc-search-area__option",{"is-selected":L(b)}]),onClick:de=>re(b)},[e.createElementVNode("span",Ke,e.toDisplayString(A(b)),1),L(b)?(e.openBlock(),e.createBlock(e.unref(S),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,He))),128))])):(e.openBlock(),e.createElementBlock("div",Je,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(((p=y.value)==null?void 0:p.options)||[],(b,U)=>(e.openBlock(),e.createElementBlock("div",{key:U,class:e.normalizeClass(["rc-search-area__option",{"is-selected":L(b)}]),onClick:de=>ce(b)},[e.createElementVNode("span",Xe,e.toDisplayString(A(b)),1),L(b)?(e.openBlock(),e.createBlock(e.unref(S),{key:0,name:"icon_select",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Qe))),128))])),((_=(h=y.value)==null?void 0:h.options)==null?void 0:_.length)===0?(e.openBlock(),e.createElementBlock("div",Ze,[...a[0]||(a[0]=[e.createElementVNode("p",null,"暂无选项",-1)])])):e.createCommentVNode("",!0)]),e.createElementVNode("div",et,[e.createVNode(e.unref(D),{block:"",onClick:se},{default:e.withCtx(()=>[...a[1]||(a[1]=[e.createTextVNode(" 重置 ",-1)])]),_:1}),e.createVNode(e.unref(D),{type:"primary",block:"",onClick:ie},{default:e.withCtx(()=>[e.createTextVNode(" 确定"+e.toDisplayString(C.value),1)]),_:1})])],512)):e.createCommentVNode("",!0)]}),_:1})]))}}),Y=E(tt,[["__scopeId","data-v-6a70650d"]]),q=t=>{t.component("RcSearchArea",Y),t.component("rc-search-area",Y)},W=Symbol("RECYCLE_UI_CONFIG"),H={prefix:"rc",autoRegister:!0,provideKey:W,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_9vcnw0pnmkh.css",iconClass:"iconfont"};function nt(t,n){n.autoRegister!==!1&&(typeof F=="function"&&F(t),typeof O=="function"&&O(t),typeof j=="function"&&j(t),typeof Z=="function"&&Z(t),typeof P=="function"&&P(t),typeof G=="function"&&G(t),typeof q=="function"&&q(t))}const K=(t,n)=>{const l={...H,...n||{}};if(t.provide(l.provideKey??W,l),t.config.globalProperties.$recycleUI=l,typeof window<"u"&&l.iconCssUrl){const i=`link[rel="stylesheet"][data-rcui-icon="true"][href="${l.iconCssUrl}"]`;if(!document.head.querySelector(i)){const d=document.createElement("link");d.rel="stylesheet",d.href=l.iconCssUrl,d.setAttribute("data-rcui-icon","true"),document.head.appendChild(d)}}return nt(t,l),t},ot={install:K};function at(t){return{install(n){K(n,t)}}}exports.RECYCLE_UI_SYMBOL=W;exports.RcButton=D;exports.RcCard=R;exports.RcDescriptions=ee;exports.RcDescriptionsItem=te;exports.RcIcon=S;exports.RcSearchArea=Y;exports.RcToast=z;exports.createRecycleUI=at;exports.default=ot;exports.defaultRecycleUIConfig=H;exports.hideToast=ne;exports.install=K;exports.installButton=F;exports.installCard=j;exports.installDescriptions=O;exports.installIcon=P;exports.installMessage=G;exports.installSearchArea=q;exports.message=oe;exports.rcDescriptions=ee;exports.rcDescriptionsItem=te;exports.showToast=ze;
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("vue"),yt={key:0,class:"rc-icon__unicode"},kt=e.defineComponent({name:"rc-icon",__name:"index",props:{name:{},size:{default:16},color:{default:""},spin:{type:Boolean,default:!1},code:{default:""}},setup(n){const f=n,l=e.inject(Pe,{}),t=e.computed(()=>(l==null?void 0:l.iconClass)||"iconfont"),p=e.computed(()=>f.name||""),u=e.computed(()=>typeof f.size=="number"?`${f.size}px`:f.size||"16px"),m=e.computed(()=>({fontSize:u.value,color:f.color||void 0,lineHeight:1,fontFamily:(l==null?void 0:l.iconClass)||"iconfont"})),a=e.computed(()=>{const i=f.code;if(i==null||i===""||i===0)return"";if(typeof i=="number")return String.fromCharCode(i);const r=String(i).replace(/^0x/i,""),D=parseInt(r,16);return Number.isNaN(D)?"":String.fromCharCode(D)});return e.onMounted(()=>{if(typeof window>"u")return;const i=l&&l.iconCssUrl||Ue.iconCssUrl;if(!i)return;const r=`link[rel="stylesheet"][data-rcui-icon="true"][href="${i}"]`;if(!document.head.querySelector(r)){const V=document.createElement("link");V.rel="stylesheet",V.href=i,V.setAttribute("data-rcui-icon","true"),document.head.appendChild(V)}}),(i,r)=>(e.openBlock(),e.createElementBlock("i",{class:e.normalizeClass(["rc-icon",[t.value,p.value,{"rc-icon--spin":n.spin}]]),style:e.normalizeStyle(m.value),"aria-hidden":"true"},[a.value?(e.openBlock(),e.createElementBlock("span",yt,e.toDisplayString(a.value),1)):e.createCommentVNode("",!0)],6))}}),K=(n,f)=>{const l=n.__vccOpts||n;for(const[t,p]of f)l[t]=p;return l},q=K(kt,[["__scopeId","data-v-3857a892"]]),bt=["disabled","type"],Bt={key:0,class:"rc-button__spinner"},_t={key:0,class:"rc-button__icon rc-button__icon--prefix"},Vt={key:2,class:"rc-button__icon rc-button__icon--suffix"},wt=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:""},formType:{default:void 0},width:{default:void 0}},emits:["click"],setup(n,{emit:f}){const l=n,t=f,p=e.inject("rcFormActions",void 0),u=e.computed(()=>l.formType==="submit"?"submit":l.formType==="reset"?"reset":"button"),m=r=>{if(!(l.disabled||l.loading)){if(l.formType&&p)if(l.formType==="submit"){r.preventDefault(),p.submit();return}else l.formType==="button"?(r.preventDefault(),p.submit()):l.formType==="reset"&&(r.preventDefault(),p.reset());t("click",r)}},a=e.computed(()=>{const r=l.round;return typeof r=="boolean"?r?"999px":"6px":typeof r=="number"?`${r}px`:String(r)}),i=e.computed(()=>{if(l.width!==void 0){if(typeof l.width=="number")return`${l.width}px`;const r=String(l.width);return/^\d+$/.test(r)?`${r}px`:r}if(l.block)return"100%"});return(r,D)=>(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:a.value,width:i.value}),disabled:n.disabled||n.loading,type:u.value,onClick:m},[n.loading?(e.openBlock(),e.createElementBlock("span",Bt)):(e.openBlock(),e.createElementBlock(e.Fragment,{key:1},[n.preIcon||r.$slots.preIcon?(e.openBlock(),e.createElementBlock("span",_t,[e.renderSlot(r.$slots,"preIcon",{},()=>[n.preIcon?(e.openBlock(),e.createBlock(q,{key:0,name:n.preIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],64)),e.renderSlot(r.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0),!n.loading&&(n.suffixIcon||r.$slots.suffixIcon)?(e.openBlock(),e.createElementBlock("span",Vt,[e.renderSlot(r.$slots,"suffixIcon",{},()=>[n.suffixIcon?(e.openBlock(),e.createBlock(q,{key:0,name:n.suffixIcon},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0)],14,bt))}}),ae=K(wt,[["__scopeId","data-v-89bf839e"]]);ae&&(ae.name="rc-button");function Ge(n){return ae&&n.component(ae.name||"rc-button",ae),n}const Ct={class:"rc-desc-item__value"},$t=e.defineComponent({name:"rc-descriptions-item",__name:"item",props:{label:{default:""},value:{default:""},labelWidth:{default:""},span:{default:1},labelPosition:{default:void 0}},setup(n){const f=n;e.inject("rcDescItemWidth",void 0),e.inject("rcDescSingleWidth",""),e.inject("rcDescGap","0px");const l=e.inject("rcDescGapPx",0),t=e.inject("rcDescColCount",1),p=e.inject("rcDescLabelWidth",""),u=e.inject("rcDescLabelPosition","left"),m=e.computed(()=>f.labelPosition!==void 0?f.labelPosition:(typeof(u==null?void 0:u.value)=="string"?u.value:u)||"left"),a=e.computed(()=>{const D=typeof f.span=="string"?parseInt(f.span,10):f.span,V=typeof(t==null?void 0:t.value)=="number"?t.value:t,k=!Number.isNaN(D)&&D>0?D:1;return Math.min(k,V||1)}),i=e.computed(()=>{const D=typeof(t==null?void 0:t.value)=="number"?t.value:t,V=typeof(l==null?void 0:l.value)=="number"?l.value:l,k=a.value;if(!D||D<=1||k>=D)return"100%";const w=(D-1)*V,M=(k-1)*V;return`calc((100% - ${w}px) * ${k} / ${D} + ${M}px)`}),r=e.computed(()=>{const D=typeof(p==null?void 0:p.value)=="string"?p.value:p,V=f.labelWidth!==""?f.labelWidth:D||"";return V?{width:typeof V=="number"?`${V}px`:String(V),flex:"0 0 auto"}:{}});return(D,V)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-desc-item",{"rc-desc-item--label-top":m.value==="top"}]),style:e.normalizeStyle({width:i.value,flex:`0 0 ${i.value}`})},[e.createElementVNode("div",{class:"rc-desc-item__label",style:e.normalizeStyle(r.value)},[e.renderSlot(D.$slots,"label",{},()=>[e.createTextVNode(e.toDisplayString(n.label),1)],!0)],4),e.createElementVNode("div",Ct,[e.renderSlot(D.$slots,"default",{},()=>[e.createTextVNode(e.toDisplayString(n.value),1)],!0)])],6))}}),Ce=K($t,[["__scopeId","data-v-c67b72f3"]]),xt={class:"rc-descriptions"},Dt={key:0,class:"rc-descriptions__title"},Et=e.defineComponent({name:"rc-descriptions",__name:"index",props:{title:{},column:{default:2},gap:{default:4},labelWidth:{default:""},labelPosition:{default:"left"},data:{default:()=>[]},keyMap:{}},setup(n){const f=n,l=e.ref(null),t=e.computed(()=>typeof f.gap=="number"?`${f.gap}px`:String(f.gap)),p=e.computed(()=>{const r=typeof f.column=="string"?Number.parseInt(f.column,10):f.column??1;return!Number.isNaN(r)&&r>0?r:1}),u=e.ref("100%"),m=e.ref("100%");e.watchEffect(()=>{const r=p.value;if(r<=1)u.value="100%",m.value="100%";else{const D=typeof f.gap=="number"?f.gap:parseFloat(String(f.gap))||0,k=`calc((100% - ${(r-1)*D}px) / ${r})`;m.value=k,u.value=k}}),e.provide("rcDescItemWidth",u),e.provide("rcDescSingleWidth",m),e.provide("rcDescColCount",p),e.provide("rcDescGapPx",e.computed(()=>typeof f.gap=="number"?f.gap:parseFloat(String(f.gap))||0));const a=e.computed(()=>f.labelWidth===""||f.labelWidth===void 0?"":typeof f.labelWidth=="number"?`${f.labelWidth}px`:String(f.labelWidth));e.provide("rcDescLabelWidth",a),e.provide("rcDescGap",e.computed(()=>typeof f.gap=="number"?`${f.gap}px`:String(f.gap))),e.provide("rcDescLabelPosition",e.computed(()=>f.labelPosition||"left"));const i=e.computed(()=>{var V,k,w;const r=((V=f.keyMap)==null?void 0:V.key)??"label",D=((k=f.keyMap)==null?void 0:k.value)??"value";return(w=f.data)!=null&&w.length?f.data.map(M=>({label:M==null?void 0:M[r],value:M==null?void 0:M[D]})):[]});return(r,D)=>(e.openBlock(),e.createElementBlock("div",xt,[r.$slots.title||n.title?(e.openBlock(),e.createElementBlock("div",Dt,[e.renderSlot(r.$slots,"title",{},()=>[e.createTextVNode(e.toDisplayString(n.title),1)],!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",{class:"rc-descriptions__body",style:e.normalizeStyle({gap:t.value}),ref_key:"wrapEl",ref:l},[i.value.length?(e.openBlock(!0),e.createElementBlock(e.Fragment,{key:0},e.renderList(i.value,(V,k)=>(e.openBlock(),e.createBlock(Ce,{key:k,label:V.label,value:V.value,"label-width":n.labelWidth},null,8,["label","value","label-width"]))),128)):e.renderSlot(r.$slots,"default",{key:1},void 0,!0)],4)]))}}),Ne=K(Et,[["__scopeId","data-v-f8388d0b"]]);Ne.name="rc-descriptions";Ce.name="rc-descriptions-item";function qe(n){return n.component(Ne.name,Ne),n.component("RcDescriptions",Ne),n.component(Ce.name,Ce),n.component("RcDescriptionsItem",Ce),n}const mt=Ne,vt=Ce,St={class:"rc-card__title"},Nt={class:"rc-card__title-text"},Rt={key:0,class:"rc-card__status"},Mt={key:1,class:"rc-card__divider"},Tt={key:2,class:"rc-card__action"},zt=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 f=n,l=e.computed(()=>{const a=typeof f.round=="boolean"?f.round?"12px":"0":typeof f.round=="number"?`${f.round}px`:String(f.round);return{backgroundColor:f.color||"var(--rc-white)",borderRadius:a,boxShadow:m(f.elevation),width:u(f.width),height:u(f.height)}}),t=e.computed(()=>f.padding||"16px"),p=e.computed(()=>typeof f.gap=="number"?`${f.gap}px`:String(f.gap));function u(a){return a==null||a===""?"":typeof a=="number"?`${a}px`:String(a)}function m(a){if(!a||a<=0)return"none";const i=4*a;return`0 ${Math.round(i/2)}px ${i}px rgba(0,0,0,0.06), 0 ${Math.round(i/4)}px ${Math.round(i/2)}px rgba(0,0,0,0.04)`}return(a,i)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-card",[{"rc-card--bordered":n.bordered}]]),style:e.normalizeStyle(l.value)},[a.$slots.title||n.title||a.$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",St,[e.renderSlot(a.$slots,"title",{},()=>[e.createElementVNode("span",Nt,e.toDisplayString(n.title),1)],!0)]),a.$slots.status||n.status?(e.openBlock(),e.createElementBlock("div",Rt,[e.renderSlot(a.$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:t.value,gap:p.value})},[e.renderSlot(a.$slots,"content",{},()=>[e.renderSlot(a.$slots,"default",{},void 0,!0)],!0)],4),a.$slots.action?(e.openBlock(),e.createElementBlock("div",Mt)):e.createCommentVNode("",!0),a.$slots.action?(e.openBlock(),e.createElementBlock("div",Tt,[e.renderSlot(a.$slots,"action",{},void 0,!0)])):e.createCommentVNode("",!0)],6))}}),Re=K(zt,[["__scopeId","data-v-a7b95214"]]);Re.name="rc-card";const Ft="RcCard";function Ke(n){return n.component(Re.name,Re),n.component(Ft,Re),n}function Je(n){return q&&(n.component("rc-icon",q),n.component("RcIcon",q)),n}const It={key:0,class:"rc-toast__mask"},At={class:"rc-toast__content"},Lt={key:0,class:"rc-toast__spinner"},Pt={key:2,class:"rc-toast__icon rc-toast__icon--fail"},Yt={class:"rc-toast__text"},Ot=e.defineComponent({__name:"index",props:{message:{default:""},type:{default:"text"},duration:{default:2e3},mask:{type:Boolean,default:!1},onAfterLeave:{}},setup(n,{expose:f}){const l=n,t=e.ref(!0);let p;function u(){p&&(clearTimeout(p),p=null)}function m(){u(),t.value=!1}return f({close:m}),e.onMounted(()=>{l.duration&&l.duration>0&&(p=setTimeout(()=>{m()},l.duration))}),e.onUnmounted(()=>{u()}),(a,i)=>(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(()=>[t.value?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-toast",[`rc-toast--${n.type}`]])},[n.mask?(e.openBlock(),e.createElementBlock("div",It)):e.createCommentVNode("",!0),e.createElementVNode("div",At,[n.type==="loading"?(e.openBlock(),e.createElementBlock("div",Lt)):n.type==="success"?(e.openBlock(),e.createBlock(e.unref(q),{key:1,name:"icon_select"})):n.type==="fail"?(e.openBlock(),e.createElementBlock("div",Pt)):e.createCommentVNode("",!0),e.createElementVNode("div",Yt,e.toDisplayString(n.message),1)])],2)):e.createCommentVNode("",!0)]),_:1},8,["onAfterLeave"])])),e.renderSlot(a.$slots,"default",{},void 0,!0)],64))}}),Le=K(Ot,[["__scopeId","data-v-b3e27bda"]]);let Ve=null,$e=null;function ut(){Ve&&(Ve.unmount(),Ve=null),$e&&(document.body.removeChild($e),$e=null)}function Wt(n){const f=typeof n=="string"?{message:n}:n||{};ut(),$e=document.createElement("div"),document.body.appendChild($e);const l={message:f.message,type:f.type??"text",duration:f.duration??2e3,mask:f.mask??!1,onAfterLeave:()=>{var t;ut(),(t=f.onClose)==null||t.call(f)}};return Ve=e.createApp(Le,l),Ve.mount($e),{close:pt}}function pt(){var n,f,l;Ve&&((l=(f=(n=Ve._instance)==null?void 0:n.exposed)==null?void 0:f.close)==null||l.call(f))}Le.name="rc-toast";function dt(n){return n.component(Le.name,Le),n}const jt={class:"rc-message",role:"alert","aria-live":"polite"},Ut={class:"rc-message__content"},Ht=e.defineComponent({__name:"index",setup(n,{expose:f}){const l=e.reactive([]);let t=1;function p(m){const a=l.findIndex(i=>i.id===m);a>=0&&l.splice(a,1)}function u(m,a,i){const r=t++;return l.push({id:r,type:m,content:a,duration:i}),i>0&&window.setTimeout(()=>p(r),i),r}return f({add:u,remove:p}),(m,a)=>(e.openBlock(),e.createElementBlock("div",jt,[e.createVNode(e.TransitionGroup,{name:"rc-message-fade",tag:"div"},{default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(l,i=>(e.openBlock(),e.createElementBlock("div",{key:i.id,class:e.normalizeClass(["rc-message__item",`rc-message--${i.type}`])},[e.createElementVNode("span",Ut,e.toDisplayString(i.content),1)],2))),128))]),_:1})]))}}),Gt=K(Ht,[["__scopeId","data-v-87811df0"]]);let ge=null,he=null;function qt(){var f;if(ge&&he)return;ge=document.createElement("div"),document.body.appendChild(ge);const n=e.createVNode(Gt,{});e.render(n,ge),he=(f=n.component)==null?void 0:f.exposed}function we(n,f,l){var p;qt();const t=typeof l=="number"?l:n==="loading"?0:2e3;return(p=he==null?void 0:he.add)==null?void 0:p.call(he,n,f,t)}const ht={open(n){return we(n.type||"info",n.content,n.duration)},info(n,f){return we("info",n,f)},success(n,f){return we("success",n,f)},warning(n,f){return we("warning",n,f)},error(n,f){return we("error",n,f)},loading(n,f){return we("loading",n,f)},destroy(){ge&&(e.render(null,ge),ge.remove(),ge=null,he=null)}};function Qe(n){return n.config.globalProperties.$message=ht,n}const Kt={class:"rc-popup__content"},Jt=e.defineComponent({name:"rc-popup",__name:"index",props:{modelValue:{type:Boolean,default:!1},position:{default:"center"},overlay:{type:Boolean,default:!0},overlayClass:{default:""},overlayStyle:{default:void 0},closeable:{type:Boolean,default:!1},closeIconPosition:{default:"top-right"},closeIcon:{default:"icon_close"},round:{type:Boolean,default:!1},popupStyle:{default:void 0},closeOnClickOverlay:{type:Boolean,default:!0},lockScroll:{type:Boolean,default:!0}},emits:["update:modelValue","open","close","click-overlay"],setup(n,{expose:f,emit:l}){const t=n,p=l,u=e.ref(),m=e.ref(t.modelValue);let a=!1;function i(){a||(a=!0,document.body.style.overflow="hidden")}function r(){a&&(a=!1,document.body.style.overflow="")}e.watch(()=>t.modelValue,o=>{m.value=o,o?(p("open"),t.lockScroll&&i()):(p("close"),t.lockScroll&&r())},{immediate:!0}),e.watch(m,o=>{o!==t.modelValue&&p("update:modelValue",o)});const D=e.computed(()=>`rc-popup-slide-${t.position}`),V=e.computed(()=>({...t.popupStyle||{}}));function k(){p("click-overlay"),t.closeOnClickOverlay&&M()}function w(){M()}function M(){m.value=!1}function b(){m.value=!0}return e.onUnmounted(()=>{r()}),f({open:b,close:M,visible:m}),(o,Y)=>(e.openBlock(),e.createBlock(e.Teleport,{to:"body"},[e.createVNode(e.Transition,{name:"rc-popup-fade"},{default:e.withCtx(()=>[m.value&&t.overlay?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-popup__overlay",{"rc-popup__overlay--transparent":t.overlayClass==="transparent"}]),style:e.normalizeStyle(t.overlayStyle),onClick:k},null,6)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:D.value},{default:e.withCtx(()=>[m.value?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"popupRef",ref:u,class:e.normalizeClass(["rc-popup",[`rc-popup--${n.position}`,{"rc-popup--round":n.round}]]),style:e.normalizeStyle(V.value),onClick:Y[0]||(Y[0]=e.withModifiers(()=>{},["stop"]))},[n.closeable?(e.openBlock(),e.createElementBlock("div",{key:0,class:e.normalizeClass(["rc-popup__close",`rc-popup__close--${n.closeIconPosition}`]),onClick:w},[e.createVNode(q,{name:n.closeIcon,class:"rc-popup__close-icon"},null,8,["name"])],2)):e.createCommentVNode("",!0),e.createElementVNode("div",Kt,[e.renderSlot(o.$slots,"default",{},void 0,!0)])],6)):e.createCommentVNode("",!0)]),_:3},8,["name"])]))}}),ye=K(Jt,[["__scopeId","data-v-6face8e9"]]);ye&&(ye.name="rc-popup");const Qt="RcPopup";function Xe(n){return ye&&(n.component(ye.name||"rc-popup",ye),n.component(Qt,ye)),n}const Xt={key:0,class:"rc-calendar__header"},Zt={class:"rc-calendar__header-title"},en={key:1,class:"rc-calendar__shortcuts"},tn={class:"rc-calendar__shortcuts-scroll"},nn=["onClick"],an={class:"rc-calendar__month-title"},ln={class:"rc-calendar__weekdays"},on={class:"rc-calendar__days"},rn=["onClick"],cn={class:"rc-calendar__day-content"},sn={class:"rc-calendar__day-text"},un={key:0,class:"rc-calendar__day-bottom"},dn={key:2,class:"rc-calendar__footer"},fn={key:0,class:"rc-calendar__month-picker-overlay"},mn={class:"rc-calendar__month-picker"},vn={class:"rc-calendar__month-picker-header"},pn={class:"rc-calendar__month-picker-title"},hn={key:0},gn={key:0,class:"rc-calendar__year-picker-content"},yn={class:"rc-calendar__year-picker-grid"},kn=["onClick"],bn={key:1,class:"rc-calendar__month-picker-content"},Bn=["onClick"],je=48,te=3,He=7,_n=e.defineComponent({__name:"panel-content",props:{showTitle:{type:Boolean},title:{},range:{type:Boolean},selectedDate:{},rangeStart:{},rangeEnd:{},minDate:{},maxDate:{},disabledDate:{type:Function},formatter:{type:Function},showFooter:{type:Boolean},maxRangeDays:{}},emits:["select-day","clear","confirm","shortcut-select"],setup(n,{expose:f,emit:l}){const t=n,p=l,u=["日","一","二","三","四","五","六"];function m(s){if(!s)return null;const y=new Date(s);return isNaN(y.getTime())?null:y}function a(s){const y=s.getFullYear(),C=String(s.getMonth()+1).padStart(2,"0"),O=String(s.getDate()).padStart(2,"0");return`${y}-${C}-${O}`}const i=e.ref(new Date);e.watch(()=>[t.selectedDate,t.rangeStart],()=>{if(t.range&&t.rangeStart){const s=m(t.rangeStart);s&&(i.value=s)}else if(!t.range&&t.selectedDate){const s=m(t.selectedDate);s&&(i.value=s)}},{immediate:!0});function r(s){const y=new Date;return s.getFullYear()===y.getFullYear()&&s.getMonth()===y.getMonth()&&s.getDate()===y.getDate()}function D(s){if(!t.rangeStart||!t.rangeEnd)return!1;const y=a(s),C=t.rangeStart,O=t.rangeEnd;return y>C&&y<O}function V(s){if(t.disabledDate&&t.disabledDate(s))return!0;const y=a(s);return!!(t.minDate&&y<t.minDate||t.maxDate&&y>t.maxDate)}function k(s,y){const C=new Date(s,y,1),O=new Date(s,y+1,0),U=C.getDay(),re=O.getDate(),ce=[],st=new Date(s,y,0).getDate();for(let X=U-1;X>=0;X--){const Z={date:new Date(s,y-1,st-X),type:"prev-month",text:String(st-X)};if(t.formatter){const ee=t.formatter(Z);ee.text&&(Z.text=ee.text),ee.bottomInfo&&(Z.bottomInfo=ee.bottomInfo)}ce.push(Z)}for(let X=1;X<=re;X++){const Z={date:new Date(s,y,X),type:"current-month",text:String(X)};if(t.formatter){const ee=t.formatter(Z);ee.text&&(Z.text=ee.text),ee.bottomInfo&&(Z.bottomInfo=ee.bottomInfo)}ce.push(Z)}const gt=42-ce.length;for(let X=1;X<=gt;X++){const Z={date:new Date(s,y+1,X),type:"next-month",text:String(X)};if(t.formatter){const ee=t.formatter(Z);ee.text&&(Z.text=ee.text),ee.bottomInfo&&(Z.bottomInfo=ee.bottomInfo)}ce.push(Z)}return ce}const w=e.computed(()=>{const s=i.value.getFullYear(),y=i.value.getMonth();return k(s,y)}),M=e.computed(()=>{const s=i.value.getFullYear(),y=i.value.getMonth()+1;return`${s}年${y}月`});function b(s){const y=[];if(s.type!=="current-month"&&y.push("is-other-month"),r(s.date)&&y.push("is-today"),V(s.date))return y.push("is-disabled"),y;const C=a(s.date);return t.range?(t.rangeStart===C&&y.push("is-start"),t.rangeEnd===C&&y.push("is-end"),D(s.date)&&y.push("is-in-range")):t.selectedDate===C&&y.push("is-selected"),y}const o=e.computed(()=>!!(t.rangeStart&&t.rangeEnd)),Y=e.computed(()=>t.rangeStart&&t.rangeEnd?2:t.rangeStart||t.rangeEnd?1:0);function I(s){if(!t.minDate&&!t.maxDate)return!1;const y=t.minDate?m(t.minDate):null,C=t.maxDate?m(t.maxDate):null;return!!(y&&s<y.getFullYear()||C&&s>C.getFullYear())}function d(s,y){const C=t.minDate?m(t.minDate):null,O=t.maxDate?m(t.maxDate):null;if(C){const U=C.getFullYear(),re=C.getMonth()+1;if(s<U||s===U&&y<re)return!0}if(O){const U=O.getFullYear(),re=O.getMonth()+1;if(s>U||s===U&&y>re)return!0}return!1}const $=e.ref(!1),g=e.ref("year"),_=e.ref(i.value.getFullYear()),x=e.ref(i.value.getMonth()+1),S=e.ref(),N=e.ref(1900),L=e.ref(1920),T=e.ref(1900),P=e.ref(2100),Q=e.computed(()=>{const s=[],C=Math.floor((N.value-T.value)/te)-3,O=Math.ceil((L.value-T.value)/te)+3,U=T.value+Math.max(0,C)*te,re=T.value+O*te-1;for(let ce=U;ce<=re;ce++)s.push(ce);return s});e.watch(()=>i.value,s=>{_.value=s.getFullYear(),x.value=s.getMonth()+1},{immediate:!0});function le(){if(!S.value)return;const s=S.value.scrollTop,C=Math.max(0,Math.floor(s/je)),O=T.value+C*te,U=O+He*te-1;O<T.value?T.value=O-100:U>P.value&&(P.value=U+100),(O!==N.value||U!==L.value)&&(N.value=O,L.value=U)}function se(){_.value=i.value.getFullYear(),x.value=i.value.getMonth()+1,g.value="year",$.value=!0;const s=_.value;s<T.value?T.value=Math.floor(s/100)*100:s>P.value&&(P.value=Math.ceil(s/100)*100+99),e.nextTick(()=>{if(S.value){const y=Math.floor((s-T.value)/te),C=Math.max(0,y-2);N.value=T.value+C*te,L.value=N.value+He*te-1,fe(s)}})}function fe(s){if(!S.value)return;s<T.value?T.value=Math.floor(s/100)*100:s>P.value&&(P.value=Math.ceil(s/100)*100+99);const y=Math.floor((s-T.value)/te),C=y*je;S.value.scrollTop=C;const O=Math.max(0,y-2);N.value=T.value+O*te,L.value=N.value+He*te-1}function R(){const s=new Date(i.value);s.setMonth(s.getMonth()-1),i.value=s}function z(){const s=new Date(i.value);s.setMonth(s.getMonth()+1),i.value=s}function j(s){I(s)||(_.value=s,g.value="month")}function J(s){d(_.value,s)||(x.value=s,ne())}function ne(){const s=new Date(i.value);s.setFullYear(_.value),s.setMonth(x.value-1),i.value=s,$.value=!1,g.value="year"}function oe(s){p("select-day",s)}function ie(){p("clear")}function c(){h.value&&ie()}function v(){p("confirm")}function B(){$.value=!1}function F(s){g.value=s}function G(){const y=new Date().getFullYear();I(y)||(_.value=y,g.value="month")}function H(){const y=new Date().getMonth()+1;d(_.value,y)||(x.value=y,ne())}const h=e.computed(()=>t.range?!!(t.rangeStart||t.rangeEnd):!!t.selectedDate);function A(s,y){const C=m(s),O=m(y);if(!C||!O)return 0;const U=Math.abs(O.getTime()-C.getTime());return Math.ceil(U/(1e3*60*60*24))+1}function E(){return a(new Date)}function W(){const s=new Date,y=s.getDay(),C=s.getDate()-y+(y===0?-6:1);return new Date(s.getFullYear(),s.getMonth(),C)}function ue(){const s=W(),y=new Date(s);return y.setDate(s.getDate()+6),y}function me(){const s=new Date;return new Date(s.getFullYear(),s.getMonth(),1)}function de(){const s=new Date;return new Date(s.getFullYear(),s.getMonth()+1,0)}function Se(){const s=new Date;return new Date(s.getFullYear(),s.getMonth()-2,1)}function ve(){const s=new Date;return new Date(s.getFullYear(),0,1)}function pe(){const s=new Date;return new Date(s.getFullYear(),11,31)}const Ye=[{key:"today",label:"本日",days:1,getRange:()=>{const s=E();return[s,s]}},{key:"week",label:"本周",days:7,getRange:()=>{const s=a(W()),y=a(ue());return[s,y]}},{key:"month",label:"本月",getRange:()=>{const s=a(me()),y=a(de());return[s,y]}},{key:"threeMonths",label:"近三月",getRange:()=>{const s=a(Se()),y=a(de());return[s,y]}},{key:"year",label:"本年",getRange:()=>{const s=a(ve()),y=a(pe());return[s,y]}},{key:"last7Days",label:"近7天",days:7,getRange:()=>{const s=new Date,y=new Date(s);return y.setDate(s.getDate()-6),[a(y),E()]}},{key:"last30Days",label:"近30天",days:30,getRange:()=>{const s=new Date,y=new Date(s);return y.setDate(s.getDate()-29),[a(y),E()]}}],Oe=e.computed(()=>Ye.filter(s=>{if(t.maxRangeDays!==void 0){if(s.days!==void 0)return s.days<=t.maxRangeDays;{const y=s.getRange();if(y)return A(y[0],y[1])<=t.maxRangeDays}}return!0}));function We(s){const y=s.getRange();if(y){if(t.minDate&&y[0]<t.minDate||t.maxDate&&y[1]>t.maxDate)return;p("shortcut-select",y)}}return f({yearScrollRef:S}),(s,y)=>(e.openBlock(),e.createElementBlock("div",null,[n.showTitle?(e.openBlock(),e.createElementBlock("div",Xt,[e.createElementVNode("div",Zt,e.toDisplayString(n.title),1),e.createElementVNode("span",{class:e.normalizeClass(["rc-calendar__header-clear",{"is-disabled":!h.value}]),onClick:c}," 清空 ",2)])):e.createCommentVNode("",!0),n.range?(e.openBlock(),e.createElementBlock("div",en,[e.createElementVNode("div",tn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Oe.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C.key,class:"rc-calendar__shortcut-item",onClick:O=>We(C)},e.toDisplayString(C.label),9,nn))),128))])])):e.createCommentVNode("",!0),e.createElementVNode("div",an,[e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:R},[e.createVNode(e.unref(q),{name:"icon_caret-left",class:"rc-calendar__nav-icon"})]),e.createElementVNode("div",{class:"rc-calendar__month-text",onClick:se},e.toDisplayString(M.value),1),e.createElementVNode("div",{class:"rc-calendar__nav-button",onClick:z},[e.createVNode(e.unref(q),{name:"icon_caret-right",class:"rc-calendar__nav-icon"})])]),e.createElementVNode("div",ln,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(u,C=>e.createElementVNode("div",{key:C,class:"rc-calendar__weekday"},e.toDisplayString(C),1)),64))]),e.createElementVNode("div",on,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(w.value,(C,O)=>(e.openBlock(),e.createElementBlock("div",{key:O,class:e.normalizeClass(["rc-calendar__day",b(C)]),onClick:U=>oe(C)},[e.createElementVNode("div",cn,[e.createElementVNode("span",sn,e.toDisplayString(C.text),1),C.bottomInfo?(e.openBlock(),e.createElementBlock("span",un,e.toDisplayString(C.bottomInfo),1)):e.createCommentVNode("",!0)])],10,rn))),128))]),n.range&&n.showFooter?(e.openBlock(),e.createElementBlock("div",dn,[e.createVNode(e.unref(ae),{type:"default",class:"rc-calendar__footer-reset",onClick:ie},{default:e.withCtx(()=>[...y[2]||(y[2]=[e.createTextVNode("取消",-1)])]),_:1}),e.createVNode(e.unref(ae),{type:"primary",class:"rc-calendar__footer-confirm",disabled:!o.value,onClick:v},{default:e.withCtx(()=>[e.createTextVNode(e.toDisplayString(o.value?`确定(${Y.value}项)`:"确定"),1)]),_:1},8,["disabled"])])):e.createCommentVNode("",!0),e.createVNode(e.Transition,{name:"rc-calendar-fade"},{default:e.withCtx(()=>[$.value?(e.openBlock(),e.createElementBlock("div",fn,[e.createElementVNode("div",mn,[e.createElementVNode("div",vn,[e.createVNode(e.unref(ae),{type:"default",mode:"text",size:"small",onClick:B},{default:e.withCtx(()=>[...y[3]||(y[3]=[e.createTextVNode("取消",-1)])]),_:1}),e.createElementVNode("div",pn,[e.createElementVNode("span",{onClick:y[0]||(y[0]=C=>F("year"))},e.toDisplayString(_.value)+"年",1),g.value==="month"?(e.openBlock(),e.createElementBlock("span",hn," - ")):e.createCommentVNode("",!0),g.value==="month"?(e.openBlock(),e.createElementBlock("span",{key:1,onClick:y[1]||(y[1]=C=>F("month"))},e.toDisplayString(x.value)+"月",1)):e.createCommentVNode("",!0)]),g.value==="year"?(e.openBlock(),e.createBlock(e.unref(ae),{key:0,type:"primary",mode:"text",size:"small",onClick:G},{default:e.withCtx(()=>[...y[4]||(y[4]=[e.createTextVNode(" 本年 ",-1)])]),_:1})):e.createCommentVNode("",!0),g.value==="month"?(e.openBlock(),e.createBlock(e.unref(ae),{key:1,type:"primary",mode:"text",size:"small",onClick:H},{default:e.withCtx(()=>[...y[5]||(y[5]=[e.createTextVNode(" 本月 ",-1)])]),_:1})):e.createCommentVNode("",!0)]),g.value==="year"?(e.openBlock(),e.createElementBlock("div",gn,[e.createElementVNode("div",{class:"rc-calendar__year-picker-scroll",ref_key:"yearScrollRef",ref:S,onScroll:le},[e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.floor((N.value-T.value)/te)*je}px`})},null,4),e.createElementVNode("div",yn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q.value,C=>(e.openBlock(),e.createElementBlock("div",{key:C,class:e.normalizeClass(["rc-calendar__year-picker-item",{"is-selected":_.value===C,"is-disabled":I(C)}]),onClick:O=>j(C)},e.toDisplayString(C),11,kn))),128))]),e.createElementVNode("div",{class:"rc-calendar__year-picker-spacer",style:e.normalizeStyle({height:`${Math.ceil((P.value-L.value)/te)*je}px`})},null,4)],544)])):e.createCommentVNode("",!0),g.value==="month"?(e.openBlock(),e.createElementBlock("div",bn,[(e.openBlock(),e.createElementBlock(e.Fragment,null,e.renderList(12,C=>e.createElementVNode("div",{key:C,class:e.normalizeClass(["rc-calendar__month-picker-item",{"is-selected":x.value===C,"is-disabled":d(_.value,C)}]),onClick:O=>J(C)},e.toDisplayString(C)+"月 ",11,Bn)),64))])):e.createCommentVNode("",!0)])])):e.createCommentVNode("",!0)]),_:1})]))}}),ft=K(_n,[["__scopeId","data-v-0bf1834b"]]),Vn={class:"rc-calendar"},wn=["placeholder"],Cn={class:"rc-calendar__input-actions"},$n={key:1,class:"rc-calendar__panel"},xn=e.defineComponent({name:"rc-calendar",__name:"index",props:{modelValue:{default:null},range:{type:[Boolean,Number],default:!1},mode:{default:"default"},placeholder:{default:"请选择日期"},showTitle:{type:Boolean,default:!0},title:{default:"选择日期"},minDate:{default:void 0},maxDate:{default:void 0},disabledDate:{type:Function,default:void 0},formatter:{type:Function,default:void 0},showFooter:{type:Boolean,default:!0},endDateOffset:{type:Boolean,default:!1}},emits:["update:modelValue","change","confirm"],setup(n,{emit:f}){const l=n,t=f,p=e.ref(),u=e.ref(),m=e.ref(!1),a=e.ref(""),i=e.computed(()=>l.range===!0||typeof l.range=="number"),r=e.computed(()=>typeof l.range=="number"?l.range:void 0),D=e.computed(()=>R=>{if(l.disabledDate&&l.disabledDate(R))return!0;if(r.value!==void 0&&k.value&&!w.value){const z=o(R);if(b(k.value)&&Y(k.value,z)>r.value)return!0}return!1}),V=e.ref(null),k=e.ref(null),w=e.ref(null);e.watch(()=>l.modelValue,R=>{i.value?Array.isArray(R)&&R.length===2?(k.value=R[0],w.value=g(R[1])):(k.value=null,w.value=null):V.value=typeof R=="string"?R:null,M()},{immediate:!0});function M(){l.mode==="popup"&&(i.value?k.value&&w.value?a.value=`${k.value} ~ ${w.value}`:k.value?a.value=`${k.value} ~ `:a.value="":a.value=V.value||"")}function b(R){if(!R)return null;const z=new Date(R);return isNaN(z.getTime())?null:z}function o(R){const z=R.getFullYear(),j=String(R.getMonth()+1).padStart(2,"0"),J=String(R.getDate()).padStart(2,"0");return`${z}-${j}-${J}`}function Y(R,z){const j=b(R),J=b(z);if(!j||!J)return 0;const ne=Math.abs(J.getTime()-j.getTime());return Math.ceil(ne/(1e3*60*60*24))}function I(R){const z=b(R);return z?(z.setDate(z.getDate()+1),o(z)):R}function d(R){const z=b(R);return z?(z.setDate(z.getDate()-1),o(z)):R}function $(R){return l.endDateOffset&&i.value?I(R):R}function g(R){return l.endDateOffset&&i.value?d(R):R}function _(R){if(R.type!=="current-month"||l.disabledDate&&l.disabledDate(R.date))return;const z=o(R.date);if(!(l.minDate&&z<l.minDate)&&!(l.maxDate&&z>l.maxDate)){if(i.value)if(!k.value||k.value&&w.value)k.value=z,w.value=null;else{let j=k.value,J=z;if(z<k.value&&(J=k.value,j=z),k.value=j,w.value=J,k.value&&w.value){const ne=$(w.value),oe=[k.value,ne];t("update:modelValue",oe),t("change",oe),l.showFooter||x()}}else{V.value=z;const j=z;t("update:modelValue",j),t("change",j),l.mode&&T()}M()}}function x(){if(k.value&&w.value){const R=$(w.value),z=[k.value,R];t("update:modelValue",z),t("change",z),t("confirm",z),T()}}function S(){i.value?(k.value=null,w.value=null):V.value=null;const R=null;t("update:modelValue",R),t("change",R),M()}function N(R){k.value=R[0],w.value=R[1];const z=$(R[1]),j=[R[0],z];t("update:modelValue",j),t("change",j),l.showFooter?M():x()}function L(){m.value=!0}function T(){m.value=!1}function P(R){m.value=R}function Q(){L()}function le(){l.mode==="popup"&&fe()}function se(){m.value||L()}function fe(){const R=a.value.trim();if(i.value){const z=R.split("~").map(j=>j.trim());if(z.length===2&&z[0]&&z[1]){const j=b(z[0]),J=b(z[1]);if(j&&J&&!isNaN(j.getTime())&&!isNaN(J.getTime())){k.value=o(j);const ne=o(J);w.value=g(ne);const oe=$(w.value),ie=[k.value,oe];t("update:modelValue",ie),t("change",ie);return}}}else{const z=b(R);if(z&&!isNaN(z.getTime())){V.value=o(z),t("update:modelValue",V.value),t("change",V.value);return}}M()}return(R,z)=>(e.openBlock(),e.createElementBlock("div",Vn,[n.mode==="popup"?(e.openBlock(),e.createElementBlock("div",{key:0,class:"rc-calendar__input",onClick:L},[e.withDirectives(e.createElementVNode("input",{ref_key:"inputRef",ref:p,"onUpdate:modelValue":z[0]||(z[0]=j=>a.value=j),type:"text",class:"rc-calendar__input-field",placeholder:n.placeholder,readonly:"",onFocus:Q,onBlur:le,onInput:se},null,40,wn),[[e.vModelText,a.value]]),e.createElementVNode("div",Cn,[e.createVNode(e.unref(q),{name:"icon_a-rili",class:"rc-calendar__input-icon"})])])):e.createCommentVNode("",!0),n.mode==="default"?(e.openBlock(),e.createElementBlock("div",$n,[e.createVNode(ft,{"show-title":n.showTitle,title:n.title,range:i.value,"selected-date":V.value,"range-start":k.value,"range-end":w.value,"min-date":n.minDate,"max-date":n.maxDate,"disabled-date":D.value,formatter:n.formatter,"show-footer":!1,"max-range-days":r.value,onSelectDay:_,onClear:S,onConfirm:x,onShortcutSelect:N},null,8,["show-title","title","range","selected-date","range-start","range-end","min-date","max-date","disabled-date","formatter","max-range-days"])])):e.createCommentVNode("",!0),n.mode==="popup"?(e.openBlock(),e.createBlock(e.unref(ye),{key:2,modelValue:m.value,"onUpdate:modelValue":[z[1]||(z[1]=j=>m.value=j),P],position:"bottom",overlay:!0,round:!0,"close-on-click-overlay":!0,"lock-scroll":!0},{default:e.withCtx(()=>[e.createElementVNode("div",{ref_key:"popupPanelRef",ref:u,class:"rc-calendar__panel"},[e.createVNode(ft,{"show-title":n.showTitle,title:n.title,range:i.value,"selected-date":V.value,"range-start":k.value,"range-end":w.value,"min-date":n.minDate,"max-date":n.maxDate,"disabled-date":D.value,formatter:n.formatter,"show-footer":n.showFooter,"max-range-days":r.value,onSelectDay:_,onClear:S,onConfirm:x,onShortcutSelect:N},null,8,["show-title","title","range","selected-date","range-start","range-end","min-date","max-date","disabled-date","formatter","show-footer","max-range-days"])],512)]),_:1},8,["modelValue"])):e.createCommentVNode("",!0)]))}}),ke=K(xn,[["__scopeId","data-v-96b29c22"]]);ke&&(ke.name="rc-calendar");const Dn="RcCalendar";function Ze(n){return ke&&(n.component(ke.name||"rc-calendar",ke),n.component(Dn,ke)),n}const En={class:"rc-search-area"},Sn={class:"rc-search-area__bar"},Nn=["onClick"],Rn={class:"rc-search-area__item-label"},Mn={class:"rc-search-area__panel-content"},Tn={key:1,class:"rc-search-area__input-wrapper"},zn=["placeholder"],Fn={key:2,class:"rc-search-area__calendar-wrapper"},In={key:3,class:"rc-search-area__tree-container"},An={class:"rc-search-area__tree-group-title"},Ln={class:"rc-search-area__tree-group-options"},Pn=["onClick"],Yn={class:"rc-search-area__option-label"},On={key:4,class:"rc-search-area__tree-container"},Wn={class:"rc-search-area__tree-group-title"},jn={class:"rc-search-area__tree-group-options"},Un=["onClick"],Hn={class:"rc-search-area__option-label"},Gn={key:5,class:"rc-search-area__options-grid"},qn=["onClick"],Kn={class:"rc-search-area__option-label"},Jn={key:6,class:"rc-search-area__options-grid"},Qn=["onClick"],Xn={class:"rc-search-area__option-label"},Zn={key:7,class:"rc-search-area__empty"},ea={key:0,class:"rc-search-area__panel-footer"},ta=e.defineComponent({name:"rc-search-area",__name:"index",props:{items:{default:()=>[]},modelValue:{default:()=>({})},showMask:{type:Boolean,default:!0},autoConfirm:{type:Boolean,default:!1}},emits:["update:modelValue","change"],setup(n,{expose:f,emit:l}){const t=n,p=l,u=e.ref(null),m=e.ref(null),a=e.ref(null),i=e.ref({top:"0px"}),r=async()=>{if(u.value===null||!m.value)return;await e.nextTick();const v=m.value.getBoundingClientRect().top;i.value={top:`${v}px`}},D=c=>{if(u.value===null||!m.value)return;const v=c.target;if(m.value.contains(v))return;const B=m.value.closest(".rc-search-area");if(B){const F=B.querySelector(".rc-search-area__bar");if(F&&F.contains(v))return}$()};e.watch(u,async c=>{c!==null?(await e.nextTick(),r(),window.addEventListener("resize",r),window.addEventListener("scroll",r,!0),document.addEventListener("click",D,!0)):(window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0),document.removeEventListener("click",D,!0))}),e.onUnmounted(()=>{window.removeEventListener("resize",r),window.removeEventListener("scroll",r,!0),document.removeEventListener("click",D,!0)});const V=e.ref({}),k=e.ref(""),w=e.ref(null),M=e.ref({}),b=e.ref({...t.modelValue});e.watch(()=>t.modelValue,c=>{b.value={...c||{}}},{deep:!0,immediate:!0});const o=e.computed(()=>u.value===null?null:t.items[u.value]),Y=e.computed(()=>{if(!o.value)return"";const c=ie(o.value);return c>0?`(${c}项)`:""}),I=c=>{const v=b.value[c.key];if(v==null||v===""||c.slot)return c.label;if(c.type==="input"){if(v&&String(v).trim())return`${c.label}: ${v}`}else if(c.type==="calendar"){if(v){if(Array.isArray(v)&&v.length===2)return`${c.label}: ${v[0]} ~ ${v[1]}`;if(typeof v=="string")return`${c.label}: ${v}`}}else if(c.type==="single"||c.type==="tree-single"){const B=S(c,v);if(B)return`${c.label}: ${x(B,c)}`}else{const B=Array.isArray(v)?v:[v];if(B.length>0){const F=B.map(G=>{const H=S(c,G);return H?x(H,c):null}).filter(G=>G!==null);if(F.length>0)return`${c.label}: ${F.join("、")}`}}return c.label},d=c=>{const v=t.items[c];if(!v)return;if(u.value===c){u.value=null;return}const B=b.value[v.key];v.slot?B!=null?Array.isArray(B)?M.value[v.key]=[...B]:typeof B=="object"?M.value[v.key]={...B}:M.value[v.key]=B:M.value[v.key]=void 0:v.type==="input"?k.value=B!=null?String(B):"":v.type==="calendar"?w.value=B??null:v.type==="single"||v.type==="tree-single"?V.value[v.key]=B!==void 0?B:null:V.value[v.key]=B!==void 0?Array.isArray(B)?[...B]:[B]:[],u.value=c},$=()=>{u.value=null},g=(c,v)=>{if(!v)return typeof c=="string"?c:c.label||String(c.value);const B=c;if(v.renderItem){if(typeof v.renderItem=="string")return String(typeof B=="object"&&B!==null?B[v.renderItem]??"":B);{const F=v.renderItem(B);return F!=null?String(F):""}}return typeof c=="string"?c:c.label||String(c.value)},_=(c,v)=>{if(!v)return typeof c=="string"?c:c.value!==void 0?c.value:c;const B=c;return v.format?typeof v.format=="string"?typeof B=="object"&&B!==null?B[v.format]:B:v.format(B):typeof c=="string"?c:c.value!==void 0?c.value:c},x=(c,v)=>{const B=c,F=v.renderResult||v.renderItem;if(F){if(typeof F=="string")return String(typeof B=="object"&&B!==null?B[F]??"":B);{const G=F(B);return G!=null?String(G):""}}return g(c,v)},S=(c,v,B)=>{const F=B||c.options;if(!F)return null;const G=c.childrenKey||"children";for(const H of F){const h=_(H,c);if(h===v||String(h)===String(v))return H;if(typeof H=="object"&&H!==null){const A=H[G];if(Array.isArray(A)&&A.length>0){const E=S(c,v,A);if(E)return E}}}return null},N=(c,v)=>{const B=v||c.options;if(!B)return[];const F=c.childrenKey||"children",G=[];for(const H of B)if(G.push(H),typeof H=="object"&&H!==null){const h=H[F];Array.isArray(h)&&h.length>0&&G.push(...N(c,h))}return G},L=c=>{if(!o.value)return!1;const v=o.value.key,B=V.value[v],F=_(c,o.value);return o.value.type==="single"||o.value.type==="tree-single"?B!=null&&B===F:(Array.isArray(B)?B:[]).some(H=>H===F||String(H)===String(F))},T=c=>c?c.childrenKey?N(c):c.options||[]:[],P=c=>{if(!c)return[];const v=c.childrenKey||"children";return(c.options||[]).filter(B=>{if(typeof B=="string")return!1;const F=B[v];return Array.isArray(F)&&F.length>0})},Q=(c,v)=>{if(!v||typeof c=="string")return[];const B=v.childrenKey||"children",F=c[B];return Array.isArray(F)?F:[]},le=c=>{if(c)return M.value[c.key]!==void 0?M.value[c.key]:b.value[c.key]},se=(c,v)=>{if(c&&(M.value[c.key]=v,t.autoConfirm)){const B=c.key;b.value[B]=v,p("update:modelValue",{...b.value}),p("change",{...b.value},c),$()}},fe=c=>{if(!o.value)return;const v=o.value.key,B=_(c,o.value);b.value[v];let F;V.value[v]===B?F=void 0:F=B,b.value[v]=F,p("update:modelValue",{...b.value}),p("change",{...b.value},o.value),$()},R=c=>{if(!o.value)return;const v=o.value.key,B=_(c,o.value),F=Array.isArray(V.value[v])?[...V.value[v]]:[],G=F.findIndex(H=>H===B||String(H)===String(B));if(G>=0?F.splice(G,1):F.push(B),V.value[v]=F,t.autoConfirm){const H=F.length>0?F:void 0;b.value[v]=H,p("update:modelValue",{...b.value}),p("change",{...b.value},o.value),$()}},z=()=>{if(!o.value)return;const c=o.value.key;o.value.slot?M.value[c]=void 0:o.value.type==="input"?k.value="":o.value.type==="calendar"?w.value=null:o.value.type==="single"||o.value.type==="tree-single"?V.value[c]=null:V.value[c]=[]},j=()=>{if(t.autoConfirm&&o.value){const c=o.value.key,v=k.value.trim()||void 0;b.value[c]=v,p("update:modelValue",{...b.value}),p("change",{...b.value},o.value),$()}},J=c=>{if(w.value=c,t.autoConfirm&&o.value){const v=o.value.key,B=c??void 0;b.value[v]=B,p("update:modelValue",{...b.value}),p("change",{...b.value},o.value),$()}},ne=()=>{if(!o.value)return;const c=o.value.key;b.value[c];let v;if(o.value.slot)v=M.value[c],b.value[c]=v;else if(o.value.type==="input")v=k.value.trim()||void 0,b.value[c]=v;else if(o.value.type==="calendar")v=w.value!==null&&w.value!==void 0?w.value:void 0,b.value[c]=v;else if(o.value.type==="single"||o.value.type==="tree-single"){const B=V.value[c];v=B??void 0,b.value[c]=v}else{const B=V.value[c];v=Array.isArray(B)&&B.length>0?B:void 0,b.value[c]=v}p("update:modelValue",{...b.value}),p("change",{...b.value},o.value),$()},oe=c=>{const v=b.value[c.key];return v==null||v===""?0:c.slot?1:c.type==="input"?String(v).trim()?1:0:c.type==="single"||c.type==="tree-single"?1:Array.isArray(v)?v.length:v?1:0},ie=c=>{if(c.slot){const B=M.value[c.key];return B!=null&&B!==""?1:0}else{if(c.type==="input")return k.value.trim()?1:0;if(c.type==="calendar")return w.value!==null&&w.value!==void 0?1:0}const v=V.value[c.key];return v==null||v===""?0:c.type==="single"||c.type==="tree-single"?1:Array.isArray(v)?v.length:0};return f({getValues:()=>({...b.value}),reset:()=>{b.value={},V.value={},M.value={},p("update:modelValue",{})}}),(c,v)=>(e.openBlock(),e.createElementBlock("div",En,[e.createElementVNode("div",Sn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(t.items,(B,F)=>(e.openBlock(),e.createElementBlock("div",{key:F,class:e.normalizeClass(["rc-search-area__item",{"is-active":u.value===F,"has-value":oe(B)>0}]),onClick:G=>d(F)},[e.createElementVNode("span",Rn,e.toDisplayString(I(B)),1),e.createVNode(e.unref(q),{name:"icon_a-xiala2",color:u.value!==F&&oe(B)>0?"#1677ff":"#969799",class:e.normalizeClass(["rc-search-area__item-arrow",{"is-up":u.value===F}])},null,8,["color","class"])],10,Nn))),128))]),e.createVNode(e.Transition,{name:"rc-search-area-fade"},{default:e.withCtx(()=>[u.value!==null&&t.showMask?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"maskRef",ref:a,class:"rc-search-area__mask",style:e.normalizeStyle(i.value),onClick:$},null,4)):e.createCommentVNode("",!0)]),_:1}),e.createVNode(e.Transition,{name:"rc-search-area-slide"},{default:e.withCtx(()=>{var B,F,G,H,h,A,E,W,ue,me,de,Se,ve,pe,Ye,Oe,We,s,y;return[u.value!==null?(e.openBlock(),e.createElementBlock("div",{key:0,ref_key:"panelRef",ref:m,class:"rc-search-area__panel"},[e.createElementVNode("div",Mn,[(B=o.value)!=null&&B.slot&&c.$slots[o.value.key]?e.renderSlot(c.$slots,o.value.key,{key:0,value:le(o.value),"update:value":C=>se(o.value,C)},void 0,!0):((F=o.value)==null?void 0:F.type)==="input"?(e.openBlock(),e.createElementBlock("div",Tn,[e.withDirectives(e.createElementVNode("input",{"onUpdate:modelValue":v[0]||(v[0]=C=>k.value=C),type:"text",class:"rc-search-area__input",placeholder:o.value.placeholder||"请输入",onInput:j},null,40,zn),[[e.vModelText,k.value]])])):((G=o.value)==null?void 0:G.type)==="calendar"?(e.openBlock(),e.createElementBlock("div",Fn,[e.createVNode(e.unref(ke),{modelValue:w.value,"onUpdate:modelValue":v[1]||(v[1]=C=>w.value=C),range:((H=o.value.calendarConfig)==null?void 0:H.range)||!1,mode:"default","min-date":(h=o.value.calendarConfig)==null?void 0:h.minDate,"max-date":(A=o.value.calendarConfig)==null?void 0:A.maxDate,"disabled-date":(E=o.value.calendarConfig)==null?void 0:E.disabledDate,formatter:(W=o.value.calendarConfig)==null?void 0:W.formatter,"end-date-offset":((ue=o.value.calendarConfig)==null?void 0:ue.endDateOffset)||!1,onChange:J},null,8,["modelValue","range","min-date","max-date","disabled-date","formatter","end-date-offset"])])):((me=o.value)==null?void 0:me.type)==="tree-single"?(e.openBlock(),e.createElementBlock("div",In,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P(o.value),(C,O)=>(e.openBlock(),e.createElementBlock("div",{key:O,class:"rc-search-area__tree-group"},[e.createElementVNode("div",An,e.toDisplayString(g(C,o.value||void 0)),1),e.createElementVNode("div",Ln,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q(C,o.value),(U,re)=>(e.openBlock(),e.createElementBlock("div",{key:re,class:e.normalizeClass(["rc-search-area__option",{"is-selected":L(U)}]),onClick:ce=>fe(U)},[e.createElementVNode("span",Yn,e.toDisplayString(g(U,o.value||void 0)),1),L(U)?(e.openBlock(),e.createBlock(e.unref(q),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Pn))),128))])]))),128))])):((de=o.value)==null?void 0:de.type)==="tree-multiple"?(e.openBlock(),e.createElementBlock("div",On,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(P(o.value),(C,O)=>(e.openBlock(),e.createElementBlock("div",{key:O,class:"rc-search-area__tree-group"},[e.createElementVNode("div",Wn,e.toDisplayString(g(C,o.value||void 0)),1),e.createElementVNode("div",jn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(Q(C,o.value),(U,re)=>(e.openBlock(),e.createElementBlock("div",{key:re,class:e.normalizeClass(["rc-search-area__option",{"is-selected":L(U)}]),onClick:ce=>R(U)},[e.createElementVNode("span",Hn,e.toDisplayString(g(U,o.value||void 0)),1),L(U)?(e.openBlock(),e.createBlock(e.unref(q),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Un))),128))])]))),128))])):((Se=o.value)==null?void 0:Se.type)==="single"?(e.openBlock(),e.createElementBlock("div",Gn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T(o.value),(C,O)=>(e.openBlock(),e.createElementBlock("div",{key:O,class:e.normalizeClass(["rc-search-area__option",{"is-selected":L(C)}]),onClick:U=>fe(C)},[e.createElementVNode("span",Kn,e.toDisplayString(g(C,o.value||void 0)),1),L(C)?(e.openBlock(),e.createBlock(e.unref(q),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,qn))),128))])):(e.openBlock(),e.createElementBlock("div",Jn,[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(T(o.value),(C,O)=>(e.openBlock(),e.createElementBlock("div",{key:O,class:e.normalizeClass(["rc-search-area__option",{"is-selected":L(C)}]),onClick:U=>R(C)},[e.createElementVNode("span",Xn,e.toDisplayString(g(C,o.value||void 0)),1),L(C)?(e.openBlock(),e.createBlock(e.unref(q),{key:0,name:"icon_check",class:"rc-search-area__option-check"})):e.createCommentVNode("",!0)],10,Qn))),128))])),((ve=o.value)==null?void 0:ve.type)!=="input"&&((pe=o.value)==null?void 0:pe.type)!=="calendar"&&!((Ye=o.value)!=null&&Ye.slot)&&((We=(Oe=o.value)==null?void 0:Oe.options)==null?void 0:We.length)===0?(e.openBlock(),e.createElementBlock("div",Zn,[...v[2]||(v[2]=[e.createElementVNode("p",null,"暂无选项",-1)])])):e.createCommentVNode("",!0)]),!t.autoConfirm&&((s=o.value)==null?void 0:s.type)!=="single"&&((y=o.value)==null?void 0:y.type)!=="tree-single"?(e.openBlock(),e.createElementBlock("div",ea,[e.createVNode(e.unref(ae),{block:"",onClick:z},{default:e.withCtx(()=>[...v[3]||(v[3]=[e.createTextVNode(" 重置 ",-1)])]),_:1}),e.createVNode(e.unref(ae),{type:"primary",block:"",onClick:ne},{default:e.withCtx(()=>[e.createTextVNode(" 确定"+e.toDisplayString(Y.value),1)]),_:1})])):e.createCommentVNode("",!0)],512)):e.createCommentVNode("",!0)]}),_:3})]))}}),et=K(ta,[["__scopeId","data-v-084a312b"]]),tt=n=>{n.component("RcSearchArea",et),n.component("rc-search-area",et)},na=["disabled"],aa={key:1,class:"rc-input__prepend"},la={class:"rc-input__wrapper"},oa={key:0,class:"rc-input__prefix"},ra={key:1,class:"rc-input__textarea-wrapper"},ca={key:3,class:"rc-input__suffix"},sa={key:0,class:"rc-input__suffix-inner"},ia={key:4,class:"rc-input__count"},ua={key:2,class:"rc-input__append"},da=["disabled"],fa=e.defineComponent({__name:"index",props:{modelValue:{default:""},type:{default:"text"},size:{default:"default"},placeholder:{default:"请输入"},disabled:{type:Boolean,default:!1},clearable:{type:Boolean,default:!0},showPassword:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1},maxlength:{default:void 0},minlength:{default:void 0},showWordLimit:{type:Boolean,default:!1},rows:{default:2},autosize:{type:[Boolean,Object],default:!1},resize:{default:void 0},prefixIcon:{default:""},suffixIcon:{default:""},autocomplete:{default:"off"},name:{default:void 0},autofocus:{type:Boolean,default:!1},form:{default:void 0},tabindex:{default:void 0},formatter:{type:Function,default:void 0},parser:{type:Function,default:void 0},deviceType:{default:void 0},min:{default:void 0},max:{default:void 0},step:{default:1},precision:{default:void 0},controls:{type:Boolean,default:!1},useGrouping:{type:Boolean,default:!1}},emits:["update:modelValue","input","change","focus","blur","clear","keydown","mouseenter","mouseleave","compositionstart","compositionupdate","compositionend"],setup(n,{expose:f,emit:l}){const t=n,p=e.inject(Pe,{}),u=e.inject("rcFormItem",void 0),m=e.computed(()=>t.deviceType||(p==null?void 0:p.inputDeviceType)||Ue.inputDeviceType||"pc"),a=l,i=e.ref(),r=e.ref(t.modelValue??""),D=e.ref(!1),V=e.ref(!1),k=e.ref(!1);e.watch(()=>t.modelValue,h=>{r.value=h??""});const w=e.computed(()=>t.type==="number"),M=e.computed(()=>t.type==="password"?V.value?"text":"password":w.value?"text":t.type),b=e.computed(()=>{if(w.value){if(typeof r.value=="string"&&r.value.endsWith(".")&&!r.value.includes("e")&&!r.value.includes("E"))return r.value;const A=_(r.value);if(A==null)return typeof r.value=="string"&&(r.value==="-"||r.value==="")?r.value:"";let E=String(A);return t.precision!==void 0&&(E=A.toFixed(t.precision)),t.useGrouping&&!k.value&&(E=x(E)),E}const h=String(r.value??"");return t.formatter&&!k.value?t.formatter(h):h}),o=e.computed(()=>{const h=r.value;return h!==""&&h!==null&&h!==void 0}),Y=e.computed(()=>String(r.value??"").length),I=e.computed(()=>!t.clearable||!o.value||t.disabled||t.readonly?!1:(m.value==="mobile",!0)),d=e.useSlots(),$=e.computed(()=>w.value&&t.controls?!!(t.suffixIcon||I.value&&(m.value==="mobile"||t.controls)||d.suffix):!!(t.suffixIcon||t.showPassword&&t.type==="password"||I.value&&t.type!=="textarea"&&(!w.value||w.value&&(m.value==="mobile"||t.controls))||d.suffix)),g=e.computed(()=>{if(t.type!=="textarea")return{};const h={};return t.autosize?h.resize="none":t.resize!==void 0?h.resize=t.resize:h.resize="vertical",h});function _(h){if(h==null||h==="")return null;if(typeof h=="number")return isNaN(h)?null:h;const A=Number(String(h).replace(/,/g,""));return isNaN(A)?null:A}function x(h){const A=h.split(".");return A[0]=A[0].replace(/\B(?=(\d{3})+(?!\d))/g,","),A.join(".")}function S(h){if(h===null)return null;let A=h;return t.min!==void 0&&A<t.min&&(A=t.min),t.max!==void 0&&A>t.max&&(A=t.max),t.precision!==void 0&&(A=Number(A.toFixed(t.precision))),A}const N=e.computed(()=>{if(!w.value||t.max===void 0)return!1;const h=_(r.value);return h!==null&&h>=t.max}),L=e.computed(()=>{if(!w.value||t.min===void 0)return!1;const h=_(r.value);return h!==null&&h<=t.min});function T(h){var ue,me,de;let E=h.target.value;if(w.value&&(E=E.replace(/,/g,"")),t.parser&&!k.value&&(E=t.parser(E)),w.value){if(E===""||E==="-"||E==="."){r.value=E===""?void 0:E,a("update:modelValue",E===""?void 0:E),a("input",E===""?void 0:E),(ue=u==null?void 0:u.onChange)==null||ue.call(u);return}if(/^-?(\d+\.?\d*|\.\d+)([eE][+-]?\d+)?$/.test(E)){const ve=_(E);if(ve!==null)if(E.endsWith(".")&&!E.includes("e")&&!E.includes("E"))r.value=E,a("update:modelValue",E),a("input",E);else{const pe=S(ve);r.value=pe,a("update:modelValue",pe),a("input",pe)}else r.value=E,a("update:modelValue",E),a("input",E)}else{e.nextTick(()=>{if(i.value){const ve=b.value;i.value.value=ve}});return}(me=u==null?void 0:u.onChange)==null||me.call(u);return}const W=E===""?void 0:E;r.value=W,a("update:modelValue",W),a("input",W),(de=u==null?void 0:u.onChange)==null||de.call(u),t.type==="textarea"&&t.autosize&&e.nextTick(()=>{v()})}function P(h){D.value=!0,a("focus",h)}function Q(h){var A;if(D.value=!1,w.value){const E=_(r.value);if(E!==null){const W=S(E);r.value=W,a("update:modelValue",W),a("change",W)}else r.value=void 0,a("update:modelValue",void 0),a("change",void 0)}else{const E=r.value;a("change",E===""?void 0:E)}a("blur",h),(A=u==null?void 0:u.onBlur)==null||A.call(u)}function le(){r.value=void 0,a("update:modelValue",void 0),a("input",void 0),a("change",void 0),a("clear"),e.nextTick(()=>{var h;(h=i.value)==null||h.focus()})}function se(){V.value=!V.value}function fe(){var W;if(t.disabled||t.readonly||N.value)return;const h=_(r.value),A=t.step??1;let E;h===null?E=S(t.min??0)??0:E=S(h+A)??h,r.value=E,a("update:modelValue",E),a("input",E),a("change",E),(W=u==null?void 0:u.onChange)==null||W.call(u)}function R(){var W;if(t.disabled||t.readonly||L.value)return;const h=_(r.value),A=t.step??1;let E;h===null?E=S(t.max??0)??0:E=S(h-A)??h,r.value=E,a("update:modelValue",E),a("input",E),a("change",E),(W=u==null?void 0:u.onChange)==null||W.call(u)}function z(h){if(a("keydown",h),w.value&&!t.disabled&&!t.readonly){const A=t.step??1,E=_(r.value);if(h.key==="ArrowUp"){h.preventDefault(),fe();return}if(h.key==="ArrowDown"){h.preventDefault(),R();return}if(h.key==="PageUp"){if(h.preventDefault(),E!==null){const W=S(E+A*10);r.value=W,a("update:modelValue",W),a("input",W),a("change",W)}return}if(h.key==="PageDown"){if(h.preventDefault(),E!==null){const W=S(E-A*10);r.value=W,a("update:modelValue",W),a("input",W),a("change",W)}return}}if(h.key==="Enter"&&t.type!=="textarea"){const A=r.value;a("change",A===""?void 0:A)}}function j(h){a("mouseenter",h)}function J(h){a("mouseleave",h)}function ne(h){k.value=!0,a("compositionstart",h)}function oe(h){a("compositionupdate",h)}function ie(h){k.value=!1,a("compositionend",h),h.target&&T(h)}function c(){var h;t.disabled||t.readonly||(h=i.value)==null||h.focus()}function v(){if(t.type!=="textarea"||!i.value)return;const h=i.value;if(t.autosize){h.style.height="auto";const A=h.scrollHeight;if(typeof t.autosize=="object"){const{minRows:E=2,maxRows:W}=t.autosize,ue=parseInt(getComputedStyle(h).lineHeight)||20,me=E*ue,de=W?W*ue:1/0;h.style.height=`${Math.min(Math.max(A,me),de)}px`}else h.style.height=`${A}px`}}function B(){var h;(h=i.value)==null||h.focus()}function F(){var h;(h=i.value)==null||h.blur()}function G(){i.value&&"select"in i.value&&i.value.select()}function H(){le()}return e.onMounted(()=>{t.type==="textarea"&&t.autosize&&v()}),f({focus:B,blur:F,select:G,clear:H,resizeTextarea:v,inputRef:i}),(h,A)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-input",[`rc-input--${n.size}`,{"is-disabled":n.disabled,"is-focused":D.value,"is-readonly":n.readonly,"rc-input--textarea":n.type==="textarea","has-prepend":h.$slots.prepend||w.value&&n.controls,"has-append":h.$slots.append||w.value&&n.controls}]]),onClick:c},[w.value&&n.controls?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:"rc-input__number-btn rc-input__number-btn--decrease rc-input__number-btn--prepend",disabled:t.disabled||t.readonly||L.value,onClick:e.withModifiers(R,["stop"])},[...A[0]||(A[0]=[e.createElementVNode("span",{class:"rc-input__number-text"},"-",-1)])],8,na)):e.createCommentVNode("",!0),h.$slots.prepend?(e.openBlock(),e.createElementBlock("div",aa,[e.renderSlot(h.$slots,"prepend",{},void 0,!0)])):e.createCommentVNode("",!0),e.createElementVNode("div",la,[n.prefixIcon||h.$slots.prefix?(e.openBlock(),e.createElementBlock("div",oa,[e.renderSlot(h.$slots,"prefix",{},()=>[n.prefixIcon?(e.openBlock(),e.createBlock(e.unref(q),{key:0,name:n.prefixIcon,class:"rc-input__prefix-icon"},null,8,["name"])):e.createCommentVNode("",!0)],!0)])):e.createCommentVNode("",!0),n.type==="textarea"?(e.openBlock(),e.createElementBlock("div",ra,[(e.openBlock(),e.createBlock(e.resolveDynamicComponent("textarea"),{ref_key:"inputRef",ref:i,value:b.value,class:"rc-input__field rc-input__field--textarea",placeholder:n.placeholder,disabled:n.disabled,readonly:n.readonly,maxlength:n.maxlength,minlength:n.minlength,rows:n.rows,autocomplete:n.autocomplete,name:n.name,autofocus:n.autofocus,form:n.form,tabindex:n.tabindex,style:e.normalizeStyle(g.value),onInput:T,onFocus:P,onBlur:Q,onKeydown:z,onMouseenter:j,onMouseleave:J,onCompositionstart:ne,onCompositionupdate:oe,onCompositionend:ie},null,40,["value","placeholder","disabled","readonly","maxlength","minlength","rows","autocomplete","name","autofocus","form","tabindex","style"])),I.value&&n.type==="textarea"?(e.openBlock(),e.createElementBlock("button",{key:0,type:"button",class:e.normalizeClass(["rc-input__clear rc-input__clear--textarea",{"rc-input__clear--mobile":m.value==="mobile"}]),onClick:e.withModifiers(le,["stop"])},[e.createVNode(e.unref(q),{name:"icon_close_circle",class:"rc-input__clear-icon"})],2)):e.createCommentVNode("",!0)])):(e.openBlock(),e.createBlock(e.resolveDynamicComponent("input"),{key:2,ref_key:"inputRef",ref:i,value:b.value,type:M.value,class:e.normalizeClass(["rc-input__field",{"rc-input__field--number":w.value}]),placeholder:n.placeholder,disabled:n.disabled,readonly:n.readonly,maxlength:n.maxlength,minlength:n.minlength,autocomplete:n.autocomplete,name:n.name,autofocus:n.autofocus,form:n.form,tabindex:n.tabindex,min:w.value?n.min:void 0,max:w.value?n.max:void 0,step:w.value?n.step:void 0,onInput:T,onFocus:P,onBlur:Q,onKeydown:z,onMouseenter:j,onMouseleave:J,onCompositionstart:ne,onCompositionupdate:oe,onCompositionend:ie},null,40,["value","type","class","placeholder","disabled","readonly","maxlength","minlength","autocomplete","name","autofocus","form","tabindex","min","max","step"])),$.value?(e.openBlock(),e.createElementBlock("div",ca,[h.$slots.suffix?(e.openBlock(),e.createElementBlock("div",sa,[e.renderSlot(h.$slots,"suffix",{},void 0,!0)])):e.createCommentVNode("",!0),n.showPassword&&n.type==="password"&&o.value?(e.openBlock(),e.createElementBlock("button",{key:1,type:"button",class:"rc-input__password-toggle",onClick:e.withModifiers(se,["stop"])},[e.createVNode(e.unref(q),{color:V.value?"#1677ff":"#999",name:V.value?"icon_view":"icon_view-off"},null,8,["color","name"])])):e.createCommentVNode("",!0),I.value&&n.type!=="textarea"&&(!w.value||w.value&&(m.value==="mobile"||n.controls))?(e.openBlock(),e.createElementBlock("button",{key:2,type:"button",class:e.normalizeClass(["rc-input__clear",{"rc-input__clear--mobile":m.value==="mobile"}]),onClick:e.withModifiers(le,["stop"])},[e.createVNode(e.unref(q),{name:"icon_close_circle",class:"rc-input__clear-icon"})],2)):e.createCommentVNode("",!0),n.suffixIcon&&!n.clearable&&!n.showPassword&&!w.value?(e.openBlock(),e.createBlock(e.unref(q),{key:3,name:n.suffixIcon,class:"rc-input__suffix-icon"},null,8,["name"])):e.createCommentVNode("",!0)])):e.createCommentVNode("",!0),n.showWordLimit&&n.maxlength?(e.openBlock(),e.createElementBlock("span",ia,e.toDisplayString(Y.value)+" / "+e.toDisplayString(n.maxlength),1)):e.createCommentVNode("",!0)]),h.$slots.append?(e.openBlock(),e.createElementBlock("div",ua,[e.renderSlot(h.$slots,"append",{},void 0,!0)])):e.createCommentVNode("",!0),w.value&&n.controls?(e.openBlock(),e.createElementBlock("button",{key:3,type:"button",class:"rc-input__number-btn rc-input__number-btn--increase rc-input__number-btn--append",disabled:t.disabled||t.readonly||N.value,onClick:e.withModifiers(fe,["stop"])},[...A[1]||(A[1]=[e.createElementVNode("span",{class:"rc-input__number-text"},"+",-1)])],8,da)):e.createCommentVNode("",!0)],2))}}),xe=K(fa,[["__scopeId","data-v-6bd7703b"]]);xe&&(xe.name="rc-input");function nt(n){return xe&&n.component(xe.name||"rc-input",xe),n}const ma=e.defineComponent({name:"rc-dropdown-menu",__name:"menu",props:{visible:{type:Boolean,default:void 0},effect:{default:"light"},maxHeight:{default:""}},emits:["mouseenter","mouseleave"],setup(n,{expose:f,emit:l}){const t=n,p=e.ref(),u=e.computed(()=>t.visible===void 0?!0:t.visible),m=e.computed(()=>t.visible!==void 0),a=e.computed(()=>{const i={};return t.maxHeight&&(i.maxHeight=typeof t.maxHeight=="number"?`${t.maxHeight}px`:t.maxHeight,i.overflowY="auto"),i});return f({menuRef:p}),(i,r)=>m.value?(e.openBlock(),e.createBlock(e.Teleport,{key:0,to:"body"},[e.createVNode(e.Transition,{name:"rc-dropdown-fade"},{default:e.withCtx(()=>[u.value?(e.openBlock(),e.createElementBlock("ul",{key:0,ref_key:"menuRef",ref:p,class:e.normalizeClass(["rc-dropdown-menu",[`rc-dropdown-menu--${n.effect}`]]),style:e.normalizeStyle(a.value),onClick:r[0]||(r[0]=e.withModifiers(()=>{},["stop"])),onMouseenter:r[1]||(r[1]=D=>i.$emit("mouseenter",D)),onMouseleave:r[2]||(r[2]=D=>i.$emit("mouseleave",D))},[e.renderSlot(i.$slots,"default",{},void 0,!0)],38)):e.createCommentVNode("",!0)]),_:3})])):(e.openBlock(),e.createElementBlock("ul",{key:1,ref_key:"menuRef",ref:p,class:e.normalizeClass(["rc-dropdown-menu rc-dropdown-menu--nested",[`rc-dropdown-menu--${n.effect}`]]),style:e.normalizeStyle(a.value),onClick:r[3]||(r[3]=e.withModifiers(()=>{},["stop"])),onMouseenter:r[4]||(r[4]=D=>i.$emit("mouseenter",D)),onMouseleave:r[5]||(r[5]=D=>i.$emit("mouseleave",D))},[e.renderSlot(i.$slots,"default",{},void 0,!0)],38))}}),be=K(ma,[["__scopeId","data-v-288e2690"]]),va=e.defineComponent({name:"rc-dropdown",__name:"index",props:{placement:{default:"bottom"},trigger:{default:"hover"},disabled:{type:Boolean,default:!1},effect:{default:"light"},maxHeight:{default:""},hideOnClick:{type:Boolean,default:!0},showTimeout:{default:150},hideTimeout:{default:150}},emits:["command","visible-change"],setup(n,{expose:f,emit:l}){const t=n,p=l,u=e.ref(),m=e.ref(),a=e.ref(!1);let i=null,r=null;function D(x){t.hideOnClick&&(a.value=!1),x!==void 0&&p("command",x)}e.provide("handleItemClick",D);function V(){t.disabled||(i&&(clearTimeout(i),i=null),r&&(clearTimeout(r),r=null),i=setTimeout(()=>{a.value=!0,requestAnimationFrame(()=>{e.nextTick(()=>{$()})})},t.showTimeout))}function k(){t.trigger==="hover"&&o.value||(r&&(clearTimeout(r),r=null),i&&(clearTimeout(i),i=null),r=setTimeout(()=>{a.value=!1,o.value=!1},t.hideTimeout))}function w(){t.disabled||(a.value?k():V())}function M(){t.trigger==="hover"&&!t.disabled&&V()}function b(){t.trigger==="hover"&&setTimeout(()=>{o.value||k()},50)}const o=e.ref(!1);function Y(){t.trigger==="hover"&&(o.value=!0,i&&(clearTimeout(i),i=null),r&&(clearTimeout(r),r=null))}function I(){t.trigger==="hover"&&(o.value=!1,k())}function d(x){t.trigger==="click"&&!t.disabled&&(x.stopPropagation(),w())}function $(){var se;if(!u.value||!((se=m.value)!=null&&se.menuRef))return;const x=u.value,S=m.value.menuRef;if(!x||!S)return;const N=x.getBoundingClientRect(),L=S.getBoundingClientRect();if(L.width===0||L.height===0){setTimeout(()=>{a.value&&$()},10);return}let T=0,P=0;switch(t.placement){case"top":T=N.top-L.height,P=N.left;break;case"top-start":T=N.top-L.height,P=N.left;break;case"top-end":T=N.top-L.height,P=N.left+N.width-L.width;break;case"bottom":T=N.bottom,P=N.left+(N.width-L.width)/2;break;case"bottom-start":T=N.bottom,P=N.left;break;case"bottom-end":T=N.bottom,P=N.left+N.width-L.width;break;case"left":T=N.top+(N.height-L.height)/2,P=N.left-L.width;break;case"left-start":T=N.top,P=N.left-L.width;break;case"left-end":T=N.top+N.height-L.height,P=N.left-L.width;break;case"right":T=N.top+(N.height-L.height)/2,P=N.right;break;case"right-start":T=N.top,P=N.right;break;case"right-end":T=N.top+N.height-L.height,P=N.right;break}const Q=window.innerWidth,le=window.innerHeight;P<0&&(P=8),P+L.width>Q&&(P=Q-L.width-8),T<0&&(T=8),T+L.height>le&&(T=le-L.height-8),S.style.top=`${T}px`,S.style.left=`${P}px`,S.style.position="fixed",S.style.visibility="visible",S.style.display="block"}e.watch(a,x=>{p("visible-change",x),x?(requestAnimationFrame(()=>{e.nextTick(()=>{$()})}),document.addEventListener("click",g)):document.removeEventListener("click",g)});function g(x){if(t.trigger==="click"&&!t.disabled){const S=x.target;u.value&&!u.value.contains(S)&&k()}}function _(){a.value&&$()}return e.onMounted(()=>{window.addEventListener("resize",_),window.addEventListener("scroll",_,!0)}),e.onUnmounted(()=>{i&&clearTimeout(i),r&&clearTimeout(r),document.removeEventListener("click",g),window.removeEventListener("resize",_),window.removeEventListener("scroll",_,!0)}),f({show:V,hide:k,toggle:w,visible:a}),(x,S)=>(e.openBlock(),e.createElementBlock("div",{ref_key:"dropdownRef",ref:u,class:e.normalizeClass(["rc-dropdown",{"is-disabled":n.disabled}]),onMouseenter:M,onMouseleave:b,onClick:d},[e.renderSlot(x.$slots,"default",{},void 0,!0),e.createVNode(be,{ref_key:"menuRef",ref:m,visible:a.value,effect:n.effect,"max-height":n.maxHeight,onMouseenter:Y,onMouseleave:I},{default:e.withCtx(()=>[e.renderSlot(x.$slots,"dropdown",{},void 0,!0)]),_:3},8,["visible","effect","max-height"])],34))}}),Be=K(va,[["__scopeId","data-v-d6804671"]]),pa={class:"rc-dropdown-item__text"},ha=e.defineComponent({name:"rc-dropdown-item",__name:"item",props:{command:{default:void 0},disabled:{type:Boolean,default:!1},divided:{type:Boolean,default:!1},icon:{default:""}},setup(n){const f=n,l=e.inject("handleItemClick",()=>{});function t(p){if(f.disabled){p.stopPropagation();return}l(f.command)}return(p,u)=>(e.openBlock(),e.createElementBlock("li",{class:e.normalizeClass(["rc-dropdown-item",{"is-disabled":n.disabled,"is-divided":n.divided}]),onClick:t},[n.icon?(e.openBlock(),e.createBlock(q,{key:0,name:n.icon,class:"rc-dropdown-item__icon"},null,8,["name"])):e.createCommentVNode("",!0),e.createElementVNode("span",pa,[e.renderSlot(p.$slots,"default",{},void 0,!0)])],2))}}),_e=K(ha,[["__scopeId","data-v-7c739fdf"]]);Be&&(Be.name="rc-dropdown");be&&(be.name="rc-dropdown-menu");_e&&(_e.name="rc-dropdown-item");function at(n){return Be&&(n.component(Be.name||"rc-dropdown",Be),n.component("RcDropdown",Be)),be&&(n.component(be.name||"rc-dropdown-menu",be),n.component("RcDropdownMenu",be)),_e&&(n.component(_e.name||"rc-dropdown-item",_e),n.component("RcDropdownItem",_e)),n}const ga=e.defineComponent({__name:"index",props:{model:{default:()=>({})},rules:{default:()=>({})},labelWidth:{default:void 0},labelPosition:{default:"left"},inline:{type:Boolean,default:!1},size:{default:"default"},disabled:{type:Boolean,default:!1},validateOnRuleChange:{type:Boolean,default:!0},hideRequiredAsterisk:{type:Boolean,default:!1},showMessage:{type:Boolean,default:!0}},emits:["validate"],setup(n,{expose:f,emit:l}){const t=n,p=l,u=e.ref(),m=e.ref(new Map),a=e.ref({}),i=g=>{if(g===null||typeof g!="object")return g;if(g instanceof Date)return new Date(g.getTime());if(g instanceof Array)return g.map(_=>i(_));if(typeof g=="object"){const _={};for(const x in g)g.hasOwnProperty(x)&&(_[x]=i(g[x]));return _}return g},r=()=>{t.model&&(a.value=i(t.model))},D=(g,_)=>{m.value.set(g,_)},V=g=>{m.value.delete(g)};e.provide("rcForm",{model:t.model,rules:t.rules,labelWidth:t.labelWidth,labelPosition:t.labelPosition,size:t.size,disabled:t.disabled,hideRequiredAsterisk:t.hideRequiredAsterisk,showMessage:t.showMessage,registerFormItem:D,unregisterFormItem:V,validateField:(g,_)=>{const x=m.value.get(g);return x?x.validate(_):Promise.resolve()}});let k=!1;const w=()=>{k||(k=!0,o(g=>{k=!1,g?console.log("表单验证通过",t.model):console.log("表单验证失败")}).catch(()=>{k=!1}))},M=()=>{I()};e.provide("rcFormActions",{submit:w,reset:M});let b=!1;e.watch(()=>t.model,()=>{!b&&t.model&&(r(),b=!0)},{immediate:!0,deep:!0}),e.onMounted(()=>{!b&&t.model&&(r(),b=!0)}),e.watch(()=>t.rules,()=>{t.validateOnRuleChange&&e.nextTick(()=>{o().catch(()=>{})})},{deep:!0});const o=g=>new Promise(_=>{const x=[],S={};m.value.forEach((N,L)=>{const T=N.validate().then(()=>{p("validate",L,!0,"")}).catch(P=>{P&&(S[L]=[P],p("validate",L,!1,P))});x.push(T)}),Promise.all(x).then(()=>{const N=Object.keys(S).length===0;g&&g(N,N?void 0:S),_(N)}).catch(()=>{const N=Object.keys(S).length===0;g&&g(N,N?void 0:S),_(N)})}),Y=(g,_)=>{const x=m.value.get(g);return x?x.validate(_):Promise.resolve()},I=()=>{m.value.forEach(g=>{g.resetField()}),t.model&&a.value&&(Object.keys(t.model).forEach(g=>{delete t.model[g]}),Object.keys(a.value).forEach(g=>{t.model[g]=i(a.value[g])}))},d=g=>{const _=g?Array.isArray(g)?g:[g]:void 0;m.value.forEach((x,S)=>{(!_||_.includes(S))&&x.clearValidate()})},$=g=>{g.preventDefault(),w()};return f({validate:o,validateField:Y,resetFields:I,clearValidate:d,formRef:u}),(g,_)=>(e.openBlock(),e.createElementBlock("form",{ref_key:"formRef",ref:u,class:e.normalizeClass(["rc-form",[`rc-form--${n.labelPosition}`,{"rc-form--inline":n.inline}]]),onSubmit:e.withModifiers($,["prevent"])},[e.renderSlot(g.$slots,"default",{},void 0,!0)],34))}}),De=K(ga,[["__scopeId","data-v-194b6d22"]]),ya=["for"],ka={key:0},ba={class:"rc-form-item__content"},Ba={class:"rc-form-item__control"},_a={key:0,class:"rc-form-item__error"},Va=e.defineComponent({__name:"item",props:{prop:{default:""},label:{default:""},labelWidth:{default:void 0},required:{type:Boolean,default:void 0},rules:{default:void 0},showMessage:{type:Boolean,default:void 0},inlineMessage:{type:Boolean,default:!1},error:{default:""}},setup(n,{expose:f}){const l=n,t=e.inject("rcForm",void 0),p=e.ref(""),u=e.ref(""),m=e.computed(()=>{const d=l.labelWidth??(t==null?void 0:t.labelWidth);return d?{width:typeof d=="number"?`${d}px`:d}:{}}),a=e.computed(()=>{}),i=e.computed(()=>l.showMessage??(t==null?void 0:t.showMessage)??!0),r=e.computed(()=>(t==null?void 0:t.hideRequiredAsterisk)??!1),D=e.computed(()=>(t==null?void 0:t.labelPosition)??"left"),V=e.computed(()=>{if(l.required!==void 0)return l.required;if(!l.prop||!t)return!1;const d=k();return d&&d.length>0?d.some($=>$.required):!1}),k=()=>{if(l.rules)return Array.isArray(l.rules)?l.rules:[l.rules];if(!l.prop||!t)return[];const d=t.rules[l.prop];return d?Array.isArray(d)?d:[d]:[]},w=()=>{if(!(!l.prop||!t))return t.model[l.prop]},M=(d,$)=>new Promise(g=>{let _=$;if(d.transform&&(_=d.transform($)),d.required&&(_==null||_==="")){const x=d.message||`${l.label||l.prop} 是必填项`;g(x);return}if(d.type&&_!==void 0&&_!==null&&_!==""&&!b(_,d.type)){const S=d.message||`${l.label||l.prop} 格式不正确`;g(S);return}if(d.min!==void 0&&_!==void 0&&_!==null&&_!==""&&(Array.isArray(_)||typeof _=="string"?_.length:_)<d.min){const S=d.message||`${l.label||l.prop} 不能少于 ${d.min} 个字符`;g(S);return}if(d.max!==void 0&&_!==void 0&&_!==null&&_!==""&&(Array.isArray(_)||typeof _=="string"?_.length:_)>d.max){const S=d.message||`${l.label||l.prop} 不能超过 ${d.max} 个字符`;g(S);return}if(d.pattern){const x=typeof d.pattern=="string"?new RegExp(d.pattern):d.pattern;if(_!=null&&_!==""&&!x.test(String(_))){const S=d.message||`${l.label||l.prop} 格式不正确`;g(S);return}}if(d.validator){const x=d.validator(d,_,S=>{g(S?S.message||d.message||`${l.label||l.prop} 验证失败`:null)});if(x instanceof Promise){x.then(()=>{g(null)}).catch(S=>{g((S==null?void 0:S.message)||d.message||`${l.label||l.prop} 验证失败`)});return}}g(null)}),b=(d,$)=>{switch($){case"string":return typeof d=="string";case"number":return typeof d=="number"&&!isNaN(d);case"boolean":return typeof d=="boolean";case"integer":return Number.isInteger(d);case"float":return typeof d=="number"&&!isNaN(d)&&!Number.isInteger(d);case"array":return Array.isArray(d);case"object":return typeof d=="object"&&d!==null&&!Array.isArray(d);case"email":return/^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(String(d));case"url":try{return new URL(String(d)),!0}catch{return!1}case"date":return d instanceof Date||!isNaN(Date.parse(String(d)));default:return!0}},o=(d,$)=>new Promise((g,_)=>{if(l.error){p.value="error",u.value=l.error,$&&$(l.error),_(new Error(l.error));return}if(!l.prop){g();return}const x=k();if(x.length===0){p.value="",u.value="",g();return}let S;if(!d||d==="submit"?S=x:S=x.filter(T=>T.trigger===d),S.length===0){g();return}p.value="validating",u.value="";const N=w(),L=S.map(T=>M(T,N));Promise.all(L).then(T=>{const P=T.find(Q=>Q!==null);P?(p.value="error",u.value=P,$&&$(P),_(new Error(P))):((!d||S.length===x.length)&&(p.value="success",u.value=""),$&&$(),g())}).catch(T=>{const P=(T==null?void 0:T.message)||"验证失败";p.value="error",u.value=P,$&&$(P),_(T)})}),Y=()=>{p.value="",u.value=""},I=()=>{p.value="",u.value=""};return e.watch(()=>w(),()=>{const d=k(),$=d.some(_=>_.trigger==="change"),g=d.some(_=>_.trigger==="blur");$?o("change").catch(()=>{}):g&&p.value}),e.watch(()=>l.error,d=>{d?(p.value="error",u.value=d):p.value==="error"&&!l.prop&&I()}),e.provide("rcFormItem",{onBlur:()=>{k().some(g=>g.trigger==="blur")&&o("blur").catch(()=>{})},onChange:()=>{k().some(g=>g.trigger==="change")&&o("change").catch(()=>{})}}),e.onMounted(()=>{l.prop&&t&&t.registerFormItem(l.prop,{validate:o,resetField:Y,clearValidate:I})}),e.onUnmounted(()=>{l.prop&&t&&t.unregisterFormItem(l.prop)}),f({validate:o,resetField:Y,clearValidate:I,validateState:p,validateMessage:u}),(d,$)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-form-item",[{"is-error":p.value==="error","is-validating":p.value==="validating","is-required":V.value,"is-no-asterisk":r.value,"is-label-top":D.value==="top"}]])},[n.label||d.$slots.label?(e.openBlock(),e.createElementBlock("label",{key:0,class:"rc-form-item__label",style:e.normalizeStyle(m.value),for:a.value},[e.renderSlot(d.$slots,"label",{},()=>[n.label?(e.openBlock(),e.createElementBlock("span",ka,e.toDisplayString(n.label),1)):e.createCommentVNode("",!0)],!0)],12,ya)):e.createCommentVNode("",!0),e.createElementVNode("div",ba,[e.createElementVNode("div",Ba,[e.renderSlot(d.$slots,"default",{},void 0,!0)]),e.createVNode(e.Transition,{name:"rc-form-item-error-fade"},{default:e.withCtx(()=>[p.value==="error"&&i.value&&u.value?(e.openBlock(),e.createElementBlock("div",_a,e.toDisplayString(u.value),1)):e.createCommentVNode("",!0)]),_:1})])],2))}}),Ee=K(Va,[["__scopeId","data-v-52add6c3"]]);De&&(De.name="rc-form");Ee&&(Ee.name="rc-form-item");function lt(n){return De&&n.component(De.name||"rc-form",De),Ee&&n.component(Ee.name||"rc-form-item",Ee),n}const wa=["value","name","disabled"],Ca={class:"rc-radio__label"},$a=e.defineComponent({name:"rc-radio",__name:"index",props:{modelValue:{type:[String,Number,Boolean],default:void 0},label:{type:[String,Number,Boolean],default:void 0},disabled:{type:Boolean,default:!1},border:{type:Boolean,default:!1},size:{default:"default"},name:{default:void 0}},emits:["update:modelValue","change","focus","blur"],setup(n,{expose:f,emit:l}){const t=n,p=l,u=e.ref(),m=e.inject("RadioGroup",void 0),a=e.computed(()=>!!m),i=e.computed({get(){return a.value?e.unref(m.modelValue):t.modelValue},set(b){a.value?m.changeEvent(b):p("update:modelValue",b)}}),r=e.computed(()=>{const b=i.value,o=t.label;return b===o}),D=e.computed(()=>t.disabled||(m==null?void 0:m.disabled)||!1);e.computed(()=>(m==null?void 0:m.size)||t.size);const V=e.inject("rcFormItem",void 0),k=b=>{var Y;b.target.checked&&(p("change",t.label),(Y=V==null?void 0:V.onChange)==null||Y.call(V))},w=b=>{p("focus",b)},M=b=>{var o;p("blur",b),(o=V==null?void 0:V.onBlur)==null||o.call(V)};return f({radioRef:u,focus:()=>{var b;(b=u.value)==null||b.focus()},blur:()=>{var b;(b=u.value)==null||b.blur()}}),(b,o)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["rc-radio",[{"is-checked":r.value,"is-disabled":D.value,"is-border":n.border,[`rc-radio--${n.size}`]:n.size}]])},[e.createElementVNode("span",{class:e.normalizeClass(["rc-radio__input",{"is-checked":r.value,"is-disabled":D.value}])},[o[1]||(o[1]=e.createElementVNode("span",{class:"rc-radio__inner"},null,-1)),e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:u,"onUpdate:modelValue":o[0]||(o[0]=Y=>i.value=Y),value:n.label,class:"rc-radio__original",name:n.name,disabled:D.value,type:"radio",onChange:k,onFocus:w,onBlur:M},null,40,wa),[[e.vModelRadio,i.value]])],2),e.createElementVNode("span",Ca,[e.renderSlot(b.$slots,"default",{},()=>[n.label!==void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.label),1)],64)):e.createCommentVNode("",!0)],!0)])],2))}}),Me=K($a,[["__scopeId","data-v-57d4d380"]]),xa=e.defineComponent({name:"rc-radio-group",__name:"group",props:{modelValue:{type:[String,Number,Boolean],default:void 0},size:{default:"default"},disabled:{type:Boolean,default:!1},textColor:{default:void 0},fill:{default:void 0},name:{default:void 0}},emits:["update:modelValue","change"],setup(n,{emit:f}){const l=n,t=f,p=m=>{t("update:modelValue",m),t("change",m)},u=e.inject("rcFormItem",void 0);return e.watch(()=>l.modelValue,()=>{var m;(m=u==null?void 0:u.onChange)==null||m.call(u)}),e.provide("RadioGroup",{modelValue:e.computed(()=>l.modelValue),changeEvent:p,size:l.size,disabled:l.disabled,name:l.name,fill:l.fill,textColor:l.textColor}),(m,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-radio-group",[{"is-disabled":n.disabled}]])},[e.renderSlot(m.$slots,"default",{},void 0,!0)],2))}}),Te=K(xa,[["__scopeId","data-v-e39301ee"]]),Da=["value","name","disabled"],Ea={class:"rc-radio-button__inner"},Sa=e.defineComponent({name:"rc-radio-button",__name:"button",props:{modelValue:{type:[String,Number,Boolean],default:void 0},label:{type:[String,Number,Boolean],default:void 0},disabled:{type:Boolean,default:!1},name:{default:void 0}},emits:["update:modelValue","change","focus","blur"],setup(n,{expose:f,emit:l}){const t=n,p=l,u=e.ref(),m=e.ref(!1),a=e.inject("RadioGroup",void 0),i=e.computed(()=>!!a),r=e.computed({get(){return i.value?e.unref(a.modelValue):t.modelValue},set(I){i.value?a.changeEvent(I):p("update:modelValue",I)}}),D=e.computed(()=>{const I=r.value,d=t.label;return I===d}),V=e.computed(()=>t.disabled||(a==null?void 0:a.disabled)||!1),k=e.computed(()=>(a==null?void 0:a.size)||"default"),w=e.computed(()=>{if(!D.value||!a)return{};const I={};return a.fill&&(I.backgroundColor=a.fill,I.borderColor=a.fill),a.textColor&&(I.color=a.textColor),I}),M=e.inject("rcFormItem",void 0),b=I=>{var $;I.target.checked&&(p("change",t.label),($=M==null?void 0:M.onChange)==null||$.call(M))},o=I=>{m.value=!0,p("focus",I)},Y=I=>{var d;m.value=!1,p("blur",I),(d=M==null?void 0:M.onBlur)==null||d.call(M)};return f({radioRef:u,focus:()=>{var I;(I=u.value)==null||I.focus()},blur:()=>{var I;(I=u.value)==null||I.blur()}}),(I,d)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["rc-radio-button",[{"is-active":D.value,"is-disabled":V.value,"is-focus":m.value,[`rc-radio-button--${k.value}`]:k.value}]]),style:e.normalizeStyle(w.value)},[e.withDirectives(e.createElementVNode("input",{ref_key:"radioRef",ref:u,"onUpdate:modelValue":d[0]||(d[0]=$=>r.value=$),value:n.label,class:"rc-radio-button__original",name:n.name,disabled:V.value,type:"radio",onChange:b,onFocus:o,onBlur:Y},null,40,Da),[[e.vModelRadio,r.value]]),e.createElementVNode("span",Ea,[e.renderSlot(I.$slots,"default",{},()=>[n.label!==void 0?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.label),1)],64)):e.createCommentVNode("",!0)],!0)])],6))}}),ze=K(Sa,[["__scopeId","data-v-5b2094ea"]]);Me.name="rc-radio";Te.name="rc-radio-group";ze.name="rc-radio-button";function ot(n){return n.component(Me.name,Me),n.component("RcRadio",Me),n.component(Te.name,Te),n.component("RcRadioGroup",Te),n.component(ze.name,ze),n.component("RcRadioButton",ze),n}const Na={class:"rc-checkbox__inner"},Ra=["checked","value","true-value","false-value","name","disabled"],Ma={class:"rc-checkbox__label"},Ta=e.defineComponent({name:"rc-checkbox",__name:"index",props:{modelValue:{type:[String,Number,Boolean],default:void 0},label:{type:[String,Number,Boolean],default:void 0},disabled:{type:Boolean,default:!1},border:{type:Boolean,default:!1},size:{default:"default"},name:{default:void 0},indeterminate:{type:Boolean,default:!1},checked:{type:Boolean,default:!1},trueLabel:{default:void 0},falseLabel:{default:void 0}},emits:["update:modelValue","change","focus","blur"],setup(n,{expose:f,emit:l}){const t=n,p=l,u=e.ref(),m=e.inject("CheckboxGroup",void 0),a=e.computed(()=>!!m),i=()=>{if(!m)return[];const o=e.unref(m.modelValue);return Array.isArray(o)?o:[]},r=e.computed({get(){return a.value?i().includes(t.label):t.modelValue??t.checked},set(o){if(a.value){const Y=[...i()];if(o)Y.includes(t.label)||Y.push(t.label);else{const I=Y.indexOf(t.label);I>-1&&Y.splice(I,1)}m.changeEvent(Y)}else{const Y=o?t.trueLabel??!0:t.falseLabel??!1;p("update:modelValue",Y)}}}),D=e.computed(()=>a.value?i().includes(t.label):t.trueLabel!==void 0||t.falseLabel!==void 0?t.modelValue===t.trueLabel:!!t.modelValue||t.checked),V=e.computed(()=>{if(t.disabled||m!=null&&m.disabled)return!0;if(a.value&&m){const o=i();if(D.value){if(m.min!==void 0&&o.length<=m.min)return!0}else if(m.max!==void 0&&o.length>=m.max)return!0}return!1}),k=e.inject("rcFormItem",void 0),w=o=>{var I,d;const Y=o.target;if(a.value){const $=[...i()];if(Y.checked)$.includes(t.label)||$.push(t.label);else{const g=$.indexOf(t.label);g>-1&&$.splice(g,1)}m.changeEvent($),p("change",t.label),(I=k==null?void 0:k.onChange)==null||I.call(k)}else{const $=Y.checked?t.trueLabel??!0:t.falseLabel??!1;p("update:modelValue",$),p("change",$),(d=k==null?void 0:k.onChange)==null||d.call(k)}},M=o=>{p("focus",o)},b=o=>{var Y;p("blur",o),(Y=k==null?void 0:k.onBlur)==null||Y.call(k)};return f({checkboxRef:u,focus:()=>{var o;(o=u.value)==null||o.focus()},blur:()=>{var o;(o=u.value)==null||o.blur()}}),(o,Y)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["rc-checkbox",[{"is-checked":D.value,"is-disabled":V.value,"is-indeterminate":n.indeterminate,"is-border":n.border,[`rc-checkbox--${n.size}`]:n.size}]])},[e.createElementVNode("span",{class:e.normalizeClass(["rc-checkbox__input",{"is-checked":D.value,"is-disabled":V.value,"is-indeterminate":n.indeterminate}])},[e.createElementVNode("span",Na,[D.value&&!n.indeterminate?(e.openBlock(),e.createBlock(q,{key:0,name:"icon_select",class:"rc-checkbox__icon",size:14})):e.createCommentVNode("",!0)]),e.createElementVNode("input",{ref_key:"checkboxRef",ref:u,checked:a.value?D.value:!!r.value,value:n.label,"true-value":n.trueLabel,"false-value":n.falseLabel,class:"rc-checkbox__original",name:n.name,disabled:V.value,type:"checkbox",onChange:w,onFocus:M,onBlur:b},null,40,Ra)],2),e.createElementVNode("span",Ma,[e.renderSlot(o.$slots,"default",{},()=>[n.label!==void 0&&typeof n.label!="boolean"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.label),1)],64)):e.createCommentVNode("",!0)],!0)])],2))}}),Fe=K(Ta,[["__scopeId","data-v-1822e772"]]),za=e.defineComponent({name:"rc-checkbox-group",__name:"group",props:{modelValue:{default:()=>[]},size:{default:"default"},disabled:{type:Boolean,default:!1},textColor:{default:void 0},fill:{default:void 0},name:{default:void 0},min:{default:void 0},max:{default:void 0}},emits:["update:modelValue","change"],setup(n,{emit:f}){const l=n,t=f,p=m=>{t("update:modelValue",m),t("change",m)},u=e.inject("rcFormItem",void 0);return e.watch(()=>l.modelValue,()=>{var m;(m=u==null?void 0:u.onChange)==null||m.call(u)}),e.provide("CheckboxGroup",{modelValue:e.computed(()=>l.modelValue||[]),changeEvent:p,size:l.size,disabled:l.disabled,name:l.name,fill:l.fill,textColor:l.textColor,min:l.min,max:l.max}),(m,a)=>(e.openBlock(),e.createElementBlock("div",{class:e.normalizeClass(["rc-checkbox-group",[{"is-disabled":n.disabled}]])},[e.renderSlot(m.$slots,"default",{},void 0,!0)],2))}}),Ie=K(za,[["__scopeId","data-v-44296f0f"]]),Fa=["checked","value","name","disabled"],Ia={class:"rc-checkbox-button__inner"},Aa=e.defineComponent({name:"rc-checkbox-button",__name:"button",props:{modelValue:{type:[String,Number,Boolean],default:void 0},label:{type:[String,Number,Boolean],default:void 0},disabled:{type:Boolean,default:!1},name:{default:void 0},checked:{type:Boolean,default:!1},trueLabel:{default:void 0},falseLabel:{default:void 0}},emits:["update:modelValue","change","focus","blur"],setup(n,{expose:f,emit:l}){const t=n,p=l,u=e.ref(),m=e.ref(!1),a=e.inject("CheckboxGroup",void 0),i=e.computed(()=>!!a),r=()=>{if(!a)return[];const d=e.unref(a.modelValue);return Array.isArray(d)?d:[]},D=e.computed({get(){return i.value?r().includes(t.label):t.trueLabel!==void 0||t.falseLabel!==void 0?t.modelValue===t.trueLabel:!!t.modelValue||t.checked},set(d){if(i.value){const $=[...r()];if(d)$.includes(t.label)||$.push(t.label);else{const g=$.indexOf(t.label);g>-1&&$.splice(g,1)}a.changeEvent($)}else{const $=d?t.trueLabel??!0:t.falseLabel??!1;p("update:modelValue",$)}}}),V=e.computed(()=>i.value?r().includes(t.label):t.trueLabel!==void 0||t.falseLabel!==void 0?t.modelValue===t.trueLabel:!!t.modelValue||t.checked),k=e.computed(()=>{if(t.disabled||a!=null&&a.disabled)return!0;if(i.value&&a){const d=r();if(V.value){if(a.min!==void 0&&d.length<=a.min)return!0}else if(a.max!==void 0&&d.length>=a.max)return!0}return!1}),w=e.computed(()=>(a==null?void 0:a.size)||"default"),M=e.computed(()=>{if(!V.value||!a)return{};const d={};return a.fill&&(d.backgroundColor=a.fill,d.borderColor=a.fill),a.textColor&&(d.color=a.textColor),d}),b=e.inject("rcFormItem",void 0),o=d=>{var g,_;const $=d.target;if(i.value){const x=[...r()];if($.checked)x.includes(t.label)||x.push(t.label);else{const S=x.indexOf(t.label);S>-1&&x.splice(S,1)}a.changeEvent(x),p("change",t.label),(g=b==null?void 0:b.onChange)==null||g.call(b)}else{const x=$.checked?t.trueLabel??!0:t.falseLabel??!1;p("update:modelValue",x),p("change",x),(_=b==null?void 0:b.onChange)==null||_.call(b)}},Y=d=>{m.value=!0,p("focus",d)},I=d=>{var $;m.value=!1,p("blur",d),($=b==null?void 0:b.onBlur)==null||$.call(b)};return f({checkboxRef:u,focus:()=>{var d;(d=u.value)==null||d.focus()},blur:()=>{var d;(d=u.value)==null||d.blur()}}),(d,$)=>(e.openBlock(),e.createElementBlock("label",{class:e.normalizeClass(["rc-checkbox-button",[{"is-checked":V.value,"is-disabled":k.value,"is-focus":m.value,[`rc-checkbox-button--${w.value}`]:w.value}]]),style:e.normalizeStyle(M.value)},[e.createElementVNode("input",{ref_key:"checkboxRef",ref:u,checked:i.value?V.value:!!D.value,value:n.label,class:"rc-checkbox-button__original",name:n.name,disabled:k.value,type:"checkbox",onChange:o,onFocus:Y,onBlur:I},null,40,Fa),e.createElementVNode("span",Ia,[e.renderSlot(d.$slots,"default",{},()=>[n.label!==void 0&&typeof n.label!="boolean"?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[e.createTextVNode(e.toDisplayString(n.label),1)],64)):e.createCommentVNode("",!0)],!0)])],6))}}),Ae=K(Aa,[["__scopeId","data-v-6fdfcb7f"]]);Fe.name="rc-checkbox";Ie.name="rc-checkbox-group";Ae.name="rc-checkbox-button";function rt(n){return n.component(Fe.name,Fe),n.component("RcCheckbox",Fe),n.component(Ie.name,Ie),n.component("RcCheckboxGroup",Ie),n.component(Ae.name,Ae),n.component("RcCheckboxButton",Ae),n}const Pe=Symbol("RECYCLE_UI_CONFIG"),Ue={prefix:"rc",autoRegister:!0,provideKey:Pe,theme:{},iconCssUrl:"//at.alicdn.com/t/c/font_4252799_2vm5jrrzfvq.css",iconClass:"iconfont",inputDeviceType:"pc"};function La(n,f){f.autoRegister!==!1&&(typeof Ge=="function"&&Ge(n),typeof qe=="function"&&qe(n),typeof Ke=="function"&&Ke(n),typeof dt=="function"&&dt(n),typeof Je=="function"&&Je(n),typeof Qe=="function"&&Qe(n),typeof tt=="function"&&tt(n),typeof Ze=="function"&&Ze(n),typeof Xe=="function"&&Xe(n),typeof nt=="function"&&nt(n),typeof at=="function"&&at(n),typeof lt=="function"&<(n),typeof ot=="function"&&ot(n),typeof rt=="function"&&rt(n))}const ct=(n,f)=>{const l={...Ue,...f||{}};if(n.provide(l.provideKey??Pe,l),n.config.globalProperties.$recycleUI=l,typeof window<"u"&&l.iconCssUrl){const t=`link[rel="stylesheet"][data-rcui-icon="true"][href="${l.iconCssUrl}"]`;if(!document.head.querySelector(t)){const u=document.createElement("link");u.rel="stylesheet",u.href=l.iconCssUrl,u.setAttribute("data-rcui-icon","true"),document.head.appendChild(u)}}return La(n,l),n},Pa={install:ct};function Ya(n){return{install(f){ct(f,n)}}}exports.RECYCLE_UI_SYMBOL=Pe;exports.RcButton=ae;exports.RcCalendar=ke;exports.RcCard=Re;exports.RcCheckbox=Fe;exports.RcCheckboxButton=Ae;exports.RcCheckboxGroup=Ie;exports.RcDescriptions=mt;exports.RcDescriptionsItem=vt;exports.RcDropdown=Be;exports.RcDropdownItem=_e;exports.RcDropdownMenu=be;exports.RcForm=De;exports.RcFormItem=Ee;exports.RcIcon=q;exports.RcInput=xe;exports.RcPopup=ye;exports.RcRadio=Me;exports.RcRadioButton=ze;exports.RcRadioGroup=Te;exports.RcSearchArea=et;exports.RcToast=Le;exports.createRecycleUI=Ya;exports.default=Pa;exports.defaultRecycleUIConfig=Ue;exports.hideToast=pt;exports.install=ct;exports.installButton=Ge;exports.installCalendar=Ze;exports.installCard=Ke;exports.installCheckbox=rt;exports.installDescriptions=qe;exports.installDropdown=at;exports.installForm=lt;exports.installIcon=Je;exports.installInput=nt;exports.installMessage=Qe;exports.installPopup=Xe;exports.installRadio=ot;exports.installSearchArea=tt;exports.message=ht;exports.rcDescriptions=mt;exports.rcDescriptionsItem=vt;exports.showToast=Wt;
|
|
2
2
|
//# sourceMappingURL=index.cjs.map
|