@dao-style/core 0.1.1 → 0.1.4
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/expansion/expansion-item.vue.d.ts +2 -0
- package/dist/components/expansion/expansion.vue.d.ts +2 -0
- package/dist/components/expansion/props.d.ts +5 -0
- package/dist/components/index.d.ts +1 -0
- 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 +750 -355
- 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
|
@@ -10,6 +10,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
10
10
|
}, {
|
|
11
11
|
onItemClick: () => void;
|
|
12
12
|
isExpanded: import("vue").ComputedRef<boolean>;
|
|
13
|
+
expansionType: import("vue").ComputedRef<"line" | "box" | undefined>;
|
|
14
|
+
expansionMode: import("vue").ComputedRef<"manual" | "auto" | undefined>;
|
|
13
15
|
onBeforeEnter: (el: Element) => void;
|
|
14
16
|
onEnter: (el: Element) => void;
|
|
15
17
|
onAfterEnter: (el: Element) => void;
|
|
@@ -21,6 +21,8 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
21
21
|
state: {
|
|
22
22
|
expansionRecord: ExpansionName | ExpansionName[] | undefined;
|
|
23
23
|
accordion: boolean;
|
|
24
|
+
type?: "line" | "box" | undefined;
|
|
25
|
+
mode?: "manual" | "auto" | undefined;
|
|
24
26
|
};
|
|
25
27
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "change")[], "update:modelValue" | "change", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<{
|
|
26
28
|
modelValue?: unknown;
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import type { PropType, ExtractPropTypes } from 'vue';
|
|
2
2
|
export declare type ExpansionName = symbol | string | number;
|
|
3
|
+
declare const expansionType: readonly ["line", "box"];
|
|
4
|
+
declare type TypeExpansionType = typeof expansionType[number];
|
|
3
5
|
export declare const expansionProps: {
|
|
4
6
|
modelValue: {
|
|
5
7
|
type: PropType<ExpansionName | ExpansionName[]>;
|
|
@@ -31,4 +33,7 @@ export declare type ExpansionPropsType = ExtractPropTypes<typeof expansionProps>
|
|
|
31
33
|
export interface ExpansionState {
|
|
32
34
|
expansionRecord: ExpansionPropsType['modelValue'];
|
|
33
35
|
accordion: boolean;
|
|
36
|
+
type?: TypeExpansionType;
|
|
37
|
+
mode?: 'auto' | 'manual';
|
|
34
38
|
}
|
|
39
|
+
export {};
|
|
@@ -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 {};
|