Merge branch 'develop' of https://gitee.com/lyt-top/vue-next-admin into develop

This commit is contained in:
lyt 2022-04-27 19:30:10 +08:00
commit 35fdb164e9

View File

@ -125,7 +125,7 @@ export default defineComponent({
if (!props.modelValue) return false;
state.fontIconSearch = '';
state.fontIconPlaceholder = props.modelValue;
initFontTypeEcho();
initFontIconTypeEcho();
};
// input input
const onIconBlur = () => {
@ -141,7 +141,7 @@ export default defineComponent({
(<string | undefined>state.fontIconPrefix) = props.modelValue;
};
// icon type all alieleawe
const initFontTypeEcho = () => {
const initFontIconTypeEcho = () => {
if ((<any>props.modelValue)?.indexOf('iconfont') > -1) onIconChange('ali');
else if ((<any>props.modelValue)?.indexOf('ele-') > -1) onIconChange('ele');
else if ((<any>props.modelValue)?.indexOf('fa') > -1) onIconChange('awe');
@ -214,7 +214,7 @@ export default defineComponent({
//
onMounted(() => {
// tab
if (props.type === 'all') initFontTypeEcho();
if (props.type === 'all') initFontIconTypeEcho();
else onIconChange(props.type);
initResize();
getInputWidth();