From 500900abe16d3e27e1c9e0446a13386c6129d449 Mon Sep 17 00:00:00 2001 From: Vben Date: Wed, 24 Feb 2021 22:05:27 +0800 Subject: [PATCH] perf: hide table full screen button by default --- .github/workflows/ftp-schedule.yml | 2 +- CHANGELOG.zh_CN.md | 1 + src/components/Table/src/components/settings/index.vue | 2 +- src/components/Table/src/props.ts | 3 --- src/views/demo/form/RuleForm.vue | 2 ++ 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ftp-schedule.yml b/.github/workflows/ftp-schedule.yml index 8d6bdd77..7925bca7 100644 --- a/.github/workflows/ftp-schedule.yml +++ b/.github/workflows/ftp-schedule.yml @@ -7,7 +7,7 @@ on: - cron: '0 15 * * *' jobs: - push-to-ftp: + schedule-push-to-ftp: runs-on: ubuntu-latest steps: - name: Checkout diff --git a/CHANGELOG.zh_CN.md b/CHANGELOG.zh_CN.md index 149e8217..5b45726b 100644 --- a/CHANGELOG.zh_CN.md +++ b/CHANGELOG.zh_CN.md @@ -8,6 +8,7 @@ - 登录界面动画优化 - 修复 github 仓库体积过大问题. +- 默认隐藏表格全屏按钮 ### 🐛 Bug Fixes diff --git a/src/components/Table/src/components/settings/index.vue b/src/components/Table/src/components/settings/index.vue index dd204d99..cd1ba1d0 100644 --- a/src/components/Table/src/components/settings/index.vue +++ b/src/components/Table/src/components/settings/index.vue @@ -37,7 +37,7 @@ redo: true, size: true, setting: true, - fullScreen: true, + fullScreen: false, ...props.setting, }; } diff --git a/src/components/Table/src/props.ts b/src/components/Table/src/props.ts index 99561f8b..38e1cd7a 100644 --- a/src/components/Table/src/props.ts +++ b/src/components/Table/src/props.ts @@ -74,7 +74,6 @@ export const basicProps = { }, // 立即请求接口 immediate: propTypes.bool.def(true), - emptyDataIsShowTable: propTypes.bool.def(true), // 额外的请求参数 searchInfo: { @@ -130,12 +129,10 @@ export const basicProps = { type: [Object, Boolean] as PropType, default: null, }, - loading: propTypes.bool, rowClassName: { type: Function as PropType<(record: TableCustomRecord, index: number) => string>, }, - scroll: { type: Object as PropType<{ x: number | true; y: number }>, default: null, diff --git a/src/views/demo/form/RuleForm.vue b/src/views/demo/form/RuleForm.vue index c1740771..d21973c2 100644 --- a/src/views/demo/form/RuleForm.vue +++ b/src/views/demo/form/RuleForm.vue @@ -54,6 +54,7 @@ span: 8, }, componentProps: { + mode: 'multiple', options: [ { label: '选项1', @@ -71,6 +72,7 @@ { required: true, message: '请输入aa', + type: 'array', }, ], }, -- GitLab