fix(icon): 修复icon图标显示异常问题

This commit is contained in:
zzcr 2023-06-29 02:29:19 -07:00
parent 68c07818dd
commit d7a6a2150e
No known key found for this signature in database
GPG Key ID: F6C4DFD2EF53A673
1 changed files with 4 additions and 4 deletions

View File

@ -33,7 +33,7 @@ export const getVuePlugins = (vueVersion: string) => {
} }
} }
}), }),
vue2SvgPlugin({ svgoConfig: { plugins: ['prefixIds'] } }) vue2SvgPlugin()
] ]
}, },
'2.7': () => { '2.7': () => {
@ -52,7 +52,7 @@ export const getVuePlugins = (vueVersion: string) => {
} }
}), }),
vue27JsxPlugin({ injectH: false }), vue27JsxPlugin({ injectH: false }),
vue2SvgPlugin({ svgoConfig: { plugins: ['prefixIds'] } }) vue2SvgPlugin()
] ]
}, },
'3': () => { '3': () => {
@ -68,7 +68,7 @@ export const getVuePlugins = (vueVersion: string) => {
} }
}), }),
vue3JsxPlugin(), vue3JsxPlugin(),
vue3SvgPlugin({ defaultImport: 'component', svgoConfig: { plugins: ['prefixIds'] } }) vue3SvgPlugin()
] ]
} }
} }
@ -168,7 +168,7 @@ export const getBaseConfig = ({ vueVersion, dtsInclude, dts, buildTarget, isRunt
// 为主入口包添加readme和LICENSE // 为主入口包添加readme和LICENSE
if (filePath === 'vue') { if (filePath === 'vue') {
;['README.md', 'README.zh-CN.md', 'LICENSE'].forEach((item) => { ['README.md', 'README.zh-CN.md', 'LICENSE'].forEach((item) => {
fs.copySync( fs.copySync(
pathFromWorkspaceRoot(item), pathFromWorkspaceRoot(item),
path.resolve(pathFromPackages(''), `dist${vueVersion}/@opentiny/vue/${item}`) path.resolve(pathFromPackages(''), `dist${vueVersion}/@opentiny/vue/${item}`)