@rft-rc/recycle-ui 0.0.3-rc.1 → 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/dist/components/button/index.d.ts.map +1 -1
- package/dist/components/button/index.vue.d.ts +7 -0
- package/dist/components/button/index.vue.d.ts.map +1 -1
- package/dist/components/calendar/index.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.map +1 -1
- package/dist/components/dropdown/index.vue.d.ts.map +1 -1
- 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.map +1 -1
- package/dist/components/input/index.d.ts.map +1 -1
- package/dist/components/input/index.vue.d.ts +22 -3
- package/dist/components/input/index.vue.d.ts.map +1 -1
- package/dist/components/popup/index.d.ts.map +1 -1
- package/dist/components/popup/index.vue.d.ts.map +1 -1
- 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/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 +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.mjs +2513 -1493
- package/dist/index.mjs.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +15 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,MAAM,MAAM,aAAa,CAAC;AAOjC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAK/B;AAGD,eAAe,MAAM,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
type ButtonType = 'default' | 'primary' | 'success' | 'warning' | 'danger';
|
|
2
2
|
type ButtonSize = 'mini' | 'small' | 'medium' | 'large';
|
|
3
3
|
type ButtonMode = 'outline' | 'text';
|
|
4
|
+
type FormType = 'submit' | 'reset' | 'button';
|
|
4
5
|
interface Props {
|
|
5
6
|
type?: ButtonType;
|
|
6
7
|
size?: ButtonSize;
|
|
@@ -17,6 +18,10 @@ interface Props {
|
|
|
17
18
|
preIcon?: string;
|
|
18
19
|
/** 后置图标名称 */
|
|
19
20
|
suffixIcon?: string;
|
|
21
|
+
/** 表单按钮类型:submit 提交表单(支持回车提交),button 提交表单(不支持回车提交),reset 重置表单 */
|
|
22
|
+
formType?: FormType;
|
|
23
|
+
/** 按钮宽度;number 表示 px,string 支持百分比等(如 '100%', '200px', '50vw') */
|
|
24
|
+
width?: number | string;
|
|
20
25
|
}
|
|
21
26
|
declare var __VLS_1: {}, __VLS_6: {}, __VLS_8: {};
|
|
22
27
|
type __VLS_Slots = {} & {
|
|
@@ -41,6 +46,8 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {}, {}, {},
|
|
|
41
46
|
loading: boolean;
|
|
42
47
|
preIcon: string;
|
|
43
48
|
suffixIcon: string;
|
|
49
|
+
formType: FormType;
|
|
50
|
+
width: number | string;
|
|
44
51
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
45
52
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
46
53
|
export default _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/button/index.vue"],"names":[],"mappings":"AA2OA,KAAK,UAAU,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,GAAG,QAAQ,CAAC;AAC3E,KAAK,UAAU,GAAG,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,OAAO,CAAC;AACxD,KAAK,UAAU,GAAG,SAAS,GAAG,MAAM,CAAC;AACrC,KAAK,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,QAAQ,CAAC;AAE9C,UAAU,KAAK;IACb,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,kCAAkC;IAClC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,sBAAsB;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IAClC,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,aAAa;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,aAAa;IACb,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,iEAAiE;IACjE,QAAQ,CAAC,EAAE,QAAQ,CAAC;IACpB,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CACzB;AA4LD,QAAA,IAAI,OAAO,IAAU,EAAE,OAAO,IAAU,EAAE,OAAO,IAAW,CAAE;AAC9D,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,OAAO,KAAK,GAAG,CAAA;CAAE,GAC5C;IAAE,UAAU,CAAC,EAAE,CAAC,KAAK,EAAE,OAAO,OAAO,KAAK,GAAG,CAAA;CAAE,CAAC;AA0BlD,QAAA,MAAM,eAAe;;;;;UA5OZ,UAAU;UADV,UAAU;WAMT,MAAM;UAHP,UAAU;WACT,OAAO;WAIP,MAAM,GAAG,MAAM,GAAG,OAAO;cACtB,OAAO;aACR,OAAO;aAEP,MAAM;gBAEH,MAAM;cAER,QAAQ;WAEX,MAAM,GAAG,MAAM;6EAmOvB,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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,QAAQ,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/calendar/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,QAAQ,MAAM,aAAa,CAAC;AAQnC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAM/B;AAED,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 绑定值,使用 CheckboxGroup 时不需要单独设置 */
|
|
3
|
+
modelValue?: string | number | boolean;
|
|
4
|
+
/** Checkbox 的 value */
|
|
5
|
+
label?: string | number | boolean;
|
|
6
|
+
/** 是否禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 原生 name 属性 */
|
|
9
|
+
name?: string;
|
|
10
|
+
/** 是否默认选中 */
|
|
11
|
+
checked?: boolean;
|
|
12
|
+
/** 选中时的值 */
|
|
13
|
+
trueLabel?: string | number;
|
|
14
|
+
/** 没有选中时的值 */
|
|
15
|
+
falseLabel?: string | number;
|
|
16
|
+
};
|
|
17
|
+
declare var __VLS_1: {};
|
|
18
|
+
type __VLS_Slots = {} & {
|
|
19
|
+
default?: (props: typeof __VLS_1) => any;
|
|
20
|
+
};
|
|
21
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
22
|
+
checkboxRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
23
|
+
focus: () => void;
|
|
24
|
+
blur: () => void;
|
|
25
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
26
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
27
|
+
change: (value: string | number | boolean) => any;
|
|
28
|
+
blur: (event: FocusEvent) => any;
|
|
29
|
+
focus: (event: FocusEvent) => any;
|
|
30
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
31
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
32
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
33
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
34
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
35
|
+
}>, {
|
|
36
|
+
name: string;
|
|
37
|
+
label: string | number | boolean;
|
|
38
|
+
disabled: boolean;
|
|
39
|
+
modelValue: string | number | boolean;
|
|
40
|
+
checked: boolean;
|
|
41
|
+
trueLabel: string | number;
|
|
42
|
+
falseLabel: string | number;
|
|
43
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
44
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
45
|
+
export default _default;
|
|
46
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
47
|
+
new (): {
|
|
48
|
+
$slots: S;
|
|
49
|
+
};
|
|
50
|
+
};
|
|
51
|
+
//# sourceMappingURL=button.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"button.vue.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/button.vue"],"names":[],"mappings":"AAgZA,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,uBAAuB;IACvB,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;IACd,aAAa;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,cAAc;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B,CAAC;AAuQF,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;AAiC/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;UAjTZ,MAAM;WAJL,MAAM,GAAG,MAAM,GAAG,OAAO;cAEtB,OAAO;gBAJL,MAAM,GAAG,MAAM,GAAG,OAAO;aAQ5B,OAAO;eAEL,MAAM,GAAG,MAAM;gBAEd,MAAM,GAAG,MAAM;6EAoT5B,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,58 @@
|
|
|
1
|
+
import { type ComputedRef } from 'vue';
|
|
2
|
+
export interface CheckboxGroupContext {
|
|
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
|
+
min?: number;
|
|
11
|
+
max?: number;
|
|
12
|
+
}
|
|
13
|
+
type __VLS_Props = {
|
|
14
|
+
/** 绑定值 */
|
|
15
|
+
modelValue?: (string | number | boolean)[];
|
|
16
|
+
/** Checkbox 按钮组尺寸,仅对按钮样式的 Checkbox 有效 */
|
|
17
|
+
size?: 'large' | 'default' | 'small';
|
|
18
|
+
/** 是否禁用 */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** 按钮形式的 Checkbox 激活时的文本颜色 */
|
|
21
|
+
textColor?: string;
|
|
22
|
+
/** 按钮形式的 Checkbox 激活时的填充色和边框色 */
|
|
23
|
+
fill?: string;
|
|
24
|
+
/** 原生 name 属性 */
|
|
25
|
+
name?: string;
|
|
26
|
+
/** 可被勾选的 checkbox 的最小数量 */
|
|
27
|
+
min?: number;
|
|
28
|
+
/** 可被勾选的 checkbox 的最大数量 */
|
|
29
|
+
max?: number;
|
|
30
|
+
};
|
|
31
|
+
declare var __VLS_1: {};
|
|
32
|
+
type __VLS_Slots = {} & {
|
|
33
|
+
default?: (props: typeof __VLS_1) => any;
|
|
34
|
+
};
|
|
35
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
36
|
+
"update:modelValue": (value: (string | number | boolean)[]) => any;
|
|
37
|
+
change: (value: (string | number | boolean)[]) => any;
|
|
38
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
39
|
+
"onUpdate:modelValue"?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
40
|
+
onChange?: ((value: (string | number | boolean)[]) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
name: string;
|
|
43
|
+
fill: string;
|
|
44
|
+
size: "large" | "default" | "small";
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
modelValue: (string | number | boolean)[];
|
|
47
|
+
min: number;
|
|
48
|
+
max: number;
|
|
49
|
+
textColor: string;
|
|
50
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
51
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
52
|
+
export default _default;
|
|
53
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
54
|
+
new (): {
|
|
55
|
+
$slots: S;
|
|
56
|
+
};
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=group.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"group.vue.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/group.vue"],"names":[],"mappings":"AAiGA,OAAO,EAAoC,KAAK,WAAW,EAAE,MAAM,KAAK,CAAC;AAIzE,MAAM,WAAW,oBAAoB;IACnC,UAAU,EAAE,WAAW,CAAC,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC,CAAC;IACvD,WAAW,EAAE,CAAC,KAAK,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,KAAK,IAAI,CAAC;IAC5D,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;IACnB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED,KAAK,WAAW,GAAG;IACjB,UAAU;IACV,UAAU,CAAC,EAAE,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE,CAAC;IAC3C,yCAAyC;IACzC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACrC,WAAW;IACX,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,8BAA8B;IAC9B,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,iCAAiC;IACjC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,2BAA2B;IAC3B,GAAG,CAAC,EAAE,MAAM,CAAC;CACd,CAAC;AA4EF,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;;;;;;;UAxGZ,MAAM;UAFN,MAAM;UANN,OAAO,GAAG,SAAS,GAAG,OAAO;cAEzB,OAAO;gBAJL,CAAC,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,EAAE;SAYpC,MAAM;SAEN,MAAM;eARA,MAAM;6EAoHlB,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 Checkbox from './index.vue';
|
|
3
|
+
import CheckboxGroup from './group.vue';
|
|
4
|
+
import CheckboxButton from './button.vue';
|
|
5
|
+
export declare function install(app: App): App<any>;
|
|
6
|
+
export { CheckboxGroup, CheckboxButton };
|
|
7
|
+
export default Checkbox;
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,QAAQ,MAAM,aAAa,CAAC;AACnC,OAAO,aAAa,MAAM,aAAa,CAAC;AACxC,OAAO,cAAc,MAAM,cAAc,CAAC;AAM1C,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAQ/B;AAED,OAAO,EAAE,aAAa,EAAE,cAAc,EAAE,CAAC;AACzC,eAAe,QAAQ,CAAC"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
type __VLS_Props = {
|
|
2
|
+
/** 绑定值,使用 CheckboxGroup 时不需要单独设置 */
|
|
3
|
+
modelValue?: string | number | boolean;
|
|
4
|
+
/** Checkbox 的 value */
|
|
5
|
+
label?: string | number | boolean;
|
|
6
|
+
/** 是否禁用 */
|
|
7
|
+
disabled?: boolean;
|
|
8
|
+
/** 是否显示边框 */
|
|
9
|
+
border?: boolean;
|
|
10
|
+
/** Checkbox 的尺寸,仅在 border 为真时有效 */
|
|
11
|
+
size?: 'large' | 'default' | 'small';
|
|
12
|
+
/** 原生 name 属性 */
|
|
13
|
+
name?: string;
|
|
14
|
+
/** 设置 indeterminate 状态,只负责样式控制 */
|
|
15
|
+
indeterminate?: boolean;
|
|
16
|
+
/** 是否默认选中 */
|
|
17
|
+
checked?: boolean;
|
|
18
|
+
/** 选中时的值 */
|
|
19
|
+
trueLabel?: string | number;
|
|
20
|
+
/** 没有选中时的值 */
|
|
21
|
+
falseLabel?: string | number;
|
|
22
|
+
};
|
|
23
|
+
declare var __VLS_4: {};
|
|
24
|
+
type __VLS_Slots = {} & {
|
|
25
|
+
default?: (props: typeof __VLS_4) => any;
|
|
26
|
+
};
|
|
27
|
+
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {
|
|
28
|
+
checkboxRef: import("vue").Ref<HTMLInputElement | undefined, HTMLInputElement | undefined>;
|
|
29
|
+
focus: () => void;
|
|
30
|
+
blur: () => void;
|
|
31
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {} & {
|
|
32
|
+
"update:modelValue": (value: string | number | boolean) => any;
|
|
33
|
+
change: (value: string | number | boolean) => any;
|
|
34
|
+
blur: (event: FocusEvent) => any;
|
|
35
|
+
focus: (event: FocusEvent) => any;
|
|
36
|
+
}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
|
|
37
|
+
"onUpdate:modelValue"?: ((value: string | number | boolean) => any) | undefined;
|
|
38
|
+
onChange?: ((value: string | number | boolean) => any) | undefined;
|
|
39
|
+
onBlur?: ((event: FocusEvent) => any) | undefined;
|
|
40
|
+
onFocus?: ((event: FocusEvent) => any) | undefined;
|
|
41
|
+
}>, {
|
|
42
|
+
name: string;
|
|
43
|
+
size: "large" | "default" | "small";
|
|
44
|
+
label: string | number | boolean;
|
|
45
|
+
disabled: boolean;
|
|
46
|
+
modelValue: string | number | boolean;
|
|
47
|
+
border: boolean;
|
|
48
|
+
indeterminate: boolean;
|
|
49
|
+
checked: boolean;
|
|
50
|
+
trueLabel: string | number;
|
|
51
|
+
falseLabel: string | number;
|
|
52
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
53
|
+
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
54
|
+
export default _default;
|
|
55
|
+
type __VLS_WithSlots<T, S> = T & {
|
|
56
|
+
new (): {
|
|
57
|
+
$slots: S;
|
|
58
|
+
};
|
|
59
|
+
};
|
|
60
|
+
//# sourceMappingURL=index.vue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/checkbox/index.vue"],"names":[],"mappings":"AAweA,KAAK,WAAW,GAAG;IACjB,oCAAoC;IACpC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC;IACvC,uBAAuB;IACvB,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,mCAAmC;IACnC,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC;IACrC,iBAAiB;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,kCAAkC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,aAAa;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,YAAY;IACZ,SAAS,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IAC5B,cAAc;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;CAC9B,CAAC;AAyRF,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;AA+B/C,QAAA,MAAM,eAAe;;;;;;;;;;;;;;;UAnUZ,MAAM;UAFN,OAAO,GAAG,SAAS,GAAG,OAAO;WAN5B,MAAM,GAAG,MAAM,GAAG,OAAO;cAEtB,OAAO;gBAJL,MAAM,GAAG,MAAM,GAAG,OAAO;YAM7B,OAAO;mBAMA,OAAO;aAEb,OAAO;eAEL,MAAM,GAAG,MAAM;gBAEd,MAAM,GAAG,MAAM;6EAoU5B,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"}
|
|
@@ -7,6 +7,7 @@ export declare const RcDescriptions: {
|
|
|
7
7
|
column?: number | string;
|
|
8
8
|
gap?: number | string;
|
|
9
9
|
labelWidth?: number | string | "";
|
|
10
|
+
labelPosition?: "left" | "top";
|
|
10
11
|
data?: Array<Record<string, any>>;
|
|
11
12
|
keyMap?: {
|
|
12
13
|
key: string;
|
|
@@ -15,6 +16,7 @@ export declare const RcDescriptions: {
|
|
|
15
16
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
16
17
|
data: Array<Record<string, any>>;
|
|
17
18
|
labelWidth: number | string | "";
|
|
19
|
+
labelPosition: "left" | "top";
|
|
18
20
|
column: number | string;
|
|
19
21
|
gap: number | string;
|
|
20
22
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
@@ -29,6 +31,7 @@ export declare const RcDescriptions: {
|
|
|
29
31
|
column?: number | string;
|
|
30
32
|
gap?: number | string;
|
|
31
33
|
labelWidth?: number | string | "";
|
|
34
|
+
labelPosition?: "left" | "top";
|
|
32
35
|
data?: Array<Record<string, any>>;
|
|
33
36
|
keyMap?: {
|
|
34
37
|
key: string;
|
|
@@ -37,6 +40,7 @@ export declare const RcDescriptions: {
|
|
|
37
40
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
38
41
|
data: Array<Record<string, any>>;
|
|
39
42
|
labelWidth: number | string | "";
|
|
43
|
+
labelPosition: "left" | "top";
|
|
40
44
|
column: number | string;
|
|
41
45
|
gap: number | string;
|
|
42
46
|
}>;
|
|
@@ -48,6 +52,7 @@ export declare const RcDescriptions: {
|
|
|
48
52
|
column?: number | string;
|
|
49
53
|
gap?: number | string;
|
|
50
54
|
labelWidth?: number | string | "";
|
|
55
|
+
labelPosition?: "left" | "top";
|
|
51
56
|
data?: Array<Record<string, any>>;
|
|
52
57
|
keyMap?: {
|
|
53
58
|
key: string;
|
|
@@ -56,6 +61,7 @@ export declare const RcDescriptions: {
|
|
|
56
61
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
57
62
|
data: Array<Record<string, any>>;
|
|
58
63
|
labelWidth: number | string | "";
|
|
64
|
+
labelPosition: "left" | "top";
|
|
59
65
|
column: number | string;
|
|
60
66
|
gap: number | string;
|
|
61
67
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
@@ -71,11 +77,13 @@ export declare const RcDescriptionsItem: {
|
|
|
71
77
|
value?: any;
|
|
72
78
|
labelWidth?: string | number;
|
|
73
79
|
span?: number | string;
|
|
80
|
+
labelPosition?: "left" | "top";
|
|
74
81
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
|
|
75
82
|
label: string | number;
|
|
76
83
|
span: number | string;
|
|
77
84
|
value: any;
|
|
78
85
|
labelWidth: string | number;
|
|
86
|
+
labelPosition: "left" | "top";
|
|
79
87
|
}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
|
|
80
88
|
P: {};
|
|
81
89
|
B: {};
|
|
@@ -88,11 +96,13 @@ export declare const RcDescriptionsItem: {
|
|
|
88
96
|
value?: any;
|
|
89
97
|
labelWidth?: string | number;
|
|
90
98
|
span?: number | string;
|
|
99
|
+
labelPosition?: "left" | "top";
|
|
91
100
|
}> & Readonly<{}>, {}, {}, {}, {}, {
|
|
92
101
|
label: string | number;
|
|
93
102
|
span: number | string;
|
|
94
103
|
value: any;
|
|
95
104
|
labelWidth: string | number;
|
|
105
|
+
labelPosition: "left" | "top";
|
|
96
106
|
}>;
|
|
97
107
|
__isFragment?: never;
|
|
98
108
|
__isTeleport?: never;
|
|
@@ -102,11 +112,13 @@ export declare const RcDescriptionsItem: {
|
|
|
102
112
|
value?: any;
|
|
103
113
|
labelWidth?: string | number;
|
|
104
114
|
span?: number | string;
|
|
115
|
+
labelPosition?: "left" | "top";
|
|
105
116
|
}> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
|
|
106
117
|
label: string | number;
|
|
107
118
|
span: number | string;
|
|
108
119
|
value: any;
|
|
109
120
|
labelWidth: string | number;
|
|
121
|
+
labelPosition: "left" | "top";
|
|
110
122
|
}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
111
123
|
$slots: {
|
|
112
124
|
label?: (props: {}) => any;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,YAAY,MAAM,aAAa,CAAC;AAMvC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAO/B;AAED,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC;AAC/B,OAAO,YAAY,MAAM,aAAa,CAAC;AAMvC,wBAAgB,OAAO,CAAC,GAAG,EAAE,GAAG,YAO/B;AAED,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAe,CAAC;AAC3C,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAmB,CAAC;AAEnD,eAAe,YAAY,CAAC"}
|
|
@@ -10,6 +10,8 @@ type __VLS_Props = {
|
|
|
10
10
|
gap?: number | string;
|
|
11
11
|
/** label 固定宽度,数字代表 px,也可直接传入 '120px' */
|
|
12
12
|
labelWidth?: number | string | '';
|
|
13
|
+
/** 标签位置,left 左侧,top 顶部 */
|
|
14
|
+
labelPosition?: 'left' | 'top';
|
|
13
15
|
/** 直接通过数据渲染 */
|
|
14
16
|
data?: Array<Record<string, any>>;
|
|
15
17
|
/** data 的字段映射,如 { key: 'label', value: 'value' } */
|
|
@@ -24,6 +26,7 @@ type __VLS_Slots = {} & {
|
|
|
24
26
|
declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {
|
|
25
27
|
data: Array<Record<string, any>>;
|
|
26
28
|
labelWidth: number | string | "";
|
|
29
|
+
labelPosition: "left" | "top";
|
|
27
30
|
column: number | string;
|
|
28
31
|
gap: number | string;
|
|
29
32
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.vue"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/descriptions/index.vue"],"names":[],"mappings":"AAgIA,KAAK,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAE7C,KAAK,WAAW,GAAG;IACjB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,yBAAyB;IACzB,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACzB,kCAAkC;IAClC,GAAG,CAAC,EAAE,MAAM,GAAG,MAAM,CAAC;IACtB,wCAAwC;IACxC,UAAU,CAAC,EAAE,MAAM,GAAG,MAAM,GAAG,EAAE,CAAC;IAClC,0BAA0B;IAC1B,aAAa,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IAC/B,eAAe;IACf,IAAI,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC,CAAC;IAClC,oDAAoD;IACpD,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB,CAAC;AA0HF,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;AAyB/C,QAAA,MAAM,eAAe;UAzJZ,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,CAAC;gBAJpB,MAAM,GAAG,MAAM,GAAG,EAAE;mBAEjB,MAAM,GAAG,KAAK;YANrB,MAAM,GAAG,MAAM;SAElB,MAAM,GAAG,MAAM;6EAsKrB,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"}
|
|
@@ -4,6 +4,8 @@ type __VLS_Props = {
|
|
|
4
4
|
labelWidth?: string | number;
|
|
5
5
|
/** 跨越的列数,默认 1,可传字符串数字 */
|
|
6
6
|
span?: number | string;
|
|
7
|
+
/** 标签位置,left 左侧,top 顶部。优先级高于父组件的 label-position */
|
|
8
|
+
labelPosition?: 'left' | 'top';
|
|
7
9
|
};
|
|
8
10
|
declare var __VLS_1: {}, __VLS_3: {};
|
|
9
11
|
type __VLS_Slots = {} & {
|
|
@@ -16,6 +18,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_Props, {}, {}
|
|
|
16
18
|
span: number | string;
|
|
17
19
|
value: any;
|
|
18
20
|
labelWidth: string | number;
|
|
21
|
+
labelPosition: "left" | "top";
|
|
19
22
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
20
23
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
21
24
|
export default _default;
|
|
@@ -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"}
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../src/components/dropdown/index.vue"],"names":[],"mappings":"
|
|
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,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":"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"}
|
|
@@ -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"}
|
|
@@ -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"}
|
|
@@ -1 +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;
|
|
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"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
type InputValue = string | number | null | undefined;
|
|
2
2
|
type InputSize = 'large' | 'default' | 'small';
|
|
3
|
+
type InputType = 'text' | 'textarea' | 'password' | 'number';
|
|
3
4
|
type AutosizeConfig = boolean | {
|
|
4
5
|
minRows?: number;
|
|
5
6
|
maxRows?: number;
|
|
@@ -8,8 +9,8 @@ type DeviceType = 'pc' | 'mobile';
|
|
|
8
9
|
interface Props {
|
|
9
10
|
/** 双向绑定值 */
|
|
10
11
|
modelValue?: InputValue;
|
|
11
|
-
/**
|
|
12
|
-
type?:
|
|
12
|
+
/** 输入框类型:'text' 文本输入(默认)、'textarea' 文本域、'password' 密码输入、'number' 数字输入 */
|
|
13
|
+
type?: InputType;
|
|
13
14
|
/** 尺寸 */
|
|
14
15
|
size?: InputSize;
|
|
15
16
|
/** 占位符 */
|
|
@@ -54,6 +55,18 @@ interface Props {
|
|
|
54
55
|
parser?: (value: string) => string;
|
|
55
56
|
/** 设备类型,'pc' | 'mobile',默认从全局配置读取,全局配置默认为 'pc' */
|
|
56
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;
|
|
57
70
|
}
|
|
58
71
|
declare function resizeTextarea(): void;
|
|
59
72
|
declare function focus(): void;
|
|
@@ -106,7 +119,7 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
106
119
|
}>, {
|
|
107
120
|
name: string;
|
|
108
121
|
size: InputSize;
|
|
109
|
-
type:
|
|
122
|
+
type: InputType;
|
|
110
123
|
form: string;
|
|
111
124
|
disabled: boolean;
|
|
112
125
|
suffixIcon: string;
|
|
@@ -128,6 +141,12 @@ declare const __VLS_component: import("vue").DefineComponent<Props, {
|
|
|
128
141
|
tabindex: string | number;
|
|
129
142
|
parser: (value: string) => string;
|
|
130
143
|
deviceType: DeviceType;
|
|
144
|
+
min: number;
|
|
145
|
+
max: number;
|
|
146
|
+
step: number;
|
|
147
|
+
precision: number;
|
|
148
|
+
controls: boolean;
|
|
149
|
+
useGrouping: boolean;
|
|
131
150
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
|
|
132
151
|
declare const _default: __VLS_WithSlots<typeof __VLS_component, __VLS_Slots>;
|
|
133
152
|
export default _default;
|