fix: 树页面去掉selection和index字段,scroll-x还原旧值
This commit is contained in:
parent
2922b501b8
commit
29f809cc66
14
docs/template/index-tree.vue.vm
vendored
14
docs/template/index-tree.vue.vm
vendored
@ -1,4 +1,3 @@
|
||||
#set($scrollX = $columns.size() * 120 + 242)
|
||||
<script setup lang="tsx">
|
||||
import { NDivider } from 'naive-ui';
|
||||
import { jsonClone } from '@sa/utils';
|
||||
@ -52,17 +51,6 @@ const {
|
||||
parentIdField: '${treeParentCode}',
|
||||
#end
|
||||
columns: () => [
|
||||
{
|
||||
type: 'selection',
|
||||
align: 'center',
|
||||
width: 48
|
||||
},
|
||||
{
|
||||
key: 'index',
|
||||
title: $t('common.index'),
|
||||
align: 'center',
|
||||
width: 64
|
||||
},
|
||||
#foreach ($column in $columns)
|
||||
#if($column.list)
|
||||
{
|
||||
@ -208,7 +196,7 @@ function handleExport() {
|
||||
size="small"
|
||||
:indent="32"
|
||||
:flex-height="!appStore.isMobile"
|
||||
:scroll-x="$scrollX"
|
||||
:scroll-x="962"
|
||||
:loading="loading"
|
||||
remote
|
||||
:row-key="row => row.#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end"
|
||||
|
3
docs/template/index.vue.vm
vendored
3
docs/template/index.vue.vm
vendored
@ -1,4 +1,3 @@
|
||||
#set($scrollX = $columns.size() * 120 + 242)
|
||||
<script setup lang="tsx">
|
||||
import { NDivider } from 'naive-ui';
|
||||
import { fetchBatchDelete${BusinessName}, fetchGet${BusinessName}List } from '@/service/api/${moduleName}/${businessName}';
|
||||
@ -171,7 +170,7 @@ function handleExport() {
|
||||
:data="data"
|
||||
size="small"
|
||||
:flex-height="!appStore.isMobile"
|
||||
:scroll-x="$scrollX"
|
||||
:scroll-x="962"
|
||||
:loading="loading"
|
||||
remote
|
||||
:row-key="row => row.#foreach($column in $columns)#if($column.isPk == '1')$column.javaField#end#end"
|
||||
|
Loading…
Reference in New Issue
Block a user