@fmdeui/fmui 1.0.110 → 1.0.111
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/es/component.mjs +3 -1
- package/es/components/fm-select/index.d.ts +194 -0
- package/es/components/fm-select/index.vue.d.ts +237 -0
- package/es/components/index.d.ts +1 -0
- package/es/packages/components/fm-select/index.mjs +6 -0
- package/es/packages/components/fm-select/index.vue.mjs +5 -0
- package/es/packages/components/fm-select/index.vue2.mjs +177 -0
- package/es/packages/components/index.mjs +1 -0
- package/index.js +231 -57
- package/index.min.js +7 -7
- package/index.min.mjs +7 -7
- package/index.mjs +231 -57
- package/lib/component.js +3 -1
- package/lib/components/fm-select/index.d.ts +194 -0
- package/lib/components/fm-select/index.vue.d.ts +237 -0
- package/lib/components/index.d.ts +1 -0
- package/lib/packages/components/fm-select/index.js +8 -0
- package/lib/packages/components/fm-select/index.vue.js +9 -0
- package/lib/packages/components/fm-select/index.vue2.js +181 -0
- package/lib/packages/components/index.js +6 -4
- package/locale/en.js +1 -1
- package/locale/en.min.js +1 -1
- package/locale/en.min.mjs +1 -1
- package/locale/en.mjs +1 -1
- package/locale/zh-cn.js +1 -1
- package/locale/zh-cn.min.js +1 -1
- package/locale/zh-cn.min.mjs +1 -1
- package/locale/zh-cn.mjs +1 -1
- package/package.json +1 -1
- /package/es/{make-installer.css → component.css} +0 -0
- /package/lib/{index.css → defaults.css} +0 -0
|
@@ -0,0 +1,194 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
export declare const FmSelect: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
optionData: {
|
|
4
|
+
type: {
|
|
5
|
+
(arrayLength: number): any[];
|
|
6
|
+
(...items: any[]): any[];
|
|
7
|
+
new (arrayLength: number): any[];
|
|
8
|
+
new (...items: any[]): any[];
|
|
9
|
+
isArray(arg: any): arg is any[];
|
|
10
|
+
readonly prototype: any[];
|
|
11
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
12
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
13
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
14
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
15
|
+
of<T>(...items: T[]): T[];
|
|
16
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
17
|
+
};
|
|
18
|
+
default: never[];
|
|
19
|
+
};
|
|
20
|
+
bvalue: {
|
|
21
|
+
type: StringConstructor;
|
|
22
|
+
default: string;
|
|
23
|
+
};
|
|
24
|
+
blabel: {
|
|
25
|
+
type: StringConstructor;
|
|
26
|
+
default: string;
|
|
27
|
+
};
|
|
28
|
+
placeholder: {
|
|
29
|
+
type: StringConstructor;
|
|
30
|
+
default: string;
|
|
31
|
+
};
|
|
32
|
+
inputWidth: {
|
|
33
|
+
type: StringConstructor;
|
|
34
|
+
default: string;
|
|
35
|
+
};
|
|
36
|
+
dropWidth: {
|
|
37
|
+
type: StringConstructor;
|
|
38
|
+
default: string;
|
|
39
|
+
};
|
|
40
|
+
dropHeight: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
apiService: {
|
|
45
|
+
type: StringConstructor;
|
|
46
|
+
default: string;
|
|
47
|
+
};
|
|
48
|
+
apiAction: {
|
|
49
|
+
type: StringConstructor;
|
|
50
|
+
default: string;
|
|
51
|
+
};
|
|
52
|
+
basecode: {
|
|
53
|
+
type: StringConstructor;
|
|
54
|
+
default: string;
|
|
55
|
+
};
|
|
56
|
+
multibasecode: {
|
|
57
|
+
type: {
|
|
58
|
+
(arrayLength: number): any[];
|
|
59
|
+
(...items: any[]): any[];
|
|
60
|
+
new (arrayLength: number): any[];
|
|
61
|
+
new (...items: any[]): any[];
|
|
62
|
+
isArray(arg: any): arg is any[];
|
|
63
|
+
readonly prototype: any[];
|
|
64
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
65
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
66
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
67
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
68
|
+
of<T>(...items: T[]): T[];
|
|
69
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
70
|
+
};
|
|
71
|
+
default: never[];
|
|
72
|
+
};
|
|
73
|
+
freshSize: {
|
|
74
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
75
|
+
default: number;
|
|
76
|
+
};
|
|
77
|
+
autoLoadData: {
|
|
78
|
+
type: BooleanConstructor;
|
|
79
|
+
default: boolean;
|
|
80
|
+
};
|
|
81
|
+
id: {
|
|
82
|
+
type: PropType<number>;
|
|
83
|
+
};
|
|
84
|
+
name: {
|
|
85
|
+
type: PropType<string>;
|
|
86
|
+
};
|
|
87
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
88
|
+
change: (...args: any[]) => void;
|
|
89
|
+
"update:id": (value: number) => void;
|
|
90
|
+
"update:name": (value: string) => void;
|
|
91
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
92
|
+
optionData: {
|
|
93
|
+
type: {
|
|
94
|
+
(arrayLength: number): any[];
|
|
95
|
+
(...items: any[]): any[];
|
|
96
|
+
new (arrayLength: number): any[];
|
|
97
|
+
new (...items: any[]): any[];
|
|
98
|
+
isArray(arg: any): arg is any[];
|
|
99
|
+
readonly prototype: any[];
|
|
100
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
101
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
102
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
103
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
104
|
+
of<T>(...items: T[]): T[];
|
|
105
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
106
|
+
};
|
|
107
|
+
default: never[];
|
|
108
|
+
};
|
|
109
|
+
bvalue: {
|
|
110
|
+
type: StringConstructor;
|
|
111
|
+
default: string;
|
|
112
|
+
};
|
|
113
|
+
blabel: {
|
|
114
|
+
type: StringConstructor;
|
|
115
|
+
default: string;
|
|
116
|
+
};
|
|
117
|
+
placeholder: {
|
|
118
|
+
type: StringConstructor;
|
|
119
|
+
default: string;
|
|
120
|
+
};
|
|
121
|
+
inputWidth: {
|
|
122
|
+
type: StringConstructor;
|
|
123
|
+
default: string;
|
|
124
|
+
};
|
|
125
|
+
dropWidth: {
|
|
126
|
+
type: StringConstructor;
|
|
127
|
+
default: string;
|
|
128
|
+
};
|
|
129
|
+
dropHeight: {
|
|
130
|
+
type: StringConstructor;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
apiService: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
apiAction: {
|
|
138
|
+
type: StringConstructor;
|
|
139
|
+
default: string;
|
|
140
|
+
};
|
|
141
|
+
basecode: {
|
|
142
|
+
type: StringConstructor;
|
|
143
|
+
default: string;
|
|
144
|
+
};
|
|
145
|
+
multibasecode: {
|
|
146
|
+
type: {
|
|
147
|
+
(arrayLength: number): any[];
|
|
148
|
+
(...items: any[]): any[];
|
|
149
|
+
new (arrayLength: number): any[];
|
|
150
|
+
new (...items: any[]): any[];
|
|
151
|
+
isArray(arg: any): arg is any[];
|
|
152
|
+
readonly prototype: any[];
|
|
153
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
154
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
155
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
156
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
157
|
+
of<T>(...items: T[]): T[];
|
|
158
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
159
|
+
};
|
|
160
|
+
default: never[];
|
|
161
|
+
};
|
|
162
|
+
freshSize: {
|
|
163
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
164
|
+
default: number;
|
|
165
|
+
};
|
|
166
|
+
autoLoadData: {
|
|
167
|
+
type: BooleanConstructor;
|
|
168
|
+
default: boolean;
|
|
169
|
+
};
|
|
170
|
+
id: {
|
|
171
|
+
type: PropType<number>;
|
|
172
|
+
};
|
|
173
|
+
name: {
|
|
174
|
+
type: PropType<string>;
|
|
175
|
+
};
|
|
176
|
+
}>> & Readonly<{
|
|
177
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
178
|
+
"onUpdate:id"?: ((value: number) => any) | undefined;
|
|
179
|
+
"onUpdate:name"?: ((value: string) => any) | undefined;
|
|
180
|
+
}>, {
|
|
181
|
+
placeholder: string;
|
|
182
|
+
optionData: any[];
|
|
183
|
+
bvalue: string;
|
|
184
|
+
blabel: string;
|
|
185
|
+
inputWidth: string;
|
|
186
|
+
dropWidth: string;
|
|
187
|
+
dropHeight: string;
|
|
188
|
+
apiService: string;
|
|
189
|
+
apiAction: string;
|
|
190
|
+
basecode: string;
|
|
191
|
+
multibasecode: any[];
|
|
192
|
+
freshSize: string | number;
|
|
193
|
+
autoLoadData: boolean;
|
|
194
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
import { DefineComponent, ExtractPropTypes, PropType, ComponentOptionsMixin, PublicProps, ComponentProvideOptions } from 'vue';
|
|
2
|
+
declare const _default: DefineComponent<ExtractPropTypes<{
|
|
3
|
+
optionData: {
|
|
4
|
+
type: {
|
|
5
|
+
(arrayLength: number): any[];
|
|
6
|
+
(...items: any[]): any[];
|
|
7
|
+
new (arrayLength: number): any[];
|
|
8
|
+
new (...items: any[]): any[];
|
|
9
|
+
isArray(arg: any): arg is any[];
|
|
10
|
+
readonly prototype: any[];
|
|
11
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
12
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
13
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
14
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
15
|
+
of<T>(...items: T[]): T[];
|
|
16
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
17
|
+
};
|
|
18
|
+
default: never[];
|
|
19
|
+
};
|
|
20
|
+
/**
|
|
21
|
+
* 值的属性值
|
|
22
|
+
*/
|
|
23
|
+
bvalue: {
|
|
24
|
+
type: StringConstructor;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* 值的属性标签
|
|
29
|
+
*/
|
|
30
|
+
blabel: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
placeholder: {
|
|
35
|
+
type: StringConstructor;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
inputWidth: {
|
|
39
|
+
type: StringConstructor;
|
|
40
|
+
default: string;
|
|
41
|
+
};
|
|
42
|
+
dropWidth: {
|
|
43
|
+
type: StringConstructor;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
dropHeight: {
|
|
47
|
+
type: StringConstructor;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* api service name
|
|
52
|
+
*/
|
|
53
|
+
apiService: {
|
|
54
|
+
type: StringConstructor;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
/**
|
|
58
|
+
* api service 下的方法
|
|
59
|
+
*/
|
|
60
|
+
apiAction: {
|
|
61
|
+
type: StringConstructor;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* 基础编码 自动获取数据
|
|
66
|
+
*/
|
|
67
|
+
basecode: {
|
|
68
|
+
type: StringConstructor;
|
|
69
|
+
default: string;
|
|
70
|
+
};
|
|
71
|
+
/**
|
|
72
|
+
* 基础编码 多个编码合在一起调用
|
|
73
|
+
*/
|
|
74
|
+
multibasecode: {
|
|
75
|
+
type: {
|
|
76
|
+
(arrayLength: number): any[];
|
|
77
|
+
(...items: any[]): any[];
|
|
78
|
+
new (arrayLength: number): any[];
|
|
79
|
+
new (...items: any[]): any[];
|
|
80
|
+
isArray(arg: any): arg is any[];
|
|
81
|
+
readonly prototype: any[];
|
|
82
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
83
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
84
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
85
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
86
|
+
of<T>(...items: T[]): T[];
|
|
87
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
88
|
+
};
|
|
89
|
+
default: never[];
|
|
90
|
+
};
|
|
91
|
+
freshSize: {
|
|
92
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
93
|
+
default: number;
|
|
94
|
+
};
|
|
95
|
+
/**
|
|
96
|
+
* 是否默认加载数据
|
|
97
|
+
*/
|
|
98
|
+
autoLoadData: {
|
|
99
|
+
type: BooleanConstructor;
|
|
100
|
+
default: boolean;
|
|
101
|
+
};
|
|
102
|
+
id: {
|
|
103
|
+
type: PropType<number>;
|
|
104
|
+
};
|
|
105
|
+
name: {
|
|
106
|
+
type: PropType<string>;
|
|
107
|
+
};
|
|
108
|
+
}>, {}, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {
|
|
109
|
+
change: (...args: any[]) => void;
|
|
110
|
+
"update:id": (value: number) => void;
|
|
111
|
+
"update:name": (value: string) => void;
|
|
112
|
+
}, string, PublicProps, Readonly< ExtractPropTypes<{
|
|
113
|
+
optionData: {
|
|
114
|
+
type: {
|
|
115
|
+
(arrayLength: number): any[];
|
|
116
|
+
(...items: any[]): any[];
|
|
117
|
+
new (arrayLength: number): any[];
|
|
118
|
+
new (...items: any[]): any[];
|
|
119
|
+
isArray(arg: any): arg is any[];
|
|
120
|
+
readonly prototype: any[];
|
|
121
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
122
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
123
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
124
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
125
|
+
of<T>(...items: T[]): T[];
|
|
126
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
127
|
+
};
|
|
128
|
+
default: never[];
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* 值的属性值
|
|
132
|
+
*/
|
|
133
|
+
bvalue: {
|
|
134
|
+
type: StringConstructor;
|
|
135
|
+
default: string;
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* 值的属性标签
|
|
139
|
+
*/
|
|
140
|
+
blabel: {
|
|
141
|
+
type: StringConstructor;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
placeholder: {
|
|
145
|
+
type: StringConstructor;
|
|
146
|
+
default: string;
|
|
147
|
+
};
|
|
148
|
+
inputWidth: {
|
|
149
|
+
type: StringConstructor;
|
|
150
|
+
default: string;
|
|
151
|
+
};
|
|
152
|
+
dropWidth: {
|
|
153
|
+
type: StringConstructor;
|
|
154
|
+
default: string;
|
|
155
|
+
};
|
|
156
|
+
dropHeight: {
|
|
157
|
+
type: StringConstructor;
|
|
158
|
+
default: string;
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* api service name
|
|
162
|
+
*/
|
|
163
|
+
apiService: {
|
|
164
|
+
type: StringConstructor;
|
|
165
|
+
default: string;
|
|
166
|
+
};
|
|
167
|
+
/**
|
|
168
|
+
* api service 下的方法
|
|
169
|
+
*/
|
|
170
|
+
apiAction: {
|
|
171
|
+
type: StringConstructor;
|
|
172
|
+
default: string;
|
|
173
|
+
};
|
|
174
|
+
/**
|
|
175
|
+
* 基础编码 自动获取数据
|
|
176
|
+
*/
|
|
177
|
+
basecode: {
|
|
178
|
+
type: StringConstructor;
|
|
179
|
+
default: string;
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* 基础编码 多个编码合在一起调用
|
|
183
|
+
*/
|
|
184
|
+
multibasecode: {
|
|
185
|
+
type: {
|
|
186
|
+
(arrayLength: number): any[];
|
|
187
|
+
(...items: any[]): any[];
|
|
188
|
+
new (arrayLength: number): any[];
|
|
189
|
+
new (...items: any[]): any[];
|
|
190
|
+
isArray(arg: any): arg is any[];
|
|
191
|
+
readonly prototype: any[];
|
|
192
|
+
from<T>(arrayLike: ArrayLike<T>): T[];
|
|
193
|
+
from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
194
|
+
from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
|
|
195
|
+
from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
|
|
196
|
+
of<T>(...items: T[]): T[];
|
|
197
|
+
readonly [Symbol.species]: ArrayConstructor;
|
|
198
|
+
};
|
|
199
|
+
default: never[];
|
|
200
|
+
};
|
|
201
|
+
freshSize: {
|
|
202
|
+
type: (NumberConstructor | StringConstructor)[];
|
|
203
|
+
default: number;
|
|
204
|
+
};
|
|
205
|
+
/**
|
|
206
|
+
* 是否默认加载数据
|
|
207
|
+
*/
|
|
208
|
+
autoLoadData: {
|
|
209
|
+
type: BooleanConstructor;
|
|
210
|
+
default: boolean;
|
|
211
|
+
};
|
|
212
|
+
id: {
|
|
213
|
+
type: PropType<number>;
|
|
214
|
+
};
|
|
215
|
+
name: {
|
|
216
|
+
type: PropType<string>;
|
|
217
|
+
};
|
|
218
|
+
}>> & Readonly<{
|
|
219
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
220
|
+
"onUpdate:id"?: ((value: number) => any) | undefined;
|
|
221
|
+
"onUpdate:name"?: ((value: string) => any) | undefined;
|
|
222
|
+
}>, {
|
|
223
|
+
placeholder: string;
|
|
224
|
+
optionData: any[];
|
|
225
|
+
bvalue: string;
|
|
226
|
+
blabel: string;
|
|
227
|
+
inputWidth: string;
|
|
228
|
+
dropWidth: string;
|
|
229
|
+
dropHeight: string;
|
|
230
|
+
apiService: string;
|
|
231
|
+
apiAction: string;
|
|
232
|
+
basecode: string;
|
|
233
|
+
multibasecode: any[];
|
|
234
|
+
freshSize: string | number;
|
|
235
|
+
autoLoadData: boolean;
|
|
236
|
+
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
237
|
+
export default _default;
|
|
@@ -11,6 +11,7 @@ export * from './svgIcon';
|
|
|
11
11
|
export * from './fm-layout';
|
|
12
12
|
export * from './fm-settings';
|
|
13
13
|
export * from './modifyRecord';
|
|
14
|
+
export * from './fm-select';
|
|
14
15
|
export * from './fm-inputdropdown';
|
|
15
16
|
export * from './fm-inputnumber';
|
|
16
17
|
export * from './fm-autocomplete';
|
|
@@ -0,0 +1,181 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var svg = require('@element-plus/icons-vue');
|
|
7
|
+
require('../../stores/index.js');
|
|
8
|
+
var ainputdropdow = require('../../stores/ainputdropdow.js');
|
|
9
|
+
|
|
10
|
+
const _hoisted_1 = { style: { "display": "flex", "justify-content": "end", "align-items": "right" } };
|
|
11
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
...{
|
|
13
|
+
name: "FmSelect"
|
|
14
|
+
},
|
|
15
|
+
__name: "index",
|
|
16
|
+
props: /* @__PURE__ */ vue.mergeModels({
|
|
17
|
+
//数据
|
|
18
|
+
optionData: {
|
|
19
|
+
type: Array,
|
|
20
|
+
default: []
|
|
21
|
+
},
|
|
22
|
+
/**
|
|
23
|
+
* 值的属性值
|
|
24
|
+
*/
|
|
25
|
+
bvalue: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "id"
|
|
28
|
+
},
|
|
29
|
+
/**
|
|
30
|
+
* 值的属性标签
|
|
31
|
+
*/
|
|
32
|
+
blabel: {
|
|
33
|
+
type: String,
|
|
34
|
+
default: "name"
|
|
35
|
+
},
|
|
36
|
+
placeholder: {
|
|
37
|
+
type: String,
|
|
38
|
+
default: "\u8BF7\u9009\u62E9"
|
|
39
|
+
},
|
|
40
|
+
inputWidth: {
|
|
41
|
+
type: String,
|
|
42
|
+
default: "40%"
|
|
43
|
+
},
|
|
44
|
+
dropWidth: {
|
|
45
|
+
type: String,
|
|
46
|
+
default: "90px"
|
|
47
|
+
},
|
|
48
|
+
dropHeight: {
|
|
49
|
+
type: String,
|
|
50
|
+
default: "180px"
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* api service name
|
|
54
|
+
*/
|
|
55
|
+
apiService: {
|
|
56
|
+
type: String,
|
|
57
|
+
default: "baseData"
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* api service 下的方法
|
|
61
|
+
*/
|
|
62
|
+
apiAction: {
|
|
63
|
+
type: String,
|
|
64
|
+
default: "baseDataList"
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* 基础编码 自动获取数据
|
|
68
|
+
*/
|
|
69
|
+
basecode: {
|
|
70
|
+
type: String,
|
|
71
|
+
default: ""
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* 基础编码 多个编码合在一起调用
|
|
75
|
+
*/
|
|
76
|
+
multibasecode: {
|
|
77
|
+
type: Array,
|
|
78
|
+
default: []
|
|
79
|
+
},
|
|
80
|
+
freshSize: {
|
|
81
|
+
type: [Number, String],
|
|
82
|
+
default: 20
|
|
83
|
+
},
|
|
84
|
+
/**
|
|
85
|
+
* 是否默认加载数据
|
|
86
|
+
*/
|
|
87
|
+
autoLoadData: {
|
|
88
|
+
type: Boolean,
|
|
89
|
+
default: true
|
|
90
|
+
}
|
|
91
|
+
}, {
|
|
92
|
+
"id": { default: 0, required: false },
|
|
93
|
+
"idModifiers": {},
|
|
94
|
+
"name": { default: "", required: false },
|
|
95
|
+
"nameModifiers": {}
|
|
96
|
+
}),
|
|
97
|
+
emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:id", "update:name"]),
|
|
98
|
+
setup(__props, { emit: __emit }) {
|
|
99
|
+
const modeValueId = vue.useModel(__props, "id");
|
|
100
|
+
const modeValueName = vue.useModel(__props, "name");
|
|
101
|
+
const props = __props;
|
|
102
|
+
const state = vue.reactive({
|
|
103
|
+
optionData: props.optionData
|
|
104
|
+
});
|
|
105
|
+
const emit = __emit;
|
|
106
|
+
const handelChange = (val) => {
|
|
107
|
+
const fitem = state.optionData.find((item) => item[props.blabel] === val);
|
|
108
|
+
modeValueId.value = fitem != null ? fitem[props.bvalue] : 0;
|
|
109
|
+
modeValueName.value = fitem != null ? fitem[props.blabel] : "";
|
|
110
|
+
emit("change", val);
|
|
111
|
+
};
|
|
112
|
+
const handelClear = () => {
|
|
113
|
+
modeValueId.value = 0;
|
|
114
|
+
modeValueName.value = "";
|
|
115
|
+
emit("change", "");
|
|
116
|
+
};
|
|
117
|
+
vue.onMounted(async () => {
|
|
118
|
+
if (props.optionData.length > 0) {
|
|
119
|
+
state.optionData = props.optionData;
|
|
120
|
+
}
|
|
121
|
+
if (props.autoLoadData && props.basecode && props.basecode != "") {
|
|
122
|
+
const useBaseApi = ainputdropdow.usefminputdropdownstore();
|
|
123
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, false, props.multibasecode);
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
const handRestdata = async () => {
|
|
127
|
+
if (props.basecode && props.basecode != "") {
|
|
128
|
+
const useBaseApi = ainputdropdow.usefminputdropdownstore();
|
|
129
|
+
state.optionData = await useBaseApi.getOptionsData(props.apiService, props.apiAction, props.basecode, true, []);
|
|
130
|
+
}
|
|
131
|
+
};
|
|
132
|
+
return (_ctx, _cache) => {
|
|
133
|
+
const _component_el_icon = vue.resolveComponent("el-icon");
|
|
134
|
+
const _component_el_option = vue.resolveComponent("el-option");
|
|
135
|
+
const _component_el_select = vue.resolveComponent("el-select");
|
|
136
|
+
return vue.openBlock(), vue.createBlock(_component_el_select, {
|
|
137
|
+
modelValue: modeValueName.value,
|
|
138
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => modeValueName.value = $event),
|
|
139
|
+
placeholder: props.placeholder,
|
|
140
|
+
style: vue.normalizeStyle({ width: __props.inputWidth }),
|
|
141
|
+
onChange: handelChange,
|
|
142
|
+
onClear: handelClear
|
|
143
|
+
}, {
|
|
144
|
+
header: vue.withCtx(() => [
|
|
145
|
+
vue.createElementVNode("div", _hoisted_1, [
|
|
146
|
+
vue.createVNode(_component_el_icon, {
|
|
147
|
+
color: "#13c2c2",
|
|
148
|
+
size: __props.freshSize,
|
|
149
|
+
onClick: handRestdata
|
|
150
|
+
}, {
|
|
151
|
+
default: vue.withCtx(() => [
|
|
152
|
+
vue.createVNode(vue.unref(svg.RefreshLeft))
|
|
153
|
+
]),
|
|
154
|
+
_: 1
|
|
155
|
+
/* STABLE */
|
|
156
|
+
}, 8, ["size"])
|
|
157
|
+
])
|
|
158
|
+
]),
|
|
159
|
+
default: vue.withCtx(() => [
|
|
160
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
161
|
+
vue.Fragment,
|
|
162
|
+
null,
|
|
163
|
+
vue.renderList(state.optionData, (item, index) => {
|
|
164
|
+
return vue.openBlock(), vue.createBlock(_component_el_option, {
|
|
165
|
+
key: index,
|
|
166
|
+
label: item[__props.blabel],
|
|
167
|
+
value: item[__props.blabel]
|
|
168
|
+
}, null, 8, ["label", "value"]);
|
|
169
|
+
}),
|
|
170
|
+
128
|
|
171
|
+
/* KEYED_FRAGMENT */
|
|
172
|
+
))
|
|
173
|
+
]),
|
|
174
|
+
_: 1
|
|
175
|
+
/* STABLE */
|
|
176
|
+
}, 8, ["modelValue", "placeholder", "style"]);
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
});
|
|
180
|
+
|
|
181
|
+
exports.default = _sfc_main;
|
|
@@ -9,11 +9,12 @@ var index$9 = require('./select/index.js');
|
|
|
9
9
|
var index$a = require('./select-table/index.js');
|
|
10
10
|
var index$8 = require('./query-condition/index.js');
|
|
11
11
|
var index$2 = require('./form/index.js');
|
|
12
|
-
var index$
|
|
12
|
+
var index$g = require('./svgIcon/index.js');
|
|
13
13
|
var index$4 = require('./fm-layout/index.js');
|
|
14
14
|
var index$b = require('./fm-settings/index.js');
|
|
15
15
|
var index$7 = require('./modifyRecord/index.js');
|
|
16
|
-
var index$e = require('./fm-
|
|
16
|
+
var index$e = require('./fm-select/index.js');
|
|
17
|
+
var index$f = require('./fm-inputdropdown/index.js');
|
|
17
18
|
var index$d = require('./fm-inputnumber/index.js');
|
|
18
19
|
var index$c = require('./fm-autocomplete/index.js');
|
|
19
20
|
|
|
@@ -28,10 +29,11 @@ exports.FSelect = index$9.FSelect;
|
|
|
28
29
|
exports.FSelectTable = index$a.FSelectTable;
|
|
29
30
|
exports.FQueryCondition = index$8.FQueryCondition;
|
|
30
31
|
exports.FForm = index$2.FForm;
|
|
31
|
-
exports.elSvg = index$
|
|
32
|
+
exports.elSvg = index$g.elSvg;
|
|
32
33
|
exports.FLayout = index$4.FLayout;
|
|
33
34
|
exports.FSettings = index$b.FSettings;
|
|
34
35
|
exports.FModifyRecord = index$7.FModifyRecord;
|
|
35
|
-
exports.
|
|
36
|
+
exports.FmSelect = index$e.FmSelect;
|
|
37
|
+
exports.Fminputdropdown = index$f.Fminputdropdown;
|
|
36
38
|
exports.FmInputNumber = index$d.FmInputNumber;
|
|
37
39
|
exports.FmAutocomplete = index$c.FmAutocomplete;
|
package/locale/en.js
CHANGED
package/locale/en.min.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
/*! fmdeui-fmui v1.0.
|
|
1
|
+
/*! fmdeui-fmui v1.0.111 */(function(e,t){typeof exports=="object"&&typeof module!="undefined"?module.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis!="undefined"?globalThis:e||self,e.fmdeuiPlusLocaleEn=t())})(this,(function(){"use strict";var e={name:"en",plus:{datepicker:{date:"Please select date",dates:"Please select dates",week:"Please select week",month:"Please select month",months:"Please select months",year:"Please select year",years:"Please select years",startDatePlaceholder:"Please select start date",endDatePlaceholder:"Please select end date",datetime:"Please select datetime",startMonthPlaceholder:"Please select start month",endMonthPlaceholder:"Please select end month",startTimePlaceholder:"Please select start time",endTimePlaceholder:"Please select end time",shortcutsDate:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDaterange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"},shortcutsMonthrange:{thisMonth:"This month",thisYear:"This year",pastSixMonths:"Past six months"},shortcutsDatetime:{today:"Today",yesterday:"Yesterday",lastWeek:"Last week"},shortcutsDatetimerange:{pastWeek:"Past week",pastMonth:"Past month",pastThreeMonths:"Past three months"}},form:{pleaseEnter:"Please enter ",pleaseSelect:"Please select "},input:{placeholder:"Please enter ",appendTitle:"Yuan",validatePhone:"Please enter a valid phone number",validateIdCard:"Please enter a valid ID card number",validateInteger:"Please enter a valid integer",format:"Please enter a valid ",amount:"amount",numbers:"numbers",digitUppercase:"Please enter a valid amount format",validateError:"Please enter a valid format",escaped:{0:"Cent",1:"Penny",2:"Zero",3:"One",4:"Two",5:"Three",6:"Four",7:"Five",8:"Six",9:"Seven",10:"Eight",11:"Nine",12:"Yuan",13:"Ten thousand",14:"Ten million",15:"Ten billion",16:"Ten",17:"Hundred",18:"Thousand",19:"Short",20:"Whole"}},moduleForm:{save:"Save",back:"Back"},search:{searchText:"Search",resetText:"Reset",expand:"Expand",retract:"Retract",pleaseEnter:"Please enter ",pleaseSelect:"Please select ",popoverAttrs:{showTxt:"More",title:"All conditions",allTxt:"SelectAll",reverseTxt:"Reverse",clearTxt:"ClearAll"}},select:{selectAllTxt:"Select all"},selectIcon:{placeholder:"Please select icon",dialogTitle:"Please select icon",searchPlaceholder:"Search icon",emptyDescription:"No icon found"},copy:{copySuccess:"Copy success",copyFail:"Copy fail",invalidCopyContent:"Invalid copy content"},selectTable:{searchBtnTxt:"Search",radioTxt:"Radio",loadingTxt:"Loading...",copySuccess:"Copy success",copyFail:"Copy fail"},stepWizard:{lastBtnTitle:"Complete"},table:{columnBind:{btnTxt:"Column setting",title:"Column setting"},fistColumn:{label:"Number",radio:"Radio"},operator:{label:"Operation",more:"More",sum:"Sum",total:"Total",allSum:"All sum"},singleEdit:{tipText:"Click to edit"},pleaseEnter:"Please enter ",pleaseSelect:"Please select ",loadingTxt:"Loading...",dragTxt:"Drag",saveBtnTxt:"Save",density:"Density",default:"Default",loose:"Loose",compact:"Compact"},list:{idleTimeoutMessage:"Long time no operation, system logged out.",sysMessage:"System Message"}}};return e}));
|