@aplus-frontend/ui 0.0.17 → 0.0.18
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/index.mjs +23 -22
- package/es/src/ap-field/date/helper.d.ts +7 -0
- package/es/src/ap-field/date/helper.mjs +17 -7
- package/es/src/ap-field/date/index.vue.mjs +46 -39
- package/es/src/ap-field/date-range/index.vue.mjs +63 -61
- package/es/src/ap-field/interface.d.ts +9 -0
- package/es/src/ap-table/ap-table.vue.mjs +92 -95
- package/es/src/ap-table/constants.d.ts +24 -0
- package/es/src/ap-table/interface.d.ts +18 -4
- package/es/src/ap-table/utils.d.ts +6831 -845
- package/es/src/business/ap-label/ApLabel.vue.d.ts +38 -0
- package/es/src/business/ap-label/ApLabel.vue.mjs +4 -0
- package/es/src/business/ap-label/ApLabel.vue2.mjs +52 -0
- package/es/src/business/ap-label/index.d.ts +4 -0
- package/es/src/business/ap-label/interface.d.ts +8 -0
- package/es/src/business/ap-label/style.css +4 -0
- package/es/src/business/index.d.ts +256 -1
- package/es/src/business/index.mjs +7 -4
- package/es/src/editable-table/interface.d.ts +1 -1
- package/es/src/index.mjs +178 -177
- package/es/src/theme/ap-label/ap-label.css +4 -0
- package/lib/index.js +1 -1
- package/lib/src/ap-field/date/helper.d.ts +7 -0
- package/lib/src/ap-field/date/helper.js +1 -1
- package/lib/src/ap-field/date/index.vue.js +1 -1
- package/lib/src/ap-field/date-range/index.vue.js +1 -1
- package/lib/src/ap-field/interface.d.ts +9 -0
- package/lib/src/ap-table/ap-table.vue.js +1 -1
- package/lib/src/ap-table/constants.d.ts +24 -0
- package/lib/src/ap-table/interface.d.ts +18 -4
- package/lib/src/ap-table/utils.d.ts +6831 -845
- package/lib/src/business/ap-label/ApLabel.vue.d.ts +38 -0
- package/lib/src/business/ap-label/ApLabel.vue.js +1 -0
- package/lib/src/business/ap-label/ApLabel.vue2.js +1 -0
- package/lib/src/business/ap-label/index.d.ts +4 -0
- package/lib/src/business/ap-label/interface.d.ts +8 -0
- package/lib/src/business/ap-label/style.css +4 -0
- package/lib/src/business/index.d.ts +256 -1
- package/lib/src/business/index.js +1 -1
- package/lib/src/editable-table/interface.d.ts +1 -1
- package/lib/src/index.js +1 -1
- package/lib/src/theme/ap-label/ap-label.css +4 -0
- package/package.json +1 -1
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { ApLabelProps } from './interface';
|
|
2
|
+
import { DefineComponent, ComponentOptionsMixin, PublicProps, ExtractPropTypes, PropType } from 'vue';
|
|
3
|
+
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
4
|
+
|
|
5
|
+
declare const _default: DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApLabelProps>, {
|
|
6
|
+
status: string;
|
|
7
|
+
placement: string;
|
|
8
|
+
iconColor: string;
|
|
9
|
+
text: string;
|
|
10
|
+
}>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, PublicProps, Readonly< ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<ApLabelProps>, {
|
|
11
|
+
status: string;
|
|
12
|
+
placement: string;
|
|
13
|
+
iconColor: string;
|
|
14
|
+
text: string;
|
|
15
|
+
}>>>, {
|
|
16
|
+
text: any;
|
|
17
|
+
placement: TooltipPlacement;
|
|
18
|
+
status: "success" | "error" | "default" | "warning" | "processing";
|
|
19
|
+
iconColor: string;
|
|
20
|
+
}, {}>;
|
|
21
|
+
export default _default;
|
|
22
|
+
type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
|
|
23
|
+
type __VLS_TypePropsToRuntimeProps<T> = {
|
|
24
|
+
[K in keyof T]-?: {} extends Pick<T, K> ? {
|
|
25
|
+
type: PropType<__VLS_NonUndefinedable<T[K]>>;
|
|
26
|
+
} : {
|
|
27
|
+
type: PropType<T[K]>;
|
|
28
|
+
required: true;
|
|
29
|
+
};
|
|
30
|
+
};
|
|
31
|
+
type __VLS_WithDefaults<P, D> = {
|
|
32
|
+
[K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
|
|
33
|
+
default: D[K];
|
|
34
|
+
}> : P[K];
|
|
35
|
+
};
|
|
36
|
+
type __VLS_Prettify<T> = {
|
|
37
|
+
[K in keyof T]: T[K];
|
|
38
|
+
} & {};
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
import { defineComponent as n, openBlock as o, createElementBlock as p, normalizeClass as s, unref as t, createVNode as l, normalizeProps as m, guardReactiveProps as c, createBlock as i, withCtx as u, normalizeStyle as f, createCommentVNode as d } from "vue";
|
|
2
|
+
import { Badge as C, Tooltip as g } from "ant-design-vue";
|
|
3
|
+
import { QuestionCircleOutlined as h } from "@ant-design/icons-vue";
|
|
4
|
+
import "../../config-provider/index.mjs";
|
|
5
|
+
import { omit as x } from "lodash-unified";
|
|
6
|
+
import "./style.css";
|
|
7
|
+
import { useNamespace as y } from "../../config-provider/hooks/use-namespace.mjs";
|
|
8
|
+
const F = /* @__PURE__ */ n({
|
|
9
|
+
name: "ApLabel",
|
|
10
|
+
__name: "ApLabel",
|
|
11
|
+
props: {
|
|
12
|
+
count: {},
|
|
13
|
+
showZero: { type: Boolean },
|
|
14
|
+
overflowCount: {},
|
|
15
|
+
dot: { type: Boolean },
|
|
16
|
+
prefixCls: {},
|
|
17
|
+
scrollNumberPrefixCls: {},
|
|
18
|
+
status: { default: "default" },
|
|
19
|
+
size: {},
|
|
20
|
+
color: {},
|
|
21
|
+
text: { default: "" },
|
|
22
|
+
offset: {},
|
|
23
|
+
numberStyle: {},
|
|
24
|
+
title: {},
|
|
25
|
+
helpMessage: {},
|
|
26
|
+
placement: { default: "top" },
|
|
27
|
+
iconColor: { default: "#FF4D4F" }
|
|
28
|
+
},
|
|
29
|
+
setup(r) {
|
|
30
|
+
const e = r, { b: a } = y("ap-label");
|
|
31
|
+
return (_, b) => (o(), p("div", {
|
|
32
|
+
class: s([t(a)()])
|
|
33
|
+
}, [
|
|
34
|
+
l(t(C), m(c(t(x)(e, ["helpMessage", "placement", "iconColor"]))), null, 16),
|
|
35
|
+
e.helpMessage ? (o(), i(t(g), {
|
|
36
|
+
key: 0,
|
|
37
|
+
placement: e.placement,
|
|
38
|
+
title: e.helpMessage
|
|
39
|
+
}, {
|
|
40
|
+
default: u(() => [
|
|
41
|
+
l(t(h), {
|
|
42
|
+
style: f({ color: e.iconColor, marginLeft: "6px" })
|
|
43
|
+
}, null, 8, ["style"])
|
|
44
|
+
]),
|
|
45
|
+
_: 1
|
|
46
|
+
}, 8, ["placement", "title"])) : d("", !0)
|
|
47
|
+
], 2));
|
|
48
|
+
}
|
|
49
|
+
});
|
|
50
|
+
export {
|
|
51
|
+
F as default
|
|
52
|
+
};
|
|
@@ -1,4 +1,6 @@
|
|
|
1
|
-
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin } from 'vue';
|
|
1
|
+
import { CreateComponentPublicInstance, ExtractPropTypes, PropType, ComponentOptionsMixin, VNodeProps, AllowedComponentProps, ComponentCustomProps, ComponentOptionsBase, Plugin, CSSProperties } from 'vue';
|
|
2
|
+
import { LiteralUnion } from 'ant-design-vue/es/_util/type';
|
|
3
|
+
import { TooltipPlacement } from 'ant-design-vue/es/tooltip';
|
|
2
4
|
export type { ApTitleProps } from './title/interface';
|
|
3
5
|
export declare const ApTitle: {
|
|
4
6
|
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
@@ -121,3 +123,256 @@ export declare const ApTitle: {
|
|
|
121
123
|
onClick?: (() => void) | undefined;
|
|
122
124
|
};
|
|
123
125
|
});
|
|
126
|
+
export type { ApLabelProps } from './ap-label/interface';
|
|
127
|
+
export declare const ApLabel: {
|
|
128
|
+
new (...args: any[]): CreateComponentPublicInstance<Readonly< ExtractPropTypes<{
|
|
129
|
+
text: {
|
|
130
|
+
type: PropType<any>;
|
|
131
|
+
default: string;
|
|
132
|
+
};
|
|
133
|
+
color: {
|
|
134
|
+
type: PropType<LiteralUnion<"blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "lime" | "gold">>;
|
|
135
|
+
};
|
|
136
|
+
prefixCls: {
|
|
137
|
+
type: PropType<string>;
|
|
138
|
+
};
|
|
139
|
+
placement: {
|
|
140
|
+
type: PropType<TooltipPlacement>;
|
|
141
|
+
required: true;
|
|
142
|
+
default: string;
|
|
143
|
+
};
|
|
144
|
+
title: {
|
|
145
|
+
type: PropType<string>;
|
|
146
|
+
};
|
|
147
|
+
size: {
|
|
148
|
+
type: PropType<"default" | "small">;
|
|
149
|
+
};
|
|
150
|
+
status: {
|
|
151
|
+
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
152
|
+
default: string;
|
|
153
|
+
};
|
|
154
|
+
offset: {
|
|
155
|
+
type: PropType<[string | number, string | number]>;
|
|
156
|
+
};
|
|
157
|
+
dot: {
|
|
158
|
+
type: PropType<boolean>;
|
|
159
|
+
};
|
|
160
|
+
helpMessage: {
|
|
161
|
+
type: PropType<string>;
|
|
162
|
+
};
|
|
163
|
+
count: {
|
|
164
|
+
type: PropType<any>;
|
|
165
|
+
};
|
|
166
|
+
showZero: {
|
|
167
|
+
type: PropType<boolean>;
|
|
168
|
+
};
|
|
169
|
+
overflowCount: {
|
|
170
|
+
type: PropType<number>;
|
|
171
|
+
};
|
|
172
|
+
scrollNumberPrefixCls: {
|
|
173
|
+
type: PropType<string>;
|
|
174
|
+
};
|
|
175
|
+
numberStyle: {
|
|
176
|
+
type: PropType<CSSProperties>;
|
|
177
|
+
};
|
|
178
|
+
iconColor: {
|
|
179
|
+
type: PropType<string>;
|
|
180
|
+
required: true;
|
|
181
|
+
default: string;
|
|
182
|
+
};
|
|
183
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, VNodeProps & AllowedComponentProps & ComponentCustomProps & Readonly< ExtractPropTypes<{
|
|
184
|
+
text: {
|
|
185
|
+
type: PropType<any>;
|
|
186
|
+
default: string;
|
|
187
|
+
};
|
|
188
|
+
color: {
|
|
189
|
+
type: PropType<LiteralUnion<"blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "lime" | "gold">>;
|
|
190
|
+
};
|
|
191
|
+
prefixCls: {
|
|
192
|
+
type: PropType<string>;
|
|
193
|
+
};
|
|
194
|
+
placement: {
|
|
195
|
+
type: PropType<TooltipPlacement>;
|
|
196
|
+
required: true;
|
|
197
|
+
default: string;
|
|
198
|
+
};
|
|
199
|
+
title: {
|
|
200
|
+
type: PropType<string>;
|
|
201
|
+
};
|
|
202
|
+
size: {
|
|
203
|
+
type: PropType<"default" | "small">;
|
|
204
|
+
};
|
|
205
|
+
status: {
|
|
206
|
+
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
207
|
+
default: string;
|
|
208
|
+
};
|
|
209
|
+
offset: {
|
|
210
|
+
type: PropType<[string | number, string | number]>;
|
|
211
|
+
};
|
|
212
|
+
dot: {
|
|
213
|
+
type: PropType<boolean>;
|
|
214
|
+
};
|
|
215
|
+
helpMessage: {
|
|
216
|
+
type: PropType<string>;
|
|
217
|
+
};
|
|
218
|
+
count: {
|
|
219
|
+
type: PropType<any>;
|
|
220
|
+
};
|
|
221
|
+
showZero: {
|
|
222
|
+
type: PropType<boolean>;
|
|
223
|
+
};
|
|
224
|
+
overflowCount: {
|
|
225
|
+
type: PropType<number>;
|
|
226
|
+
};
|
|
227
|
+
scrollNumberPrefixCls: {
|
|
228
|
+
type: PropType<string>;
|
|
229
|
+
};
|
|
230
|
+
numberStyle: {
|
|
231
|
+
type: PropType<CSSProperties>;
|
|
232
|
+
};
|
|
233
|
+
iconColor: {
|
|
234
|
+
type: PropType<string>;
|
|
235
|
+
required: true;
|
|
236
|
+
default: string;
|
|
237
|
+
};
|
|
238
|
+
}>>, {
|
|
239
|
+
text: any;
|
|
240
|
+
placement: TooltipPlacement;
|
|
241
|
+
status: "success" | "error" | "default" | "warning" | "processing";
|
|
242
|
+
iconColor: string;
|
|
243
|
+
}, true, {}, {}, {
|
|
244
|
+
P: {};
|
|
245
|
+
B: {};
|
|
246
|
+
D: {};
|
|
247
|
+
C: {};
|
|
248
|
+
M: {};
|
|
249
|
+
Defaults: {};
|
|
250
|
+
}, Readonly< ExtractPropTypes<{
|
|
251
|
+
text: {
|
|
252
|
+
type: PropType<any>;
|
|
253
|
+
default: string;
|
|
254
|
+
};
|
|
255
|
+
color: {
|
|
256
|
+
type: PropType<LiteralUnion<"blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "lime" | "gold">>;
|
|
257
|
+
};
|
|
258
|
+
prefixCls: {
|
|
259
|
+
type: PropType<string>;
|
|
260
|
+
};
|
|
261
|
+
placement: {
|
|
262
|
+
type: PropType<TooltipPlacement>;
|
|
263
|
+
required: true;
|
|
264
|
+
default: string;
|
|
265
|
+
};
|
|
266
|
+
title: {
|
|
267
|
+
type: PropType<string>;
|
|
268
|
+
};
|
|
269
|
+
size: {
|
|
270
|
+
type: PropType<"default" | "small">;
|
|
271
|
+
};
|
|
272
|
+
status: {
|
|
273
|
+
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
274
|
+
default: string;
|
|
275
|
+
};
|
|
276
|
+
offset: {
|
|
277
|
+
type: PropType<[string | number, string | number]>;
|
|
278
|
+
};
|
|
279
|
+
dot: {
|
|
280
|
+
type: PropType<boolean>;
|
|
281
|
+
};
|
|
282
|
+
helpMessage: {
|
|
283
|
+
type: PropType<string>;
|
|
284
|
+
};
|
|
285
|
+
count: {
|
|
286
|
+
type: PropType<any>;
|
|
287
|
+
};
|
|
288
|
+
showZero: {
|
|
289
|
+
type: PropType<boolean>;
|
|
290
|
+
};
|
|
291
|
+
overflowCount: {
|
|
292
|
+
type: PropType<number>;
|
|
293
|
+
};
|
|
294
|
+
scrollNumberPrefixCls: {
|
|
295
|
+
type: PropType<string>;
|
|
296
|
+
};
|
|
297
|
+
numberStyle: {
|
|
298
|
+
type: PropType<CSSProperties>;
|
|
299
|
+
};
|
|
300
|
+
iconColor: {
|
|
301
|
+
type: PropType<string>;
|
|
302
|
+
required: true;
|
|
303
|
+
default: string;
|
|
304
|
+
};
|
|
305
|
+
}>>, {}, {}, {}, {}, {
|
|
306
|
+
text: any;
|
|
307
|
+
placement: TooltipPlacement;
|
|
308
|
+
status: "success" | "error" | "default" | "warning" | "processing";
|
|
309
|
+
iconColor: string;
|
|
310
|
+
}>;
|
|
311
|
+
__isFragment?: undefined;
|
|
312
|
+
__isTeleport?: undefined;
|
|
313
|
+
__isSuspense?: undefined;
|
|
314
|
+
} & ComponentOptionsBase<Readonly< ExtractPropTypes<{
|
|
315
|
+
text: {
|
|
316
|
+
type: PropType<any>;
|
|
317
|
+
default: string;
|
|
318
|
+
};
|
|
319
|
+
color: {
|
|
320
|
+
type: PropType<LiteralUnion<"blue" | "purple" | "cyan" | "green" | "magenta" | "pink" | "red" | "orange" | "yellow" | "volcano" | "geekblue" | "lime" | "gold">>;
|
|
321
|
+
};
|
|
322
|
+
prefixCls: {
|
|
323
|
+
type: PropType<string>;
|
|
324
|
+
};
|
|
325
|
+
placement: {
|
|
326
|
+
type: PropType<TooltipPlacement>;
|
|
327
|
+
required: true;
|
|
328
|
+
default: string;
|
|
329
|
+
};
|
|
330
|
+
title: {
|
|
331
|
+
type: PropType<string>;
|
|
332
|
+
};
|
|
333
|
+
size: {
|
|
334
|
+
type: PropType<"default" | "small">;
|
|
335
|
+
};
|
|
336
|
+
status: {
|
|
337
|
+
type: PropType<"success" | "error" | "default" | "warning" | "processing">;
|
|
338
|
+
default: string;
|
|
339
|
+
};
|
|
340
|
+
offset: {
|
|
341
|
+
type: PropType<[string | number, string | number]>;
|
|
342
|
+
};
|
|
343
|
+
dot: {
|
|
344
|
+
type: PropType<boolean>;
|
|
345
|
+
};
|
|
346
|
+
helpMessage: {
|
|
347
|
+
type: PropType<string>;
|
|
348
|
+
};
|
|
349
|
+
count: {
|
|
350
|
+
type: PropType<any>;
|
|
351
|
+
};
|
|
352
|
+
showZero: {
|
|
353
|
+
type: PropType<boolean>;
|
|
354
|
+
};
|
|
355
|
+
overflowCount: {
|
|
356
|
+
type: PropType<number>;
|
|
357
|
+
};
|
|
358
|
+
scrollNumberPrefixCls: {
|
|
359
|
+
type: PropType<string>;
|
|
360
|
+
};
|
|
361
|
+
numberStyle: {
|
|
362
|
+
type: PropType<CSSProperties>;
|
|
363
|
+
};
|
|
364
|
+
iconColor: {
|
|
365
|
+
type: PropType<string>;
|
|
366
|
+
required: true;
|
|
367
|
+
default: string;
|
|
368
|
+
};
|
|
369
|
+
}>>, {}, unknown, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
|
|
370
|
+
text: any;
|
|
371
|
+
placement: TooltipPlacement;
|
|
372
|
+
status: "success" | "error" | "default" | "warning" | "processing";
|
|
373
|
+
iconColor: string;
|
|
374
|
+
}, {}, string, {}> & VNodeProps & AllowedComponentProps & ComponentCustomProps & Plugin<any[]> & (new (...args: any[]) => {
|
|
375
|
+
$props: {
|
|
376
|
+
onClick?: (() => void) | undefined;
|
|
377
|
+
};
|
|
378
|
+
});
|
|
@@ -1,7 +1,10 @@
|
|
|
1
|
-
import { withInstall as
|
|
1
|
+
import { withInstall as o } from "@aplus-frontend/utils";
|
|
2
2
|
import "./title/ApTitle.vue.mjs";
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import "./ap-label/ApLabel.vue.mjs";
|
|
4
|
+
import t from "./title/ApTitle.vue2.mjs";
|
|
5
|
+
import m from "./ap-label/ApLabel.vue2.mjs";
|
|
6
|
+
const s = o(t), a = o(m);
|
|
5
7
|
export {
|
|
6
|
-
|
|
8
|
+
a as ApLabel,
|
|
9
|
+
s as ApTitle
|
|
7
10
|
};
|
|
@@ -35,7 +35,7 @@ export type EditableColumnType<RecordType = any, ValueType extends ApTableValueT
|
|
|
35
35
|
/**
|
|
36
36
|
* 值类型额外配置的参数(支持函数)
|
|
37
37
|
*/
|
|
38
|
-
fieldProps?: ApTableValueFields[ValueType] | ((opt
|
|
38
|
+
fieldProps?: ApTableValueFields[ValueType] | ((opt: {
|
|
39
39
|
value: any;
|
|
40
40
|
text: any;
|
|
41
41
|
record: RecordType;
|