@a2simcode/ui 0.0.3 → 0.0.5
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/LICENSE +53 -53
- package/README.md +130 -129
- package/dist/components/autocomplete/index.d.ts +118 -0
- package/dist/components/autocomplete/src/autocomplete.vue.d.ts +109 -0
- package/dist/components/barcode/index.d.ts +114 -0
- package/dist/components/barcode/src/barcode.vue.d.ts +101 -0
- package/dist/components/button/index.d.ts +278 -0
- package/dist/components/button/src/button.vue.d.ts +268 -0
- package/dist/components/buttons/index.d.ts +81 -0
- package/dist/components/buttons/src/index.vue.d.ts +76 -0
- package/dist/components/buttons/src/interface.d.ts +128 -0
- package/dist/components/buttons/src/useButtons.d.ts +4 -0
- package/dist/components/cascader-select/index.d.ts +142 -0
- package/dist/components/cascader-select/src/cascader-select.vue.d.ts +128 -0
- package/dist/components/checkbox/index.d.ts +73 -0
- package/dist/components/checkbox/src/checkbox.vue.d.ts +55 -0
- package/dist/components/code-mirror/index.d.ts +74 -0
- package/dist/components/code-mirror/src/code-mirror.vue.d.ts +45 -0
- package/dist/components/comp/index.d.ts +157 -0
- package/dist/components/comp/src/comp.vue.d.ts +164 -0
- package/dist/components/dialog/index.d.ts +416 -0
- package/dist/components/dialog/src/index.vue.d.ts +404 -0
- package/dist/components/dialog-full/index.d.ts +311 -0
- package/dist/components/dialog-full/src/index.vue.d.ts +287 -0
- package/dist/components/drawer/index.d.ts +335 -0
- package/dist/components/drawer/src/drawer.vue.d.ts +337 -0
- package/dist/components/dynamic-layer/index.d.ts +25 -0
- package/dist/components/dynamic-layer/src/dynamic-layer.vue.d.ts +8 -0
- package/dist/components/dynamic-layer/src/interface.d.ts +66 -0
- package/dist/components/echarts/index.d.ts +177 -0
- package/dist/components/echarts/src/echarts.vue.d.ts +118 -0
- package/dist/components/form/index.d.ts +194 -0
- package/dist/components/form/src/form.vue.d.ts +106 -0
- package/dist/components/form/src/interface.d.ts +138 -0
- package/dist/components/form/src/useForm/index.d.ts +9 -0
- package/dist/components/form/src/useForm/interface.d.ts +170 -0
- package/dist/components/form/src/useForm/validateUtil.d.ts +5 -0
- package/dist/components/form-item/index.d.ts +112 -0
- package/dist/components/form-item/src/form-item.vue.d.ts +97 -0
- package/dist/components/icon/index.d.ts +31 -0
- package/dist/components/icon/src/icon.vue.d.ts +33 -0
- package/dist/components/index.d.ts +35 -0
- package/dist/components/input/index.d.ts +111 -0
- package/dist/components/input/src/input.vue.d.ts +110 -0
- package/dist/components/input-tag/index.d.ts +75 -0
- package/dist/components/input-tag/src/input-tag.vue.d.ts +40 -0
- package/dist/components/layer/index.d.ts +284 -0
- package/dist/components/layer/src/layer.vue.d.ts +263 -0
- package/dist/components/layout/__tests__/layout.test.d.ts +1 -0
- package/dist/components/layout/index.d.ts +173 -0
- package/dist/components/layout/src/layout.vue.d.ts +187 -0
- package/dist/components/number/index.d.ts +85 -0
- package/dist/components/number/src/number.vue.d.ts +78 -0
- package/dist/components/page/index.d.ts +67 -0
- package/dist/components/page/src/interface.d.ts +22 -0
- package/dist/components/page/src/page.vue.d.ts +52 -0
- package/dist/components/radio/index.d.ts +152 -0
- package/dist/components/radio/src/radio.vue.d.ts +123 -0
- package/dist/components/rate/index.d.ts +71 -0
- package/dist/components/rate/src/rate.vue.d.ts +42 -0
- package/dist/components/select/index.d.ts +88 -0
- package/dist/components/select/src/select.vue.d.ts +75 -0
- package/dist/components/slider/index.d.ts +89 -0
- package/dist/components/slider/src/slider.vue.d.ts +76 -0
- package/dist/components/table/index.d.ts +160 -0
- package/dist/components/table/src/table.vue.d.ts +143 -0
- package/dist/components/upload/index.d.ts +405 -0
- package/dist/components/upload/src/list.vue.d.ts +103 -0
- package/dist/components/upload/src/upload.vue.d.ts +367 -0
- package/dist/components/upload/src/utils.d.ts +2 -0
- package/dist/{utils → components/utils}/index.d.ts +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/utils/cipher.d.ts +21 -0
- package/dist/core/utils/common.d.ts +41 -0
- package/dist/core/utils/comp.d.ts +9 -0
- package/dist/core/utils/date.d.ts +3 -0
- package/dist/core/utils/dom.d.ts +4 -0
- package/dist/core/utils/index.d.ts +6 -0
- package/dist/core/utils/is.d.ts +2 -0
- package/dist/index.d.ts +6 -8
- package/dist/simcode-ui.es.js +5027 -87
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +4949 -0
- package/dist/ui.css +1 -0
- package/package.json +50 -36
- package/dist/button/index.d.ts +0 -192
- package/dist/button/src/button.vue.d.ts +0 -76
- package/dist/input/index.d.ts +0 -167
- package/dist/input/src/input.vue.d.ts +0 -64
- package/dist/style.css +0 -1
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
export interface NumberProps {
|
|
2
|
+
/** 绑定值 */
|
|
3
|
+
modelValue?: number;
|
|
4
|
+
/** 设置计数器允许的最小值 */
|
|
5
|
+
min?: number;
|
|
6
|
+
/** 设置计数器允许的最大值 */
|
|
7
|
+
max?: number;
|
|
8
|
+
/** 计数器步长 */
|
|
9
|
+
step?: number;
|
|
10
|
+
/** 是否只能输入 step 的倍数 */
|
|
11
|
+
stepStrictly?: boolean;
|
|
12
|
+
/** 数值精度 */
|
|
13
|
+
precision?: number;
|
|
14
|
+
/** 计数器尺寸 */
|
|
15
|
+
size?: 'large' | 'default' | 'small';
|
|
16
|
+
/** 原生 readonly 属性,是否只读 */
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
/** 是否禁用状态 */
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
/** 是否使用控制按钮 */
|
|
21
|
+
controls?: boolean;
|
|
22
|
+
/** 控制按钮位置 */
|
|
23
|
+
controlsPosition?: string;
|
|
24
|
+
/** 等价于原生 input aria-label 属性 */
|
|
25
|
+
ariaLabel?: string;
|
|
26
|
+
/** 等价于原生 input placeholder 属性 */
|
|
27
|
+
placeholder?: string;
|
|
28
|
+
/** 等价于原生 input id 属性 */
|
|
29
|
+
id?: string;
|
|
30
|
+
/** 当输入框被清空时显示的值 */
|
|
31
|
+
valueOnClear?: number | null | '';
|
|
32
|
+
/** 是否触发表单验证 */
|
|
33
|
+
validateEvent?: boolean;
|
|
34
|
+
/** 等价于原生 input aria-label 属性 */
|
|
35
|
+
label?: string;
|
|
36
|
+
/** 等价于原生 input inputmode 属性 */
|
|
37
|
+
inputmode?: string;
|
|
38
|
+
/** 内部输入文本对齐 */
|
|
39
|
+
align?: 'left' | 'center' | 'right';
|
|
40
|
+
/** 禁用科学计数法的输入(例如输入 'e') */
|
|
41
|
+
disabledScientific?: boolean;
|
|
42
|
+
/** 输入框头部内容 */
|
|
43
|
+
prefix?: string;
|
|
44
|
+
/** 输入框尾部内容 */
|
|
45
|
+
suffix?: string;
|
|
46
|
+
/** 自定义输入框按钮减少图标 */
|
|
47
|
+
decreaseIcon?: string;
|
|
48
|
+
/** 自定义输入框按钮增加图标 */
|
|
49
|
+
increaseIcon?: string;
|
|
50
|
+
}
|
|
51
|
+
declare const _default: import('vue').DefineComponent<NumberProps, {
|
|
52
|
+
blur: () => void;
|
|
53
|
+
focus: () => void;
|
|
54
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
55
|
+
focus: () => any;
|
|
56
|
+
blur: () => any;
|
|
57
|
+
"update:modelValue": (value: number | undefined) => any;
|
|
58
|
+
change: (value: number) => any;
|
|
59
|
+
}, string, import('vue').PublicProps, Readonly<NumberProps> & Readonly<{
|
|
60
|
+
onFocus?: (() => any) | undefined;
|
|
61
|
+
onBlur?: (() => any) | undefined;
|
|
62
|
+
"onUpdate:modelValue"?: ((value: number | undefined) => any) | undefined;
|
|
63
|
+
onChange?: ((value: number) => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
size: "large" | "default" | "small";
|
|
66
|
+
disabled: boolean;
|
|
67
|
+
readonly: boolean;
|
|
68
|
+
placeholder: string;
|
|
69
|
+
step: number;
|
|
70
|
+
validateEvent: boolean;
|
|
71
|
+
stepStrictly: boolean;
|
|
72
|
+
controls: boolean;
|
|
73
|
+
align: "left" | "center" | "right";
|
|
74
|
+
disabledScientific: boolean;
|
|
75
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
76
|
+
inputNumberRef: unknown;
|
|
77
|
+
}, any>;
|
|
78
|
+
export default _default;
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
export declare const JPage: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
schema: {
|
|
4
|
+
type: import('vue').PropType<import('./src/interface').PageSchemaConfig[]>;
|
|
5
|
+
default: () => never[];
|
|
6
|
+
};
|
|
7
|
+
noPadding: {
|
|
8
|
+
type: BooleanConstructor;
|
|
9
|
+
deflaut: boolean;
|
|
10
|
+
};
|
|
11
|
+
actions: {
|
|
12
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
13
|
+
default: () => {};
|
|
14
|
+
};
|
|
15
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
16
|
+
schema: import('./src/interface').PageSchemaConfig[];
|
|
17
|
+
noPadding: boolean;
|
|
18
|
+
actions: Record<string, any>;
|
|
19
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, HTMLDivElement, import('vue').ComponentProvideOptions, {
|
|
20
|
+
P: {};
|
|
21
|
+
B: {};
|
|
22
|
+
D: {};
|
|
23
|
+
C: {};
|
|
24
|
+
M: {};
|
|
25
|
+
Defaults: {};
|
|
26
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
27
|
+
schema: {
|
|
28
|
+
type: import('vue').PropType<import('./src/interface').PageSchemaConfig[]>;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
noPadding: {
|
|
32
|
+
type: BooleanConstructor;
|
|
33
|
+
deflaut: boolean;
|
|
34
|
+
};
|
|
35
|
+
actions: {
|
|
36
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
37
|
+
default: () => {};
|
|
38
|
+
};
|
|
39
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
40
|
+
schema: import('./src/interface').PageSchemaConfig[];
|
|
41
|
+
noPadding: boolean;
|
|
42
|
+
actions: Record<string, any>;
|
|
43
|
+
}>;
|
|
44
|
+
__isFragment?: never;
|
|
45
|
+
__isTeleport?: never;
|
|
46
|
+
__isSuspense?: never;
|
|
47
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
48
|
+
schema: {
|
|
49
|
+
type: import('vue').PropType<import('./src/interface').PageSchemaConfig[]>;
|
|
50
|
+
default: () => never[];
|
|
51
|
+
};
|
|
52
|
+
noPadding: {
|
|
53
|
+
type: BooleanConstructor;
|
|
54
|
+
deflaut: boolean;
|
|
55
|
+
};
|
|
56
|
+
actions: {
|
|
57
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
58
|
+
default: () => {};
|
|
59
|
+
};
|
|
60
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
61
|
+
schema: import('./src/interface').PageSchemaConfig[];
|
|
62
|
+
noPadding: boolean;
|
|
63
|
+
actions: Record<string, any>;
|
|
64
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
65
|
+
install: (app: import('vue').App) => void;
|
|
66
|
+
};
|
|
67
|
+
export default JPage;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export interface PageSchemaConfig {
|
|
2
|
+
/**
|
|
3
|
+
* @zh id
|
|
4
|
+
*/
|
|
5
|
+
id?: string;
|
|
6
|
+
/**
|
|
7
|
+
* @zh 类型
|
|
8
|
+
*/
|
|
9
|
+
type: string;
|
|
10
|
+
/**
|
|
11
|
+
* @zh 插槽名称
|
|
12
|
+
*/
|
|
13
|
+
slot?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @zh 配置信息
|
|
16
|
+
*/
|
|
17
|
+
config?: Record<string, any>;
|
|
18
|
+
/**
|
|
19
|
+
* @zh 子集
|
|
20
|
+
*/
|
|
21
|
+
children?: PageSchemaConfig[];
|
|
22
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { PageSchemaConfig } from './interface';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
/**
|
|
5
|
+
* @zh 模版
|
|
6
|
+
*/
|
|
7
|
+
schema: {
|
|
8
|
+
type: PropType<PageSchemaConfig[]>;
|
|
9
|
+
default: () => never[];
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @zh 是否有边距
|
|
13
|
+
*/
|
|
14
|
+
noPadding: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
deflaut: boolean;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @zh 事件编排执行动作
|
|
20
|
+
*/
|
|
21
|
+
actions: {
|
|
22
|
+
type: PropType<Record<string, any>>;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
26
|
+
/**
|
|
27
|
+
* @zh 模版
|
|
28
|
+
*/
|
|
29
|
+
schema: {
|
|
30
|
+
type: PropType<PageSchemaConfig[]>;
|
|
31
|
+
default: () => never[];
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* @zh 是否有边距
|
|
35
|
+
*/
|
|
36
|
+
noPadding: {
|
|
37
|
+
type: BooleanConstructor;
|
|
38
|
+
deflaut: boolean;
|
|
39
|
+
};
|
|
40
|
+
/**
|
|
41
|
+
* @zh 事件编排执行动作
|
|
42
|
+
*/
|
|
43
|
+
actions: {
|
|
44
|
+
type: PropType<Record<string, any>>;
|
|
45
|
+
default: () => {};
|
|
46
|
+
};
|
|
47
|
+
}>> & Readonly<{}>, {
|
|
48
|
+
schema: PageSchemaConfig[];
|
|
49
|
+
noPadding: boolean;
|
|
50
|
+
actions: Record<string, any>;
|
|
51
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
52
|
+
export default _default;
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
declare const JRadio: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: import('vue').PropType<string>;
|
|
5
|
+
default: undefined;
|
|
6
|
+
};
|
|
7
|
+
options: {
|
|
8
|
+
type: import('vue').PropType<{
|
|
9
|
+
label: string;
|
|
10
|
+
value: string;
|
|
11
|
+
color?: string;
|
|
12
|
+
}[]>;
|
|
13
|
+
default: () => never[];
|
|
14
|
+
};
|
|
15
|
+
size: {
|
|
16
|
+
type: import('vue').PropType<"large" | "default" | "small">;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
isButton: {
|
|
20
|
+
type: BooleanConstructor;
|
|
21
|
+
default: boolean;
|
|
22
|
+
};
|
|
23
|
+
isColor: {
|
|
24
|
+
type: BooleanConstructor;
|
|
25
|
+
default: boolean;
|
|
26
|
+
};
|
|
27
|
+
colors: {
|
|
28
|
+
type: import('vue').PropType<string[]>;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
readonly: BooleanConstructor;
|
|
32
|
+
}>> & Readonly<{
|
|
33
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
|
+
"update:modelValue": (...args: any[]) => void;
|
|
36
|
+
}, import('vue').PublicProps, {
|
|
37
|
+
size: "small" | "default" | "large";
|
|
38
|
+
readonly: boolean;
|
|
39
|
+
modelValue: string;
|
|
40
|
+
options: {
|
|
41
|
+
label: string;
|
|
42
|
+
value: string;
|
|
43
|
+
color?: string;
|
|
44
|
+
}[];
|
|
45
|
+
isButton: boolean;
|
|
46
|
+
isColor: boolean;
|
|
47
|
+
colors: string[];
|
|
48
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
49
|
+
P: {};
|
|
50
|
+
B: {};
|
|
51
|
+
D: {};
|
|
52
|
+
C: {};
|
|
53
|
+
M: {};
|
|
54
|
+
Defaults: {};
|
|
55
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
56
|
+
modelValue: {
|
|
57
|
+
type: import('vue').PropType<string>;
|
|
58
|
+
default: undefined;
|
|
59
|
+
};
|
|
60
|
+
options: {
|
|
61
|
+
type: import('vue').PropType<{
|
|
62
|
+
label: string;
|
|
63
|
+
value: string;
|
|
64
|
+
color?: string;
|
|
65
|
+
}[]>;
|
|
66
|
+
default: () => never[];
|
|
67
|
+
};
|
|
68
|
+
size: {
|
|
69
|
+
type: import('vue').PropType<"large" | "default" | "small">;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
isButton: {
|
|
73
|
+
type: BooleanConstructor;
|
|
74
|
+
default: boolean;
|
|
75
|
+
};
|
|
76
|
+
isColor: {
|
|
77
|
+
type: BooleanConstructor;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
colors: {
|
|
81
|
+
type: import('vue').PropType<string[]>;
|
|
82
|
+
default: () => never[];
|
|
83
|
+
};
|
|
84
|
+
readonly: BooleanConstructor;
|
|
85
|
+
}>> & Readonly<{
|
|
86
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
87
|
+
}>, {}, {}, {}, {}, {
|
|
88
|
+
size: "small" | "default" | "large";
|
|
89
|
+
readonly: boolean;
|
|
90
|
+
modelValue: string;
|
|
91
|
+
options: {
|
|
92
|
+
label: string;
|
|
93
|
+
value: string;
|
|
94
|
+
color?: string;
|
|
95
|
+
}[];
|
|
96
|
+
isButton: boolean;
|
|
97
|
+
isColor: boolean;
|
|
98
|
+
colors: string[];
|
|
99
|
+
}>;
|
|
100
|
+
__isFragment?: never;
|
|
101
|
+
__isTeleport?: never;
|
|
102
|
+
__isSuspense?: never;
|
|
103
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
104
|
+
modelValue: {
|
|
105
|
+
type: import('vue').PropType<string>;
|
|
106
|
+
default: undefined;
|
|
107
|
+
};
|
|
108
|
+
options: {
|
|
109
|
+
type: import('vue').PropType<{
|
|
110
|
+
label: string;
|
|
111
|
+
value: string;
|
|
112
|
+
color?: string;
|
|
113
|
+
}[]>;
|
|
114
|
+
default: () => never[];
|
|
115
|
+
};
|
|
116
|
+
size: {
|
|
117
|
+
type: import('vue').PropType<"large" | "default" | "small">;
|
|
118
|
+
default: string;
|
|
119
|
+
};
|
|
120
|
+
isButton: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
isColor: {
|
|
125
|
+
type: BooleanConstructor;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
128
|
+
colors: {
|
|
129
|
+
type: import('vue').PropType<string[]>;
|
|
130
|
+
default: () => never[];
|
|
131
|
+
};
|
|
132
|
+
readonly: BooleanConstructor;
|
|
133
|
+
}>> & Readonly<{
|
|
134
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
135
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
136
|
+
"update:modelValue": (...args: any[]) => void;
|
|
137
|
+
}, string, {
|
|
138
|
+
size: "small" | "default" | "large";
|
|
139
|
+
readonly: boolean;
|
|
140
|
+
modelValue: string;
|
|
141
|
+
options: {
|
|
142
|
+
label: string;
|
|
143
|
+
value: string;
|
|
144
|
+
color?: string;
|
|
145
|
+
}[];
|
|
146
|
+
isButton: boolean;
|
|
147
|
+
isColor: boolean;
|
|
148
|
+
colors: string[];
|
|
149
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
150
|
+
install: (app: import('vue').App) => void;
|
|
151
|
+
};
|
|
152
|
+
export default JRadio;
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
3
|
+
/**
|
|
4
|
+
* @zh 输入值
|
|
5
|
+
* @vModel
|
|
6
|
+
*/
|
|
7
|
+
modelValue: {
|
|
8
|
+
type: PropType<string>;
|
|
9
|
+
default: undefined;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @zh 选项列表
|
|
13
|
+
*/
|
|
14
|
+
options: {
|
|
15
|
+
type: PropType<{
|
|
16
|
+
label: string;
|
|
17
|
+
value: string;
|
|
18
|
+
color?: string;
|
|
19
|
+
}[]>;
|
|
20
|
+
default: () => never[];
|
|
21
|
+
};
|
|
22
|
+
/**
|
|
23
|
+
* @zh 尺寸
|
|
24
|
+
*/
|
|
25
|
+
size: {
|
|
26
|
+
type: PropType<"large" | "default" | "small">;
|
|
27
|
+
default: string;
|
|
28
|
+
};
|
|
29
|
+
/**
|
|
30
|
+
* @zh 是否为按钮样式
|
|
31
|
+
*/
|
|
32
|
+
isButton: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* @zh 是否显示颜色,
|
|
38
|
+
*/
|
|
39
|
+
isColor: {
|
|
40
|
+
type: BooleanConstructor;
|
|
41
|
+
default: boolean;
|
|
42
|
+
};
|
|
43
|
+
/**
|
|
44
|
+
* @zh 颜色列表
|
|
45
|
+
*/
|
|
46
|
+
colors: {
|
|
47
|
+
type: PropType<string[]>;
|
|
48
|
+
default: () => never[];
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* @zh 是否禁用。
|
|
52
|
+
*/
|
|
53
|
+
readonly: BooleanConstructor;
|
|
54
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
55
|
+
"update:modelValue": (...args: any[]) => void;
|
|
56
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
57
|
+
/**
|
|
58
|
+
* @zh 输入值
|
|
59
|
+
* @vModel
|
|
60
|
+
*/
|
|
61
|
+
modelValue: {
|
|
62
|
+
type: PropType<string>;
|
|
63
|
+
default: undefined;
|
|
64
|
+
};
|
|
65
|
+
/**
|
|
66
|
+
* @zh 选项列表
|
|
67
|
+
*/
|
|
68
|
+
options: {
|
|
69
|
+
type: PropType<{
|
|
70
|
+
label: string;
|
|
71
|
+
value: string;
|
|
72
|
+
color?: string;
|
|
73
|
+
}[]>;
|
|
74
|
+
default: () => never[];
|
|
75
|
+
};
|
|
76
|
+
/**
|
|
77
|
+
* @zh 尺寸
|
|
78
|
+
*/
|
|
79
|
+
size: {
|
|
80
|
+
type: PropType<"large" | "default" | "small">;
|
|
81
|
+
default: string;
|
|
82
|
+
};
|
|
83
|
+
/**
|
|
84
|
+
* @zh 是否为按钮样式
|
|
85
|
+
*/
|
|
86
|
+
isButton: {
|
|
87
|
+
type: BooleanConstructor;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
/**
|
|
91
|
+
* @zh 是否显示颜色,
|
|
92
|
+
*/
|
|
93
|
+
isColor: {
|
|
94
|
+
type: BooleanConstructor;
|
|
95
|
+
default: boolean;
|
|
96
|
+
};
|
|
97
|
+
/**
|
|
98
|
+
* @zh 颜色列表
|
|
99
|
+
*/
|
|
100
|
+
colors: {
|
|
101
|
+
type: PropType<string[]>;
|
|
102
|
+
default: () => never[];
|
|
103
|
+
};
|
|
104
|
+
/**
|
|
105
|
+
* @zh 是否禁用。
|
|
106
|
+
*/
|
|
107
|
+
readonly: BooleanConstructor;
|
|
108
|
+
}>> & Readonly<{
|
|
109
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
110
|
+
}>, {
|
|
111
|
+
size: "small" | "default" | "large";
|
|
112
|
+
readonly: boolean;
|
|
113
|
+
modelValue: string;
|
|
114
|
+
options: {
|
|
115
|
+
label: string;
|
|
116
|
+
value: string;
|
|
117
|
+
color?: string;
|
|
118
|
+
}[];
|
|
119
|
+
isButton: boolean;
|
|
120
|
+
isColor: boolean;
|
|
121
|
+
colors: string[];
|
|
122
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
123
|
+
export default _default;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
export declare const JRate: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./src/rate.vue').RateProps> & Readonly<{
|
|
3
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
4
|
+
onChange?: ((value: {
|
|
5
|
+
value: number;
|
|
6
|
+
}) => any) | undefined;
|
|
7
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
8
|
+
"update:modelValue": (value: number) => any;
|
|
9
|
+
change: (value: {
|
|
10
|
+
value: number;
|
|
11
|
+
}) => any;
|
|
12
|
+
}, import('vue').PublicProps, {
|
|
13
|
+
size: "large" | "default" | "small";
|
|
14
|
+
readonly: boolean;
|
|
15
|
+
modelValue: number | string;
|
|
16
|
+
max: number;
|
|
17
|
+
allowClear: boolean;
|
|
18
|
+
allowHalf: boolean;
|
|
19
|
+
showText: boolean;
|
|
20
|
+
showScore: boolean;
|
|
21
|
+
texts: any[];
|
|
22
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
23
|
+
P: {};
|
|
24
|
+
B: {};
|
|
25
|
+
D: {};
|
|
26
|
+
C: {};
|
|
27
|
+
M: {};
|
|
28
|
+
Defaults: {};
|
|
29
|
+
}, Readonly<import('./src/rate.vue').RateProps> & Readonly<{
|
|
30
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
31
|
+
onChange?: ((value: {
|
|
32
|
+
value: number;
|
|
33
|
+
}) => any) | undefined;
|
|
34
|
+
}>, {}, {}, {}, {}, {
|
|
35
|
+
size: "large" | "default" | "small";
|
|
36
|
+
readonly: boolean;
|
|
37
|
+
modelValue: number | string;
|
|
38
|
+
max: number;
|
|
39
|
+
allowClear: boolean;
|
|
40
|
+
allowHalf: boolean;
|
|
41
|
+
showText: boolean;
|
|
42
|
+
showScore: boolean;
|
|
43
|
+
texts: any[];
|
|
44
|
+
}>;
|
|
45
|
+
__isFragment?: never;
|
|
46
|
+
__isTeleport?: never;
|
|
47
|
+
__isSuspense?: never;
|
|
48
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./src/rate.vue').RateProps> & Readonly<{
|
|
49
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
50
|
+
onChange?: ((value: {
|
|
51
|
+
value: number;
|
|
52
|
+
}) => any) | undefined;
|
|
53
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
54
|
+
"update:modelValue": (value: number) => any;
|
|
55
|
+
change: (value: {
|
|
56
|
+
value: number;
|
|
57
|
+
}) => any;
|
|
58
|
+
}, string, {
|
|
59
|
+
size: "large" | "default" | "small";
|
|
60
|
+
readonly: boolean;
|
|
61
|
+
modelValue: number | string;
|
|
62
|
+
max: number;
|
|
63
|
+
allowClear: boolean;
|
|
64
|
+
allowHalf: boolean;
|
|
65
|
+
showText: boolean;
|
|
66
|
+
showScore: boolean;
|
|
67
|
+
texts: any[];
|
|
68
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
69
|
+
install: (app: import('vue').App) => void;
|
|
70
|
+
};
|
|
71
|
+
export default JRate;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export interface RateProps {
|
|
2
|
+
/** 当前数 */
|
|
3
|
+
modelValue?: number | string;
|
|
4
|
+
/** star 总数 */
|
|
5
|
+
max?: number;
|
|
6
|
+
/** 是否允许再次点击后清除 */
|
|
7
|
+
allowClear?: boolean;
|
|
8
|
+
/** 是否允许半选 */
|
|
9
|
+
allowHalf?: boolean;
|
|
10
|
+
/** 是否显示文字 */
|
|
11
|
+
showText?: boolean;
|
|
12
|
+
/** 是否显示数字 */
|
|
13
|
+
showScore?: boolean;
|
|
14
|
+
/** 辅助文字 */
|
|
15
|
+
texts?: any[];
|
|
16
|
+
/** 只读 */
|
|
17
|
+
readonly?: boolean;
|
|
18
|
+
/** 尺寸 */
|
|
19
|
+
size?: 'large' | 'default' | 'small';
|
|
20
|
+
}
|
|
21
|
+
declare const _default: import('vue').DefineComponent<RateProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
22
|
+
"update:modelValue": (value: number) => any;
|
|
23
|
+
change: (value: {
|
|
24
|
+
value: number;
|
|
25
|
+
}) => any;
|
|
26
|
+
}, string, import('vue').PublicProps, Readonly<RateProps> & Readonly<{
|
|
27
|
+
"onUpdate:modelValue"?: ((value: number) => any) | undefined;
|
|
28
|
+
onChange?: ((value: {
|
|
29
|
+
value: number;
|
|
30
|
+
}) => any) | undefined;
|
|
31
|
+
}>, {
|
|
32
|
+
size: "large" | "default" | "small";
|
|
33
|
+
readonly: boolean;
|
|
34
|
+
modelValue: number | string;
|
|
35
|
+
max: number;
|
|
36
|
+
allowClear: boolean;
|
|
37
|
+
allowHalf: boolean;
|
|
38
|
+
showText: boolean;
|
|
39
|
+
showScore: boolean;
|
|
40
|
+
texts: any[];
|
|
41
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
42
|
+
export default _default;
|