@dao-style/core 0.1.0 → 0.1.3
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/dist/components/index.d.ts +1 -0
- package/dist/components/pagination/pagination-props.d.ts +0 -2
- package/dist/components/pagination/pagination.vue.d.ts +0 -2
- package/dist/components/table/components/tdAction.vue.d.ts +7 -0
- package/dist/components/table/table.vue.d.ts +4 -1
- package/dist/components/tag/index.d.ts +1 -0
- package/dist/components/tag/tag.vue.d.ts +36 -0
- package/dist/components/tag/test/tag.spec.d.ts +1 -0
- package/dist/dao-style.es.js +734 -353
- package/dist/dao-style.umd.js +1 -1
- package/dist/font/DaoCloudIconFont/DaoCloudIconFont.woff2 +0 -0
- package/dist/style.css +1 -1
- package/dist/utils/default-value.d.ts +1 -0
- package/package.json +2 -2
- package/volar.d.ts +1 -0
|
@@ -3,7 +3,6 @@ export declare type PaginationLayoutKey = 'total' | 'pager' | 'sizer';
|
|
|
3
3
|
declare const paginationProps: {
|
|
4
4
|
pageSize: {
|
|
5
5
|
type: PropType<number>;
|
|
6
|
-
required: boolean;
|
|
7
6
|
default: number;
|
|
8
7
|
validator: (val: number) => boolean;
|
|
9
8
|
};
|
|
@@ -21,7 +20,6 @@ declare const paginationProps: {
|
|
|
21
20
|
};
|
|
22
21
|
total: {
|
|
23
22
|
type: PropType<number>;
|
|
24
|
-
required: boolean;
|
|
25
23
|
default: number;
|
|
26
24
|
};
|
|
27
25
|
totalFormat: {
|
|
@@ -7,7 +7,6 @@ declare type ComputedLayout = {
|
|
|
7
7
|
declare const _default: import("vue").DefineComponent<{
|
|
8
8
|
pageSize: {
|
|
9
9
|
type: import("vue").PropType<number>;
|
|
10
|
-
required: boolean;
|
|
11
10
|
default: number;
|
|
12
11
|
validator: (val: number) => boolean;
|
|
13
12
|
};
|
|
@@ -25,7 +24,6 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
25
24
|
};
|
|
26
25
|
total: {
|
|
27
26
|
type: import("vue").PropType<number>;
|
|
28
|
-
required: boolean;
|
|
29
27
|
default: number;
|
|
30
28
|
};
|
|
31
29
|
totalFormat: {
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare type TdMouseEvent = MouseEvent & {
|
|
2
|
+
stopRowClick?: boolean;
|
|
3
|
+
};
|
|
4
|
+
declare const _default: import("vue").DefineComponent<{}, {
|
|
5
|
+
handleClick: (e: TdMouseEvent) => void;
|
|
6
|
+
}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{} & {} & {}>, {}>;
|
|
7
|
+
export default _default;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { Ref, ComponentPublicInstance } from 'vue';
|
|
2
|
+
import withDefaultValue from '../../utils/default-value';
|
|
2
3
|
import type { DaoTableColumn, DefaultWidthType } from './type';
|
|
4
|
+
import { TdMouseEvent } from './components/tdAction.vue';
|
|
3
5
|
declare const _default: import("vue").DefineComponent<{
|
|
4
6
|
id: {
|
|
5
7
|
type: import("vue").PropType<string>;
|
|
@@ -138,12 +140,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
138
140
|
};
|
|
139
141
|
tableScroll: Ref<HTMLDivElement | undefined>;
|
|
140
142
|
expandedRows: WeakSet<object>;
|
|
141
|
-
onRowClick: (row: Record<string, unknown>, rowIndex: number) => void;
|
|
143
|
+
onRowClick: (e: TdMouseEvent, row: Record<string, unknown>, rowIndex: number) => void;
|
|
142
144
|
isEmpty: import("vue").ComputedRef<boolean>;
|
|
143
145
|
selectableRows: import("vue").ComputedRef<Set<Record<string, unknown>>>;
|
|
144
146
|
isRowSelected: (row: Record<string, unknown>) => boolean;
|
|
145
147
|
toggleSelected: (row: Record<string, unknown>) => void;
|
|
146
148
|
toggleSelectedAll: () => void;
|
|
149
|
+
withDefaultValue: typeof withDefaultValue;
|
|
147
150
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("select" | "next" | "prev" | "update:page-size" | "update:current-page" | "update:selectedRows" | "sortChange" | "hideColumn" | "afterResize" | "expandToggle" | "pageChange" | "sizeChange" | "row-click")[], "select" | "next" | "prev" | "update:page-size" | "update:current-page" | "update:selectedRows" | "sortChange" | "hideColumn" | "afterResize" | "expandToggle" | "pageChange" | "sizeChange" | "row-click", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
148
151
|
id?: unknown;
|
|
149
152
|
columns?: unknown;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as Tag } from './tag.vue';
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
closable: {
|
|
3
|
+
type: BooleanConstructor;
|
|
4
|
+
default: boolean;
|
|
5
|
+
};
|
|
6
|
+
separator: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
label: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: string;
|
|
13
|
+
};
|
|
14
|
+
value: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
}, unknown, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "close"[], "close", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
19
|
+
closable?: unknown;
|
|
20
|
+
separator?: unknown;
|
|
21
|
+
label?: unknown;
|
|
22
|
+
value?: unknown;
|
|
23
|
+
} & {
|
|
24
|
+
label: string;
|
|
25
|
+
value: string;
|
|
26
|
+
separator: string;
|
|
27
|
+
closable: boolean;
|
|
28
|
+
} & {}> & {
|
|
29
|
+
onClose?: ((...args: any[]) => any) | undefined;
|
|
30
|
+
}, {
|
|
31
|
+
label: string;
|
|
32
|
+
value: string;
|
|
33
|
+
separator: string;
|
|
34
|
+
closable: boolean;
|
|
35
|
+
}>;
|
|
36
|
+
export default _default;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|