perf: optimize the size of the first screen

This commit is contained in:
vben
2020-10-20 21:06:12 +08:00
parent c2333f5d04
commit 968f791f4b
11 changed files with 43 additions and 26 deletions

View File

@@ -1,12 +1,3 @@
/*
* @description:
* @author: wenbin.chen
* @Date: 2020-05-12 13:20:26
* @LastEditors: vben
* @LastEditTime: 2020-10-07 14:52:34
* @email: 190848757@qq.com
*/
import { Ref, ref, watch, unref } from 'vue';
import { BasicTableProps } from '../types/table';

View File

@@ -133,7 +133,7 @@ export const basicProps = {
},
bordered: {
type: Boolean as PropType<boolean>,
default: true,
default: false,
},
pagination: {
type: [Object, Boolean] as PropType<PaginationProps | boolean>,

View File

@@ -1,11 +1,12 @@
import Icon from './Icon/index';
import { BasicHelp, BasicTitle } from './Basic';
import Button from './Button/index.vue';
import { App } from 'vue';
import { Button as AntButton } from 'ant-design-vue';
import { getApp } from '/@/useApp';
const compList = [Icon, BasicHelp, BasicTitle, Button];
export function registerGlobComp(app: App<Element>) {
const compList = [Icon, BasicHelp, BasicTitle, Button, AntButton.Group];
export function registerGlobComp() {
compList.forEach((comp: any) => {
app.component(comp.name, comp);
getApp().component(comp.name, comp);
});
}