@yimou6/common-ui 1.7.8 → 1.8.0
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/cdn/index.cdn.js +8 -8
- package/cdn/index.cdn.js.map +1 -1
- package/cdn/index.cdn.mjs +8 -8
- package/cdn/index.cdn.mjs.map +1 -1
- package/cdn/index.css +1 -1
- package/es/components/concise-logger/index.d.ts +2 -0
- package/es/components/concise-logger/index.mjs +9 -0
- package/es/components/concise-logger/index.mjs.map +1 -0
- package/es/components/concise-logger/src/concise-logger.d.ts +5 -0
- package/es/components/concise-logger/src/concise-logger.mjs +4 -0
- package/es/components/concise-logger/src/concise-logger.mjs.map +1 -0
- package/es/components/concise-logger/src/concise-logger.vue.d.ts +2 -0
- package/es/components/concise-logger/src/concise-logger.vue.mjs +6 -0
- package/es/components/concise-logger/src/concise-logger.vue.mjs.map +1 -0
- package/es/components/concise-logger/src/concise-logger.vue2.mjs +18 -0
- package/es/components/concise-logger/src/concise-logger.vue2.mjs.map +1 -0
- package/es/components/index.d.ts +1 -1
- package/es/components/index.mjs +2 -2
- package/es/components/text-button/index.d.ts +238 -1
- package/es/components/text-button/index.mjs +8 -1
- package/es/components/text-button/index.mjs.map +1 -1
- package/es/components/text-button/src/text-button-group.vue.d.ts +92 -0
- package/es/components/text-button/src/text-button-group.vue.mjs +6 -0
- package/es/components/text-button/src/text-button-group.vue.mjs.map +1 -0
- package/es/components/text-button/src/text-button-group.vue2.mjs +56 -0
- package/es/components/text-button/src/text-button-group.vue2.mjs.map +1 -0
- package/es/components/text-button/src/text-button.d.ts +11 -0
- package/es/components/text-button/src/text-button.mjs +7 -1
- package/es/components/text-button/src/text-button.mjs.map +1 -1
- package/es/index.mjs +2 -2
- package/es/installer.mjs +3 -2
- package/es/installer.mjs.map +1 -1
- package/es/utils/provide.d.ts +6 -2
- package/es/utils/provide.mjs.map +1 -1
- package/global.d.ts +1 -0
- package/lib/components/concise-logger/index.d.ts +2 -0
- package/lib/components/concise-logger/index.js +14 -0
- package/lib/components/concise-logger/index.js.map +1 -0
- package/lib/components/concise-logger/src/concise-logger.d.ts +5 -0
- package/lib/components/concise-logger/src/concise-logger.js +6 -0
- package/lib/components/concise-logger/src/concise-logger.js.map +1 -0
- package/lib/components/concise-logger/src/concise-logger.vue.d.ts +2 -0
- package/lib/components/concise-logger/src/concise-logger.vue.js +10 -0
- package/lib/components/concise-logger/src/concise-logger.vue.js.map +1 -0
- package/lib/components/concise-logger/src/concise-logger.vue2.js +22 -0
- package/lib/components/concise-logger/src/concise-logger.vue2.js.map +1 -0
- package/lib/components/index.d.ts +1 -1
- package/lib/components/index.js +6 -5
- package/lib/components/index.js.map +1 -1
- package/lib/components/text-button/index.d.ts +238 -1
- package/lib/components/text-button/index.js +9 -1
- package/lib/components/text-button/index.js.map +1 -1
- package/lib/components/text-button/src/text-button-group.vue.d.ts +92 -0
- package/lib/components/text-button/src/text-button-group.vue.js +10 -0
- package/lib/components/text-button/src/text-button-group.vue.js.map +1 -0
- package/lib/components/text-button/src/text-button-group.vue2.js +60 -0
- package/lib/components/text-button/src/text-button-group.vue2.js.map +1 -0
- package/lib/components/text-button/src/text-button.d.ts +11 -0
- package/lib/components/text-button/src/text-button.js +7 -0
- package/lib/components/text-button/src/text-button.js.map +1 -1
- package/lib/index.js +6 -5
- package/lib/index.js.map +1 -1
- package/lib/installer.js +2 -1
- package/lib/installer.js.map +1 -1
- package/lib/utils/provide.d.ts +6 -2
- package/lib/utils/provide.js.map +1 -1
- package/package.json +1 -1
- package/theme-default/i-table.css +1 -1
- package/theme-default/i-text-button.css +1 -1
- package/theme-default/index.css +1 -1
|
@@ -51,4 +51,241 @@ export declare const ITextButton: import("../../types").SFCWithInstall<import("v
|
|
|
51
51
|
icon: string;
|
|
52
52
|
disabled: boolean;
|
|
53
53
|
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
54
|
-
export
|
|
54
|
+
export declare const ITextButtonGroup: import("../../types").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
55
|
+
group: {
|
|
56
|
+
type: import("vue").PropType<({
|
|
57
|
+
icon: string;
|
|
58
|
+
disabled: boolean;
|
|
59
|
+
} & {
|
|
60
|
+
textColor?: string | undefined;
|
|
61
|
+
} & {
|
|
62
|
+
text?: string;
|
|
63
|
+
slot?: string;
|
|
64
|
+
})[]>;
|
|
65
|
+
default: () => never[];
|
|
66
|
+
};
|
|
67
|
+
}>, {
|
|
68
|
+
ITextButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
69
|
+
icon: {
|
|
70
|
+
type: import("vue").PropType<import("./src/text-button").builtInIconType | string>;
|
|
71
|
+
default: string;
|
|
72
|
+
};
|
|
73
|
+
textColor: StringConstructor;
|
|
74
|
+
disabled: {
|
|
75
|
+
type: BooleanConstructor;
|
|
76
|
+
default: boolean;
|
|
77
|
+
};
|
|
78
|
+
}>, {
|
|
79
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
80
|
+
icon: {
|
|
81
|
+
type: import("vue").PropType<import("./src/text-button").builtInIconType | string>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
textColor: StringConstructor;
|
|
85
|
+
disabled: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
}>> & Readonly<{
|
|
90
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
91
|
+
}> & {}>;
|
|
92
|
+
emits: (event: "click", evt: MouseEvent) => void;
|
|
93
|
+
slots: Readonly<{
|
|
94
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
95
|
+
}>;
|
|
96
|
+
textButtonRef: import("vue").ShallowRef<any, any>;
|
|
97
|
+
textButtonIcon: import("vue").Ref<string, string>;
|
|
98
|
+
cacheTextButtonColor: string;
|
|
99
|
+
textButtonColor: import("vue").Ref<string, string>;
|
|
100
|
+
handleMousedown: () => void;
|
|
101
|
+
handleMouseup: () => void;
|
|
102
|
+
handleClick: (evt: MouseEvent) => void;
|
|
103
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
104
|
+
click: (evt: MouseEvent) => boolean;
|
|
105
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
106
|
+
icon: {
|
|
107
|
+
type: import("vue").PropType<import("./src/text-button").builtInIconType | string>;
|
|
108
|
+
default: string;
|
|
109
|
+
};
|
|
110
|
+
textColor: StringConstructor;
|
|
111
|
+
disabled: {
|
|
112
|
+
type: BooleanConstructor;
|
|
113
|
+
default: boolean;
|
|
114
|
+
};
|
|
115
|
+
}>> & Readonly<{
|
|
116
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
117
|
+
}>, {
|
|
118
|
+
icon: string;
|
|
119
|
+
disabled: boolean;
|
|
120
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
121
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
122
|
+
group: {
|
|
123
|
+
type: import("vue").PropType<({
|
|
124
|
+
icon: string;
|
|
125
|
+
disabled: boolean;
|
|
126
|
+
} & {
|
|
127
|
+
textColor?: string | undefined;
|
|
128
|
+
} & {
|
|
129
|
+
text?: string;
|
|
130
|
+
slot?: string;
|
|
131
|
+
})[]>;
|
|
132
|
+
default: () => never[];
|
|
133
|
+
};
|
|
134
|
+
}>> & Readonly<{}>, {
|
|
135
|
+
group: ({
|
|
136
|
+
icon: string;
|
|
137
|
+
disabled: boolean;
|
|
138
|
+
} & {
|
|
139
|
+
textColor?: string | undefined;
|
|
140
|
+
} & {
|
|
141
|
+
text?: string;
|
|
142
|
+
slot?: string;
|
|
143
|
+
})[];
|
|
144
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
145
|
+
declare const _default: {
|
|
146
|
+
ITextButton: import("../../types").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
147
|
+
icon: {
|
|
148
|
+
type: import("vue").PropType<import("./src/text-button").builtInIconType | string>;
|
|
149
|
+
default: string;
|
|
150
|
+
};
|
|
151
|
+
textColor: StringConstructor;
|
|
152
|
+
disabled: {
|
|
153
|
+
type: BooleanConstructor;
|
|
154
|
+
default: boolean;
|
|
155
|
+
};
|
|
156
|
+
}>, {
|
|
157
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
158
|
+
icon: {
|
|
159
|
+
type: import("vue").PropType<import("./src/text-button").builtInIconType | string>;
|
|
160
|
+
default: string;
|
|
161
|
+
};
|
|
162
|
+
textColor: StringConstructor;
|
|
163
|
+
disabled: {
|
|
164
|
+
type: BooleanConstructor;
|
|
165
|
+
default: boolean;
|
|
166
|
+
};
|
|
167
|
+
}>> & Readonly<{
|
|
168
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
169
|
+
}> & {}>;
|
|
170
|
+
emits: (event: "click", evt: MouseEvent) => void;
|
|
171
|
+
slots: Readonly<{
|
|
172
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
173
|
+
}>;
|
|
174
|
+
textButtonRef: import("vue").ShallowRef<any, any>;
|
|
175
|
+
textButtonIcon: import("vue").Ref<string, string>;
|
|
176
|
+
cacheTextButtonColor: string;
|
|
177
|
+
textButtonColor: import("vue").Ref<string, string>;
|
|
178
|
+
handleMousedown: () => void;
|
|
179
|
+
handleMouseup: () => void;
|
|
180
|
+
handleClick: (evt: MouseEvent) => void;
|
|
181
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
182
|
+
click: (evt: MouseEvent) => boolean;
|
|
183
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
184
|
+
icon: {
|
|
185
|
+
type: import("vue").PropType<import("./src/text-button").builtInIconType | string>;
|
|
186
|
+
default: string;
|
|
187
|
+
};
|
|
188
|
+
textColor: StringConstructor;
|
|
189
|
+
disabled: {
|
|
190
|
+
type: BooleanConstructor;
|
|
191
|
+
default: boolean;
|
|
192
|
+
};
|
|
193
|
+
}>> & Readonly<{
|
|
194
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
195
|
+
}>, {
|
|
196
|
+
icon: string;
|
|
197
|
+
disabled: boolean;
|
|
198
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
199
|
+
ITextButtonGroup: import("../../types").SFCWithInstall<import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
200
|
+
group: {
|
|
201
|
+
type: import("vue").PropType<({
|
|
202
|
+
icon: string;
|
|
203
|
+
disabled: boolean;
|
|
204
|
+
} & {
|
|
205
|
+
textColor?: string | undefined;
|
|
206
|
+
} & {
|
|
207
|
+
text?: string;
|
|
208
|
+
slot?: string;
|
|
209
|
+
})[]>;
|
|
210
|
+
default: () => never[];
|
|
211
|
+
};
|
|
212
|
+
}>, {
|
|
213
|
+
ITextButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
214
|
+
icon: {
|
|
215
|
+
type: import("vue").PropType<import("./src/text-button").builtInIconType | string>;
|
|
216
|
+
default: string;
|
|
217
|
+
};
|
|
218
|
+
textColor: StringConstructor;
|
|
219
|
+
disabled: {
|
|
220
|
+
type: BooleanConstructor;
|
|
221
|
+
default: boolean;
|
|
222
|
+
};
|
|
223
|
+
}>, {
|
|
224
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
225
|
+
icon: {
|
|
226
|
+
type: import("vue").PropType<import("./src/text-button").builtInIconType | string>;
|
|
227
|
+
default: string;
|
|
228
|
+
};
|
|
229
|
+
textColor: StringConstructor;
|
|
230
|
+
disabled: {
|
|
231
|
+
type: BooleanConstructor;
|
|
232
|
+
default: boolean;
|
|
233
|
+
};
|
|
234
|
+
}>> & Readonly<{
|
|
235
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
236
|
+
}> & {}>;
|
|
237
|
+
emits: (event: "click", evt: MouseEvent) => void;
|
|
238
|
+
slots: Readonly<{
|
|
239
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
240
|
+
}>;
|
|
241
|
+
textButtonRef: import("vue").ShallowRef<any, any>;
|
|
242
|
+
textButtonIcon: import("vue").Ref<string, string>;
|
|
243
|
+
cacheTextButtonColor: string;
|
|
244
|
+
textButtonColor: import("vue").Ref<string, string>;
|
|
245
|
+
handleMousedown: () => void;
|
|
246
|
+
handleMouseup: () => void;
|
|
247
|
+
handleClick: (evt: MouseEvent) => void;
|
|
248
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
249
|
+
click: (evt: MouseEvent) => boolean;
|
|
250
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
251
|
+
icon: {
|
|
252
|
+
type: import("vue").PropType<import("./src/text-button").builtInIconType | string>;
|
|
253
|
+
default: string;
|
|
254
|
+
};
|
|
255
|
+
textColor: StringConstructor;
|
|
256
|
+
disabled: {
|
|
257
|
+
type: BooleanConstructor;
|
|
258
|
+
default: boolean;
|
|
259
|
+
};
|
|
260
|
+
}>> & Readonly<{
|
|
261
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
262
|
+
}>, {
|
|
263
|
+
icon: string;
|
|
264
|
+
disabled: boolean;
|
|
265
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
266
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
267
|
+
group: {
|
|
268
|
+
type: import("vue").PropType<({
|
|
269
|
+
icon: string;
|
|
270
|
+
disabled: boolean;
|
|
271
|
+
} & {
|
|
272
|
+
textColor?: string | undefined;
|
|
273
|
+
} & {
|
|
274
|
+
text?: string;
|
|
275
|
+
slot?: string;
|
|
276
|
+
})[]>;
|
|
277
|
+
default: () => never[];
|
|
278
|
+
};
|
|
279
|
+
}>> & Readonly<{}>, {
|
|
280
|
+
group: ({
|
|
281
|
+
icon: string;
|
|
282
|
+
disabled: boolean;
|
|
283
|
+
} & {
|
|
284
|
+
textColor?: string | undefined;
|
|
285
|
+
} & {
|
|
286
|
+
text?: string;
|
|
287
|
+
slot?: string;
|
|
288
|
+
})[];
|
|
289
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>>;
|
|
290
|
+
};
|
|
291
|
+
export default _default;
|
|
@@ -4,11 +4,19 @@ Object.defineProperty(exports, '__esModule', { value: true });
|
|
|
4
4
|
|
|
5
5
|
require('../../utils/index.js');
|
|
6
6
|
require('./src/text-button.vue.js');
|
|
7
|
+
require('./src/text-button-group.vue.js');
|
|
7
8
|
var install = require('../../utils/install.js');
|
|
8
9
|
var textButton_vue_vue_type_script_setup_true_lang = require('./src/text-button.vue2.js');
|
|
10
|
+
var textButtonGroup_vue_vue_type_script_setup_true_lang = require('./src/text-button-group.vue2.js');
|
|
9
11
|
|
|
10
12
|
const ITextButton = install.withInstall(textButton_vue_vue_type_script_setup_true_lang.default);
|
|
13
|
+
const ITextButtonGroup = install.withInstall(textButtonGroup_vue_vue_type_script_setup_true_lang.default);
|
|
14
|
+
var index = {
|
|
15
|
+
ITextButton,
|
|
16
|
+
ITextButtonGroup
|
|
17
|
+
};
|
|
11
18
|
|
|
12
19
|
exports.ITextButton = ITextButton;
|
|
13
|
-
exports.
|
|
20
|
+
exports.ITextButtonGroup = ITextButtonGroup;
|
|
21
|
+
exports.default = index;
|
|
14
22
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../packages/components/text-button/index.ts"],"sourcesContent":["import { withInstall } from '../../utils';\nimport TextButton from './src/text-button.vue';\n\nexport const ITextButton = withInstall(TextButton)
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../packages/components/text-button/index.ts"],"sourcesContent":["import { withInstall } from '../../utils';\nimport TextButton from './src/text-button.vue';\nimport TextButtonGroup from './src/text-button-group.vue';\n\nexport const ITextButton = withInstall(TextButton);\nexport const ITextButtonGroup = withInstall(TextButtonGroup);\n\nexport default {\n ITextButton,\n ITextButtonGroup,\n};\n"],"names":["withInstall","TextButton","TextButtonGroup"],"mappings":";;;;;;;;;;;AAIa,MAAA,WAAA,GAAcA,oBAAYC,sDAAU;AACpC,MAAA,gBAAA,GAAmBD,oBAAYE,2DAAe;AAE3D,YAAe;AAAA,EACb,WAAA;AAAA,EACA;AACF,CAAA;;;;;;"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
2
|
+
group: {
|
|
3
|
+
type: import("vue").PropType<({
|
|
4
|
+
icon: string;
|
|
5
|
+
disabled: boolean;
|
|
6
|
+
} & {
|
|
7
|
+
textColor?: string | undefined;
|
|
8
|
+
} & {
|
|
9
|
+
text?: string;
|
|
10
|
+
slot?: string;
|
|
11
|
+
})[]>;
|
|
12
|
+
default: () => never[];
|
|
13
|
+
};
|
|
14
|
+
}>, {
|
|
15
|
+
ITextButton: import("vue").DefineComponent<import("vue").ExtractPropTypes<{
|
|
16
|
+
icon: {
|
|
17
|
+
type: import("vue").PropType<import("./text-button").builtInIconType | string>;
|
|
18
|
+
default: string;
|
|
19
|
+
};
|
|
20
|
+
textColor: StringConstructor;
|
|
21
|
+
disabled: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
}>, {
|
|
26
|
+
props: import("@vue/shared").LooseRequired<Readonly<import("vue").ExtractPropTypes<{
|
|
27
|
+
icon: {
|
|
28
|
+
type: import("vue").PropType<import("./text-button").builtInIconType | string>;
|
|
29
|
+
default: string;
|
|
30
|
+
};
|
|
31
|
+
textColor: StringConstructor;
|
|
32
|
+
disabled: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
}>> & Readonly<{
|
|
37
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
38
|
+
}> & {}>;
|
|
39
|
+
emits: (event: "click", evt: MouseEvent) => void;
|
|
40
|
+
slots: Readonly<{
|
|
41
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
42
|
+
}>;
|
|
43
|
+
textButtonRef: import("vue").ShallowRef<any, any>;
|
|
44
|
+
textButtonIcon: import("vue").Ref<string, string>;
|
|
45
|
+
cacheTextButtonColor: string;
|
|
46
|
+
textButtonColor: import("vue").Ref<string, string>;
|
|
47
|
+
handleMousedown: () => void;
|
|
48
|
+
handleMouseup: () => void;
|
|
49
|
+
handleClick: (evt: MouseEvent) => void;
|
|
50
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
51
|
+
click: (evt: MouseEvent) => boolean;
|
|
52
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
53
|
+
icon: {
|
|
54
|
+
type: import("vue").PropType<import("./text-button").builtInIconType | string>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
textColor: StringConstructor;
|
|
58
|
+
disabled: {
|
|
59
|
+
type: BooleanConstructor;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
}>> & Readonly<{
|
|
63
|
+
onClick?: ((evt: MouseEvent) => any) | undefined;
|
|
64
|
+
}>, {
|
|
65
|
+
icon: string;
|
|
66
|
+
disabled: boolean;
|
|
67
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
68
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
69
|
+
group: {
|
|
70
|
+
type: import("vue").PropType<({
|
|
71
|
+
icon: string;
|
|
72
|
+
disabled: boolean;
|
|
73
|
+
} & {
|
|
74
|
+
textColor?: string | undefined;
|
|
75
|
+
} & {
|
|
76
|
+
text?: string;
|
|
77
|
+
slot?: string;
|
|
78
|
+
})[]>;
|
|
79
|
+
default: () => never[];
|
|
80
|
+
};
|
|
81
|
+
}>> & Readonly<{}>, {
|
|
82
|
+
group: ({
|
|
83
|
+
icon: string;
|
|
84
|
+
disabled: boolean;
|
|
85
|
+
} & {
|
|
86
|
+
textColor?: string | undefined;
|
|
87
|
+
} & {
|
|
88
|
+
text?: string;
|
|
89
|
+
slot?: string;
|
|
90
|
+
})[];
|
|
91
|
+
}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
|
|
92
|
+
export default _default;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var textButtonGroup_vue_vue_type_script_setup_true_lang = require('./text-button-group.vue2.js');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
exports.default = textButtonGroup_vue_vue_type_script_setup_true_lang.default;
|
|
10
|
+
//# sourceMappingURL=text-button-group.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-button-group.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;"}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
|
+
|
|
5
|
+
var vue = require('vue');
|
|
6
|
+
var textButton = require('./text-button.js');
|
|
7
|
+
require('./text-button.vue.js');
|
|
8
|
+
var textButton_vue_vue_type_script_setup_true_lang = require('./text-button.vue2.js');
|
|
9
|
+
|
|
10
|
+
const _hoisted_1 = { class: "i-text-button-group" };
|
|
11
|
+
var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
|
+
...{
|
|
13
|
+
name: "ITextButtonGroup"
|
|
14
|
+
},
|
|
15
|
+
__name: "text-button-group",
|
|
16
|
+
props: textButton.textButtonGroupProps,
|
|
17
|
+
setup(__props) {
|
|
18
|
+
return (_ctx, _cache) => {
|
|
19
|
+
return vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
|
|
20
|
+
(vue.openBlock(true), vue.createElementBlock(
|
|
21
|
+
vue.Fragment,
|
|
22
|
+
null,
|
|
23
|
+
vue.renderList(_ctx.group, (button, index) => {
|
|
24
|
+
return vue.openBlock(), vue.createElementBlock(
|
|
25
|
+
vue.Fragment,
|
|
26
|
+
{
|
|
27
|
+
key: `${index}${button == null ? void 0 : button.text}`
|
|
28
|
+
},
|
|
29
|
+
[
|
|
30
|
+
button.slot ? vue.renderSlot(_ctx.$slots, button.slot, { key: 0 }) : (vue.openBlock(), vue.createBlock(textButton_vue_vue_type_script_setup_true_lang.default, {
|
|
31
|
+
key: 1,
|
|
32
|
+
icon: button.icon,
|
|
33
|
+
"text-color": button.textColor,
|
|
34
|
+
disabled: button.disabled
|
|
35
|
+
}, {
|
|
36
|
+
default: vue.withCtx(() => [
|
|
37
|
+
vue.createTextVNode(
|
|
38
|
+
vue.toDisplayString(button == null ? void 0 : button.text),
|
|
39
|
+
1
|
|
40
|
+
/* TEXT */
|
|
41
|
+
)
|
|
42
|
+
]),
|
|
43
|
+
_: 2
|
|
44
|
+
/* DYNAMIC */
|
|
45
|
+
}, 1032, ["icon", "text-color", "disabled"]))
|
|
46
|
+
],
|
|
47
|
+
64
|
|
48
|
+
/* STABLE_FRAGMENT */
|
|
49
|
+
);
|
|
50
|
+
}),
|
|
51
|
+
128
|
|
52
|
+
/* KEYED_FRAGMENT */
|
|
53
|
+
))
|
|
54
|
+
]);
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
exports.default = _sfc_main;
|
|
60
|
+
//# sourceMappingURL=text-button-group.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"text-button-group.vue2.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -19,5 +19,16 @@ export declare const textButtonEmits: {
|
|
|
19
19
|
export type TextButtonEmits = typeof textButtonEmits;
|
|
20
20
|
export type TextButtonPropsType = ExtractPropTypes<typeof textButtonProps>;
|
|
21
21
|
export type TextButtonInstance = InstanceType<typeof TextButton>;
|
|
22
|
+
type TextButtonGroupItemType = TextButtonPropsType & {
|
|
23
|
+
text?: string;
|
|
24
|
+
slot?: string;
|
|
25
|
+
};
|
|
26
|
+
export declare const textButtonGroupProps: {
|
|
27
|
+
group: {
|
|
28
|
+
type: PropType<TextButtonGroupItemType[]>;
|
|
29
|
+
default: () => never[];
|
|
30
|
+
};
|
|
31
|
+
};
|
|
22
32
|
export declare function darkenColor(color: string, level: number): string;
|
|
23
33
|
export declare function getElementColor(el: HTMLElement): string;
|
|
34
|
+
export {};
|
|
@@ -32,6 +32,12 @@ const textButtonProps = {
|
|
|
32
32
|
const textButtonEmits = {
|
|
33
33
|
click: /* @__PURE__ */ __name((evt) => evt instanceof MouseEvent, "click")
|
|
34
34
|
};
|
|
35
|
+
const textButtonGroupProps = {
|
|
36
|
+
group: {
|
|
37
|
+
type: Array,
|
|
38
|
+
default: /* @__PURE__ */ __name(() => [], "default")
|
|
39
|
+
}
|
|
40
|
+
};
|
|
35
41
|
function darkenColor(color, level) {
|
|
36
42
|
let match = color.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/i);
|
|
37
43
|
if (!match) {
|
|
@@ -67,5 +73,6 @@ exports.builtInIcon = builtInIcon;
|
|
|
67
73
|
exports.darkenColor = darkenColor;
|
|
68
74
|
exports.getElementColor = getElementColor;
|
|
69
75
|
exports.textButtonEmits = textButtonEmits;
|
|
76
|
+
exports.textButtonGroupProps = textButtonGroupProps;
|
|
70
77
|
exports.textButtonProps = textButtonProps;
|
|
71
78
|
//# sourceMappingURL=text-button.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text-button.js","sources":["../../../../../../../packages/components/text-button/src/text-button.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\nimport type TextButton from './text-button.vue';\n\n// 内置图标\nexport type builtInIconType = 'edit' | 'add' | 'view' | 'del' | 'download' | 'upload' | 'import' | 'export';\n// 内置图标配置\nexport const builtInIcon: Record<builtInIconType, any> = {\n add: { icon: 'icon-xinzeng' },\n del: { icon: 'icon-shanchu', color: 'var(--el-color-danger)' },\n edit: { icon: 'icon-xiugai' },\n view: { icon: 'icon-chakan' },\n download: { icon: 'icon-xiazai11' },\n upload: { icon: 'icon-shangchuan1' },\n import: { icon: 'icon-daoru' },\n export: { icon: 'icon-daochu' },\n};\n\nexport const textButtonProps = {\n // 按钮图标\n // 1、内置图标:add(新增),del(删除),edit(编辑),view(详情),download(下载),upload(上传),import(导入),export(导出)\n // 2、可使用iconfont的图标\n // 3、可使用slot.icon自定义图标\n icon: {\n type: String as PropType<builtInIconType | string>,\n default: '',\n },\n // 按钮文字颜色\n textColor: String,\n // 是否禁用\n disabled: {\n type: Boolean,\n default: false,\n },\n};\n\nexport const textButtonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n};\n\nexport type TextButtonEmits = typeof textButtonEmits;\nexport type TextButtonPropsType = ExtractPropTypes<typeof textButtonProps>;\nexport type TextButtonInstance = InstanceType<typeof TextButton>;\n\n/**\n * 颜色加深\n * @param color\n * @param level 颜色加深程度,取值范围[0,1]\n */\nexport function darkenColor(color: string, level: number): string {\n // 解析颜色值\n let match = color.match(/^rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*(\\d+(?:\\.\\d+)?))?\\)$/i);\n if (!match) {\n // 如果不是rgb或rgba格式,则尝试转换为16进制\n color = hexToRgb(color);\n match = color.match(/^rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*(\\d+(?:\\.\\d+)?))?\\)$/i);\n }\n if (!match) {\n throw new Error('Invalid color format');\n }\n const [r, g, b, a] = match.slice(1).map((val, i) => (i === 3 ? parseFloat(val) : parseInt(val, 10)));\n // 计算加深后的颜色\n const darkenedR = Math.max(0, r - 255 * level);\n const darkenedG = Math.max(0, g - 255 * level);\n const darkenedB = Math.max(0, b - 255 * level);\n // 返回加深后的颜色\n return `rgba(${darkenedR}, ${darkenedG}, ${darkenedB}, ${a || 1})`;\n}\n\n/**\n * 获取当前Element的颜色(color)\n */\nexport function getElementColor(el: HTMLElement): string {\n const computedStyle = window.getComputedStyle(el);\n return computedStyle.color;\n}\n\n/**\n * 将16进制颜色转换为rgb格式\n * @param hex\n */\nfunction hexToRgb(hex: string): string {\n hex = hex.replace(/^#/, '');\n const bigint = parseInt(hex, 16);\n const r = (bigint >> 16) & 255;\n const g = (bigint >> 8) & 255;\n const b = bigint & 255;\n return `rgb(${r}, ${g}, ${b})`;\n}\n"],"names":[],"mappings":";;;;AAMO,MAAM,WAA4C,GAAA;AAAA,EACvD,GAAA,EAAK,EAAE,IAAA,EAAM,cAAe,EAAA;AAAA,EAC5B,GAAK,EAAA,EAAE,IAAM,EAAA,cAAA,EAAgB,OAAO,wBAAyB,EAAA;AAAA,EAC7D,IAAA,EAAM,EAAE,IAAA,EAAM,aAAc,EAAA;AAAA,EAC5B,IAAA,EAAM,EAAE,IAAA,EAAM,aAAc,EAAA;AAAA,EAC5B,QAAA,EAAU,EAAE,IAAA,EAAM,eAAgB,EAAA;AAAA,EAClC,MAAA,EAAQ,EAAE,IAAA,EAAM,kBAAmB,EAAA;AAAA,EACnC,MAAA,EAAQ,EAAE,IAAA,EAAM,YAAa,EAAA;AAAA,EAC7B,MAAA,EAAQ,EAAE,IAAA,EAAM,aAAc;AAChC;AAEO,MAAM,eAAkB,GAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAK7B,IAAM,EAAA;AAAA,IACJ,IAAM,EAAA,MAAA;AAAA,IACN,OAAS,EAAA;AAAA,GACX;AAAA;AAAA,EAEA,SAAW,EAAA,MAAA;AAAA;AAAA,EAEX,QAAU,EAAA;AAAA,IACR,IAAM,EAAA,OAAA;AAAA,IACN,OAAS,EAAA;AAAA;AAEb;AAEO,MAAM,eAAkB,GAAA;AAAA,EAC7B,KAAO,kBAAA,MAAA,CAAA,CAAC,GAAoB,KAAA,GAAA,YAAe,UAApC,EAAA,OAAA;AACT;
|
|
1
|
+
{"version":3,"file":"text-button.js","sources":["../../../../../../../packages/components/text-button/src/text-button.ts"],"sourcesContent":["import type { ExtractPropTypes, PropType } from 'vue';\nimport type TextButton from './text-button.vue';\n\n// 内置图标\nexport type builtInIconType = 'edit' | 'add' | 'view' | 'del' | 'download' | 'upload' | 'import' | 'export';\n// 内置图标配置\nexport const builtInIcon: Record<builtInIconType, any> = {\n add: { icon: 'icon-xinzeng' },\n del: { icon: 'icon-shanchu', color: 'var(--el-color-danger)' },\n edit: { icon: 'icon-xiugai' },\n view: { icon: 'icon-chakan' },\n download: { icon: 'icon-xiazai11' },\n upload: { icon: 'icon-shangchuan1' },\n import: { icon: 'icon-daoru' },\n export: { icon: 'icon-daochu' },\n};\n\nexport const textButtonProps = {\n // 按钮图标\n // 1、内置图标:add(新增),del(删除),edit(编辑),view(详情),download(下载),upload(上传),import(导入),export(导出)\n // 2、可使用iconfont的图标\n // 3、可使用slot.icon自定义图标\n icon: {\n type: String as PropType<builtInIconType | string>,\n default: '',\n },\n // 按钮文字颜色\n textColor: String,\n // 是否禁用\n disabled: {\n type: Boolean,\n default: false,\n },\n};\n\nexport const textButtonEmits = {\n click: (evt: MouseEvent) => evt instanceof MouseEvent,\n};\n\nexport type TextButtonEmits = typeof textButtonEmits;\nexport type TextButtonPropsType = ExtractPropTypes<typeof textButtonProps>;\nexport type TextButtonInstance = InstanceType<typeof TextButton>;\n\ntype TextButtonGroupItemType = TextButtonPropsType & {\n text?: string;\n slot?: string;\n};\nexport const textButtonGroupProps = {\n group: {\n type: Array as PropType<TextButtonGroupItemType[]>,\n default: () => [],\n },\n};\n\n/**\n * 颜色加深\n * @param color\n * @param level 颜色加深程度,取值范围[0,1]\n */\nexport function darkenColor(color: string, level: number): string {\n // 解析颜色值\n let match = color.match(/^rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*(\\d+(?:\\.\\d+)?))?\\)$/i);\n if (!match) {\n // 如果不是rgb或rgba格式,则尝试转换为16进制\n color = hexToRgb(color);\n match = color.match(/^rgba?\\((\\d+),\\s*(\\d+),\\s*(\\d+)(?:,\\s*(\\d+(?:\\.\\d+)?))?\\)$/i);\n }\n if (!match) {\n throw new Error('Invalid color format');\n }\n const [r, g, b, a] = match.slice(1).map((val, i) => (i === 3 ? parseFloat(val) : parseInt(val, 10)));\n // 计算加深后的颜色\n const darkenedR = Math.max(0, r - 255 * level);\n const darkenedG = Math.max(0, g - 255 * level);\n const darkenedB = Math.max(0, b - 255 * level);\n // 返回加深后的颜色\n return `rgba(${darkenedR}, ${darkenedG}, ${darkenedB}, ${a || 1})`;\n}\n\n/**\n * 获取当前Element的颜色(color)\n */\nexport function getElementColor(el: HTMLElement): string {\n const computedStyle = window.getComputedStyle(el);\n return computedStyle.color;\n}\n\n/**\n * 将16进制颜色转换为rgb格式\n * @param hex\n */\nfunction hexToRgb(hex: string): string {\n hex = hex.replace(/^#/, '');\n const bigint = parseInt(hex, 16);\n const r = (bigint >> 16) & 255;\n const g = (bigint >> 8) & 255;\n const b = bigint & 255;\n return `rgb(${r}, ${g}, ${b})`;\n}\n"],"names":[],"mappings":"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"}
|
package/lib/index.js
CHANGED
|
@@ -7,8 +7,8 @@ require('./components/index.js');
|
|
|
7
7
|
require('./hooks/index.js');
|
|
8
8
|
require('./utils/index.js');
|
|
9
9
|
var index = require('./components/checkbox/index.js');
|
|
10
|
-
var index$1 = require('./components/
|
|
11
|
-
var index$2 = require('./components/
|
|
10
|
+
var index$1 = require('./components/date-picker/index.js');
|
|
11
|
+
var index$2 = require('./components/descriptions/index.js');
|
|
12
12
|
var index$3 = require('./components/dialog/index.js');
|
|
13
13
|
var index$4 = require('./components/divider/index.js');
|
|
14
14
|
var index$5 = require('./components/drawer/index.js');
|
|
@@ -42,9 +42,9 @@ var util = require('./utils/util.js');
|
|
|
42
42
|
exports.default = installer.default;
|
|
43
43
|
exports.install = installer.install;
|
|
44
44
|
exports.ICheckbox = index.ICheckbox;
|
|
45
|
-
exports.
|
|
46
|
-
exports.
|
|
47
|
-
exports.
|
|
45
|
+
exports.IDatePicker = index$1.IDatePicker;
|
|
46
|
+
exports.IDescriptionItem = index$2.IDescriptionItem;
|
|
47
|
+
exports.IDescriptions = index$2.IDescriptions;
|
|
48
48
|
exports.IDialog = index$3.IDialog;
|
|
49
49
|
exports.IDivider = index$4.IDivider;
|
|
50
50
|
exports.IDrawer = index$5.IDrawer;
|
|
@@ -73,6 +73,7 @@ exports.TenantEnterpriseEmits = tenantEnterprise.TenantEnterpriseEmits;
|
|
|
73
73
|
exports.TenantEnterpriseProps = tenantEnterprise.TenantEnterpriseProps;
|
|
74
74
|
exports.ITenantEnterprise = index$j.ITenantEnterprise;
|
|
75
75
|
exports.ITextButton = index$k.ITextButton;
|
|
76
|
+
exports.ITextButtonGroup = index$k.ITextButtonGroup;
|
|
76
77
|
exports.useBaseTable = index$l.useBaseTable;
|
|
77
78
|
exports.useECharts = index$m.useECharts;
|
|
78
79
|
exports.withInstall = install.withInstall;
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/lib/installer.js
CHANGED
|
@@ -37,6 +37,7 @@ const component = [
|
|
|
37
37
|
index$6.IIconSelect,
|
|
38
38
|
index$7.IImageVerification,
|
|
39
39
|
index$8.ITextButton,
|
|
40
|
+
index$8.ITextButtonGroup,
|
|
40
41
|
index$9.IPageHeader,
|
|
41
42
|
index$a.ISearch,
|
|
42
43
|
index$b.ITable,
|
|
@@ -52,7 +53,7 @@ const component = [
|
|
|
52
53
|
index$k.IDatePicker
|
|
53
54
|
];
|
|
54
55
|
const install = /* @__PURE__ */ __name(function(app, _options) {
|
|
55
|
-
component.forEach((i) => app.use(i));
|
|
56
|
+
component.forEach((i) => app.use(i, _options));
|
|
56
57
|
}, "install");
|
|
57
58
|
var installer = {
|
|
58
59
|
install
|
package/lib/installer.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"installer.js","sources":["../../../../packages/installer.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\n\nimport {\n ICheckbox,\n IDatePicker,\n IDescriptionItem,\n IDescriptions,\n IDialog,\n IDivider,\n IDrawer,\n IFlvPlayer,\n IForm,\n IIconSelect,\n IImageVerification,\n ILink,\n ILivePlayer,\n IPageHeader,\n IRadio,\n ISearch,\n ISegmented,\n ISelect,\n ISplitPane,\n ITable,\n ITenantEnterprise,\n ITextButton,\n} from './components';\n\nconst component = [\n IForm,\n ISelect,\n IRadio,\n ICheckbox,\n IDivider,\n IDrawer,\n IIconSelect,\n IImageVerification,\n ITextButton,\n IPageHeader,\n ISearch,\n ITable,\n ISplitPane,\n ITenantEnterprise,\n ISegmented,\n IDescriptions,\n IDescriptionItem,\n ILivePlayer,\n IDialog,\n ILink,\n IFlvPlayer,\n IDatePicker,\n] as Plugin[];\n\nexport const install = function (app: App, _options?: any) {\n component.forEach(i => app.use(i));\n};\n\nexport default {\n install,\n};\n"],"names":["IForm","ISelect","IRadio","ICheckbox","IDivider","IDrawer","IIconSelect","IImageVerification","ITextButton","IPageHeader","ISearch","ITable","ISplitPane","ITenantEnterprise","ISegmented","IDescriptions","IDescriptionItem","ILivePlayer","IDialog","ILink","IFlvPlayer","IDatePicker"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"installer.js","sources":["../../../../packages/installer.ts"],"sourcesContent":["import type { App, Plugin } from 'vue';\n\nimport {\n ICheckbox,\n IDatePicker,\n IDescriptionItem,\n IDescriptions,\n IDialog,\n IDivider,\n IDrawer,\n IFlvPlayer,\n IForm,\n IIconSelect,\n IImageVerification,\n ILink,\n ILivePlayer,\n IPageHeader,\n IRadio,\n ISearch,\n ISegmented,\n ISelect,\n ISplitPane,\n ITable,\n ITenantEnterprise,\n ITextButton,\n ITextButtonGroup,\n} from './components';\n\nconst component = [\n IForm,\n ISelect,\n IRadio,\n ICheckbox,\n IDivider,\n IDrawer,\n IIconSelect,\n IImageVerification,\n ITextButton,\n ITextButtonGroup,\n IPageHeader,\n ISearch,\n ITable,\n ISplitPane,\n ITenantEnterprise,\n ISegmented,\n IDescriptions,\n IDescriptionItem,\n ILivePlayer,\n IDialog,\n ILink,\n IFlvPlayer,\n IDatePicker,\n] as Plugin[];\n\nexport const install = function (app: App, _options?: any) {\n component.forEach(i => app.use(i, _options));\n};\n\nexport default {\n install,\n};\n"],"names":["IForm","ISelect","IRadio","ICheckbox","IDivider","IDrawer","IIconSelect","IImageVerification","ITextButton","ITextButtonGroup","IPageHeader","ISearch","ITable","ISplitPane","ITenantEnterprise","ISegmented","IDescriptions","IDescriptionItem","ILivePlayer","IDialog","ILink","IFlvPlayer","IDatePicker"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,SAAY,GAAA;AAAA,EAChBA,WAAA;AAAA,EACAC,eAAA;AAAA,EACAC,cAAA;AAAA,EACAC,iBAAA;AAAA,EACAC,gBAAA;AAAA,EACAC,eAAA;AAAA,EACAC,mBAAA;AAAA,EACAC,0BAAA;AAAA,EACAC,mBAAA;AAAA,EACAC,wBAAA;AAAA,EACAC,mBAAA;AAAA,EACAC,eAAA;AAAA,EACAC,cAAA;AAAA,EACAC,kBAAA;AAAA,EACAC,yBAAA;AAAA,EACAC,kBAAA;AAAA,EACAC,qBAAA;AAAA,EACAC,wBAAA;AAAA,EACAC,mBAAA;AAAA,EACAC,eAAA;AAAA,EACAC,aAAA;AAAA,EACAC,kBAAA;AAAA,EACAC;AACF,CAAA;AAEa,MAAA,OAAA,mBAAoB,MAAA,CAAA,SAAA,GAAA,EAAU,QAAgB,EAAA;AACzD,EAAA,SAAA,CAAU,QAAQ,CAAK,CAAA,KAAA,GAAA,CAAI,GAAI,CAAA,CAAA,EAAG,QAAQ,CAAC,CAAA;AAC7C,CAFuB,EAAA,SAAA;AAIvB,gBAAe;AAAA,EACb;AACF,CAAA;;;;;"}
|
package/lib/utils/provide.d.ts
CHANGED
|
@@ -46,8 +46,12 @@ export declare const USER_INFO: InjectionKey<{
|
|
|
46
46
|
export declare const SITE_UNIT_STORE: InjectionKey<{
|
|
47
47
|
tenantList: any[];
|
|
48
48
|
tenantEnterprise: any[];
|
|
49
|
-
currentTenantId:
|
|
50
|
-
|
|
49
|
+
currentTenantId: number;
|
|
50
|
+
currentEnterpriseId: number;
|
|
51
|
+
getCurrentTenantId: number;
|
|
52
|
+
getCurrentEnterpriseId: number | number[];
|
|
53
|
+
SET_CURRENT_TENANT_ID: (id: number) => void;
|
|
54
|
+
SET_CURRENT_ENTERPRISE_ID: (id: number | number[]) => void;
|
|
51
55
|
getEnterprise: (isSet?: boolean, tenantId?: number | string) => Promise<any[]>;
|
|
52
56
|
getTenantList: () => Promise<any[]>;
|
|
53
57
|
}>;
|
package/lib/utils/provide.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provide.js","sources":["../../../../../packages/utils/provide.ts"],"sourcesContent":["import type { AxiosRequestConfig, Method } from 'axios';\nimport type { InjectionKey, Ref } from 'vue';\n\n/**\n * 全局字典注入\n */\nexport const DICT_STORE = Symbol('dictStore') as InjectionKey<{\n dict: Ref<Record<string, any>>;\n getDict: (dictType: string) => Promise<any[]>;\n}>;\n\nexport interface IMenuStore {\n // 当前激活菜单\n // todo any => class.Menu\n currentMenu: Ref<any>;\n getCurrentMenu: () => any;\n // 包含全部菜单信息的tree\n menuTreeAll: Ref<any[]>;\n // 包含全部菜单信息的list\n menuListAll: Ref<any[]>;\n}\n\n/**\n * 菜单store\n * - 当前激活菜单: currentMenu\n * - 全部菜单tree:menuTreeAll\n * - 全部菜单list:menuListAll\n */\nexport const MENU_STORE = Symbol('MENU_STORE') as InjectionKey<IMenuStore>;\n\n/**\n * http请求方法注入\n */\nexport const HTTP_REQ = Symbol('HTTP_REQ') as InjectionKey<{\n request: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n productionReq: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n systemReq: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n aiReq: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n busReq: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n}>;\n\n/**\n * userInfo 注入\n */\nexport const USER_INFO = Symbol('USER_INFO') as InjectionKey<{\n username: string;\n roles: any[];\n verifyCode: string;\n currentPage: number;\n isRemembered: boolean;\n loginDay: number;\n userInfo: {\n roleId?: number;\n nickName?: string;\n phoneNumber?: string;\n userName?: string;\n userType?: string;\n roleName?: string;\n enterpriseName?: string;\n tenantId?: number;\n tenantEnterpriseId?: number;\n tenantEnterpriseDeptId?: number;\n userId?: number;\n id?: string;\n soldierUserId?: string;\n avatar?: string;\n roles?: any;\n };\n}>;\n\n/**\n * 站点单位store 注入\n */\nexport const SITE_UNIT_STORE = Symbol('SITE_UNIT_STORE') as InjectionKey<{\n tenantList: any[];\n tenantEnterprise: any[];\n currentTenantId:
|
|
1
|
+
{"version":3,"file":"provide.js","sources":["../../../../../packages/utils/provide.ts"],"sourcesContent":["import type { AxiosRequestConfig, Method } from 'axios';\nimport type { InjectionKey, Ref } from 'vue';\n\n/**\n * 全局字典注入\n */\nexport const DICT_STORE = Symbol('dictStore') as InjectionKey<{\n dict: Ref<Record<string, any>>;\n getDict: (dictType: string) => Promise<any[]>;\n}>;\n\nexport interface IMenuStore {\n // 当前激活菜单\n // todo any => class.Menu\n currentMenu: Ref<any>;\n getCurrentMenu: () => any;\n // 包含全部菜单信息的tree\n menuTreeAll: Ref<any[]>;\n // 包含全部菜单信息的list\n menuListAll: Ref<any[]>;\n}\n\n/**\n * 菜单store\n * - 当前激活菜单: currentMenu\n * - 全部菜单tree:menuTreeAll\n * - 全部菜单list:menuListAll\n */\nexport const MENU_STORE = Symbol('MENU_STORE') as InjectionKey<IMenuStore>;\n\n/**\n * http请求方法注入\n */\nexport const HTTP_REQ = Symbol('HTTP_REQ') as InjectionKey<{\n request: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n productionReq: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n systemReq: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n aiReq: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n busReq: <T>(method: Method, url: string, param?: AxiosRequestConfig) => Promise<T>;\n}>;\n\n/**\n * userInfo 注入\n */\nexport const USER_INFO = Symbol('USER_INFO') as InjectionKey<{\n username: string;\n roles: any[];\n verifyCode: string;\n currentPage: number;\n isRemembered: boolean;\n loginDay: number;\n userInfo: {\n roleId?: number;\n nickName?: string;\n phoneNumber?: string;\n userName?: string;\n userType?: string;\n roleName?: string;\n enterpriseName?: string;\n tenantId?: number;\n tenantEnterpriseId?: number;\n tenantEnterpriseDeptId?: number;\n userId?: number;\n id?: string;\n soldierUserId?: string;\n avatar?: string;\n roles?: any;\n };\n}>;\n\n/**\n * 站点单位store 注入\n */\nexport const SITE_UNIT_STORE = Symbol('SITE_UNIT_STORE') as InjectionKey<{\n tenantList: any[];\n tenantEnterprise: any[];\n currentTenantId: number;\n currentEnterpriseId: number;\n getCurrentTenantId: number;\n getCurrentEnterpriseId: number | number[];\n SET_CURRENT_TENANT_ID: (id: number) => void;\n SET_CURRENT_ENTERPRISE_ID: (id: number | number[]) => void;\n getEnterprise: (isSet?: boolean, tenantId?: number | string) => Promise<any[]>;\n getTenantList: () => Promise<any[]>;\n}>;\n\n/**\n * 注入系统配置serverConfig.json\n */\nexport const SERVER_CONFIG = Symbol('SERVER_CONFIG') as InjectionKey<Record<string, any>>;\n\n/**\n * 注入主题\n */\nexport const THEME_STORE = Symbol('SYSTEM_THEME') as InjectionKey<Ref<string>>;\n"],"names":[],"mappings":";;AAMa,MAAA,UAAA,GAAa,OAAO,WAAW;AAsB/B,MAAA,UAAA,GAAa,OAAO,YAAY;AAKhC,MAAA,QAAA,GAAW,OAAO,UAAU;AAW5B,MAAA,SAAA,GAAY,OAAO,WAAW;AA6B9B,MAAA,eAAA,GAAkB,OAAO,iBAAiB;AAgB1C,MAAA,aAAA,GAAgB,OAAO,eAAe;AAKtC,MAAA,WAAA,GAAc,OAAO,cAAc;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.i-table-warp{width:100%;height:100%}.i-table-warp .el-table.i-table{--el-table-header-bg-color
|
|
1
|
+
.i-table-warp{width:100%;height:100%}.i-table-warp .el-table.i-table{--el-table-header-bg-color:var(--el-bg-color-page);--el-table-row-hover-bg-color:var(--el-color-primary-light-9)}.i-table-warp .el-table.i-table .el-table__body,.i-table-warp .el-table.i-table .el-table__header{margin:0}.i-table-warp .i-table-pagination{height:50px;display:flex;justify-content:flex-end;align-items:center}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
.i-text-button{font-size:15px;font-family:PingFang SC,Helvetica Neue,Helvetica,STHeiTi,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;font-weight:500;transition:all .3s;display:inline-flex;justify-content:center;align-items:center;height:23px;padding:0 4px;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none
|
|
1
|
+
.i-text-button{font-size:15px;font-family:PingFang SC,Helvetica Neue,Helvetica,STHeiTi,Microsoft YaHei,WenQuanYi Micro Hei,sans-serif;font-weight:500;transition:all .3s;display:inline-flex;justify-content:center;align-items:center;height:23px;padding:0 4px;cursor:pointer;position:relative;-webkit-user-select:none;user-select:none}.i-text-button.i-text-button__disabled{cursor:not-allowed;color:var(--el-text-color-disabled)!important}.i-text-button.i-text-button__disabled:hover>.i-text-button__line{width:0}.i-text-button+.i-text-button{margin-left:2px}.i-text-button>.i-text-button__icon{margin-right:4px}.i-text-button>.i-text-button__icon .iconfont{font-size:14px}.i-text-button>.i-text-button__line{position:absolute;width:0;height:1px;bottom:0;left:50%;transform:translate(-50%,0);transition:all .3s;color:#409eff}.i-text-button:hover>.i-text-button__line{width:calc(100% - 8px)}.i-text-button-group{display:flex;align-items:center;justify-content:flex-start}
|