@a2simcode/ui 0.0.2 → 0.0.4
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 +1 -0
- 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 +0 -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 -9
- package/dist/simcode-ui.es.js +5021 -81
- package/dist/simcode-ui.umd.js +1 -1
- package/dist/stats.html +4949 -0
- package/dist/ui.css +1 -0
- package/package.json +36 -22
- package/dist/button/index.d.ts +0 -157
- package/dist/button/src/button.vue.d.ts +0 -78
- package/dist/input/index.d.ts +0 -137
- package/dist/input/src/input.vue.d.ts +0 -64
- package/dist/style.css +0 -1
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
export type FormLabelAlign = 'left' | 'right';
|
|
2
|
+
export type InternalNamePath = (string | number)[];
|
|
3
|
+
export type NamePath = string | number | InternalNamePath;
|
|
4
|
+
export type StoreValue = any;
|
|
5
|
+
export interface Store {
|
|
6
|
+
[name: string]: StoreValue;
|
|
7
|
+
}
|
|
8
|
+
export interface Meta {
|
|
9
|
+
touched: boolean;
|
|
10
|
+
validating: boolean;
|
|
11
|
+
errors: string[];
|
|
12
|
+
name: InternalNamePath;
|
|
13
|
+
}
|
|
14
|
+
export interface InternalFieldData extends Meta {
|
|
15
|
+
value: StoreValue;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Used by `setFields` config
|
|
19
|
+
*/
|
|
20
|
+
export interface FieldData extends Partial<Omit<InternalFieldData, 'name'>> {
|
|
21
|
+
name: NamePath;
|
|
22
|
+
}
|
|
23
|
+
export type RuleType = 'string' | 'number' | 'boolean' | 'method' | 'regexp' | 'integer' | 'float' | 'object' | 'enum' | 'date' | 'url' | 'hex' | 'email';
|
|
24
|
+
type Validator = (rule: RuleObject, value: StoreValue) => Promise<void> | void;
|
|
25
|
+
export interface ValidatorRule {
|
|
26
|
+
warningOnly?: boolean;
|
|
27
|
+
message?: string;
|
|
28
|
+
/** custom validate function (Note: callback must be called) */
|
|
29
|
+
validator: Validator;
|
|
30
|
+
}
|
|
31
|
+
interface BaseRule {
|
|
32
|
+
warningOnly?: boolean;
|
|
33
|
+
/** validate the value from a list of possible values */
|
|
34
|
+
enum?: StoreValue[];
|
|
35
|
+
/** validate the exact length of a field */
|
|
36
|
+
len?: number;
|
|
37
|
+
/** validate the max length of a field */
|
|
38
|
+
max?: number;
|
|
39
|
+
/** validation error message */
|
|
40
|
+
message?: string;
|
|
41
|
+
/** validate the min length of a field */
|
|
42
|
+
min?: number;
|
|
43
|
+
/** validate from a regular expression */
|
|
44
|
+
pattern?: RegExp;
|
|
45
|
+
/** indicates whether field is required */
|
|
46
|
+
required?: boolean;
|
|
47
|
+
/** transform a value before validation */
|
|
48
|
+
transform?: (value: StoreValue) => StoreValue;
|
|
49
|
+
/** built-in validation type, available options: https://github.com/yiminghe/async-validator#type */
|
|
50
|
+
type?: RuleType;
|
|
51
|
+
/** treat required fields that only contain whitespace as errors */
|
|
52
|
+
whitespace?: boolean;
|
|
53
|
+
/** Customize rule level `validateTrigger`. Must be subset of Field `validateTrigger` */
|
|
54
|
+
validateTrigger?: string | string[];
|
|
55
|
+
/** Check trigger timing */
|
|
56
|
+
trigger?: 'blur' | 'change' | Array<'change' | 'blur'>;
|
|
57
|
+
}
|
|
58
|
+
type AggregationRule = BaseRule & Partial<ValidatorRule>;
|
|
59
|
+
interface ArrayRule extends Omit<AggregationRule, 'type'> {
|
|
60
|
+
type: 'array';
|
|
61
|
+
defaultField?: RuleObject;
|
|
62
|
+
}
|
|
63
|
+
export type RuleObject = AggregationRule | ArrayRule;
|
|
64
|
+
export type Rule = RuleObject;
|
|
65
|
+
export interface ValidateErrorEntity<Values = any> {
|
|
66
|
+
values: Values;
|
|
67
|
+
errorFields: {
|
|
68
|
+
name: InternalNamePath;
|
|
69
|
+
errors: string[];
|
|
70
|
+
}[];
|
|
71
|
+
outOfDate: boolean;
|
|
72
|
+
}
|
|
73
|
+
export interface FieldError {
|
|
74
|
+
name: InternalNamePath | string;
|
|
75
|
+
errors: string[];
|
|
76
|
+
}
|
|
77
|
+
export interface RuleError {
|
|
78
|
+
errors: string[];
|
|
79
|
+
rule: RuleObject;
|
|
80
|
+
}
|
|
81
|
+
export interface ValidateOptions {
|
|
82
|
+
triggerName?: string;
|
|
83
|
+
validateMessages?: ValidateMessages;
|
|
84
|
+
}
|
|
85
|
+
export type InternalValidateFields = (nameList?: NamePath[], options?: ValidateOptions) => Promise<Store>;
|
|
86
|
+
export type ValidateFields = (nameList?: NamePath[]) => Promise<Store>;
|
|
87
|
+
interface ValueUpdateInfo {
|
|
88
|
+
type: 'valueUpdate';
|
|
89
|
+
source: 'internal' | 'external';
|
|
90
|
+
}
|
|
91
|
+
interface ValidateFinishInfo {
|
|
92
|
+
type: 'validateFinish';
|
|
93
|
+
}
|
|
94
|
+
interface ResetInfo {
|
|
95
|
+
type: 'reset';
|
|
96
|
+
}
|
|
97
|
+
interface SetFieldInfo {
|
|
98
|
+
type: 'setField';
|
|
99
|
+
data: FieldData;
|
|
100
|
+
}
|
|
101
|
+
interface DependenciesUpdateInfo {
|
|
102
|
+
type: 'dependenciesUpdate';
|
|
103
|
+
/**
|
|
104
|
+
* Contains all the related `InternalNamePath[]`.
|
|
105
|
+
* a <- b <- c : change `a`
|
|
106
|
+
* relatedFields=[a, b, c]
|
|
107
|
+
*/
|
|
108
|
+
relatedFields: InternalNamePath[];
|
|
109
|
+
}
|
|
110
|
+
export type NotifyInfo = ValueUpdateInfo | ValidateFinishInfo | ResetInfo | SetFieldInfo | DependenciesUpdateInfo;
|
|
111
|
+
export type ValuedNotifyInfo = NotifyInfo & {
|
|
112
|
+
store: Store;
|
|
113
|
+
};
|
|
114
|
+
export interface Callbacks<Values = any> {
|
|
115
|
+
onValuesChange?: (changedValues: any, values: Values) => void;
|
|
116
|
+
onFieldsChange?: (changedFields: FieldData[], allFields: FieldData[]) => void;
|
|
117
|
+
onFinish?: (values: Values) => void;
|
|
118
|
+
onFinishFailed?: (errorInfo: ValidateErrorEntity<Values>) => void;
|
|
119
|
+
onValidate?: (name: string | number | string[] | number[], status: boolean, errors: string[] | null) => void;
|
|
120
|
+
}
|
|
121
|
+
export type EventArgs = any[];
|
|
122
|
+
type ValidateMessage = string | (() => string);
|
|
123
|
+
export interface ValidateMessages {
|
|
124
|
+
default?: ValidateMessage;
|
|
125
|
+
required?: ValidateMessage;
|
|
126
|
+
enum?: ValidateMessage;
|
|
127
|
+
whitespace?: ValidateMessage;
|
|
128
|
+
date?: {
|
|
129
|
+
format?: ValidateMessage;
|
|
130
|
+
parse?: ValidateMessage;
|
|
131
|
+
invalid?: ValidateMessage;
|
|
132
|
+
};
|
|
133
|
+
types?: {
|
|
134
|
+
string?: ValidateMessage;
|
|
135
|
+
method?: ValidateMessage;
|
|
136
|
+
array?: ValidateMessage;
|
|
137
|
+
object?: ValidateMessage;
|
|
138
|
+
number?: ValidateMessage;
|
|
139
|
+
date?: ValidateMessage;
|
|
140
|
+
boolean?: ValidateMessage;
|
|
141
|
+
integer?: ValidateMessage;
|
|
142
|
+
float?: ValidateMessage;
|
|
143
|
+
regexp?: ValidateMessage;
|
|
144
|
+
email?: ValidateMessage;
|
|
145
|
+
url?: ValidateMessage;
|
|
146
|
+
hex?: ValidateMessage;
|
|
147
|
+
};
|
|
148
|
+
string?: {
|
|
149
|
+
len?: ValidateMessage;
|
|
150
|
+
min?: ValidateMessage;
|
|
151
|
+
max?: ValidateMessage;
|
|
152
|
+
range?: ValidateMessage;
|
|
153
|
+
};
|
|
154
|
+
number?: {
|
|
155
|
+
len?: ValidateMessage;
|
|
156
|
+
min?: ValidateMessage;
|
|
157
|
+
max?: ValidateMessage;
|
|
158
|
+
range?: ValidateMessage;
|
|
159
|
+
};
|
|
160
|
+
array?: {
|
|
161
|
+
len?: ValidateMessage;
|
|
162
|
+
min?: ValidateMessage;
|
|
163
|
+
max?: ValidateMessage;
|
|
164
|
+
range?: ValidateMessage;
|
|
165
|
+
};
|
|
166
|
+
pattern?: {
|
|
167
|
+
mismatch?: ValidateMessage;
|
|
168
|
+
};
|
|
169
|
+
}
|
|
170
|
+
export {};
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
export declare const JFormItem: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('vue').ExtractPropTypes<{
|
|
3
|
+
id: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
type: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
getCompType: {
|
|
12
|
+
type: FunctionConstructor;
|
|
13
|
+
default: undefined;
|
|
14
|
+
};
|
|
15
|
+
config: {
|
|
16
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
17
|
+
default: () => void;
|
|
18
|
+
};
|
|
19
|
+
getCompConfig: {
|
|
20
|
+
type: FunctionConstructor;
|
|
21
|
+
default: undefined;
|
|
22
|
+
};
|
|
23
|
+
children: {
|
|
24
|
+
type: import('vue').PropType<import('../comp/src/comp.vue').SchemaRuntimeConfig[]>;
|
|
25
|
+
default: () => never[];
|
|
26
|
+
};
|
|
27
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
28
|
+
type: string;
|
|
29
|
+
id: string;
|
|
30
|
+
children: import('../comp/src/comp.vue').SchemaRuntimeConfig[];
|
|
31
|
+
getCompType: Function;
|
|
32
|
+
config: Record<string, any>;
|
|
33
|
+
getCompConfig: Function;
|
|
34
|
+
}, true, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
35
|
+
P: {};
|
|
36
|
+
B: {};
|
|
37
|
+
D: {};
|
|
38
|
+
C: {};
|
|
39
|
+
M: {};
|
|
40
|
+
Defaults: {};
|
|
41
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
42
|
+
id: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
type: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
getCompType: {
|
|
51
|
+
type: FunctionConstructor;
|
|
52
|
+
default: undefined;
|
|
53
|
+
};
|
|
54
|
+
config: {
|
|
55
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
56
|
+
default: () => void;
|
|
57
|
+
};
|
|
58
|
+
getCompConfig: {
|
|
59
|
+
type: FunctionConstructor;
|
|
60
|
+
default: undefined;
|
|
61
|
+
};
|
|
62
|
+
children: {
|
|
63
|
+
type: import('vue').PropType<import('../comp/src/comp.vue').SchemaRuntimeConfig[]>;
|
|
64
|
+
default: () => never[];
|
|
65
|
+
};
|
|
66
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, {
|
|
67
|
+
type: string;
|
|
68
|
+
id: string;
|
|
69
|
+
children: import('../comp/src/comp.vue').SchemaRuntimeConfig[];
|
|
70
|
+
getCompType: Function;
|
|
71
|
+
config: Record<string, any>;
|
|
72
|
+
getCompConfig: Function;
|
|
73
|
+
}>;
|
|
74
|
+
__isFragment?: never;
|
|
75
|
+
__isTeleport?: never;
|
|
76
|
+
__isSuspense?: never;
|
|
77
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
78
|
+
id: {
|
|
79
|
+
type: StringConstructor;
|
|
80
|
+
default: string;
|
|
81
|
+
};
|
|
82
|
+
type: {
|
|
83
|
+
type: StringConstructor;
|
|
84
|
+
default: string;
|
|
85
|
+
};
|
|
86
|
+
getCompType: {
|
|
87
|
+
type: FunctionConstructor;
|
|
88
|
+
default: undefined;
|
|
89
|
+
};
|
|
90
|
+
config: {
|
|
91
|
+
type: import('vue').PropType<Record<string, any>>;
|
|
92
|
+
default: () => void;
|
|
93
|
+
};
|
|
94
|
+
getCompConfig: {
|
|
95
|
+
type: FunctionConstructor;
|
|
96
|
+
default: undefined;
|
|
97
|
+
};
|
|
98
|
+
children: {
|
|
99
|
+
type: import('vue').PropType<import('../comp/src/comp.vue').SchemaRuntimeConfig[]>;
|
|
100
|
+
default: () => never[];
|
|
101
|
+
};
|
|
102
|
+
}>> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
103
|
+
type: string;
|
|
104
|
+
id: string;
|
|
105
|
+
children: import('../comp/src/comp.vue').SchemaRuntimeConfig[];
|
|
106
|
+
getCompType: Function;
|
|
107
|
+
config: Record<string, any>;
|
|
108
|
+
getCompConfig: Function;
|
|
109
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
110
|
+
install: (app: import('vue').App) => void;
|
|
111
|
+
};
|
|
112
|
+
export default JFormItem;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { SchemaRuntimeConfig } from '../../comp/src/comp.vue';
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
|
+
/**
|
|
5
|
+
* @zh 组件 id
|
|
6
|
+
*/
|
|
7
|
+
id: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
/**
|
|
12
|
+
* @zh 组件类型
|
|
13
|
+
*/
|
|
14
|
+
type: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
/**
|
|
19
|
+
* @zh 获取组件类型
|
|
20
|
+
*/
|
|
21
|
+
getCompType: {
|
|
22
|
+
type: FunctionConstructor;
|
|
23
|
+
default: undefined;
|
|
24
|
+
};
|
|
25
|
+
/**
|
|
26
|
+
* @zh 组件配置
|
|
27
|
+
*/
|
|
28
|
+
config: {
|
|
29
|
+
type: PropType<Record<string, any>>;
|
|
30
|
+
default: () => void;
|
|
31
|
+
};
|
|
32
|
+
/**
|
|
33
|
+
* @zh 获取组件配置
|
|
34
|
+
*/
|
|
35
|
+
getCompConfig: {
|
|
36
|
+
type: FunctionConstructor;
|
|
37
|
+
default: undefined;
|
|
38
|
+
};
|
|
39
|
+
/**
|
|
40
|
+
* @zh 子集
|
|
41
|
+
*/
|
|
42
|
+
children: {
|
|
43
|
+
type: PropType<SchemaRuntimeConfig[]>;
|
|
44
|
+
default: () => never[];
|
|
45
|
+
};
|
|
46
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
47
|
+
/**
|
|
48
|
+
* @zh 组件 id
|
|
49
|
+
*/
|
|
50
|
+
id: {
|
|
51
|
+
type: StringConstructor;
|
|
52
|
+
default: string;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* @zh 组件类型
|
|
56
|
+
*/
|
|
57
|
+
type: {
|
|
58
|
+
type: StringConstructor;
|
|
59
|
+
default: string;
|
|
60
|
+
};
|
|
61
|
+
/**
|
|
62
|
+
* @zh 获取组件类型
|
|
63
|
+
*/
|
|
64
|
+
getCompType: {
|
|
65
|
+
type: FunctionConstructor;
|
|
66
|
+
default: undefined;
|
|
67
|
+
};
|
|
68
|
+
/**
|
|
69
|
+
* @zh 组件配置
|
|
70
|
+
*/
|
|
71
|
+
config: {
|
|
72
|
+
type: PropType<Record<string, any>>;
|
|
73
|
+
default: () => void;
|
|
74
|
+
};
|
|
75
|
+
/**
|
|
76
|
+
* @zh 获取组件配置
|
|
77
|
+
*/
|
|
78
|
+
getCompConfig: {
|
|
79
|
+
type: FunctionConstructor;
|
|
80
|
+
default: undefined;
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* @zh 子集
|
|
84
|
+
*/
|
|
85
|
+
children: {
|
|
86
|
+
type: PropType<SchemaRuntimeConfig[]>;
|
|
87
|
+
default: () => never[];
|
|
88
|
+
};
|
|
89
|
+
}>> & Readonly<{}>, {
|
|
90
|
+
type: string;
|
|
91
|
+
id: string;
|
|
92
|
+
children: SchemaRuntimeConfig[];
|
|
93
|
+
getCompType: Function;
|
|
94
|
+
config: Record<string, any>;
|
|
95
|
+
getCompConfig: Function;
|
|
96
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
97
|
+
export default _default;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
export declare const JIcon: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./src/icon.vue').IconProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, import('vue').PublicProps, {
|
|
3
|
+
size: number;
|
|
4
|
+
color: string;
|
|
5
|
+
rotate: number;
|
|
6
|
+
isDiv: boolean;
|
|
7
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
8
|
+
P: {};
|
|
9
|
+
B: {};
|
|
10
|
+
D: {};
|
|
11
|
+
C: {};
|
|
12
|
+
M: {};
|
|
13
|
+
Defaults: {};
|
|
14
|
+
}, Readonly<import('./src/icon.vue').IconProps> & Readonly<{}>, {}, {}, {}, {}, {
|
|
15
|
+
size: number;
|
|
16
|
+
color: string;
|
|
17
|
+
rotate: number;
|
|
18
|
+
isDiv: boolean;
|
|
19
|
+
}>;
|
|
20
|
+
__isFragment?: never;
|
|
21
|
+
__isTeleport?: never;
|
|
22
|
+
__isSuspense?: never;
|
|
23
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./src/icon.vue').IconProps> & Readonly<{}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, {
|
|
24
|
+
size: number;
|
|
25
|
+
color: string;
|
|
26
|
+
rotate: number;
|
|
27
|
+
isDiv: boolean;
|
|
28
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
29
|
+
install: (app: import('vue').App) => void;
|
|
30
|
+
};
|
|
31
|
+
export default JIcon;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
export interface IconProps {
|
|
2
|
+
/**
|
|
3
|
+
* @zh 图标名称或图标数据
|
|
4
|
+
*/
|
|
5
|
+
icon: string;
|
|
6
|
+
/**
|
|
7
|
+
* @zh 图标尺寸
|
|
8
|
+
*/
|
|
9
|
+
size?: number;
|
|
10
|
+
/**
|
|
11
|
+
* @zh 图标颜色
|
|
12
|
+
*/
|
|
13
|
+
color?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @zh 旋转角度
|
|
16
|
+
*/
|
|
17
|
+
rotate?: number;
|
|
18
|
+
/**
|
|
19
|
+
* @zh 翻转
|
|
20
|
+
* /
|
|
21
|
+
flip?: 'horizontal' | 'vertical' | 'both'
|
|
22
|
+
/**
|
|
23
|
+
* @zh 是否需要div包裹
|
|
24
|
+
*/
|
|
25
|
+
isDiv?: boolean;
|
|
26
|
+
}
|
|
27
|
+
declare const _default: import('vue').DefineComponent<IconProps, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<IconProps> & Readonly<{}>, {
|
|
28
|
+
size: number;
|
|
29
|
+
color: string;
|
|
30
|
+
rotate: number;
|
|
31
|
+
isDiv: boolean;
|
|
32
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
33
|
+
export default _default;
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { App } from 'vue';
|
|
2
|
+
import { default as JButton } from './button';
|
|
3
|
+
import { default as JButtons } from './buttons';
|
|
4
|
+
import { default as JInput } from './input';
|
|
5
|
+
import { default as JIcon } from './icon';
|
|
6
|
+
import { default as JRadio } from './radio';
|
|
7
|
+
import { default as JSelect } from './select';
|
|
8
|
+
import { default as JCascaderSelect } from './cascader-select';
|
|
9
|
+
import { default as JCheckbox } from './checkbox';
|
|
10
|
+
import { default as JNumber } from './number';
|
|
11
|
+
import { default as JAutoComplete } from './autocomplete';
|
|
12
|
+
import { default as JLayout } from './layout';
|
|
13
|
+
import { default as JTable } from './table';
|
|
14
|
+
import { default as JDialog } from './dialog';
|
|
15
|
+
import { default as JDialogFull } from './dialog-full';
|
|
16
|
+
import { default as JDrawer } from './drawer';
|
|
17
|
+
import { default as JLayer } from './layer';
|
|
18
|
+
import { default as JDynamicLayer } from './dynamic-layer';
|
|
19
|
+
import { default as JInputTag } from './input-tag';
|
|
20
|
+
import { default as JRate } from './rate';
|
|
21
|
+
import { default as JSlider } from './slider';
|
|
22
|
+
import { default as JUpload } from './upload';
|
|
23
|
+
import { default as JEcharts } from './echarts';
|
|
24
|
+
import { default as JBarcode } from './barcode';
|
|
25
|
+
import { default as JCodeMirror } from './code-mirror';
|
|
26
|
+
import { default as JComp } from './comp';
|
|
27
|
+
import { default as JForm } from './form';
|
|
28
|
+
import { default as JFormItem } from './form-item';
|
|
29
|
+
import { default as JPage } from './page';
|
|
30
|
+
export { JButton, JButtons, JInput, JIcon, JRadio, JSelect, JCascaderSelect, JCheckbox, JNumber, JAutoComplete, JLayout, JTable, JDialog, JDialogFull, JDrawer, JLayer, JDynamicLayer, JInputTag, JRate, JSlider, JUpload, JEcharts, JBarcode, JCodeMirror, JComp, JForm, JFormItem, JPage };
|
|
31
|
+
export * from '../core';
|
|
32
|
+
declare const _default: {
|
|
33
|
+
install: (app: App) => void;
|
|
34
|
+
};
|
|
35
|
+
export default _default;
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
declare const JInput: {
|
|
2
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstanceWithMixins<Readonly<import('./src/input.vue').InputProps> & Readonly<{
|
|
3
|
+
onClear?: (() => any) | undefined;
|
|
4
|
+
onInput?: ((value: string | number) => any) | undefined;
|
|
5
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
6
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
7
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
8
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
9
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
10
|
+
clear: () => any;
|
|
11
|
+
input: (value: string | number) => any;
|
|
12
|
+
focus: (evt: FocusEvent) => any;
|
|
13
|
+
blur: (evt: FocusEvent) => any;
|
|
14
|
+
"update:modelValue": (value: string | number) => any;
|
|
15
|
+
change: (value: string | number) => any;
|
|
16
|
+
}, import('vue').PublicProps, {
|
|
17
|
+
size: "large" | "default" | "small";
|
|
18
|
+
type: string;
|
|
19
|
+
disabled: boolean;
|
|
20
|
+
readonly: boolean;
|
|
21
|
+
modelValue: string | number;
|
|
22
|
+
showWordLimit: boolean;
|
|
23
|
+
wordLimitPosition: "inside" | "outside";
|
|
24
|
+
placeholder: string;
|
|
25
|
+
clearable: boolean;
|
|
26
|
+
showPassword: boolean;
|
|
27
|
+
rows: number;
|
|
28
|
+
autosize: boolean | {
|
|
29
|
+
minRows?: number;
|
|
30
|
+
maxRows?: number;
|
|
31
|
+
};
|
|
32
|
+
autocomplete: string;
|
|
33
|
+
autofocus: boolean;
|
|
34
|
+
validateEvent: boolean;
|
|
35
|
+
inputStyle: string | Record<string, string | number>;
|
|
36
|
+
}, false, {}, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, {}, any, import('vue').ComponentProvideOptions, {
|
|
37
|
+
P: {};
|
|
38
|
+
B: {};
|
|
39
|
+
D: {};
|
|
40
|
+
C: {};
|
|
41
|
+
M: {};
|
|
42
|
+
Defaults: {};
|
|
43
|
+
}, Readonly<import('./src/input.vue').InputProps> & Readonly<{
|
|
44
|
+
onClear?: (() => any) | undefined;
|
|
45
|
+
onInput?: ((value: string | number) => any) | undefined;
|
|
46
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
47
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
48
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
49
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
50
|
+
}>, {}, {}, {}, {}, {
|
|
51
|
+
size: "large" | "default" | "small";
|
|
52
|
+
type: string;
|
|
53
|
+
disabled: boolean;
|
|
54
|
+
readonly: boolean;
|
|
55
|
+
modelValue: string | number;
|
|
56
|
+
showWordLimit: boolean;
|
|
57
|
+
wordLimitPosition: "inside" | "outside";
|
|
58
|
+
placeholder: string;
|
|
59
|
+
clearable: boolean;
|
|
60
|
+
showPassword: boolean;
|
|
61
|
+
rows: number;
|
|
62
|
+
autosize: boolean | {
|
|
63
|
+
minRows?: number;
|
|
64
|
+
maxRows?: number;
|
|
65
|
+
};
|
|
66
|
+
autocomplete: string;
|
|
67
|
+
autofocus: boolean;
|
|
68
|
+
validateEvent: boolean;
|
|
69
|
+
inputStyle: string | Record<string, string | number>;
|
|
70
|
+
}>;
|
|
71
|
+
__isFragment?: never;
|
|
72
|
+
__isTeleport?: never;
|
|
73
|
+
__isSuspense?: never;
|
|
74
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('./src/input.vue').InputProps> & Readonly<{
|
|
75
|
+
onClear?: (() => any) | undefined;
|
|
76
|
+
onInput?: ((value: string | number) => any) | undefined;
|
|
77
|
+
onFocus?: ((evt: FocusEvent) => any) | undefined;
|
|
78
|
+
onBlur?: ((evt: FocusEvent) => any) | undefined;
|
|
79
|
+
"onUpdate:modelValue"?: ((value: string | number) => any) | undefined;
|
|
80
|
+
onChange?: ((value: string | number) => any) | undefined;
|
|
81
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
82
|
+
clear: () => any;
|
|
83
|
+
input: (value: string | number) => any;
|
|
84
|
+
focus: (evt: FocusEvent) => any;
|
|
85
|
+
blur: (evt: FocusEvent) => any;
|
|
86
|
+
"update:modelValue": (value: string | number) => any;
|
|
87
|
+
change: (value: string | number) => any;
|
|
88
|
+
}, string, {
|
|
89
|
+
size: "large" | "default" | "small";
|
|
90
|
+
type: string;
|
|
91
|
+
disabled: boolean;
|
|
92
|
+
readonly: boolean;
|
|
93
|
+
modelValue: string | number;
|
|
94
|
+
showWordLimit: boolean;
|
|
95
|
+
wordLimitPosition: "inside" | "outside";
|
|
96
|
+
placeholder: string;
|
|
97
|
+
clearable: boolean;
|
|
98
|
+
showPassword: boolean;
|
|
99
|
+
rows: number;
|
|
100
|
+
autosize: boolean | {
|
|
101
|
+
minRows?: number;
|
|
102
|
+
maxRows?: number;
|
|
103
|
+
};
|
|
104
|
+
autocomplete: string;
|
|
105
|
+
autofocus: boolean;
|
|
106
|
+
validateEvent: boolean;
|
|
107
|
+
inputStyle: string | Record<string, string | number>;
|
|
108
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
109
|
+
install: (app: import('vue').App) => void;
|
|
110
|
+
};
|
|
111
|
+
export default JInput;
|