Browse Source

修改图标

liwenxuan_v2
超级管理员 2 years ago
parent
commit
aead956d24
  1. 14
      src/components/DesignForm/public/headTools.vue

14
src/components/DesignForm/public/headTools.vue

@ -29,13 +29,13 @@ const btnClick = (type: string) => {
} }
const btnList = computed(() => { const btnList = computed(() => {
const list = [ const list = [
{ icon: 'del', label: '清空', key: 1 }, { icon: 'del',iconFont:"", label: '清空', key: 1 },
{ icon: 'eye', label: '预览', key: 2 }, { icon: 'eye',iconFont:"", label: '预览', key: 2 },
{ icon: 'json', label: '生成脚本预览', key: 3 }, { icon: 'json',iconFont:"", label: '生成脚本预览', key: 3 },
// { icon: 'vue', label: 'vue', key: 4 }, // { icon: 'vue', label: 'vue', key: 4 },
{ icon: 'save', label: '保存', key: 5 }, { icon: 'save',iconFont:"fa-save", label: '保存', key: 5 },
{ icon: 'branch', label: '另存为新版', key: 4 }, { icon: 'branch',iconFont:"fa-code-fork", label: '另存为新版', key: 4 },
{ icon: 'close', label: '关闭', key: 6 } { icon: 'close',iconFont:"fa-close", label: '关闭', key: 6 }
] ]
if (props.showKey?.length) { if (props.showKey?.length) {
// key // key
@ -67,7 +67,7 @@ watch(()=>props.customerformid,(val: any)=>{
:key="item.icon" :key="item.icon"
:type="item.key==6?'danger':item.key==5?'success':item.key==4?'warning':'primary'" :type="item.key==6?'danger':item.key==5?'success':item.key==4?'warning':'primary'"
> >
<i :class="['icon-' + item.icon]" ></i>{{ item.label }} <i v-if="item.iconFont==''" :class="['icon-' + item.icon]" ></i><i v-if="item.iconFont!=''" :class="['fa ' + item.iconFont]" ></i>{{ item.label }}
</el-button> </el-button>
</span> </span>

Loading…
Cancel
Save