🐛: 🐛(删除): 删除不必要文件
This commit is contained in:
parent
6119d9cd28
commit
b622630a01
73
types/index.d.ts
vendored
73
types/index.d.ts
vendored
@ -1,73 +0,0 @@
|
||||
import type { App } from 'vue';
|
||||
import type { InstallOptions } from './module/type/index';
|
||||
import './css/layui.css';
|
||||
import '@layui/layer-vue/lib/index.css';
|
||||
import '@layui/icons-vue/lib/index.css';
|
||||
import { layer } from '@layui/layer-vue';
|
||||
import LayModal from './module/layer/modal/index';
|
||||
import LayBacktop from './module/backTop/index';
|
||||
import LayAvatar from './module/avatar/index';
|
||||
import LayRadio from './module/radio/index';
|
||||
import LayButton from './module/button/index';
|
||||
import LayButtonContainer from './module/buttonContainer/index';
|
||||
import LayButtonGroup from './module/buttonGroup/index';
|
||||
import LayIcon from './module/icon/index';
|
||||
import LayIconPicker from './module/iconPicker/index';
|
||||
import LayCard from './module/card/index';
|
||||
import LayLayout from './module/layout/index';
|
||||
import LaySide from './module/side/index';
|
||||
import LayBody from './module/body/index';
|
||||
import LayHeader from './module/header/index';
|
||||
import LayFooter from './module/footer/index';
|
||||
import LayLogo from './module/logo/index';
|
||||
import LayPanel from './module/panel/index';
|
||||
import LayProgress from './module/progress/index';
|
||||
import LayCol from './module/col/index';
|
||||
import LayRow from './module/row/index';
|
||||
import LayInput from './module/input/index';
|
||||
import LayBadge from './module/badge/index';
|
||||
import LayBlock from './module/block/index';
|
||||
import LayLine from './module/line/index';
|
||||
import LayTimeline from './module/timeline/index';
|
||||
import LayTimelineItem from './module/timelineItem/index';
|
||||
import LayTextarea from './module/textarea/index';
|
||||
import LaySwitch from './module/switch/index';
|
||||
import LayCollapse from './module/collapse/index';
|
||||
import LayCollapseItem from './module/collapseItem/index';
|
||||
import LayContainer from './module/container/index';
|
||||
import LayMenu from './module/menu/index';
|
||||
import LayMenuItem from './module/menuItem/index';
|
||||
import LayMenuChildItem from './module/menuChildItem/index';
|
||||
import LayCheckbox from './module/checkbox/index';
|
||||
import LayCheckboxGroup from './module/checkboxGroup/index';
|
||||
import LayForm from './module/form/index';
|
||||
import LayBreadcrumb from './module/breadcrumb/index';
|
||||
import LayBreadcrumbItem from './module/breadcrumbItem/index';
|
||||
import LayField from './module/field/index';
|
||||
import LaySelect from './module/select/index';
|
||||
import LaySelectOption from './module/selectOption/index';
|
||||
import LayScroll from './module/scroll/index';
|
||||
import LayEmpty from './module/empty/index';
|
||||
import LayFormItem from './module/formItem/index';
|
||||
import LayRate from './module/rate/index';
|
||||
import LayDropdown from './module/dropdown/index';
|
||||
import LayDropdownItem from './module/dropdownItem/index';
|
||||
import LayTab from './module/tab/index';
|
||||
import LayTabItem from './module/tabItem/index';
|
||||
import LayTree from './module/tree/index';
|
||||
import LayTable from './module/table/index';
|
||||
import LayPage from './module/page/index';
|
||||
import LayTransfer from './module/transfer/index';
|
||||
import LaySlider from './module/slider/index';
|
||||
import LayCarousel from './module/carousel/index';
|
||||
import LayCarouselItem from './module/carouselItem/index';
|
||||
import LayColorPicker from './module/colorPicker/index';
|
||||
import LaySetup from './module/setup/index';
|
||||
import LaySetupItem from './module/setupItem/index';
|
||||
import LaySkeleton from './module/skeleton/index';
|
||||
declare const install: (app: App, options?: InstallOptions | undefined) => void;
|
||||
export { LaySkeleton, LaySetup, LaySetupItem, LayRadio, LayIcon, LayButton, LayBacktop, LayLayout, LaySide, LayHeader, LayBody, LayFooter, LayLogo, LayPanel, LayCard, LayProgress, LayButtonGroup, LayButtonContainer, LayRow, LayCol, LayInput, LayBadge, LayBlock, LayLine, LayTimeline, LayTimelineItem, LayTextarea, LaySwitch, LayCollapse, LayCollapseItem, LayContainer, LayMenu, LayMenuItem, LayMenuChildItem, LayCheckbox, LayForm, LayBreadcrumb, LayBreadcrumbItem, LayAvatar, LayField, LaySelect, LayScroll, LaySelectOption, LayEmpty, LayFormItem, LayRate, LayDropdown, LayDropdownItem, LayTab, LayTabItem, LayIconPicker, LayTree, LayTable, LayPage, LayTransfer, LayCheckboxGroup, LaySlider, LayCarousel, LayCarouselItem, LayColorPicker, LayModal, install, layer };
|
||||
declare const _default: {
|
||||
install: (app: App<any>, options?: InstallOptions | undefined) => void;
|
||||
};
|
||||
export default _default;
|
3
types/module/avatar/index.d.ts
vendored
3
types/module/avatar/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/backTop/index.d.ts
vendored
3
types/module/backTop/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/badge/index.d.ts
vendored
3
types/module/badge/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/block/index.d.ts
vendored
3
types/module/block/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/body/index.d.ts
vendored
3
types/module/body/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/breadcrumb/index.d.ts
vendored
3
types/module/breadcrumb/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/breadcrumbItem/index.d.ts
vendored
3
types/module/breadcrumbItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/button/index.d.ts
vendored
3
types/module/button/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/buttonContainer/index.d.ts
vendored
3
types/module/buttonContainer/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/buttonGroup/index.d.ts
vendored
3
types/module/buttonGroup/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/card/index.d.ts
vendored
3
types/module/card/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/carousel/index.d.ts
vendored
3
types/module/carousel/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/carouselItem/index.d.ts
vendored
3
types/module/carouselItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/checkbox/index.d.ts
vendored
3
types/module/checkbox/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/checkboxGroup/index.d.ts
vendored
3
types/module/checkboxGroup/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/col/index.d.ts
vendored
3
types/module/col/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/collapse/index.d.ts
vendored
3
types/module/collapse/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/collapseItem/index.d.ts
vendored
3
types/module/collapseItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
34
types/module/colorPicker/colorPicker.type.d.ts
vendored
34
types/module/colorPicker/colorPicker.type.d.ts
vendored
@ -1,34 +0,0 @@
|
||||
export interface ColorPickerProps {
|
||||
/**
|
||||
* 默认颜色,不管你是使用 hex、rgb 还是 rgba 的格式输入,最终会以指定的格式显示。
|
||||
* v-model:color
|
||||
*/
|
||||
color: string;
|
||||
/**
|
||||
* 颜色显示/输入格式,可选值: hex、rgb
|
||||
* 若在 rgb 格式下开启了透明度,格式会自动变成 rgba。在没有输入颜色的前提下,组件会默认为 #000 也就是黑色。
|
||||
* default: hex(即 16 进制色值)
|
||||
*/
|
||||
format: 'hex' | 'rgb';
|
||||
/**
|
||||
* 是否开启透明度,若不开启,则不会显示透明框。开启了透明度选项时,当你的默认颜色为 hex 或 rgb 格式,
|
||||
* 组件会默认加上值为 1 的透明度。相同的,当你没有开启透明度,却以 rgba 格式设置默认颜色时,组件会默认没有透明度。
|
||||
* 注意:该参数必须配合 rgba 颜色值使用
|
||||
* default: false
|
||||
*/
|
||||
alpha: boolean;
|
||||
/**
|
||||
* 预定义颜色是否开启
|
||||
* default: false
|
||||
*/
|
||||
predefine: boolean;
|
||||
/**
|
||||
* 预定义颜色,此参数需配合 predefine: true 使用。
|
||||
* 此处列举一部分:['#ff4500','#1e90ff','rgba(255, 69, 0, 0.68)','rgb(255, 120, 0)']
|
||||
*/
|
||||
colors: string[];
|
||||
/**
|
||||
* 下拉框大小,可以选择:lg、sm、xs。
|
||||
*/
|
||||
size: 'lg' | 'sm' | 'xs';
|
||||
}
|
26
types/module/colorPicker/colorUtil.d.ts
vendored
26
types/module/colorPicker/colorUtil.d.ts
vendored
@ -1,26 +0,0 @@
|
||||
export interface RGB {
|
||||
h: number;
|
||||
s: number;
|
||||
b: number;
|
||||
}
|
||||
export declare function RGBToHSB(rgb: any): {
|
||||
h: number;
|
||||
s: number;
|
||||
b: number;
|
||||
};
|
||||
export declare function HEXToHSB(hex: any): {
|
||||
h: number;
|
||||
s: number;
|
||||
b: number;
|
||||
};
|
||||
export declare function HSBToRGB(hsb: any): {
|
||||
r: number;
|
||||
g: number;
|
||||
b: number;
|
||||
};
|
||||
export declare function HSBToHEX(hsb: any): string;
|
||||
export declare function RGBSTo(rgbs: any): {
|
||||
r: any;
|
||||
g: any;
|
||||
b: any;
|
||||
};
|
3
types/module/colorPicker/index.d.ts
vendored
3
types/module/colorPicker/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/container/index.d.ts
vendored
3
types/module/container/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/count/index.d.ts
vendored
3
types/module/count/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/dropdown/index.d.ts
vendored
3
types/module/dropdown/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/dropdownItem/index.d.ts
vendored
3
types/module/dropdownItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/empty/index.d.ts
vendored
3
types/module/empty/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/field/index.d.ts
vendored
3
types/module/field/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/footer/index.d.ts
vendored
3
types/module/footer/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/form/index.d.ts
vendored
3
types/module/form/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/formItem/cnValidateMessage.d.ts
vendored
3
types/module/formItem/cnValidateMessage.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import { ValidateMessages } from "async-validator";
|
||||
declare const _default: ValidateMessages;
|
||||
export default _default;
|
3
types/module/formItem/index.d.ts
vendored
3
types/module/formItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/header/index.d.ts
vendored
3
types/module/header/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/icon/index.d.ts
vendored
3
types/module/icon/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/iconPicker/index.d.ts
vendored
3
types/module/iconPicker/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/input/index.d.ts
vendored
3
types/module/input/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/inputNumber/index.d.ts
vendored
3
types/module/inputNumber/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/layer/modal/index.d.ts
vendored
3
types/module/layer/modal/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../../type/index';
|
||||
declare const _default: IDefineComponent<import("../../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/layout/index.d.ts
vendored
3
types/module/layout/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/line/index.d.ts
vendored
3
types/module/line/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/logo/index.d.ts
vendored
3
types/module/logo/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/menu/index.d.ts
vendored
3
types/module/menu/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/menuChildItem/index.d.ts
vendored
3
types/module/menuChildItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/menuItem/index.d.ts
vendored
3
types/module/menuItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/page/index.d.ts
vendored
3
types/module/page/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/panel/index.d.ts
vendored
3
types/module/panel/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
2
types/module/popper/calcPosition.d.ts
vendored
2
types/module/popper/calcPosition.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
declare const postionFns: any;
|
||||
export default postionFns;
|
7
types/module/popper/usePopper.d.ts
vendored
7
types/module/popper/usePopper.d.ts
vendored
@ -1,7 +0,0 @@
|
||||
declare const usePopper: {
|
||||
createPopper(el: HTMLElement, props: any, trigger: string): void;
|
||||
renderPopper(props: any): import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
||||
[key: string]: any;
|
||||
}>;
|
||||
};
|
||||
export default usePopper;
|
3
types/module/progress/index.d.ts
vendored
3
types/module/progress/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/radio/index.d.ts
vendored
3
types/module/radio/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/rate/index.d.ts
vendored
3
types/module/rate/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/row/index.d.ts
vendored
3
types/module/row/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/scroll/index.d.ts
vendored
3
types/module/scroll/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/select/index.d.ts
vendored
3
types/module/select/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/selectOption/index.d.ts
vendored
3
types/module/selectOption/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/setup/index.d.ts
vendored
3
types/module/setup/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/setupItem/index.d.ts
vendored
3
types/module/setupItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/side/index.d.ts
vendored
3
types/module/side/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/skeleton/index.d.ts
vendored
3
types/module/skeleton/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/slider/index.d.ts
vendored
3
types/module/slider/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/switch/index.d.ts
vendored
3
types/module/switch/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/tab/index.d.ts
vendored
3
types/module/tab/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/tabItem/index.d.ts
vendored
3
types/module/tabItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/table/index.d.ts
vendored
3
types/module/table/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/textarea/index.d.ts
vendored
3
types/module/textarea/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/timeline/index.d.ts
vendored
3
types/module/timeline/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/timelineItem/index.d.ts
vendored
3
types/module/timelineItem/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/tooltip/index.d.ts
vendored
3
types/module/tooltip/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/transfer/index.d.ts
vendored
3
types/module/transfer/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
3
types/module/tree/index.d.ts
vendored
3
types/module/tree/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
import type { IDefineComponent } from '../type/index';
|
||||
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
|
||||
export default _default;
|
48
types/module/tree/tree.d.ts
vendored
48
types/module/tree/tree.d.ts
vendored
@ -1,48 +0,0 @@
|
||||
import { OriginalTreeData, StringOrNumber } from './tree.type';
|
||||
import { Nullable } from '../type';
|
||||
import { Ref } from 'vue';
|
||||
declare type CustomKey = string | number;
|
||||
declare type CustomString = (() => string) | string;
|
||||
export interface TreeData {
|
||||
id: CustomKey;
|
||||
title: CustomString;
|
||||
children: TreeData[];
|
||||
parentKey: Nullable<StringOrNumber>;
|
||||
isRoot: boolean;
|
||||
isChecked: Ref<boolean>;
|
||||
isDisabled: Ref<boolean>;
|
||||
isLeaf: Ref<boolean>;
|
||||
hasNextSibling: boolean;
|
||||
parentNode: Nullable<TreeData>;
|
||||
}
|
||||
interface ReplaceFields {
|
||||
id: string;
|
||||
title: string;
|
||||
children: string;
|
||||
}
|
||||
interface TreeConfig {
|
||||
showCheckbox: boolean;
|
||||
checkedKeys: StringOrNumber[];
|
||||
expandKeys: StringOrNumber[];
|
||||
nodeMap: Map<StringOrNumber, TreeData>;
|
||||
originMap: Map<StringOrNumber, OriginalTreeData>;
|
||||
replaceFields: ReplaceFields;
|
||||
}
|
||||
declare class Tree {
|
||||
protected config: TreeConfig;
|
||||
protected treeData: TreeData[];
|
||||
constructor(config: TreeConfig, origin: OriginalTreeData | OriginalTreeData[]);
|
||||
init(origin: OriginalTreeData | OriginalTreeData[]): void;
|
||||
createTree(origin: OriginalTreeData | OriginalTreeData[], parentKey?: StringOrNumber): TreeData[];
|
||||
getNode(origin: OriginalTreeData, parentKey: StringOrNumber, hasNextSibling: boolean): TreeData;
|
||||
setChildrenChecked(checked: boolean, nodes: TreeData[]): void;
|
||||
setParentChecked(checked: boolean, parent: TreeData): void;
|
||||
setCheckedKeys(checked: boolean, node: TreeData): void;
|
||||
getData(): TreeData[];
|
||||
getKeys(): {
|
||||
checkedKeys: any[];
|
||||
expandKeys: any[];
|
||||
};
|
||||
getOriginData(key: StringOrNumber): OriginalTreeData;
|
||||
}
|
||||
export { Tree };
|
31
types/module/tree/tree.type.d.ts
vendored
31
types/module/tree/tree.type.d.ts
vendored
@ -1,31 +0,0 @@
|
||||
export declare type StringFn = () => string;
|
||||
export declare type StringOrNumber = string | number;
|
||||
export declare type KeysType = (number | string)[];
|
||||
export declare type EditType = boolean | ('add' | 'update' | 'delete');
|
||||
export interface OriginalTreeData {
|
||||
title: StringFn | string;
|
||||
id: StringOrNumber;
|
||||
field: StringFn | string;
|
||||
children?: OriginalTreeData[];
|
||||
disabled?: boolean;
|
||||
}
|
||||
export interface TreeProps {
|
||||
checkedKeys?: KeysType;
|
||||
expandKeys?: KeysType;
|
||||
data: OriginalTreeData;
|
||||
showCheckbox?: boolean;
|
||||
edit?: EditType;
|
||||
accordion?: boolean;
|
||||
onlyIconControl?: boolean;
|
||||
showLine?: boolean;
|
||||
replaceFields?: {
|
||||
id?: string;
|
||||
children?: string;
|
||||
title?: string;
|
||||
};
|
||||
}
|
||||
export interface TreeEmits {
|
||||
(e: 'update:checkedKeys', keys: KeysType): void;
|
||||
(e: 'update:expandKeys', keys: KeysType): void;
|
||||
(e: 'node-click', node: OriginalTreeData, event: Event): void;
|
||||
}
|
8
types/module/tree/useTree.d.ts
vendored
8
types/module/tree/useTree.d.ts
vendored
@ -1,8 +0,0 @@
|
||||
import { TreeEmits, TreeProps } from './tree.type';
|
||||
import { ComputedRef } from 'vue';
|
||||
import { Tree, TreeData } from './tree';
|
||||
export declare type UseTree = (props: TreeProps, emit: TreeEmits) => {
|
||||
tree: Tree;
|
||||
nodeList: ComputedRef<TreeData[]>;
|
||||
};
|
||||
export declare const useTree: UseTree;
|
29
types/module/type/form.d.ts
vendored
29
types/module/type/form.d.ts
vendored
@ -1,29 +0,0 @@
|
||||
import type { ValidateCallback, ValidateError, ValidateMessages } from 'async-validator';
|
||||
export declare const layFormKey = "LayForm";
|
||||
export interface LayFormContext {
|
||||
model: modelType;
|
||||
required?: boolean;
|
||||
requiredErrorMessage?: string;
|
||||
validateMessage: ValidateMessages;
|
||||
rules?: Record<string, unknown>;
|
||||
useCN: boolean;
|
||||
requiredIcons?: string;
|
||||
addField: (field: LayFormItemContext) => void;
|
||||
}
|
||||
export interface LayFormItemContext {
|
||||
prop?: string;
|
||||
$el: HTMLDivElement;
|
||||
required?: boolean;
|
||||
rules?: Record<string, unknown>;
|
||||
validate(callback?: ValidateCallback): void;
|
||||
clearValidate(): void;
|
||||
}
|
||||
export declare type modelType = {
|
||||
[key: string]: any;
|
||||
};
|
||||
export declare interface FormCallback {
|
||||
(isValid?: boolean, model?: modelType, errors?: ValidateError[] | null): void;
|
||||
}
|
||||
export declare interface FieldValidateError extends ValidateError {
|
||||
label?: string;
|
||||
}
|
3
types/module/type/index.d.ts
vendored
3
types/module/type/index.d.ts
vendored
@ -1,3 +0,0 @@
|
||||
export * from './public';
|
||||
export * from './select';
|
||||
export * from './form';
|
14
types/module/type/public.d.ts
vendored
14
types/module/type/public.d.ts
vendored
@ -1,14 +0,0 @@
|
||||
import type { App, DefineComponent, Ref } from 'vue';
|
||||
export declare type StringObject = Record<string, unknown>;
|
||||
export declare type UnknownObject = Record<string | number, unknown>;
|
||||
export declare type UnknownFunction = (...arg: unknown[]) => unknown;
|
||||
export declare type IDefineComponent<Props = UnknownObject> = DefineComponent<Props> & {
|
||||
install: (app: App, options?: InstallOptions) => void;
|
||||
};
|
||||
export interface InstallOptions extends StringObject {
|
||||
pagination?: null;
|
||||
menu?: null;
|
||||
}
|
||||
export declare type Nullable<T> = T | null;
|
||||
export declare type MaybeRef<T> = Ref<T> | T;
|
||||
export declare type Recordable = Record<string, any>;
|
10
types/module/type/select.d.ts
vendored
10
types/module/type/select.d.ts
vendored
@ -1,10 +0,0 @@
|
||||
export declare type SelectValueType = string | string[] | number | number[] | null;
|
||||
export interface SelectItem {
|
||||
value?: SelectValueType;
|
||||
label?: null | string | string[];
|
||||
disabled?: boolean;
|
||||
multiple?: boolean;
|
||||
}
|
||||
export interface SelectItemHandle {
|
||||
(selectItem: SelectItem, isChecked?: boolean): void;
|
||||
}
|
5
types/tools/domUtil.d.ts
vendored
5
types/tools/domUtil.d.ts
vendored
@ -1,5 +0,0 @@
|
||||
export function getTop(elem: any): any;
|
||||
export function getLeft(elem: any): any;
|
||||
export function on(elem: any, events: any, handler: any): void;
|
||||
export function once(elem: any, events: any, handler: any): void;
|
||||
export function off(elem: any, events: any, handler: any): void;
|
2
types/tools/guidUtil.d.ts
vendored
2
types/tools/guidUtil.d.ts
vendored
@ -1,2 +0,0 @@
|
||||
export declare function S4(): string;
|
||||
export declare function guid(): string;
|
Loading…
Reference in New Issue
Block a user