🐛: 🐛(删除): 删除不必要文件

This commit is contained in:
dingyongya 2022-05-21 17:22:15 +08:00
parent 6119d9cd28
commit b622630a01
79 changed files with 0 additions and 487 deletions

73
types/index.d.ts vendored
View File

@ -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;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,34 +0,0 @@
export interface ColorPickerProps {
/**
* 使 hexrgb rgba
* v-model:color
*/
color: string;
/**
* / hexrgb
* 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[];
/**
* lgsmxs
*/
size: 'lg' | 'sm' | 'xs';
}

View File

@ -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;
};

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import { ValidateMessages } from "async-validator";
declare const _default: ValidateMessages;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../../type/index';
declare const _default: IDefineComponent<import("../../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,2 +0,0 @@
declare const postionFns: any;
export default postionFns;

View File

@ -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;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -1,3 +0,0 @@
import type { IDefineComponent } from '../type/index';
declare const _default: IDefineComponent<import("../type/public").UnknownObject>;
export default _default;

View File

@ -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 };

View File

@ -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;
}

View File

@ -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;

View File

@ -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;
}

View File

@ -1,3 +0,0 @@
export * from './public';
export * from './select';
export * from './form';

View File

@ -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>;

View File

@ -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;
}

View File

@ -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;

View File

@ -1,2 +0,0 @@
export declare function S4(): string;
export declare function guid(): string;