refactor: Element Plus图标依赖@element-plus/icons过时,调整为@element-plus/icons-vue
This commit is contained in:
@@ -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属性值一致
|
||||
|
||||
@@ -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';
|
||||
|
||||
|
||||
@@ -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";
|
||||
|
||||
@@ -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)
|
||||
|
||||
@@ -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";
|
||||
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user