提交 86044965 authored 作者: Administrator's avatar Administrator

升级element-plus版本

上级 1ffb51ee
......@@ -28,7 +28,7 @@
],
"dependencies": {
"@types/node": "^18.11.18",
"element-plus": "^2.2.28",
"element-plus": "^2.6.0",
"axios": "^0.24.0",
"jquery": "^3.7.0",
"vue": "^3.2.45",
......
<template>
<div style="padding: 10px;">
<el-button type="primary" icon="plus" size="small" @click="show" style="margin-bottom: 10px;">
<div style="padding: 10px">
<el-button
type="primary"
icon="plus"
size="small"
@click="show"
style="margin-bottom: 10px"
>
新增
</el-button>
<el-table :data="tableData" style="width: 7 0%" border>
......@@ -12,7 +18,9 @@
<el-table-column prop="zip" label="Zip" width="120" />
<el-table-column fixed="right" label="Operations" width="120">
<template #default>
<el-button link type="primary" size="small" @click="handleClick">Detail</el-button>
<el-button link type="primary" size="small" @click="handleClick"
>Detail</el-button
>
<el-button link type="primary" size="small">Edit</el-button>
</template>
</el-table-column>
......@@ -23,9 +31,8 @@
<script lang="ts" setup>
import { ref } from 'vue'
import indexVue from './components/printDrawer.vue';
import template from './ts/template';
import indexVue from './components/printDrawer.vue'
import template from './ts/template'
const showDrawer = ref(false)
const printRef = ref()
......@@ -38,7 +45,7 @@ const tableData = [
city: 'Los Angeles',
address: 'No. 189, Grove St, Los Angeles',
zip: 'CA 90036',
tag: 'Home',
tag: 'Home'
},
{
date: '2016-05-02',
......@@ -47,7 +54,7 @@ const tableData = [
city: 'Los Angeles',
address: 'No. 189, Grove St, Los Angeles',
zip: 'CA 90036',
tag: 'Office',
tag: 'Office'
},
{
date: '2016-05-04',
......@@ -56,7 +63,7 @@ const tableData = [
city: 'Los Angeles',
address: 'No. 189, Grove St, Los Angeles',
zip: 'CA 90036',
tag: 'Home',
tag: 'Home'
},
{
date: '2016-05-01',
......@@ -65,8 +72,8 @@ const tableData = [
city: 'Los Angeles',
address: 'No. 189, Grove St, Los Angeles',
zip: 'CA 90036',
tag: 'Office',
},
tag: 'Office'
}
]
const handleClick = () => {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论