fix: `Layout` `RangePicker` `WeekPicker` `Textarea` on-demand loading failure

pull/4258/head
tangjinzhou 2021-06-24 22:47:36 +08:00
parent d7f6148f24
commit b1bb913f9d
6 changed files with 25 additions and 15 deletions

View File

@ -71,7 +71,7 @@ export { default as Form, FormItem } from './form';
export { default as Grid } from './grid';
export { default as Input, InputGroup, InputPassword, InputSearch, TextArea } from './input';
export { default as Input, InputGroup, InputPassword, InputSearch, Textarea } from './input';
export type { ImageProps } from './image';
export { default as Image, ImagePreviewGroup } from './image';
@ -80,7 +80,13 @@ export type { InputNumberProps } from './input-number';
export { default as InputNumber } from './input-number';
export type { LayoutProps } from './layout';
export { default as Layout, LayoutHeader, LayouSider, LayouFooter, LayouContent } from './layout';
export {
default as Layout,
LayoutHeader,
LayoutSider,
LayoutFooter,
LayoutContent,
} from './layout';
export type { ListProps } from './list';
export { default as List, ListItem, ListItemMeta } from './list';

View File

@ -35,7 +35,7 @@ const DatePicker = wrapPicker(
readonly WeekPicker: typeof WrappedWeekPicker;
};
const MonthPicker = wrapPicker(
export const MonthPicker = wrapPicker(
createPicker(MonthCalendar as any, MonthPickerProps, 'AMonthPicker'),
MonthPickerProps,
'month',
@ -56,6 +56,6 @@ DatePicker.install = function (app: App) {
return app;
};
export { RangePicker, MonthPicker, WeekPicker };
export { WrappedRangePicker as RangePicker, WrappedWeekPicker as WeekPicker };
export default DatePicker as typeof DatePicker & Plugin;

View File

@ -20,7 +20,12 @@ Input.install = function (app: App) {
return app;
};
export { Group as InputGroup, Search as InputSearch, TextArea, Password as InputPassword };
export {
Group as InputGroup,
Search as InputSearch,
TextArea as Textarea,
Password as InputPassword,
};
export default Input as typeof Input &
Plugin & {

View File

@ -16,12 +16,11 @@ Layout.install = function (app: App) {
app.component(Layout.Content.name, Layout.Content);
return app;
};
const LayoutHeader = Layout.Header;
const LayouFooter = Layout.Footer;
const LayouSider = Layout.Sider;
const LayouContent = Layout.Content;
export const LayoutHeader = Layout.Header;
export const LayoutFooter = Layout.Footer;
export const LayoutSider = Layout.Sider;
export const LayoutContent = Layout.Content;
export { LayoutHeader, LayouSider, LayouFooter, LayouContent };
export default Layout as typeof Layout &
Plugin & {
readonly Sider: typeof Sider;

View File

@ -172,7 +172,7 @@ export default defineComponent({
const childrenLength = children.length;
let tooltipTitle: any = title;
if (typeof title === 'undefined') {
tooltipTitle = firstLevel ? children : '';
tooltipTitle = firstLevel && childrenLength ? children : '';
} else if (title === false) {
tooltipTitle = '';
}

View File

@ -53,15 +53,15 @@ Array [
"InputGroup",
"InputPassword",
"InputSearch",
"TextArea",
"Textarea",
"Image",
"ImagePreviewGroup",
"InputNumber",
"Layout",
"LayoutHeader",
"LayouSider",
"LayouFooter",
"LayouContent",
"LayoutSider",
"LayoutFooter",
"LayoutContent",
"List",
"ListItem",
"ListItemMeta",