docs(grid): update grid docs (#1189)

* docs(grid): update grid docs

* docs(grid): update grid docs

* docs(grid): update grid docs
This commit is contained in:
ajaxzheng 2023-12-21 16:28:43 +08:00 committed by GitHub
parent 89624d0356
commit 95beedfc4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 20 additions and 15 deletions

View File

@ -132,7 +132,8 @@ function toolbarButtonClickEvent({ code, $grid }) {
break
}
case 'getDelete': {
$grid.getRemoveRecords() //
const deleteData = $grid.getRemoveRecords() //
Modal.alert('获取删除的数据:' + JSON.stringify(deleteData))
break
}
case 'save': {

View File

@ -140,7 +140,8 @@ export default {
break
}
case 'getDelete': {
$grid.getRemoveRecords() //
const deleteData = $grid.getRemoveRecords() //
Modal.alert('获取删除的数据:' + JSON.stringify(deleteData))
break
}
case 'save': {

View File

@ -2,7 +2,7 @@
<tiny-grid ref="basicGridRef" v-bind="op"></tiny-grid>
</template>
<script setup lang="jsx">
<script setup>
import { ref } from 'vue'
import { Grid as TinyGrid, Pager, GridToolbar, Modal } from '@opentiny/vue'
@ -30,7 +30,7 @@ const op = ref({
},
{
code: 'cancel',
name: '取消删除'
name: '取消选择'
},
{
code: 'save',
@ -198,6 +198,7 @@ function toolbarButtonClickEvent({ code, $grid }) {
if (data.length === 0) {
Modal.alert('请至少选中一条记录')
}
$grid.removeSelecteds()
break
}
case 'save': {

View File

@ -2,7 +2,7 @@
<tiny-grid ref="basicGrid" v-bind="op"></tiny-grid>
</template>
<script lang="jsx">
<script>
import { Grid, Pager, GridToolbar, Modal } from '@opentiny/vue'
export default {
@ -35,7 +35,7 @@ export default {
},
{
code: 'cancel',
name: '取消删除'
name: '取消选择'
},
{
code: 'save',
@ -203,6 +203,7 @@ export default {
if (data.length === 0) {
Modal.alert('请至少选中一条记录')
}
$grid.removeSelecteds()
break
}
case 'save': {

View File

@ -1525,7 +1525,7 @@ export default {
'zh-CN': '用于可树形表格,切换展开树形节点',
'en-US': 'This parameter is used to switch and expand tree nodes in a tree table.'
},
'demoId': 'grid-expand#expand-set-tree-expansion'
'demoId': 'grid-tree-table#tree-table-set-tree-expansion'
},
{
'name': 'validate',

1
internals/automate/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
scan-result.md

View File

@ -426,7 +426,7 @@
"exclude": false
},
"ChartBar": {
"path": "vue/src/charts-beta/chart-bar/index.ts",
"path": "vue/src/chart-beta/chart-bar/index.ts",
"type": "component",
"exclude": false
},
@ -441,7 +441,7 @@
"exclude": false
},
"ChartCore": {
"path": "vue/src/charts-beta/chart-core/index.ts",
"path": "vue/src/chart-beta/chart-core/index.ts",
"type": "component",
"exclude": false
},
@ -466,12 +466,12 @@
"exclude": false
},
"ChartHistogram": {
"path": "vue/src/charts-beta/chart-histogram/index.ts",
"path": "vue/src/chart-beta/chart-histogram/index.ts",
"type": "component",
"exclude": false
},
"ChartLine": {
"path": "vue/src/charts-beta/chart-line/index.ts",
"path": "vue/src/chart-beta/chart-line/index.ts",
"type": "component",
"exclude": false
},
@ -486,17 +486,17 @@
"exclude": false
},
"ChartPie": {
"path": "vue/src/charts-beta/chart-pie/index.ts",
"path": "vue/src/chart-beta/chart-pie/index.ts",
"type": "component",
"exclude": false
},
"ChartRadar": {
"path": "vue/src/charts-beta/chart-radar/index.ts",
"path": "vue/src/chart-beta/chart-radar/index.ts",
"type": "component",
"exclude": false
},
"ChartRing": {
"path": "vue/src/charts-beta/chart-ring/index.ts",
"path": "vue/src/chart-beta/chart-ring/index.ts",
"type": "component",
"exclude": false
},
@ -531,7 +531,7 @@
"exclude": false
},
"ChartsBeta": {
"path": "vue/src/charts-beta/index.ts",
"path": "vue/src/chart-beta/index.ts",
"type": "component",
"exclude": false
},