@fewangsit/wangsvue-gsts 1.0.0-alpha.1 → 1.0.0-alpha.3
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/components/badgegroup/BadgeGroup.vue.d.ts +18 -2
- package/package.json +1 -1
- package/wangsvue-gsts.es.js +8119 -8059
- package/wangsvue-gsts.system.js +102 -102
|
@@ -1,10 +1,26 @@
|
|
|
1
1
|
import { Slot } from 'vue';
|
|
2
2
|
import { BadgeProps } from 'lib/components/badge/Badge.vue.d';
|
|
3
|
-
import { ClassComponent } from '../ts-helpers.d';
|
|
3
|
+
import { ClassComponent, HintedString } from '../ts-helpers.d';
|
|
4
|
+
|
|
5
|
+
export type ObjectBadge = {
|
|
6
|
+
text: string;
|
|
7
|
+
severity: 'success' | 'danger' | 'warning' | 'dark' | 'primary';
|
|
8
|
+
};
|
|
4
9
|
|
|
5
10
|
export interface BadgeGroupProps
|
|
6
11
|
extends Omit<BadgeProps, 'label' | 'disabled' | 'removable'> {
|
|
7
|
-
|
|
12
|
+
/**
|
|
13
|
+
* Support data type object to determine severity for specific text
|
|
14
|
+
*/
|
|
15
|
+
labels: string[] | ObjectBadge[];
|
|
16
|
+
/**
|
|
17
|
+
* Determine whether severity of text "more" is customizable
|
|
18
|
+
*
|
|
19
|
+
* @default undefined
|
|
20
|
+
*/
|
|
21
|
+
textMoreSeverity?: HintedString<
|
|
22
|
+
'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'contrast'
|
|
23
|
+
>;
|
|
8
24
|
/**
|
|
9
25
|
* The text shown on the more button
|
|
10
26
|
*
|