vueless 0.0.734 → 0.0.735
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/composables/useUI.ts +10 -2
- package/package.json +1 -1
package/composables/useUI.ts
CHANGED
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
STRATEGY_TYPE,
|
|
7
7
|
CVA_CONFIG_KEY,
|
|
8
8
|
SYSTEM_CONFIG_KEY,
|
|
9
|
-
DEFAULT_BASE_CLASSES,
|
|
9
|
+
// DEFAULT_BASE_CLASSES,
|
|
10
10
|
EXTENDS_PATTERN_REG_EXP,
|
|
11
11
|
NESTED_COMPONENT_PATTERN_REG_EXP,
|
|
12
12
|
} from "../constants.js";
|
|
@@ -90,7 +90,9 @@ export default function useUI<T>(
|
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
if (key === (topLevelClassKey || firstClassKey)) {
|
|
93
|
-
classes = cx([
|
|
93
|
+
classes = cx([classes]);
|
|
94
|
+
// TODO: It will be fixed soon
|
|
95
|
+
//classes = cx([DEFAULT_BASE_CLASSES, vuelessConfig.baseClasses, classes]);
|
|
94
96
|
}
|
|
95
97
|
|
|
96
98
|
classes = classes.replaceAll(EXTENDS_PATTERN_REG_EXP, "");
|
|
@@ -166,6 +168,12 @@ export default function useUI<T>(
|
|
|
166
168
|
topLevelClasses = commonAttrs.class || "";
|
|
167
169
|
}
|
|
168
170
|
|
|
171
|
+
// console.log(configKey, isTopLevelKey, commonAttrs["data-vl-child"], attrs["data-vl-root"]);
|
|
172
|
+
|
|
173
|
+
if (isTopLevelKey) {
|
|
174
|
+
topLevelClasses = attrs.class;
|
|
175
|
+
}
|
|
176
|
+
|
|
169
177
|
vuelessAttrs.value = {
|
|
170
178
|
...commonAttrs,
|
|
171
179
|
class: cx([...extendsClasses, toValue(classes), topLevelClasses]),
|