vueless 0.0.261 → 0.0.262
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/package.json +1 -1
- package/ui.dropdown-badge/composables/attrs.composable.js +5 -5
- package/ui.dropdown-button/composables/attrs.composable.js +5 -5
- package/ui.dropdown-link/composables/attrs.composable.js +4 -4
- package/ui.dropdown-list/composables/attrs.composable.js +5 -5
- package/web-types.json +1 -1
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import defaultConfig from "../configs/default.config";
|
|
|
5
5
|
import { computed } from "vue";
|
|
6
6
|
|
|
7
7
|
export default function useAttrs(props, { isShownOptions }) {
|
|
8
|
-
const { config, getAttrs, hasSlotContent, isSystemKey } = useUI(
|
|
8
|
+
const { config, getAttrs, hasSlotContent, isSystemKey, isCVA } = useUI(
|
|
9
9
|
defaultConfig,
|
|
10
10
|
() => props.config,
|
|
11
11
|
);
|
|
@@ -15,15 +15,15 @@ export default function useAttrs(props, { isShownOptions }) {
|
|
|
15
15
|
if (isSystemKey(key)) continue;
|
|
16
16
|
|
|
17
17
|
const classes = computed(() => {
|
|
18
|
-
|
|
18
|
+
let value = config.value[key];
|
|
19
19
|
|
|
20
|
-
if (value
|
|
21
|
-
|
|
20
|
+
if (isCVA(value)) {
|
|
21
|
+
value = cva(value)({
|
|
22
22
|
...props,
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
return
|
|
26
|
+
return value;
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
attrs[`${key}Attrs`] = getAttrs(key, { classes });
|
|
@@ -5,7 +5,7 @@ import defaultConfig from "../configs/default.config";
|
|
|
5
5
|
import { computed } from "vue";
|
|
6
6
|
|
|
7
7
|
export default function useAttrs(props, { isShownOptions }) {
|
|
8
|
-
const { config, getAttrs, hasSlotContent, isSystemKey } = useUI(
|
|
8
|
+
const { config, getAttrs, hasSlotContent, isSystemKey, isCVA } = useUI(
|
|
9
9
|
defaultConfig,
|
|
10
10
|
() => props.config,
|
|
11
11
|
);
|
|
@@ -15,15 +15,15 @@ export default function useAttrs(props, { isShownOptions }) {
|
|
|
15
15
|
if (isSystemKey(key)) continue;
|
|
16
16
|
|
|
17
17
|
const classes = computed(() => {
|
|
18
|
-
|
|
18
|
+
let value = config.value[key];
|
|
19
19
|
|
|
20
|
-
if (value
|
|
21
|
-
|
|
20
|
+
if (isCVA(value)) {
|
|
21
|
+
value = cva(value)({
|
|
22
22
|
...props,
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
return
|
|
26
|
+
return value;
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
attrs[`${key}Attrs`] = getAttrs(key, { classes });
|
|
@@ -5,7 +5,7 @@ import defaultConfig from "../configs/default.config";
|
|
|
5
5
|
import { computed } from "vue";
|
|
6
6
|
|
|
7
7
|
export default function useAttrs(props, { isShownOptions }) {
|
|
8
|
-
const { config, getAttrs, hasSlotContent, isSystemKey } = useUI(
|
|
8
|
+
const { config, getAttrs, hasSlotContent, isSystemKey, isCVA } = useUI(
|
|
9
9
|
defaultConfig,
|
|
10
10
|
() => props.config,
|
|
11
11
|
);
|
|
@@ -15,15 +15,15 @@ export default function useAttrs(props, { isShownOptions }) {
|
|
|
15
15
|
if (isSystemKey(key)) continue;
|
|
16
16
|
|
|
17
17
|
const classes = computed(() => {
|
|
18
|
-
|
|
18
|
+
let value = config.value[key];
|
|
19
19
|
|
|
20
|
-
if (value
|
|
20
|
+
if (isCVA(value)) {
|
|
21
21
|
return cva(value)({
|
|
22
22
|
...props,
|
|
23
23
|
});
|
|
24
24
|
}
|
|
25
25
|
|
|
26
|
-
return
|
|
26
|
+
return value;
|
|
27
27
|
});
|
|
28
28
|
|
|
29
29
|
attrs[`${key}Attrs`] = getAttrs(key, { classes });
|
|
@@ -5,7 +5,7 @@ import defaultConfig from "../configs/default.config";
|
|
|
5
5
|
import { computed } from "vue";
|
|
6
6
|
|
|
7
7
|
export default function useAttrs(props) {
|
|
8
|
-
const { config, getAttrs, hasSlotContent, isSystemKey } = useUI(
|
|
8
|
+
const { config, getAttrs, hasSlotContent, isSystemKey, isCVA } = useUI(
|
|
9
9
|
defaultConfig,
|
|
10
10
|
() => props.config,
|
|
11
11
|
);
|
|
@@ -21,15 +21,15 @@ export default function useAttrs(props) {
|
|
|
21
21
|
if (isSystemKey(key)) continue;
|
|
22
22
|
|
|
23
23
|
const classes = computed(() => {
|
|
24
|
-
|
|
24
|
+
let value = config.value[key];
|
|
25
25
|
|
|
26
|
-
if (value
|
|
27
|
-
|
|
26
|
+
if (isCVA(value)) {
|
|
27
|
+
value = cva(value)({
|
|
28
28
|
...props,
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
31
|
|
|
32
|
-
return
|
|
32
|
+
return value;
|
|
33
33
|
});
|
|
34
34
|
|
|
35
35
|
attrs[`${key}Attrs`] = getAttrs(key, { classes });
|