@dinert/element-plus 1.0.0 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +335 -36
- package/dist/element-plus.umd.js +2 -0
- package/dist/element-plus.umd.js.map +1 -0
- package/dist/style.css +1 -0
- package/es/node_modules/@element-plus/icons-vue/dist/index.mjs +66 -0
- package/es/node_modules/@element-plus/icons-vue/dist/index.mjs.map +1 -0
- package/es/packages/assets/scss/dinert-form.scss.mjs +5 -0
- package/es/packages/assets/scss/dinert-form.scss.mjs.map +1 -0
- package/es/packages/assets/scss/dinert-table-page.scss.mjs +5 -0
- package/es/packages/assets/scss/dinert-table-page.scss.mjs.map +1 -0
- package/es/packages/assets/scss/dinert-table.scss.mjs +5 -0
- package/es/packages/assets/scss/dinert-table.scss.mjs.map +1 -0
- package/es/packages/assets/scss/dinert-tooltip.scss.mjs +5 -0
- package/es/packages/assets/scss/dinert-tooltip.scss.mjs.map +1 -0
- package/es/packages/components/form/index.mjs +10 -0
- package/es/packages/components/form/index.mjs.map +1 -0
- package/es/packages/components/form/src/cascader.mjs +49 -0
- package/es/packages/components/form/src/cascader.mjs.map +1 -0
- package/es/packages/components/form/src/checkbox.mjs +44 -0
- package/es/packages/components/form/src/checkbox.mjs.map +1 -0
- package/es/packages/components/form/src/date.mjs +47 -0
- package/es/packages/components/form/src/date.mjs.map +1 -0
- package/es/packages/components/form/src/index.mjs +229 -0
- package/es/packages/components/form/src/index.mjs.map +1 -0
- package/es/packages/components/form/src/input-autocomplete.mjs +35 -0
- package/es/packages/components/form/src/input-autocomplete.mjs.map +1 -0
- package/es/packages/components/form/src/input-number.mjs +39 -0
- package/es/packages/components/form/src/input-number.mjs.map +1 -0
- package/es/packages/components/form/src/input.mjs +43 -0
- package/es/packages/components/form/src/input.mjs.map +1 -0
- package/es/packages/components/form/src/radio.mjs +48 -0
- package/es/packages/components/form/src/radio.mjs.map +1 -0
- package/es/packages/components/form/src/rate.mjs +35 -0
- package/es/packages/components/form/src/rate.mjs.map +1 -0
- package/es/packages/components/form/src/select.mjs +45 -0
- package/es/packages/components/form/src/select.mjs.map +1 -0
- package/es/packages/components/form/src/switch.mjs +36 -0
- package/es/packages/components/form/src/switch.mjs.map +1 -0
- package/es/packages/components/form/src/tree-select.mjs +43 -0
- package/es/packages/components/form/src/tree-select.mjs.map +1 -0
- package/es/packages/components/form/utils/index.mjs +49 -0
- package/es/packages/components/form/utils/index.mjs.map +1 -0
- package/es/packages/components/index.mjs +11 -0
- package/es/packages/components/index.mjs.map +1 -0
- package/es/packages/components/table/hooks/index.mjs +30 -0
- package/es/packages/components/table/hooks/index.mjs.map +1 -0
- package/es/packages/components/table/index.mjs +10 -0
- package/es/packages/components/table/index.mjs.map +1 -0
- package/es/packages/components/table/src/index.mjs +177 -0
- package/es/packages/components/table/src/index.mjs.map +1 -0
- package/es/packages/components/table/src/recuve-table-column.mjs +235 -0
- package/es/packages/components/table/src/recuve-table-column.mjs.map +1 -0
- package/es/packages/components/table-page/index.mjs +10 -0
- package/es/packages/components/table-page/index.mjs.map +1 -0
- package/es/packages/components/table-page/src/index.mjs +77 -0
- package/es/packages/components/table-page/src/index.mjs.map +1 -0
- package/es/packages/components/tooltip/index.mjs +10 -0
- package/es/packages/components/tooltip/index.mjs.map +1 -0
- package/es/packages/components/tooltip/src/index.mjs +56 -0
- package/es/packages/components/tooltip/src/index.mjs.map +1 -0
- package/es/packages/hooks/useTablePage/index.mjs +136 -0
- package/es/packages/hooks/useTablePage/index.mjs.map +1 -0
- package/es/packages/hooks/useWindowResize.mjs +16 -0
- package/es/packages/hooks/useWindowResize.mjs.map +1 -0
- package/es/packages/index.mjs +21 -0
- package/es/packages/index.mjs.map +1 -0
- package/es/packages/utils/tools.mjs +54 -0
- package/es/packages/utils/tools.mjs.map +1 -0
- package/es/src/components/form/index.d.ts +32 -0
- package/es/src/components/form/src/checkbox.d.ts +28 -0
- package/es/src/components/form/src/date.d.ts +28 -0
- package/es/src/components/form/src/index.d.ts +32 -0
- package/es/src/components/form/src/input-autocomplete.d.ts +28 -0
- package/es/src/components/form/src/input-number.d.ts +28 -0
- package/es/src/components/form/src/input.d.ts +28 -0
- package/es/src/components/form/src/radio.d.ts +28 -0
- package/es/src/components/form/src/rate.d.ts +28 -0
- package/es/src/components/form/src/switch.d.ts +28 -0
- package/es/src/components/form/src/tree-select.d.ts +39 -0
- package/es/src/components/form/types/index.d.ts +41 -0
- package/es/src/components/form/utils/index.d.ts +5 -0
- package/es/src/components/index.d.ts +7 -0
- package/es/src/components/table/hooks/index.d.ts +14 -0
- package/es/src/components/table/index.d.ts +608 -0
- package/es/src/components/table/src/index.d.ts +609 -0
- package/es/src/components/table/src/recuve-table-column.d.ts +43 -0
- package/es/src/components/table/types/index.d.ts +82 -0
- package/es/src/components/table-page/index.d.ts +1329 -0
- package/es/src/components/table-page/src/index.d.ts +1330 -0
- package/es/src/components/tooltip/index.d.ts +60 -0
- package/es/src/components/tooltip/src/index.d.ts +59 -0
- package/es/src/components/tooltip/types/index.d.ts +10 -0
- package/es/src/hooks/useTablePage/index.d.ts +49 -0
- package/es/src/hooks/useTablePage/types/index.d.ts +29 -0
- package/es/src/hooks/useWindowResize.d.ts +2 -0
- package/es/src/index.d.ts +7 -0
- package/es/src/utils/tools.d.ts +19 -0
- package/es/src/views/test-table/data.d.ts +21 -0
- package/es/src/views/test-table/tableColumns.d.ts +9 -0
- package/es/src/views/test-table-page/data.d.ts +2 -0
- package/es/src/views/test-table-page/formItem.d.ts +1 -0
- package/es/src/views/test-table-page/types/index.d.ts +23 -0
- package/es/style.css +1 -0
- package/lib/index.js +2 -0
- package/lib/index.js.map +1 -0
- package/lib/src/components/form/index.d.ts +32 -0
- package/lib/src/components/form/src/checkbox.d.ts +28 -0
- package/lib/src/components/form/src/date.d.ts +28 -0
- package/lib/src/components/form/src/index.d.ts +32 -0
- package/lib/src/components/form/src/input-autocomplete.d.ts +28 -0
- package/lib/src/components/form/src/input-number.d.ts +28 -0
- package/lib/src/components/form/src/input.d.ts +28 -0
- package/lib/src/components/form/src/radio.d.ts +28 -0
- package/lib/src/components/form/src/rate.d.ts +28 -0
- package/lib/src/components/form/src/switch.d.ts +28 -0
- package/lib/src/components/form/src/tree-select.d.ts +39 -0
- package/lib/src/components/form/types/index.d.ts +41 -0
- package/lib/src/components/form/utils/index.d.ts +5 -0
- package/lib/src/components/index.d.ts +7 -0
- package/lib/src/components/table/hooks/index.d.ts +14 -0
- package/lib/src/components/table/index.d.ts +608 -0
- package/lib/src/components/table/src/index.d.ts +609 -0
- package/lib/src/components/table/src/recuve-table-column.d.ts +43 -0
- package/lib/src/components/table/types/index.d.ts +82 -0
- package/lib/src/components/table-page/index.d.ts +1329 -0
- package/lib/src/components/table-page/src/index.d.ts +1330 -0
- package/lib/src/components/tooltip/index.d.ts +60 -0
- package/lib/src/components/tooltip/src/index.d.ts +59 -0
- package/lib/src/components/tooltip/types/index.d.ts +10 -0
- package/lib/src/hooks/useTablePage/index.d.ts +49 -0
- package/lib/src/hooks/useTablePage/types/index.d.ts +29 -0
- package/lib/src/hooks/useWindowResize.d.ts +2 -0
- package/lib/src/index.d.ts +7 -0
- package/lib/src/utils/tools.d.ts +19 -0
- package/lib/src/views/test-table/data.d.ts +21 -0
- package/lib/src/views/test-table/tableColumns.d.ts +9 -0
- package/lib/src/views/test-table-page/data.d.ts +2 -0
- package/lib/src/views/test-table-page/formItem.d.ts +1 -0
- package/lib/src/views/test-table-page/types/index.d.ts +23 -0
- package/lib/style.css +1 -0
- package/package.json +92 -86
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import type { Plugin } from 'vue';
|
|
2
|
+
type SFCWithInstall<T> = T & Plugin;
|
|
3
|
+
export declare const Tooltip: SFCWithInstall<import("vue").DefineComponent<{
|
|
4
|
+
options: {
|
|
5
|
+
type: ObjectConstructor;
|
|
6
|
+
default: () => {};
|
|
7
|
+
};
|
|
8
|
+
content: {
|
|
9
|
+
type: StringConstructor;
|
|
10
|
+
default: string;
|
|
11
|
+
};
|
|
12
|
+
disabled: {
|
|
13
|
+
type: BooleanConstructor;
|
|
14
|
+
default: boolean;
|
|
15
|
+
};
|
|
16
|
+
item: {
|
|
17
|
+
type: import("vue").PropType<{
|
|
18
|
+
type?: string | undefined;
|
|
19
|
+
options?: {
|
|
20
|
+
options?: any[] | undefined;
|
|
21
|
+
} | undefined;
|
|
22
|
+
} | undefined>;
|
|
23
|
+
default: () => {};
|
|
24
|
+
};
|
|
25
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "LabelMouseEnter"[], "LabelMouseEnter", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
26
|
+
options: {
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
default: () => {};
|
|
29
|
+
};
|
|
30
|
+
content: {
|
|
31
|
+
type: StringConstructor;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
disabled: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
item: {
|
|
39
|
+
type: import("vue").PropType<{
|
|
40
|
+
type?: string | undefined;
|
|
41
|
+
options?: {
|
|
42
|
+
options?: any[] | undefined;
|
|
43
|
+
} | undefined;
|
|
44
|
+
} | undefined>;
|
|
45
|
+
default: () => {};
|
|
46
|
+
};
|
|
47
|
+
}>> & {
|
|
48
|
+
onLabelMouseEnter?: ((...args: any[]) => any) | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
disabled: boolean;
|
|
51
|
+
options: Record<string, any>;
|
|
52
|
+
content: string;
|
|
53
|
+
item: {
|
|
54
|
+
type?: string | undefined;
|
|
55
|
+
options?: {
|
|
56
|
+
options?: any[] | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
} | undefined;
|
|
59
|
+
}, {}>>;
|
|
60
|
+
export default Tooltip;
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
import type { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
options: {
|
|
4
|
+
type: ObjectConstructor;
|
|
5
|
+
default: () => {};
|
|
6
|
+
};
|
|
7
|
+
content: {
|
|
8
|
+
type: StringConstructor;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
disabled: {
|
|
12
|
+
type: BooleanConstructor;
|
|
13
|
+
default: boolean;
|
|
14
|
+
};
|
|
15
|
+
item: {
|
|
16
|
+
type: PropType<{
|
|
17
|
+
type?: string | undefined;
|
|
18
|
+
options?: {
|
|
19
|
+
options?: any[] | undefined;
|
|
20
|
+
} | undefined;
|
|
21
|
+
} | undefined>;
|
|
22
|
+
default: () => {};
|
|
23
|
+
};
|
|
24
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "LabelMouseEnter"[], "LabelMouseEnter", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
25
|
+
options: {
|
|
26
|
+
type: ObjectConstructor;
|
|
27
|
+
default: () => {};
|
|
28
|
+
};
|
|
29
|
+
content: {
|
|
30
|
+
type: StringConstructor;
|
|
31
|
+
default: string;
|
|
32
|
+
};
|
|
33
|
+
disabled: {
|
|
34
|
+
type: BooleanConstructor;
|
|
35
|
+
default: boolean;
|
|
36
|
+
};
|
|
37
|
+
item: {
|
|
38
|
+
type: PropType<{
|
|
39
|
+
type?: string | undefined;
|
|
40
|
+
options?: {
|
|
41
|
+
options?: any[] | undefined;
|
|
42
|
+
} | undefined;
|
|
43
|
+
} | undefined>;
|
|
44
|
+
default: () => {};
|
|
45
|
+
};
|
|
46
|
+
}>> & {
|
|
47
|
+
onLabelMouseEnter?: ((...args: any[]) => any) | undefined;
|
|
48
|
+
}, {
|
|
49
|
+
disabled: boolean;
|
|
50
|
+
options: Record<string, any>;
|
|
51
|
+
content: string;
|
|
52
|
+
item: {
|
|
53
|
+
type?: string | undefined;
|
|
54
|
+
options?: {
|
|
55
|
+
options?: any[] | undefined;
|
|
56
|
+
} | undefined;
|
|
57
|
+
} | undefined;
|
|
58
|
+
}, {}>;
|
|
59
|
+
export default _default;
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
2
|
+
import type { RewriteFormProps } from '../../components/form/types';
|
|
3
|
+
import type { RewriteTableProps } from '../../components/table/types';
|
|
4
|
+
import type { DinertTablePageProps, AjaxTableProps, ScopeFn } from './types';
|
|
5
|
+
import TablePageCom from '../../components/table-page/index';
|
|
6
|
+
/**
|
|
7
|
+
* T 表格data数据格式
|
|
8
|
+
* D 表单model的数据格式
|
|
9
|
+
* P 发起请求的数据格式
|
|
10
|
+
* R 请求回来的数据格式
|
|
11
|
+
*/
|
|
12
|
+
declare class TablePage<T, D = any, P = any, R = any> {
|
|
13
|
+
showSearch: Ref<DinertTablePageProps['search']>;
|
|
14
|
+
table: Ref<RewriteTableProps<T>>;
|
|
15
|
+
form: Ref<RewriteFormProps<D>>;
|
|
16
|
+
footer: Ref<DinertTablePageProps['footer']>;
|
|
17
|
+
selecTableDatas: Ref<T[]>;
|
|
18
|
+
lastSelectDatas: Ref<T[]>;
|
|
19
|
+
options: DinertTablePageProps<T, D>;
|
|
20
|
+
ids: Ref<string[]>;
|
|
21
|
+
params: P | any;
|
|
22
|
+
oldParams: P | any;
|
|
23
|
+
tablePageRef: Ref<InstanceType<typeof TablePageCom> | null>;
|
|
24
|
+
private readonly defaultOptions;
|
|
25
|
+
private readonly firstOptions;
|
|
26
|
+
constructor(options: DinertTablePageProps<T, D>);
|
|
27
|
+
getTableParams: (params: P) => (Partial<P>);
|
|
28
|
+
ajaxTableDataAfter: (res: R) => void;
|
|
29
|
+
lookOperations: ScopeFn<T>;
|
|
30
|
+
editOperations: ScopeFn<T>;
|
|
31
|
+
addOperations: ScopeFn<T>;
|
|
32
|
+
deleteOperations: ScopeFn<T>;
|
|
33
|
+
importOperations: ScopeFn<T>;
|
|
34
|
+
sizeChange(size: number): void;
|
|
35
|
+
currentChange(currentPage: number): void;
|
|
36
|
+
getTableData(options: (P & AjaxTableProps) | any): Promise<any>;
|
|
37
|
+
changeTableData(res: R | any): void;
|
|
38
|
+
getAjaxTableDataParams(options: (P & AjaxTableProps) | any): any;
|
|
39
|
+
ajaxTableData(options: (P & AjaxTableProps)): Promise<R | any>;
|
|
40
|
+
search(options?: (P & AjaxTableProps) | any): Promise<any>;
|
|
41
|
+
resetSearch(options?: (P & AjaxTableProps) | any): void;
|
|
42
|
+
resetPagination(): void;
|
|
43
|
+
resetParams(): void;
|
|
44
|
+
clearParams(): void;
|
|
45
|
+
getTableDataKeys(key?: string): string[];
|
|
46
|
+
echoOperations(): void;
|
|
47
|
+
tableSelectEvent(): void;
|
|
48
|
+
}
|
|
49
|
+
export default TablePage;
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { DinertFormProps } from '../../../components/form/types';
|
|
2
|
+
import type { TableInstance } from 'element-plus';
|
|
3
|
+
import type { TablePageProps, RewriteTableColumnCtx } from '../../../components/table/types/index';
|
|
4
|
+
export interface DinertTablePageProps<T = any, D = any> extends DinertFormProps<D>, TablePageProps<T> {
|
|
5
|
+
search?: boolean;
|
|
6
|
+
}
|
|
7
|
+
export interface TableParams<T = any> {
|
|
8
|
+
data: T[];
|
|
9
|
+
page?: number;
|
|
10
|
+
pageNum?: number;
|
|
11
|
+
pageSize?: number;
|
|
12
|
+
total?: number;
|
|
13
|
+
totalPages?: number;
|
|
14
|
+
}
|
|
15
|
+
export interface AjaxTableProps {
|
|
16
|
+
name?: 'reset' | 'delete' | 'search' | 'current' | 'size';
|
|
17
|
+
currentPage?: number;
|
|
18
|
+
pageSize?: number;
|
|
19
|
+
}
|
|
20
|
+
export interface Scope<T = any> {
|
|
21
|
+
$index?: number;
|
|
22
|
+
$cellIndex?: number;
|
|
23
|
+
column?: RewriteTableColumnCtx<T>;
|
|
24
|
+
data?: RewriteTableColumnCtx<T>;
|
|
25
|
+
row?: T;
|
|
26
|
+
store?: TableInstance;
|
|
27
|
+
_self?: any;
|
|
28
|
+
}
|
|
29
|
+
export type ScopeFn<T> = (scope?: Scope<T>) => void;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Plugin } from 'vue';
|
|
2
|
+
import TablePage from './hooks/useTablePage/index';
|
|
3
|
+
export * from './components/index';
|
|
4
|
+
export declare const UseTablePage: typeof TablePage;
|
|
5
|
+
export * from './hooks/useTablePage/types/index';
|
|
6
|
+
declare const myPlugin: Plugin;
|
|
7
|
+
export default myPlugin;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare const storage: (name: 'localStorage' | 'sessionStorage', key: string, value?: any) => any;
|
|
2
|
+
export declare const firstUpperCase: (str: string) => string;
|
|
3
|
+
export declare const type: (type: any) => string;
|
|
4
|
+
export declare const getUuid: () => string;
|
|
5
|
+
/**
|
|
6
|
+
*
|
|
7
|
+
* @param {Object} obj
|
|
8
|
+
* @param {String} path
|
|
9
|
+
* @returns
|
|
10
|
+
*/
|
|
11
|
+
export declare const getPropByPath: (obj: any, path: string) => any;
|
|
12
|
+
export declare const dataTransformRod: (data: any, errData?: any) => any;
|
|
13
|
+
export declare const getTreeNode: <T = any>(treeData: any, name: string, value: any, key: string) => T[];
|
|
14
|
+
export declare function convertToFlat<T = any>(data: T[], children?: string, parentId?: any): T[];
|
|
15
|
+
export declare function formatPhone(value: string): string;
|
|
16
|
+
export declare const downFile: (response: any) => any;
|
|
17
|
+
export declare const formatterArray: (cellValue: any) => any;
|
|
18
|
+
export declare const escapeHTML: (str: any) => string;
|
|
19
|
+
export declare const columnProp: (prop: string) => string;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
export declare const tableData: {
|
|
2
|
+
args: string;
|
|
3
|
+
costTime: number;
|
|
4
|
+
errorMsg: string;
|
|
5
|
+
id: string;
|
|
6
|
+
ip: string;
|
|
7
|
+
operationDescription: string;
|
|
8
|
+
operationObject: string;
|
|
9
|
+
operationResult: string;
|
|
10
|
+
operationType: {
|
|
11
|
+
code: string;
|
|
12
|
+
name: string;
|
|
13
|
+
};
|
|
14
|
+
overTime: number;
|
|
15
|
+
requestMethod: string;
|
|
16
|
+
requestUrl: string;
|
|
17
|
+
securityLevel: string;
|
|
18
|
+
startTime: string;
|
|
19
|
+
userId: string;
|
|
20
|
+
userName: string;
|
|
21
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const formItem: any;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export interface TableData {
|
|
2
|
+
args: string;
|
|
3
|
+
costTime: number;
|
|
4
|
+
errorMsg: string;
|
|
5
|
+
id: string;
|
|
6
|
+
ip: string;
|
|
7
|
+
operationDescription: string;
|
|
8
|
+
operationObject: string;
|
|
9
|
+
operationResult: string;
|
|
10
|
+
operationType: OperationType;
|
|
11
|
+
overTime: number;
|
|
12
|
+
requestMethod: string;
|
|
13
|
+
requestUrl: string;
|
|
14
|
+
securityLevel: string;
|
|
15
|
+
startTime: string;
|
|
16
|
+
userId: string;
|
|
17
|
+
userName: string;
|
|
18
|
+
}
|
|
19
|
+
interface OperationType {
|
|
20
|
+
code: string;
|
|
21
|
+
name: string;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
package/lib/style.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.tree-item{width:100%}.tree-item .el-tooltip__trigger{display:block;overflow:hidden;width:100%;text-overflow:ellipsis;white-space:nowrap}.el-popover-classify,.el-popover-classify li{margin:0;padding:0;list-style:none}.el-popover-classify li:first-child{border-bottom:1px solid var(--el-fill-color);line-height:32px}.el-popover-classify .el-tree-node .el-tree-node__expand-icon.is-leaf{display:none}.dinert-table{display:flex;padding:20px;height:100%;border-radius:var(--el-bg-radius);background-color:var(--el-bg-color);flex-direction:column;box-sizing:border-box}.dinert-table .dinert-table-header{display:flex;justify-content:space-between;margin-bottom:12px;text-align:right}.dinert-table .dinert-table-header .el-popover-classify li .el-checkbox{width:100%;line-height:24px;height:24px}.dinert-table .dinert-table-header .dinert-table-header-left{text-align:left}.dinert-table .dinert-table-header .dinert-table-header-right .el-tree-node__expand-icon.is-leaf{display:none}.dinert-table .dinert-table-body{flex:1;height:0}.dinert-table .dinert-table-body .el-table{--el-table-header-bg-color: #f4f4f4;--el-border-color-lighter: #e4e4e4}.dinert-table .dinert-table-body .el-table .el-popper{max-width:50%}.dinert-table .dinert-table-body .el-table .el-table__header .cell{color:var(--zp-color-secondary-text-title)}.dinert-table .dinert-table-body .el-table .el-table__header .cell .setting-icon{vertical-align:-1px;margin-left:4px;cursor:pointer}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper td{color:var(--zp-color-secondary-text-title)}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper td .cell.el-tooltip>.cell-item{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .el-dropdown{vertical-align:-2px}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell{display:flex;justify-content:center;align-items:center}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-link{margin-right:12px}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-svg-icon{font-size:14px;color:var(--el-color-primary);cursor:pointer;flex:1}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .el-svg-icon.delete{color:var(--el-color-danger)}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .svg-icon{width:16px;height:16px;vertical-align:-2px;flex:1;color:var(--el-color-primary);cursor:pointer;fill:var(--el-color-primary)}.dinert-table .dinert-table-body .el-table .el-table__body-wrapper .operations .cell .svg-icon.f-14{width:14px;height:14px}.dinert-table .dinert-table-footer{display:flex;margin-top:16px}.dinert-table .dinert-table-footer .el-pagination{display:flex;flex-wrap:wrap}.el-form{display:flex;overflow:hidden;padding:0;min-height:50px;border-radius:4px;background-color:var(--el-color-white);transition:all .3s cubic-bezier(.645,.045,.355,1);box-sizing:content-box}.el-form.dinert-form.packUp{max-height:50px}.el-form.near .el-form-left{flex:unset}.el-form.near .el-form-left .el-col{width:auto}.el-form.near .el-form-right{min-width:auto}.el-form .el-form-left{flex:1}.el-form .el-form-left .el-col .label-text .el-date-editor{width:210px}.el-form .el-form-left .el-col .label-text .el-date-editor--daterange{width:260px}.el-form .el-form-left .el-col .label-text>.el-input{width:210px}.el-form .el-form-left .el-col .label-text>.el-select{width:210px}.el-form .el-form-left .el-col .label-text .el-date-editor--datetimerange{width:400px}.el-form .el-form-right{display:flex;margin-left:24px;min-width:230px}.el-form .el-form-right .el-form-right-operation{padding:0}.el-form .el-form-right .el-form-right-operation.el-button.is-text{padding-right:0;background-color:unset}.el-form div.el-form-item{position:relative;display:flex;margin-right:0;margin-bottom:18px;width:100%}.el-form div.el-form-item.show-label .label-text{overflow:unset;text-overflow:unset;white-space:unset}.el-form div.el-form-item.label-wrap .el-form-item__label{height:auto}.el-form div.el-form-item.label-wrap .el-form-item__label .label-text{display:inline;text-align:left;white-space:normal}.el-form .el-form-item__content{flex:1;margin-left:0}.el-form .el-form-item__content .el-tooltip__trigger,.el-form .el-form-item__content .el-input-number{width:100%}.el-form .el-form-item__content .el-input-number .el-input__inner{text-align:center}.el-form .el-form-item__content .el-date-editor,.el-form .el-form-item__content .el-date-editor .el-input__wrapper{width:100%;box-sizing:border-box}.el-form .el-form-item__content .el-input__inner{overflow:hidden;text-align:left;text-overflow:ellipsis;white-space:nowrap}.el-form .el-form-item__content .el-form-item__label{overflow:hidden;width:80px;max-width:80px;text-align:right;text-overflow:ellipsis;white-space:nowrap}.el-form .el-form-item__content .el-form-item__label .el-tooltip,.el-form .el-form-item__content .el-form-item__label .el-tooltip .label-text{display:inline}.el-form .el-select{width:100%}.dinert-table-page{display:flex;flex-direction:column;box-sizing:border-box}.dinert-table-page.text-wrap .el-table__header .cell{white-space:pre-wrap}.dinert-table-page.text-wrap .el-table__body .el-table__row td>.cell,.dinert-table-page.text-wrap .el-table__body .el-table__row td>.cell>.cell-item,.dinert-table-page.text-wrap .el-table__body .el-table__row td .cell.el-tooltip>.cell-item{white-space:pre-wrap}.dinert-table-page.text-wrap .el-table__body .el-table__row .el-button>span{text-align:left}.dinert-table-page.text-wrap .el-table__body .el-table__row span{white-space:pre-wrap;line-height:23px}.dinert-table-page.header-center .el-table__header .el-table__cell{text-align:center}.dinert-table-page.near .el-form-left{flex:unset}.dinert-table-page.near .el-form-left .el-col{margin-right:16px;width:auto;max-width:unset;flex:unset}.dinert-table-page.near .dinert-table-footer .el-pagination{margin-left:auto}.dinert-table-page.maxWidthAuto .el-form .el-form-item .el-form-item__label{max-width:unset}.dinert-table-page .dinert-form{padding:20px 20px 0;max-height:300px}.dinert-table-page .dinert-table{padding-top:0;height:0;flex:1}.el-tooltip__trigger{display:block;height:100%}.el-tooltip__trigger .text-tooltip{position:absolute;left:-999999999999px}.el-tooltip__trigger .label-text{display:block;overflow:hidden;width:100%;height:100%;text-overflow:ellipsis;white-space:nowrap}
|
package/package.json
CHANGED
|
@@ -1,86 +1,92 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@dinert/element-plus",
|
|
3
|
-
"version": "1.0.
|
|
4
|
-
"description": "基于vue3封装的element-plus包",
|
|
5
|
-
"scripts": {
|
|
6
|
-
"dev": "vite",
|
|
7
|
-
"build": "vite build",
|
|
8
|
-
"prepare": "husky install"
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
"
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
"
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
"@babel/
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"@
|
|
44
|
-
"@
|
|
45
|
-
"@
|
|
46
|
-
"@
|
|
47
|
-
"@
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
51
|
-
"
|
|
52
|
-
"
|
|
53
|
-
"
|
|
54
|
-
"
|
|
55
|
-
"
|
|
56
|
-
"
|
|
57
|
-
"
|
|
58
|
-
"
|
|
59
|
-
"
|
|
60
|
-
"
|
|
61
|
-
"
|
|
62
|
-
"stylelint
|
|
63
|
-
"
|
|
64
|
-
"
|
|
65
|
-
"
|
|
66
|
-
"
|
|
67
|
-
"
|
|
68
|
-
"
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
"*.{
|
|
76
|
-
"
|
|
77
|
-
"git add"
|
|
78
|
-
],
|
|
79
|
-
"*.{
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@dinert/element-plus",
|
|
3
|
+
"version": "1.0.2",
|
|
4
|
+
"description": "基于vue3封装的element-plus包",
|
|
5
|
+
"scripts": {
|
|
6
|
+
"dev": "vite",
|
|
7
|
+
"build": "vite build",
|
|
8
|
+
"prepare": "husky install",
|
|
9
|
+
"docs:dev": "vuepress dev docs --port 8060",
|
|
10
|
+
"docs:build": "vuepress build docs",
|
|
11
|
+
"deploy": "bash deploy.sh"
|
|
12
|
+
},
|
|
13
|
+
"keywords": [
|
|
14
|
+
"@dinert/element-plus",
|
|
15
|
+
"element-plus",
|
|
16
|
+
"@dinert"
|
|
17
|
+
],
|
|
18
|
+
"files": [
|
|
19
|
+
"dist",
|
|
20
|
+
"es",
|
|
21
|
+
"lib"
|
|
22
|
+
],
|
|
23
|
+
"main": "lib/index.js",
|
|
24
|
+
"module": "es/packages/index.mjs",
|
|
25
|
+
"types": "es/src/index.d.ts",
|
|
26
|
+
"exports": {
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./es/src/index.d.ts",
|
|
29
|
+
"import": "./es/packages/index.mjs",
|
|
30
|
+
"require": "./lib/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./style": {
|
|
33
|
+
"import": "./es/style.css"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"author": "dinert",
|
|
37
|
+
"license": "MIT",
|
|
38
|
+
"devDependencies": {
|
|
39
|
+
"@babel/core": "^7.23.2",
|
|
40
|
+
"@babel/eslint-parser": "^7.22.15",
|
|
41
|
+
"@babel/eslint-plugin": "^7.22.10",
|
|
42
|
+
"@babel/preset-typescript": "^7.23.3",
|
|
43
|
+
"@element-plus/icons-vue": "^2.1.0",
|
|
44
|
+
"@rollup/plugin-commonjs": "^25.0.7",
|
|
45
|
+
"@types/node": "^20.9.0",
|
|
46
|
+
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
47
|
+
"@typescript-eslint/parser": "^6.10.0",
|
|
48
|
+
"@vitejs/plugin-vue": "^4.4.0",
|
|
49
|
+
"@vitejs/plugin-vue-jsx": "^3.0.2",
|
|
50
|
+
"@vue/runtime-core": "^3.3.8",
|
|
51
|
+
"@vuepress/client": "^2.0.0-rc.0",
|
|
52
|
+
"element-plus": "^2.4.2",
|
|
53
|
+
"eslint": "^8.53.0",
|
|
54
|
+
"eslint-plugin-vue": "^9.18.1",
|
|
55
|
+
"husky": "^8.0.3",
|
|
56
|
+
"lint-staged": "12.5.0",
|
|
57
|
+
"lodash": "^4.17.21",
|
|
58
|
+
"postcss": "^8.4.31",
|
|
59
|
+
"postcss-html": "^1.5.0",
|
|
60
|
+
"postcss-scss": "^4.0.9",
|
|
61
|
+
"sass": "^1.69.5",
|
|
62
|
+
"stylelint": "^15.11.0",
|
|
63
|
+
"stylelint-config-recommended-vue": "^1.5.0",
|
|
64
|
+
"stylelint-config-standard": "^34.0.0",
|
|
65
|
+
"stylelint-order": "^6.0.3",
|
|
66
|
+
"stylelint-scss": "^5.3.1",
|
|
67
|
+
"typescript": "^5.2.2",
|
|
68
|
+
"validate-commit-msg": "^2.14.0",
|
|
69
|
+
"vite": "^4.5.0",
|
|
70
|
+
"vite-plugin-dts": "^3.6.3",
|
|
71
|
+
"vue": "^3.3.8",
|
|
72
|
+
"vue-eslint-parser": "^9.3.2"
|
|
73
|
+
},
|
|
74
|
+
"lint-staged": {
|
|
75
|
+
"*.{tsx, ts}": [
|
|
76
|
+
"eslint --fix",
|
|
77
|
+
"git add"
|
|
78
|
+
],
|
|
79
|
+
"*.{css,scss,sass}": [
|
|
80
|
+
"stylelint --fix",
|
|
81
|
+
"git add"
|
|
82
|
+
],
|
|
83
|
+
"*.{html,vue}": [
|
|
84
|
+
"eslint --fix",
|
|
85
|
+
"stylelint --fix",
|
|
86
|
+
"git add"
|
|
87
|
+
]
|
|
88
|
+
},
|
|
89
|
+
"dependencies": {
|
|
90
|
+
"vuepress": "^2.0.0-rc.0"
|
|
91
|
+
}
|
|
92
|
+
}
|