feat: support custom menu

This commit is contained in:
RockYang
2024-03-29 15:41:58 +08:00
parent 8eed7ff534
commit 8227a73e35
28 changed files with 532 additions and 59 deletions

View File

@@ -1,5 +1,5 @@
<template>
<div class="container list" v-loading="loading">
<div class="container product" v-loading="loading">
<div class="handle-box">
<el-button type="primary" :icon="Plus" @click="add">新增</el-button>
@@ -153,13 +153,13 @@ onMounted(() => {
})
const add = function () {
title.value = "新增模型"
title.value = "新增产品"
showDialog.value = true
item.value = {}
}
const edit = function (row) {
title.value = "修改模型"
title.value = "修改产品"
showDialog.value = true
item.value = row
}
@@ -206,7 +206,7 @@ const remove = function (row) {
</script>
<style lang="stylus" scoped>
.list {
.product {
.opt-box {
padding-bottom: 10px;