Commit 500900abe16d3e27e1c9e0446a13386c6129d449

Authored by Vben
1 parent c41fa752

perf: hide table full screen button by default

.github/workflows/ftp-schedule.yml
@@ -7,7 +7,7 @@ on: @@ -7,7 +7,7 @@ on:
7 - cron: '0 15 * * *' 7 - cron: '0 15 * * *'
8 8
9 jobs: 9 jobs:
10 - push-to-ftp: 10 + schedule-push-to-ftp:
11 runs-on: ubuntu-latest 11 runs-on: ubuntu-latest
12 steps: 12 steps:
13 - name: Checkout 13 - name: Checkout
CHANGELOG.zh_CN.md
@@ -8,6 +8,7 @@ @@ -8,6 +8,7 @@
8 8
9 - 登录界面动画优化 9 - 登录界面动画优化
10 - 修复 github 仓库体积过大问题. 10 - 修复 github 仓库体积过大问题.
  11 +- 默认隐藏表格全屏按钮
11 12
12 ### 🐛 Bug Fixes 13 ### 🐛 Bug Fixes
13 14
src/components/Table/src/components/settings/index.vue
@@ -37,7 +37,7 @@ @@ -37,7 +37,7 @@
37 redo: true, 37 redo: true,
38 size: true, 38 size: true,
39 setting: true, 39 setting: true,
40 - fullScreen: true, 40 + fullScreen: false,
41 ...props.setting, 41 ...props.setting,
42 }; 42 };
43 } 43 }
src/components/Table/src/props.ts
@@ -74,7 +74,6 @@ export const basicProps = { @@ -74,7 +74,6 @@ export const basicProps = {
74 }, 74 },
75 // 立即请求接口 75 // 立即请求接口
76 immediate: propTypes.bool.def(true), 76 immediate: propTypes.bool.def(true),
77 -  
78 emptyDataIsShowTable: propTypes.bool.def(true), 77 emptyDataIsShowTable: propTypes.bool.def(true),
79 // 额外的请求参数 78 // 额外的请求参数
80 searchInfo: { 79 searchInfo: {
@@ -130,12 +129,10 @@ export const basicProps = { @@ -130,12 +129,10 @@ export const basicProps = {
130 type: [Object, Boolean] as PropType<PaginationProps | boolean>, 129 type: [Object, Boolean] as PropType<PaginationProps | boolean>,
131 default: null, 130 default: null,
132 }, 131 },
133 -  
134 loading: propTypes.bool, 132 loading: propTypes.bool,
135 rowClassName: { 133 rowClassName: {
136 type: Function as PropType<(record: TableCustomRecord<any>, index: number) => string>, 134 type: Function as PropType<(record: TableCustomRecord<any>, index: number) => string>,
137 }, 135 },
138 -  
139 scroll: { 136 scroll: {
140 type: Object as PropType<{ x: number | true; y: number }>, 137 type: Object as PropType<{ x: number | true; y: number }>,
141 default: null, 138 default: null,
src/views/demo/form/RuleForm.vue
@@ -54,6 +54,7 @@ @@ -54,6 +54,7 @@
54 span: 8, 54 span: 8,
55 }, 55 },
56 componentProps: { 56 componentProps: {
  57 + mode: 'multiple',
57 options: [ 58 options: [
58 { 59 {
59 label: '选项1', 60 label: '选项1',
@@ -71,6 +72,7 @@ @@ -71,6 +72,7 @@
71 { 72 {
72 required: true, 73 required: true,
73 message: '请输入aa', 74 message: '请输入aa',
  75 + type: 'array',
74 }, 76 },
75 ], 77 ],
76 }, 78 },