ci: 升级 vue 3.2.21
This commit is contained in:
parent
01851fd3ac
commit
e16ac685e4
@ -274,10 +274,10 @@ export default {
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
| 属性 | 描述 | 可选值 |
|
| 属性 | 描述 | 可选值 |
|
||||||
| ------------------------ | ---------- | -------------- |
|
| ------------------------ | ---------- | -------------- |
|
||||||
| columns | 列配置 | -- |
|
| columns | 列配置 | -- |
|
||||||
| dataSource | 数据源 | -- |
|
| dataSource | 数据源 | -- |
|
||||||
| checkbox | 开启复现框 | -- |
|
| checkbox | 开启复现框 | -- |
|
||||||
| id | 主键 | -- |
|
| id | 主键 | -- |
|
||||||
| selectedKeys ( v-model ) | 选中项 | -- |
|
| selectedKeys ( v-model ) | 选中项 | -- |
|
||||||
@ -288,15 +288,15 @@ export default {
|
|||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
| 属性 | 描述 | 参数 |
|
| 属性 | 描述 | 参数 |
|
||||||
| ------------------------ | ---------- | -------------- |
|
| ---------- | ------ | ------------- |
|
||||||
| row | 行单击 | data : 当前行 |
|
| row | 行单击 | data : 当前行 |
|
||||||
| row-double | 行双击 | data : 当前行 |
|
| row-double | 行双击 | data : 当前行 |
|
||||||
|
|
||||||
::: title 表格插槽
|
::: title 表格插槽
|
||||||
|
|
||||||
:::
|
:::
|
||||||
|
|
||||||
| 插槽 | 描述 | 默认 |
|
| 插槽 | 描述 | 默认 |
|
||||||
| ------- | ------------ | --- |
|
| ------- | ------------ | ---- |
|
||||||
| toolbar | 自定义工具栏 | -- |
|
| toolbar | 自定义工具栏 | -- |
|
||||||
|
@ -12,6 +12,8 @@
|
|||||||
<lay-timeline>
|
<lay-timeline>
|
||||||
<lay-timeline-item title="0.2.3">
|
<lay-timeline-item title="0.2.3">
|
||||||
[新增] table 表格 row 行单击, row-double 行双击事件。<br>
|
[新增] table 表格 row 行单击, row-double 行双击事件。<br>
|
||||||
|
[优化] layer 弹层 border 样式。<br>
|
||||||
|
[升级] vue 3.2.21 版本。<br>
|
||||||
</lay-timeline-item>
|
</lay-timeline-item>
|
||||||
<lay-timeline-item title="0.2.2">
|
<lay-timeline-item title="0.2.2">
|
||||||
[新增] useFullScreen 全屏 hooks。<br>
|
[新增] useFullScreen 全屏 hooks。<br>
|
||||||
|
@ -39,11 +39,11 @@
|
|||||||
},
|
},
|
||||||
"homepage": "https://gitee.com/layui-vue/layui-vue/blob/master/README.md",
|
"homepage": "https://gitee.com/layui-vue/layui-vue/blob/master/README.md",
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^3.2.20",
|
"vue": "^3.2.21",
|
||||||
"vue-router": "^4.0.11"
|
"vue-router": "^4.0.11"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"vue": "^3.2.20",
|
"vue": "^3.2.21",
|
||||||
"vue-router": "^4.0.11"
|
"vue-router": "^4.0.11"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -59,7 +59,7 @@
|
|||||||
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
"@typescript-eslint/eslint-plugin": "^4.33.0",
|
||||||
"@typescript-eslint/parser": "^4.33.0",
|
"@typescript-eslint/parser": "^4.33.0",
|
||||||
"@vitejs/plugin-vue": "^1.9.3",
|
"@vitejs/plugin-vue": "^1.9.3",
|
||||||
"@vue/compiler-sfc": "^3.2.20",
|
"@vue/compiler-sfc": "^3.2.21",
|
||||||
"@vue/eslint-config-prettier": "^6.0.0",
|
"@vue/eslint-config-prettier": "^6.0.0",
|
||||||
"@vue/eslint-config-typescript": "^7.0.0",
|
"@vue/eslint-config-typescript": "^7.0.0",
|
||||||
"@vue/server-renderer": "^3.2.20",
|
"@vue/server-renderer": "^3.2.20",
|
||||||
|
@ -53,7 +53,10 @@
|
|||||||
<table class="layui-table" :lay-size="size">
|
<table class="layui-table" :lay-size="size">
|
||||||
<tbody>
|
<tbody>
|
||||||
<template v-for="data in dataSource" :key="data">
|
<template v-for="data in dataSource" :key="data">
|
||||||
<tr @click.stop="rowClick(data)" @dblclick.stop="rowDoubleClick(data)">
|
<tr
|
||||||
|
@click.stop="rowClick(data)"
|
||||||
|
@dblclick.stop="rowDoubleClick(data)"
|
||||||
|
>
|
||||||
<td v-if="checkbox" class="layui-table-col-special">
|
<td v-if="checkbox" class="layui-table-col-special">
|
||||||
<div class="layui-table-cell laytable-cell-checkbox">
|
<div class="layui-table-cell laytable-cell-checkbox">
|
||||||
<table-item-checkbox
|
<table-item-checkbox
|
||||||
@ -78,7 +81,7 @@
|
|||||||
v-else
|
v-else
|
||||||
:key="index"
|
:key="index"
|
||||||
>
|
>
|
||||||
<td class="layui-table-cell" v-if="column.key == key">
|
<td v-if="column.key == key" class="layui-table-cell">
|
||||||
<div :style="{ width: column.width }">
|
<div :style="{ width: column.width }">
|
||||||
<span v-if="column.slot">
|
<span v-if="column.slot">
|
||||||
<slot :name="column.slot" :data="data" />
|
<slot :name="column.slot" :data="data" />
|
||||||
@ -103,10 +106,10 @@
|
|||||||
show-skip
|
show-skip
|
||||||
@jump="change"
|
@jump="change"
|
||||||
>
|
>
|
||||||
<template v-slot:prev
|
<template #prev
|
||||||
><lay-icon type="layui-icon-left"></lay-icon
|
><lay-icon type="layui-icon-left"></lay-icon
|
||||||
></template>
|
></template>
|
||||||
<template v-slot:next
|
<template #next
|
||||||
><lay-icon type="layui-icon-right"></lay-icon
|
><lay-icon type="layui-icon-right"></lay-icon
|
||||||
></template>
|
></template>
|
||||||
</lay-page>
|
</lay-page>
|
||||||
@ -157,7 +160,7 @@ const props = withDefaults(
|
|||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
const emit = defineEmits(['change','row','row-double', 'update:selectedKeys'])
|
const emit = defineEmits(['change', 'row', 'row-double', 'update:selectedKeys'])
|
||||||
|
|
||||||
const slot = useSlots()
|
const slot = useSlots()
|
||||||
const slots = slot.default && slot.default()
|
const slots = slot.default && slot.default()
|
||||||
@ -195,11 +198,11 @@ const change = function (page: any) {
|
|||||||
emit('change', page)
|
emit('change', page)
|
||||||
}
|
}
|
||||||
|
|
||||||
const rowClick = function(data: any) {
|
const rowClick = function (data: any) {
|
||||||
emit('row', data)
|
emit('row', data)
|
||||||
}
|
}
|
||||||
|
|
||||||
const rowDoubleClick = function(data: any) {
|
const rowDoubleClick = function (data: any) {
|
||||||
emit('row-double', data)
|
emit('row-double', data)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user