chore: complete result on demand

This commit is contained in:
就眠儀式 2022-04-15 10:29:48 +08:00
parent cd0e46d37e
commit aa3c052905
5 changed files with 6 additions and 4424 deletions

View File

@ -1,8 +0,0 @@
import type { App } from "vue";
import Component from "./index.vue";
Component.install = (app: App) => {
app.component(Component.name, Component);
};
export default Component;

File diff suppressed because it is too large Load Diff

View File

@ -173,6 +173,7 @@ const getScrollParent = (
return parent; return parent;
} }
} }
// @ts-ignore
return document.documentElement || document.body || window; return document.documentElement || document.body || window;
}; };

View File

@ -87,6 +87,10 @@ const matchComponents = [
pattern: /^LayScroll$/, pattern: /^LayScroll$/,
styleDir: "scroll", styleDir: "scroll",
}, },
{
pattern: /^LayResult$/,
styleDir: "result",
},
// .... // ....
{ {
pattern: /^(LayCarousel|LayCarouselItem)$/, pattern: /^(LayCarousel|LayCarouselItem)$/,

View File

@ -350,7 +350,7 @@ const menus = [
title: "虚拟滚动", title: "虚拟滚动",
subTitle: "scroll", subTitle: "scroll",
path: "/zh-CN/components/scroll", path: "/zh-CN/components/scroll",
} },
], ],
}, },
{ {