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 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 type { ImageProps } from './image';
export { default as Image, ImagePreviewGroup } 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 { default as InputNumber } from './input-number';
export type { LayoutProps } from './layout'; 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 type { ListProps } from './list';
export { default as List, ListItem, ListItemMeta } from './list'; export { default as List, ListItem, ListItemMeta } from './list';

View File

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

View File

@ -20,7 +20,12 @@ Input.install = function (app: App) {
return 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 & export default Input as typeof Input &
Plugin & { Plugin & {

View File

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

View File

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

View File

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