refactor: Element Plus图标依赖@element-plus/icons过时,调整为@element-plus/icons-vue

This commit is contained in:
郝先瑞
2022-02-27 12:58:16 +08:00
parent 9cc66456b7
commit 5edc5ef334
23 changed files with 39 additions and 33 deletions

View File

@@ -135,7 +135,7 @@ import {listBrandsWithPage, getBrandDetail, updateBrand, addBrand, deleteBrands}
import SingleUpload from "@/components/Upload/SingleUpload.vue"
import {onMounted, reactive, ref, toRefs, unref} from "vue";
import {ElForm, ElTable, ElMessage, ElMessageBox} from "element-plus";
import {Search, Plus, Edit, Refresh, Delete} from '@element-plus/icons'
import {Search, Plus, Edit, Refresh, Delete} from '@element-plus/icons-vue'
const dataTableRef = ref(ElTable)
const queryFormRef = ref(ElForm) // 属性名必须和元素的ref属性值一致

View File

@@ -54,7 +54,7 @@
<script setup lang="ts">
import {listAttributes, saveAttributeBatch} from "@/api/pms/attribute";
import {computed, reactive, toRefs, watch} from "vue";
import {Plus, Check, Delete} from '@element-plus/icons'
import {Plus, Check, Delete} from '@element-plus/icons-vue'
import {ElMessage} from "element-plus";
import SvgIcon from '@/components/SvgIcon/index.vue';

View File

@@ -105,7 +105,7 @@
<script setup lang="ts">
import {listCategories, addCategory, updateCategory, deleteCategories} from '@/api/pms/category'
import {Search, Plus, Edit, Refresh, Delete} from '@element-plus/icons'
import {Search, Plus, Edit, Refresh, Delete} from '@element-plus/icons-vue'
import SingleUpload from '@/components/Upload/SingleUpload.vue'
import {getCurrentInstance, onMounted, reactive, ref, toRefs, unref} from "vue";
import {ElForm, ElMessage, ElMessageBox, ElTree} from "element-plus";

View File

@@ -79,7 +79,7 @@
import {listAttributes} from "@/api/pms/attribute";
import {computed, nextTick, reactive, ref, toRefs, unref, watch} from "vue";
import {ElForm} from "element-plus";
import {Minus, Plus} from '@element-plus/icons'
import {Minus, Plus} from '@element-plus/icons-vue'
const emit = defineEmits(['prev', 'next'])
const dataForm = ref(ElForm)

View File

@@ -180,7 +180,7 @@ import SingleUpload from '@/components/Upload/SingleUpload.vue'
import {addGoods, updateGoods} from "@/api/pms/goods";
import {computed, getCurrentInstance, nextTick, onMounted, reactive, ref, toRefs, unref, watch} from "vue";
import {ElNotification, ElMessage, ElTable, ElForm} from "element-plus"
import {Plus, Minus} from '@element-plus/icons'
import {Plus, Minus} from '@element-plus/icons-vue'
import SvgIcon from '@/components/SvgIcon/index.vue'
import {useRouter} from "vue-router";

View File

@@ -115,7 +115,7 @@
</template>
<script setup lang="ts">
import {Search, Plus, Edit, Refresh, Delete} from '@element-plus/icons'
import {Search, Plus, Edit, Refresh, Delete} from '@element-plus/icons-vue'
import {listGoodsWithPage, deleteGoods} from '@/api/pms/goods'
import {listCascadeCategories} from '@/api/pms/category'
import {reactive, ref, onMounted, toRefs} from 'vue'