Parcourir la source

perf: hide table full screen button by default

Vben il y a 4 ans
Parent
commit
500900abe1

+ 1 - 1
.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

+ 1 - 0
CHANGELOG.zh_CN.md

@@ -8,6 +8,7 @@
 
 - 登录界面动画优化
 - 修复 github 仓库体积过大问题.
+- 默认隐藏表格全屏按钮
 
 ### 🐛 Bug Fixes
 

+ 1 - 1
src/components/Table/src/components/settings/index.vue

@@ -37,7 +37,7 @@
             redo: true,
             size: true,
             setting: true,
-            fullScreen: true,
+            fullScreen: false,
             ...props.setting,
           };
         }

+ 0 - 3
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<PaginationProps | boolean>,
     default: null,
   },
-
   loading: propTypes.bool,
   rowClassName: {
     type: Function as PropType<(record: TableCustomRecord<any>, index: number) => string>,
   },
-
   scroll: {
     type: Object as PropType<{ x: number | true; y: number }>,
     default: null,

+ 2 - 0
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',
         },
       ],
     },