提交 a00f4292 编写于 作者: fxy060608's avatar fxy060608

wip(app): nvue styler

上级 b349f817
......@@ -10999,7 +10999,13 @@ export function nvueFactory(exports, document) {
if (isArray(styles)) {
styles.forEach(style => {
extend(normalizedStyles, style);
Object.keys(style).forEach(name => {
if (hasOwn(normalizedStyles, name)) {
extend(normalizedStyles[name], style[name]);
} else {
normalizedStyles[name] = style[name];
}
});
});
}
......
......@@ -9174,7 +9174,13 @@ export function nvueFactory(exports, document) {
if (isArray(styles)) {
styles.forEach(style => {
extend(normalizedStyles, style);
Object.keys(style).forEach(name => {
if (hasOwn(normalizedStyles, name)) {
extend(normalizedStyles[name], style[name]);
} else {
normalizedStyles[name] = style[name];
}
});
});
}
......
......@@ -8884,7 +8884,14 @@ function parseStylesheet({ type }) {
const normalizedStyles = {};
if (isArray(styles)) {
styles.forEach(style => {
extend(normalizedStyles, style);
Object.keys(style).forEach(name => {
if (hasOwn(normalizedStyles, name)) {
extend(normalizedStyles[name], style[name]);
}
else {
normalizedStyles[name] = style[name];
}
});
});
}
type.__styles = normalizedStyles;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册