vueless 0.0.580 → 0.0.581
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 +4 -1
- package/package.json +1 -1
- package/web-types.json +1 -1
package/composables/useUI.ts
CHANGED
|
@@ -47,6 +47,7 @@ export default function useUI<T>(
|
|
|
47
47
|
: (STRATEGY_TYPE.merge as Strategies);
|
|
48
48
|
|
|
49
49
|
const firstClassKey = Object.keys(defaultConfig || {})[0];
|
|
50
|
+
const propsConfig = props.config as ComponentConfig<T>;
|
|
50
51
|
const config = ref({}) as Ref<ComponentConfig<T>>;
|
|
51
52
|
const attrs = useAttrs();
|
|
52
53
|
|
|
@@ -54,7 +55,7 @@ export default function useUI<T>(
|
|
|
54
55
|
config.value = getMergedConfig({
|
|
55
56
|
defaultConfig,
|
|
56
57
|
globalConfig,
|
|
57
|
-
propsConfig
|
|
58
|
+
propsConfig,
|
|
58
59
|
vuelessStrategy,
|
|
59
60
|
}) as ComponentConfig<T>;
|
|
60
61
|
});
|
|
@@ -117,9 +118,11 @@ export default function useUI<T>(
|
|
|
117
118
|
...extendsClasses,
|
|
118
119
|
keyAttrs.value.class?.replaceAll(EXTENDS_PATTERN_REG_EXP, ""),
|
|
119
120
|
]),
|
|
121
|
+
// TODO: Cannot merge several keys
|
|
120
122
|
config: getMergedConfig({
|
|
121
123
|
defaultConfig: config.value[extendsKeys[0]],
|
|
122
124
|
globalConfig: keyAttrs.value.config,
|
|
125
|
+
propsConfig: propsConfig[extendsKeys[0]],
|
|
123
126
|
}),
|
|
124
127
|
})) as ComputedRef<KeyAttrsWithConfig<T>>;
|
|
125
128
|
}
|
package/package.json
CHANGED