mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-12-09 14:40:27 +08:00
chore: 优化演示代码
This commit is contained in:
@@ -33,7 +33,7 @@ function tabClick({ index }) {
|
||||
|
||||
<el-alert
|
||||
title="高级用法中所有表格都设置了 row-key ,后端需返回唯一值的字段,比如id 作用:1. 用来优化 Table
|
||||
的渲染,尤其当字段在深层结构中;2. 防止拖拽后表格组件内部混乱(拖拽必须设置哦,坑都帮您们踩过啦 ❤️)"
|
||||
的渲染,尤其当字段在深层结构中;2. 防止拖拽后表格组件内部混乱(拖拽必须设置)"
|
||||
type="info"
|
||||
:closable="false"
|
||||
/>
|
||||
|
||||
@@ -71,7 +71,7 @@ export const list = [
|
||||
{
|
||||
key: "watermark",
|
||||
content: rendContent("watermark"),
|
||||
title: "水印(无法删除的水印哦🤓️)",
|
||||
title: "水印",
|
||||
component: Watermark
|
||||
},
|
||||
{
|
||||
|
||||
@@ -20,7 +20,7 @@ const {
|
||||
<el-select
|
||||
ref="selectRef"
|
||||
v-model="selectValue"
|
||||
class="w-[160px]"
|
||||
class="!w-[200px]"
|
||||
placeholder="请选择"
|
||||
clearable
|
||||
multiple
|
||||
|
||||
@@ -17,6 +17,7 @@ const {
|
||||
<el-select
|
||||
ref="selectRef"
|
||||
v-model="selectValue"
|
||||
class="!w-[200px]"
|
||||
placeholder="请选择"
|
||||
clearable
|
||||
>
|
||||
|
||||
@@ -34,8 +34,8 @@ export function useColumns(waterRef: Ref) {
|
||||
font: "16px Microsoft YaHei",
|
||||
globalAlpha: 0.8,
|
||||
forever: true,
|
||||
width: 252,
|
||||
height: 80
|
||||
width: 240,
|
||||
height: 90
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
@@ -20,13 +20,13 @@ function tabClick({ index }) {
|
||||
<span class="font-medium">
|
||||
平台二次封装 element-plus 的 Table ,完全兼容 Api
|
||||
并提供灵活的配置项以及完善的类型提醒,再也不用将代码都写在 template
|
||||
里了,欢迎 Star
|
||||
里了
|
||||
<el-link
|
||||
href="https://github.com/pure-admin/pure-admin-table"
|
||||
target="_blank"
|
||||
style="margin: 0 4px 5px; font-size: 16px"
|
||||
>
|
||||
@pureadmin/table
|
||||
@pureadmin/table 源码
|
||||
</el-link>
|
||||
</span>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user