@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.vue.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/item.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item.vue.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/item.vue"],"names":[],"mappings":"AAkIA,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,KAAK,CAAC,EAAE,GAAG,CAAC;IACZ,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,yBAAyB;IACzB,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,mDAAmD;IACnD,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;CAChC,CAAC;AAsGF,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AAuB/C,QAAA,MAAM,eAAe;WAvIX,MAAM,GAAG,MAAM;UAIhB,MAAM,GAAG,MAAM;WAHd,GAAG;gBACE,MAAM,GAAG,MAAM;mBAIZ,MAAM,GAAG,KAAK;6EAwI9B,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 Dropdown from './index.vue';
|
|
3
|
+
import DropdownMenu from './menu.vue';
|
|
4
|
+
import DropdownItem from './item.vue';
|
|
5
|
+
export declare function install(app: App): App<any>;
|
|
6
|
+
export { DropdownMenu, DropdownItem };
|
|
7
|
+
export default Dropdown;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,YAAY,MAAM,YAAY,CAAC;AACtC,OAAO,YAAY,MAAM,YAAY,CAAC;AAYtC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAc/B;AAED,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,CAAC;AACtC,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import type { DropdownPlacement } from './types';
|
|
2
|
+
interface Props {
|
|
3
|
+
placement?: DropdownPlacement;
|
|
4
|
+
trigger?: 'hover' | 'click';
|
|
5
|
+
disabled?: boolean;
|
|
6
|
+
effect?: 'dark' | 'light';
|
|
7
|
+
maxHeight?: string | number;
|
|
8
|
+
hideOnClick?: boolean;
|
|
9
|
+
showTimeout?: number;
|
|
10
|
+
hideTimeout?: number;
|
|
11
|
+
}
|
|
12
|
+
declare function show(): void;
|
|
13
|
+
declare function hide(): void;
|
|
14
|
+
declare function toggle(): void;
|
|
15
|
+
declare var __VLS_1: {}, __VLS_13: {};
|
|
16
|
+
type __VLS_Slots = {} & {
|
|
17
|
+
default?: (props: typeof __VLS_1) => any;
|
|
18
|
+
} & {
|
|
19
|
+
dropdown?: (props: typeof __VLS_13) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
22
|
+
show: typeof show;
|
|
23
|
+
hide: typeof hide;
|
|
24
|
+
toggle: typeof toggle;
|
|
25
|
+
visible: import("vue").Ref<boolean, boolean>;
|
|
26
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
27
|
+
command: (command: string | number | object) => any;
|
|
28
|
+
"visible-change": (visible: boolean) => any;
|
|
29
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
30
|
+
onCommand?: ((command: string | number | object) => any) | undefined;
|
|
31
|
+
"onVisible-change"?: ((visible: boolean) => any) | undefined;
|
|
32
|
+
}>, {
|
|
33
|
+
disabled: boolean;
|
|
34
|
+
effect: "dark" | "light";
|
|
35
|
+
maxHeight: string | number;
|
|
36
|
+
placement: DropdownPlacement;
|
|
37
|
+
trigger: "hover" | "click";
|
|
38
|
+
hideOnClick: boolean;
|
|
39
|
+
showTimeout: number;
|
|
40
|
+
hideTimeout: number;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.vue"],"names":[],"mappings":"AA4VA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,SAAS,CAAC;AAIjD,UAAU,KAAK;IACb,SAAS,CAAC,EAAE,iBAAiB,CAAC;IAC9B,OAAO,CAAC,EAAE,OAAO,GAAG,OAAO,CAAC;IAC5B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAuCD,iBAAS,IAAI,SAmBZ;AAGD,iBAAS,IAAI,SAgBZ;AAGD,iBAAS,MAAM,SAOd;AAkRD,QAAA,IAAI,OAAO,IAAU,EAAuB,QAAQ,IAAY,CAAE;AAClE,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,QAAQ,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AAgCjD,QAAA,MAAM,eAAe;;;;;;;;;;;;cAlZR,OAAO;YACT,MAAM,GAAG,OAAO;eACb,MAAM,GAAG,MAAM;eAJf,iBAAiB;aACnB,OAAO,GAAG,OAAO;iBAIb,OAAO;iBACP,MAAM;iBACN,MAAM;6EAsZpB,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,24 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
command?: string | number | object;
|
|
3
|
+
disabled?: boolean;
|
|
4
|
+
divided?: boolean;
|
|
5
|
+
icon?: string;
|
|
6
|
+
}
|
|
7
|
+
declare var __VLS_4: {};
|
|
8
|
+
type __VLS_Slots = {} & {
|
|
9
|
+
default?: (props: typeof __VLS_4) => any;
|
|
10
|
+
};
|
|
11
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
12
|
+
disabled: boolean;
|
|
13
|
+
command: string | number | object;
|
|
14
|
+
divided: boolean;
|
|
15
|
+
icon: string;
|
|
16
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
17
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
18
|
+
export default _default;
|
|
19
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
20
|
+
new (): {
|
|
21
|
+
$slots: S;
|
|
22
|
+
};
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=item.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/item.vue"],"names":[],"mappings":"AAsHA,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAAC;IACnC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AA2ED,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;AAsB/C,QAAA,MAAM,eAAe;cAtGR,OAAO;aADR,MAAM,GAAG,MAAM,GAAG,MAAM;aAExB,OAAO;UACV,MAAM;6EA2Gb,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,32 @@
|
|
|
1
|
+
interface Props {
|
|
2
|
+
visible?: boolean;
|
|
3
|
+
effect?: 'dark' | 'light';
|
|
4
|
+
maxHeight?: string | number;
|
|
5
|
+
}
|
|
6
|
+
declare var __VLS_9: {}, __VLS_11: {};
|
|
7
|
+
type __VLS_Slots = {} & {
|
|
8
|
+
default?: (props: typeof __VLS_9) => any;
|
|
9
|
+
} & {
|
|
10
|
+
default?: (props: typeof __VLS_11) => any;
|
|
11
|
+
};
|
|
12
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
13
|
+
menuRef: import("vue").Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
14
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
15
|
+
mouseenter: (event: MouseEvent) => any;
|
|
16
|
+
mouseleave: (event: MouseEvent) => any;
|
|
17
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
18
|
+
onMouseenter?: ((event: MouseEvent) => any) | undefined;
|
|
19
|
+
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
20
|
+
}>, {
|
|
21
|
+
visible: boolean;
|
|
22
|
+
effect: "dark" | "light";
|
|
23
|
+
maxHeight: string | number;
|
|
24
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
25
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
26
|
+
export default _default;
|
|
27
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
28
|
+
new (): {
|
|
29
|
+
$slots: S;
|
|
30
|
+
};
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=menu.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"menu.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/menu.vue"],"names":[],"mappings":"AA6IA,UAAU,KAAK;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC7B;AAqID,QAAA,IAAI,OAAO,IAAU,EAAE,QAAQ,IAAY,CAAE;AAC7C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,QAAQ,KAAK,GAAG,CAAA;CAAE,CAAC;AA2BhD,QAAA,MAAM,eAAe;;;;;;;;;aAtKT,OAAO;YACR,MAAM,GAAG,OAAO;eACb,MAAM,GAAG,MAAM;6EA6K3B,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 @@
|
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GACzB,KAAK,GACL,WAAW,GACX,SAAS,GACT,QAAQ,GACR,cAAc,GACd,YAAY,GACZ,MAAM,GACN,YAAY,GACZ,UAAU,GACV,OAAO,GACP,aAAa,GACb,WAAW,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import Form from './index.vue';
|
|
3
|
+
import FormItem from './item.vue';
|
|
4
|
+
export declare function install(app: App): App<any>;
|
|
5
|
+
export default Form;
|
|
6
|
+
export { FormItem };
|
|
7
|
+
export type { FormRules, FormRule, ValidateCallback, ValidateFieldCallback } from './index.vue';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,IAAI,MAAM,aAAa,CAAC;AAC/B,OAAO,QAAQ,MAAM,YAAY,CAAC;AAUlC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAQ/B;AAED,eAAe,IAAI,CAAC;AACpB,OAAO,EAAE,QAAQ,EAAE,CAAC;AACpB,YAAY,EAAE,SAAS,EAAE,QAAQ,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC"}
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
export interface FormRules {
|
|
2
|
+
[key: string]: FormRule | FormRule[];
|
|
3
|
+
}
|
|
4
|
+
export interface FormRule {
|
|
5
|
+
required?: boolean;
|
|
6
|
+
message?: string;
|
|
7
|
+
trigger?: 'blur' | 'change' | 'submit';
|
|
8
|
+
min?: number;
|
|
9
|
+
max?: number;
|
|
10
|
+
type?: 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'array' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email';
|
|
11
|
+
pattern?: RegExp | string;
|
|
12
|
+
validator?: (rule: FormRule, value: any, callback: (error?: Error) => void) => void | Promise<void>;
|
|
13
|
+
transform?: (value: any) => any;
|
|
14
|
+
}
|
|
15
|
+
export interface ValidateCallback {
|
|
16
|
+
(isValid: boolean, invalidFields?: Record<string, string[]>): void;
|
|
17
|
+
}
|
|
18
|
+
export interface ValidateFieldCallback {
|
|
19
|
+
(errorMessage?: string): void;
|
|
20
|
+
}
|
|
21
|
+
interface Props {
|
|
22
|
+
/** 表单数据对象 */
|
|
23
|
+
model?: Record<string, any>;
|
|
24
|
+
/** 表单验证规则 */
|
|
25
|
+
rules?: FormRules;
|
|
26
|
+
/** 表单域标签的宽度,例如 '50px'。作为 Form 直接子元素的 FormItem 会继承该值。支持 auto。 */
|
|
27
|
+
labelWidth?: string | number;
|
|
28
|
+
/** 表单域标签的位置,如果值为 left 时,则需要设置 label-width */
|
|
29
|
+
labelPosition?: 'left' | 'top';
|
|
30
|
+
/** 行内表单模式 */
|
|
31
|
+
inline?: boolean;
|
|
32
|
+
/** 用于控制该表单内组件的尺寸 */
|
|
33
|
+
size?: 'large' | 'default' | 'small';
|
|
34
|
+
/** 是否禁用该表单内的所有组件。若设置为 true,则表单内组件上的 disabled 属性不再生效 */
|
|
35
|
+
disabled?: boolean;
|
|
36
|
+
/** 是否在 rules 属性改变后立即触发一次验证 */
|
|
37
|
+
validateOnRuleChange?: boolean;
|
|
38
|
+
/** 是否显示必填字段的标签旁边的红色星号 */
|
|
39
|
+
hideRequiredAsterisk?: boolean;
|
|
40
|
+
/** 是否显示校验错误信息 */
|
|
41
|
+
showMessage?: boolean;
|
|
42
|
+
}
|
|
43
|
+
declare var __VLS_1: {};
|
|
44
|
+
type __VLS_Slots = {} & {
|
|
45
|
+
default?: (props: typeof __VLS_1) => any;
|
|
46
|
+
};
|
|
47
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
48
|
+
validate: (callback?: ValidateCallback) => Promise<boolean>;
|
|
49
|
+
validateField: (prop: string, callback?: ValidateFieldCallback) => Promise<void>;
|
|
50
|
+
resetFields: () => void;
|
|
51
|
+
clearValidate: (props?: string | string[]) => void;
|
|
52
|
+
formRef: import("vue").Ref<HTMLFormElement | undefined, HTMLFormElement | undefined>;
|
|
53
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
54
|
+
validate: (prop: string, isValid: boolean, message: string) => any;
|
|
55
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
56
|
+
onValidate?: ((prop: string, isValid: boolean, message: string) => any) | undefined;
|
|
57
|
+
}>, {
|
|
58
|
+
size: "large" | "default" | "small";
|
|
59
|
+
disabled: boolean;
|
|
60
|
+
labelWidth: string | number;
|
|
61
|
+
labelPosition: "left" | "top";
|
|
62
|
+
model: Record<string, any>;
|
|
63
|
+
rules: FormRules;
|
|
64
|
+
inline: boolean;
|
|
65
|
+
validateOnRuleChange: boolean;
|
|
66
|
+
hideRequiredAsterisk: boolean;
|
|
67
|
+
showMessage: boolean;
|
|
68
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
69
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
70
|
+
export default _default;
|
|
71
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
72
|
+
new (): {
|
|
73
|
+
$slots: S;
|
|
74
|
+
};
|
|
75
|
+
};
|
|
76
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/index.vue"],"names":[],"mappings":"AAmWA,MAAM,WAAW,SAAS;IACxB,CAAC,GAAG,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,EAAE,CAAC;CACtC;AAED,MAAM,WAAW,QAAQ;IACvB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACvC,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,QAAQ,GAAG,QAAQ,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,OAAO,CAAC;IACpJ,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC1B,SAAS,CAAC,EAAE,CAAC,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE,KAAK,KAAK,IAAI,KAAK,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,C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G,MAAM,EAAE;;;;;;;UA1OvC,OAAO,GAAG,SAAS,GAAG,OAAO;cAEzB,OAAO;gBARL,MAAM,GAAG,MAAM;mBAEZ,MAAM,GAAG,KAAK;WANtB,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC;WAEnB,SAAS;YAMR,OAAO;0BAMO,OAAO;0BAEP,OAAO;iBAEhB,OAAO;6EA2UrB,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,49 @@
|
|
|
1
|
+
import type { FormRule, ValidateFieldCallback } from './index.vue';
|
|
2
|
+
interface Props {
|
|
3
|
+
/** 表单域 model 字段,在使用 validate、resetFields 方法的情况下,该属性是必填的 */
|
|
4
|
+
prop?: string;
|
|
5
|
+
/** 标签文本 */
|
|
6
|
+
label?: string;
|
|
7
|
+
/** 表单域标签的的宽度,例如 '50px'。支持 auto。 */
|
|
8
|
+
labelWidth?: string | number;
|
|
9
|
+
/** 是否必填,如不设置,则会根据校验规则自动生成 */
|
|
10
|
+
required?: boolean;
|
|
11
|
+
/** 表单验证规则 */
|
|
12
|
+
rules?: FormRule | FormRule[];
|
|
13
|
+
/** 是否显示校验错误信息 */
|
|
14
|
+
showMessage?: boolean;
|
|
15
|
+
/** 以行内形式展示校验信息 */
|
|
16
|
+
inlineMessage?: boolean;
|
|
17
|
+
/** 自定义错误提示信息,设置该值会使表单验证状态变为 error,并显示该错误信息 */
|
|
18
|
+
error?: string;
|
|
19
|
+
}
|
|
20
|
+
declare var __VLS_1: {}, __VLS_3: {};
|
|
21
|
+
type __VLS_Slots = {} & {
|
|
22
|
+
label?: (props: typeof __VLS_1) => any;
|
|
23
|
+
} & {
|
|
24
|
+
default?: (props: typeof __VLS_3) => any;
|
|
25
|
+
};
|
|
26
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
27
|
+
validate: (trigger?: "blur" | "change" | "submit", callback?: ValidateFieldCallback) => Promise<void>;
|
|
28
|
+
resetField: () => void;
|
|
29
|
+
clearValidate: () => void;
|
|
30
|
+
validateState: import("vue").Ref<"" | "success" | "error" | "validating", "" | "success" | "error" | "validating">;
|
|
31
|
+
validateMessage: import("vue").Ref<string, string>;
|
|
32
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{}>, {
|
|
33
|
+
required: boolean;
|
|
34
|
+
label: string;
|
|
35
|
+
labelWidth: string | number;
|
|
36
|
+
error: string;
|
|
37
|
+
rules: FormRule | FormRule[];
|
|
38
|
+
showMessage: boolean;
|
|
39
|
+
prop: string;
|
|
40
|
+
inlineMessage: boolean;
|
|
41
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
43
|
+
export default _default;
|
|
44
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
45
|
+
new (): {
|
|
46
|
+
$slots: S;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
//# sourceMappingURL=item.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"item.vue.d.ts","sourceRoot":"","sources":["../../../src/components/form/item.vue"],"names":[],"mappings":"AA8hBA,OAAO,KAAK,EAAa,QAAQ,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAgB9E,UAAU,KAAK;IACb,2DAA2D;IAC3D,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW;IACX,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mCAAmC;IACnC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC7B,6BAA6B;IAC7B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,aAAa;IACb,KAAK,CAAC,EAAE,QAAQ,GAAG,QAAQ,EAAE,CAAC;IAC9B,iBAAiB;IACjB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,kBAAkB;IAClB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,8CAA8C;IAC9C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAueD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC3C,KAAK,WAAW,GAAG,EAAE,GACnB;IAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,GAC1C;IAAE,OAAO,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA4B/C,QAAA,MAAM,eAAe;yBAvSO,MAAM,GAAG,QAAQ,GAAG,QAAQ,aAAa,qBAAqB,KAAG,OAAO,CAAC,IAAI,CAAC;;;;;;cAxO7F,OAAO;WAJV,MAAM;gBAED,MAAM,GAAG,MAAM;WAUpB,MAAM;WANN,QAAQ,GAAG,QAAQ,EAAE;iBAEf,OAAO;UAVd,MAAM;mBAYG,OAAO;6EAihBvB,CAAC;wBACkB,eAAe,CAAC,OAAO,eAAe,EAAE,WAAW,CAAC;AAAzE,wBAA0E;AAa1E,KAAK,eAAe,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,GAAG;IAChC,QAAO;QACN,MAAM,EAAE,CAAC,CAAC;KAEV,CAAA;CACD,CAAC"}
|
|
@@ -15,9 +15,9 @@ export declare const RcIcon: import("vue").DefineComponent<{
|
|
|
15
15
|
code?: string | number;
|
|
16
16
|
}> & Readonly<{}>, {
|
|
17
17
|
size: number | string;
|
|
18
|
-
code: string | number;
|
|
19
18
|
color: string;
|
|
20
19
|
spin: boolean;
|
|
20
|
+
code: string | number;
|
|
21
21
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
22
22
|
export default Icon;
|
|
23
23
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,IAAI,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,IAAI,MAAM,aAAa,CAAC;AAE/B,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAM/B;AAED,eAAO,MAAM,MAAM;;;;;;;;;;;;;;;;;6EAAO,CAAC;AAC3B,eAAe,IAAI,CAAC"}
|
|
@@ -12,9 +12,9 @@ type __VLS_Props = {
|
|
|
12
12
|
};
|
|
13
13
|
declare const _default: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
14
14
|
size: number | string;
|
|
15
|
-
code: string | number;
|
|
16
15
|
color: string;
|
|
17
16
|
spin: boolean;
|
|
17
|
+
code: string | number;
|
|
18
18
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
19
19
|
export default _default;
|
|
20
20
|
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.vue"],"names":[],"mappings":"AA0GA,KAAK,WAAW,GAAG;IACjB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;;UAPO,MAAM,GAAG,MAAM;
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/icon/index.vue"],"names":[],"mappings":"AA0GA,KAAK,WAAW,GAAG;IACjB,yCAAyC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACvB,SAAS;IACT,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,2BAA2B;IAC3B,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,yDAAyD;IACzD,IAAI,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACxB,CAAC;;UAPO,MAAM,GAAG,MAAM;WAEd,MAAM;UAEP,OAAO;UAEP,MAAM,GAAG,MAAM;;AA6GxB,wBAOG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/input/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,MAAM,aAAa,CAAC;AAMhC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAK/B;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,158 @@
|
|
|
1
|
+
type InputValue = string | number | null | undefined;
|
|
2
|
+
type InputSize = 'large' | 'default' | 'small';
|
|
3
|
+
type InputType = 'text' | 'textarea' | 'password' | 'number';
|
|
4
|
+
type AutosizeConfig = boolean | {
|
|
5
|
+
minRows?: number;
|
|
6
|
+
maxRows?: number;
|
|
7
|
+
};
|
|
8
|
+
type DeviceType = 'pc' | 'mobile';
|
|
9
|
+
interface Props {
|
|
10
|
+
/** 双向绑定值 */
|
|
11
|
+
modelValue?: InputValue;
|
|
12
|
+
/** 输入框类型:'text' 文本输入(默认)、'textarea' 文本域、'password' 密码输入、'number' 数字输入 */
|
|
13
|
+
type?: InputType;
|
|
14
|
+
/** 尺寸 */
|
|
15
|
+
size?: InputSize;
|
|
16
|
+
/** 占位符 */
|
|
17
|
+
placeholder?: string;
|
|
18
|
+
/** 是否禁用 */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** 是否显示清空按钮 */
|
|
21
|
+
clearable?: boolean;
|
|
22
|
+
/** 是否显示密码切换按钮 */
|
|
23
|
+
showPassword?: boolean;
|
|
24
|
+
/** 是否只读 */
|
|
25
|
+
readonly?: boolean;
|
|
26
|
+
/** 最大输入长度 */
|
|
27
|
+
maxlength?: number;
|
|
28
|
+
/** 最小输入长度 */
|
|
29
|
+
minlength?: number;
|
|
30
|
+
/** 是否显示字数统计,只在 type 为 'text' 或 'textarea' 时生效 */
|
|
31
|
+
showWordLimit?: boolean;
|
|
32
|
+
/** 文本域行数 */
|
|
33
|
+
rows?: number;
|
|
34
|
+
/** 文本域自适应内容高度 */
|
|
35
|
+
autosize?: AutosizeConfig;
|
|
36
|
+
/** 文本域是否可以缩放 */
|
|
37
|
+
resize?: 'none' | 'both' | 'horizontal' | 'vertical';
|
|
38
|
+
/** 前缀图标 */
|
|
39
|
+
prefixIcon?: string;
|
|
40
|
+
/** 后缀图标 */
|
|
41
|
+
suffixIcon?: string;
|
|
42
|
+
/** 原生 autocomplete 属性 */
|
|
43
|
+
autocomplete?: string;
|
|
44
|
+
/** 原生 name 属性 */
|
|
45
|
+
name?: string;
|
|
46
|
+
/** 原生 autofocus 属性 */
|
|
47
|
+
autofocus?: boolean;
|
|
48
|
+
/** 原生 form 属性 */
|
|
49
|
+
form?: string;
|
|
50
|
+
/** tabindex */
|
|
51
|
+
tabindex?: string | number;
|
|
52
|
+
/** 格式化函数 */
|
|
53
|
+
formatter?: (value: string) => string;
|
|
54
|
+
/** 解析函数 */
|
|
55
|
+
parser?: (value: string) => string;
|
|
56
|
+
/** 设备类型,'pc' | 'mobile',默认从全局配置读取,全局配置默认为 'pc' */
|
|
57
|
+
deviceType?: DeviceType;
|
|
58
|
+
/** 数字输入模式:最小值 */
|
|
59
|
+
min?: number;
|
|
60
|
+
/** 数字输入模式:最大值 */
|
|
61
|
+
max?: number;
|
|
62
|
+
/** 数字输入模式:步进值 */
|
|
63
|
+
step?: number;
|
|
64
|
+
/** 数字输入模式:精度(小数位数) */
|
|
65
|
+
precision?: number;
|
|
66
|
+
/** 数字输入模式:是否显示控制按钮 */
|
|
67
|
+
controls?: boolean;
|
|
68
|
+
/** 数字输入模式:是否使用千分位分隔符 */
|
|
69
|
+
useGrouping?: boolean;
|
|
70
|
+
}
|
|
71
|
+
declare function resizeTextarea(): void;
|
|
72
|
+
declare function focus(): void;
|
|
73
|
+
declare function blur(): void;
|
|
74
|
+
declare function select(): void;
|
|
75
|
+
declare function clear(): void;
|
|
76
|
+
declare var __VLS_1: {}, __VLS_3: {}, __VLS_49: {}, __VLS_63: {};
|
|
77
|
+
type __VLS_Slots = {} & {
|
|
78
|
+
prepend?: (props: typeof __VLS_1) => any;
|
|
79
|
+
} & {
|
|
80
|
+
prefix?: (props: typeof __VLS_3) => any;
|
|
81
|
+
} & {
|
|
82
|
+
suffix?: (props: typeof __VLS_49) => any;
|
|
83
|
+
} & {
|
|
84
|
+
append?: (props: typeof __VLS_63) => any;
|
|
85
|
+
};
|
|
86
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
87
|
+
focus: typeof focus;
|
|
88
|
+
blur: typeof blur;
|
|
89
|
+
select: typeof select;
|
|
90
|
+
clear: typeof clear;
|
|
91
|
+
resizeTextarea: typeof resizeTextarea;
|
|
92
|
+
inputRef: import("vue").Ref<HTMLInputElement | HTMLTextAreaElement | undefined, HTMLInputElement | HTMLTextAreaElement | undefined>;
|
|
93
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
94
|
+
input: (value: InputValue) => any;
|
|
95
|
+
clear: () => any;
|
|
96
|
+
"update:modelValue": (value: InputValue) => any;
|
|
97
|
+
change: (value: InputValue) => any;
|
|
98
|
+
blur: (event: FocusEvent) => any;
|
|
99
|
+
compositionend: (event: CompositionEvent) => any;
|
|
100
|
+
compositionstart: (event: CompositionEvent) => any;
|
|
101
|
+
compositionupdate: (event: CompositionEvent) => any;
|
|
102
|
+
focus: (event: FocusEvent) => any;
|
|
103
|
+
keydown: (event: KeyboardEvent) => any;
|
|
104
|
+
mouseenter: (event: MouseEvent) => any;
|
|
105
|
+
mouseleave: (event: MouseEvent) => any;
|
|
106
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
107
|
+
onInput?: ((value: InputValue) => any) | undefined;
|
|
108
|
+
onClear?: (() => any) | undefined;
|
|
109
|
+
"onUpdate:modelValue"?: ((value: InputValue) => any) | undefined;
|
|
110
|
+
onChange?: ((value: InputValue) => any) | undefined;
|
|
111
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
112
|
+
onCompositionend?: ((event: CompositionEvent) => any) | undefined;
|
|
113
|
+
onCompositionstart?: ((event: CompositionEvent) => any) | undefined;
|
|
114
|
+
onCompositionupdate?: ((event: CompositionEvent) => any) | undefined;
|
|
115
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
116
|
+
onKeydown?: ((event: KeyboardEvent) => any) | undefined;
|
|
117
|
+
onMouseenter?: ((event: MouseEvent) => any) | undefined;
|
|
118
|
+
onMouseleave?: ((event: MouseEvent) => any) | undefined;
|
|
119
|
+
}>, {
|
|
120
|
+
name: string;
|
|
121
|
+
size: InputSize;
|
|
122
|
+
type: InputType;
|
|
123
|
+
form: string;
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
suffixIcon: string;
|
|
126
|
+
placeholder: string;
|
|
127
|
+
modelValue: string | number | null;
|
|
128
|
+
formatter: (value: string) => string;
|
|
129
|
+
readonly: boolean;
|
|
130
|
+
resize: "none" | "both" | "horizontal" | "vertical";
|
|
131
|
+
clearable: boolean;
|
|
132
|
+
showPassword: boolean;
|
|
133
|
+
maxlength: number;
|
|
134
|
+
minlength: number;
|
|
135
|
+
showWordLimit: boolean;
|
|
136
|
+
rows: number;
|
|
137
|
+
autosize: AutosizeConfig;
|
|
138
|
+
prefixIcon: string;
|
|
139
|
+
autocomplete: string;
|
|
140
|
+
autofocus: boolean;
|
|
141
|
+
tabindex: string | number;
|
|
142
|
+
parser: (value: string) => string;
|
|
143
|
+
deviceType: DeviceType;
|
|
144
|
+
min: number;
|
|
145
|
+
max: number;
|
|
146
|
+
step: number;
|
|
147
|
+
precision: number;
|
|
148
|
+
controls: boolean;
|
|
149
|
+
useGrouping: boolean;
|
|
150
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
151
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
152
|
+
export default _default;
|
|
153
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
154
|
+
new (): {
|
|
155
|
+
$slots: S;
|
|
156
|
+
};
|
|
157
|
+
};
|
|
158
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/input/index.vue"],"names":[],"mappings":"AA6pCA,KAAK,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;AACrD,KAAK,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;AAC/C,KAAK,SAAS,GAAG,MAAM,GAAG,UAAU,GAAG,UAAU,GAAG,QAAQ,CAAC;AAC7D,KAAK,cAAc,GAAG,OAAO,GAAG;IAAE,OAAO,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;AACvE,KAAK,UAAU,GAAG,IAAI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AM,GAAG,YAAY,GAAG,UAAU;eAhBxC,OAAO;kBAEJ,OAAO;eAIV,MAAM;eAEN,MAAM;mBAEF,OAAO;UAEhB,MAAM;cAEF,cAAc;gBAIZ,MAAM;kBAIJ,MAAM;eAIT,OAAO;cAIR,MAAM,GAAG,MAAM;YAIjB,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM;gBAErB,UAAU;SAEjB,MAAM;SAEN,MAAM;UAEL,MAAM;eAED,MAAM;cAEP,OAAO;iBAEJ,OAAO;6EAqkCrB,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 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/popup/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,KAAK,MAAM,aAAa,CAAC;AAQhC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAM/B;AAED,eAAe,KAAK,CAAC"}
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
type PopupPosition = 'top' | 'bottom' | 'left' | 'right' | 'center';
|
|
2
|
+
type CloseIconPosition = 'top-left' | 'top-right' | 'bottom-left' | 'bottom-right';
|
|
3
|
+
interface Props {
|
|
4
|
+
/** 是否显示弹出层 */
|
|
5
|
+
modelValue?: boolean;
|
|
6
|
+
/** 弹出位置 */
|
|
7
|
+
position?: PopupPosition;
|
|
8
|
+
/** 是否显示遮罩层 */
|
|
9
|
+
overlay?: boolean;
|
|
10
|
+
/** 遮罩层样式类名 */
|
|
11
|
+
overlayClass?: string;
|
|
12
|
+
/** 遮罩层样式 */
|
|
13
|
+
overlayStyle?: Record<string, string>;
|
|
14
|
+
/** 是否显示关闭图标 */
|
|
15
|
+
closeable?: boolean;
|
|
16
|
+
/** 关闭图标位置 */
|
|
17
|
+
closeIconPosition?: CloseIconPosition;
|
|
18
|
+
/** 自定义关闭图标 */
|
|
19
|
+
closeIcon?: string;
|
|
20
|
+
/** 是否显示圆角 */
|
|
21
|
+
round?: boolean;
|
|
22
|
+
/** 弹出层样式 */
|
|
23
|
+
popupStyle?: Record<string, string>;
|
|
24
|
+
/** 是否点击遮罩层关闭 */
|
|
25
|
+
closeOnClickOverlay?: boolean;
|
|
26
|
+
/** 是否锁定背景滚动 */
|
|
27
|
+
lockScroll?: boolean;
|
|
28
|
+
}
|
|
29
|
+
declare function close(): void;
|
|
30
|
+
declare function open(): void;
|
|
31
|
+
declare var __VLS_16: {};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
default?: (props: typeof __VLS_16) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
36
|
+
open: typeof open;
|
|
37
|
+
close: typeof close;
|
|
38
|
+
visible: import("vue").Ref<boolean, boolean>;
|
|
39
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
40
|
+
close: () => any;
|
|
41
|
+
"update:modelValue": (value: boolean) => any;
|
|
42
|
+
open: () => any;
|
|
43
|
+
"click-overlay": () => any;
|
|
44
|
+
}, string, import("vue").PublicProps, Readonly<Props> & Readonly<{
|
|
45
|
+
onClose?: (() => any) | undefined;
|
|
46
|
+
"onUpdate:modelValue"?: ((value: boolean) => any) | undefined;
|
|
47
|
+
onOpen?: (() => any) | undefined;
|
|
48
|
+
"onClick-overlay"?: (() => any) | undefined;
|
|
49
|
+
}>, {
|
|
50
|
+
round: boolean;
|
|
51
|
+
modelValue: boolean;
|
|
52
|
+
position: PopupPosition;
|
|
53
|
+
overlay: boolean;
|
|
54
|
+
overlayClass: string;
|
|
55
|
+
overlayStyle: Record<string, string>;
|
|
56
|
+
closeable: boolean;
|
|
57
|
+
closeIconPosition: CloseIconPosition;
|
|
58
|
+
closeIcon: string;
|
|
59
|
+
popupStyle: Record<string, string>;
|
|
60
|
+
closeOnClickOverlay: boolean;
|
|
61
|
+
lockScroll: boolean;
|
|
62
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
63
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
64
|
+
export default _default;
|
|
65
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
66
|
+
new (): {
|
|
67
|
+
$slots: S;
|
|
68
|
+
};
|
|
69
|
+
};
|
|
70
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/popup/index.vue"],"names":[],"mappings":"AAyWA,KAAK,aAAa,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,CAAC;AACpE,KAAK,iBAAiB,GAAG,UAAU,GAAG,WAAW,GAAG,aAAa,GAAG,cAAc,CAAC;AAEnF,UAAU,KAAK;IACb,cAAc;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,WAAW;IACX,QAAQ,CAAC,EAAE,aAAa,CAAC;IACzB,cAAc;IACd,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,cAAc;IACd,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY;IACZ,YAAY,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtC,eAAe;IACf,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa;IACb,iBAAiB,CAAC,EAAE,iBAAiB,CAAC;IACtC,cAAc;IACd,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,aAAa;IACb,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,YAAY;IACZ,UAAU,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACpC,gBAAgB;IAChB,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;CACtB;AAgGD,iBAAS,KAAK,SAEb;AAGD,iBAAS,IAAI,SAEZ;AA8ID,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;AA4BhD,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;WA1RX,OAAO;gBAhBF,OAAO;cAET,aAAa;aAEd,OAAO;kBAEF,MAAM;kBAEN,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;eAEzB,OAAO;uBAEC,iBAAiB;eAEzB,MAAM;gBAIL,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC;yBAEb,OAAO;gBAEhB,OAAO;6EA6RpB,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,42 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 绑定值,使用 RadioGroup 时不需要单独设置 */
|
|
3
|
+
modelValue?: string | number | boolean;
|
|
4
|
+
/** Radio 的 value */
|
|
5
|
+
label?: string | number | boolean;
|
|
6
|
+
/** 是否禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 原生 name 属性 */
|
|
9
|
+
name?: string;
|
|
10
|
+
};
|
|
11
|
+
declare var __VLS_1: {};
|
|
12
|
+
type __VLS_Slots = {} & {
|
|
13
|
+
default?: (props: typeof __VLS_1) => any;
|
|
14
|
+
};
|
|
15
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
16
|
+
radioRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
17
|
+
focus: () => void;
|
|
18
|
+
blur: () => void;
|
|
19
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
20
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
21
|
+
change: (value: string | number | boolean) => any;
|
|
22
|
+
blur: (event: FocusEvent) => any;
|
|
23
|
+
focus: (event: FocusEvent) => any;
|
|
24
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
25
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
26
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
27
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
28
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
29
|
+
}>, {
|
|
30
|
+
name: string;
|
|
31
|
+
label: string | number | boolean;
|
|
32
|
+
disabled: boolean;
|
|
33
|
+
modelValue: string | number | boolean;
|
|
34
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
35
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
36
|
+
export default _default;
|
|
37
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
38
|
+
new (): {
|
|
39
|
+
$slots: S;
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
//# sourceMappingURL=button.vue.d.ts.map
|