mirror of
https://gitee.com/lyt-top/vue-next-admin
synced 2026-07-05 13:22:18 +08:00
'admin-21.07.04:修复图标选择器双向绑定回显、路由引入第三方icon样式表现不一致的问题,感谢群友@伯牙已遇钟子期、@借个微笑丶'
This commit is contained in:
@ -36,7 +36,7 @@ const getElementPlusIconfont = () => {
|
||||
for (let i = 0; i < styles.length; i++) {
|
||||
for (let j = 0; j < styles[i].cssRules.length; j++) {
|
||||
if (styles[i].cssRules[j].selectorText && styles[i].cssRules[j].selectorText.indexOf('.el-icon-') === 0) {
|
||||
if (!/--/.test(styles[i].cssRules[j].selectorText)) {
|
||||
if (/::before/.test(styles[i].cssRules[j].selectorText)) {
|
||||
sheetsIconList.push(
|
||||
`${styles[i].cssRules[j].selectorText.substring(1, styles[i].cssRules[j].selectorText.length).replace(/\:\:before/gi, '')}`
|
||||
);
|
||||
@ -44,7 +44,7 @@ const getElementPlusIconfont = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sheetsIconList.length > 0) resolve(sheetsIconList);
|
||||
if (sheetsIconList.length > 0) resolve(sheetsIconList.reverse());
|
||||
else reject('未获取到值,请刷新重试');
|
||||
});
|
||||
});
|
||||
@ -77,7 +77,7 @@ const getAwesomeIconfont = () => {
|
||||
}
|
||||
}
|
||||
}
|
||||
if (sheetsIconList.length > 0) resolve(sheetsIconList);
|
||||
if (sheetsIconList.length > 0) resolve(sheetsIconList.reverse());
|
||||
else reject('未获取到值,请刷新重试');
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user