3h1-ui 2.2.1 → 2.3.0
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/es/index.js +214 -338
- package/es/style.css +23 -0
- package/es/ui/src/Description/index.d.ts +1 -1
- package/es/ui/src/Description/src/Description.d.ts +50 -0
- package/es/ui/src/Description/src/props.d.ts +30 -0
- package/es/ui/src/Description/src/typing.d.ts +7 -25
- package/lib/index.js +213 -337
- package/package.json +1 -1
- package/es/ui/src/Description/src/Description.vue.d.ts +0 -101
package/es/style.css
CHANGED
|
@@ -25509,6 +25509,29 @@ span.iconify {
|
|
|
25509
25509
|
align-items: center;
|
|
25510
25510
|
justify-content: center;
|
|
25511
25511
|
cursor: pointer;
|
|
25512
|
+
}.shy-basic-description-wrapper {
|
|
25513
|
+
display: flex;
|
|
25514
|
+
flex-flow: row wrap;
|
|
25515
|
+
height: 100%;
|
|
25516
|
+
overflow-y: auto;
|
|
25517
|
+
}
|
|
25518
|
+
.shy-basic-description-label {
|
|
25519
|
+
color: #797a7a;
|
|
25520
|
+
display: inline-block;
|
|
25521
|
+
text-align: right;
|
|
25522
|
+
margin-right: 5px;
|
|
25523
|
+
font-size: 14px;
|
|
25524
|
+
flex: none;
|
|
25525
|
+
}
|
|
25526
|
+
.shy-basic-description-value {
|
|
25527
|
+
display: inline-block;
|
|
25528
|
+
flex: auto;
|
|
25529
|
+
overflow-wrap: anywhere;
|
|
25530
|
+
}
|
|
25531
|
+
.shy-basic-description-row {
|
|
25532
|
+
display: flex;
|
|
25533
|
+
margin: 8px 0;
|
|
25534
|
+
overflow: hidden;
|
|
25512
25535
|
}.shy-basic-drawer-footer {
|
|
25513
25536
|
position: absolute;
|
|
25514
25537
|
bottom: 0;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { Schema } from './props';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
schema: {
|
|
4
|
+
type: import("vue").PropType<Schema[]>;
|
|
5
|
+
default: () => {
|
|
6
|
+
label: string;
|
|
7
|
+
field: string;
|
|
8
|
+
}[];
|
|
9
|
+
};
|
|
10
|
+
labelWidth: {
|
|
11
|
+
type: import("vue").PropType<string | number>;
|
|
12
|
+
default: () => number;
|
|
13
|
+
};
|
|
14
|
+
isShowColon: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: () => boolean;
|
|
17
|
+
};
|
|
18
|
+
data: {
|
|
19
|
+
type: ObjectConstructor;
|
|
20
|
+
default: () => {};
|
|
21
|
+
};
|
|
22
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "register"[], "register", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
23
|
+
schema: {
|
|
24
|
+
type: import("vue").PropType<Schema[]>;
|
|
25
|
+
default: () => {
|
|
26
|
+
label: string;
|
|
27
|
+
field: string;
|
|
28
|
+
}[];
|
|
29
|
+
};
|
|
30
|
+
labelWidth: {
|
|
31
|
+
type: import("vue").PropType<string | number>;
|
|
32
|
+
default: () => number;
|
|
33
|
+
};
|
|
34
|
+
isShowColon: {
|
|
35
|
+
type: BooleanConstructor;
|
|
36
|
+
default: () => boolean;
|
|
37
|
+
};
|
|
38
|
+
data: {
|
|
39
|
+
type: ObjectConstructor;
|
|
40
|
+
default: () => {};
|
|
41
|
+
};
|
|
42
|
+
}>> & {
|
|
43
|
+
onRegister?: (...args: any[]) => any;
|
|
44
|
+
}, {
|
|
45
|
+
data: Record<string, any>;
|
|
46
|
+
schema: Schema[];
|
|
47
|
+
labelWidth: string | number;
|
|
48
|
+
isShowColon: boolean;
|
|
49
|
+
}>;
|
|
50
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
export interface Schema {
|
|
3
|
+
label: string;
|
|
4
|
+
field: string;
|
|
5
|
+
colProps?: {
|
|
6
|
+
span: number;
|
|
7
|
+
};
|
|
8
|
+
}
|
|
9
|
+
export declare const basicColProps = 24;
|
|
10
|
+
export declare const basicProps: {
|
|
11
|
+
schema: {
|
|
12
|
+
type: PropType<Schema[]>;
|
|
13
|
+
default: () => {
|
|
14
|
+
label: string;
|
|
15
|
+
field: string;
|
|
16
|
+
}[];
|
|
17
|
+
};
|
|
18
|
+
labelWidth: {
|
|
19
|
+
type: PropType<string | number>;
|
|
20
|
+
default: () => number;
|
|
21
|
+
};
|
|
22
|
+
isShowColon: {
|
|
23
|
+
type: BooleanConstructor;
|
|
24
|
+
default: () => boolean;
|
|
25
|
+
};
|
|
26
|
+
data: {
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
default: () => {};
|
|
29
|
+
};
|
|
30
|
+
};
|
|
@@ -1,33 +1,15 @@
|
|
|
1
|
-
import type { VNode, CSSProperties } from 'vue';
|
|
2
|
-
import type { CollapseContainerOptions } from '../../Container';
|
|
3
|
-
import type { DescriptionsProps } from 'ant-design-vue/es/descriptions/index';
|
|
4
1
|
export interface DescItem {
|
|
5
|
-
labelMinWidth?: number;
|
|
6
|
-
contentMinWidth?: number;
|
|
7
|
-
labelStyle?: CSSProperties;
|
|
8
2
|
field: string;
|
|
9
|
-
label: string
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
3
|
+
label: string;
|
|
4
|
+
colProps?: {
|
|
5
|
+
span?: number;
|
|
6
|
+
};
|
|
13
7
|
}
|
|
14
|
-
export interface DescriptionProps
|
|
15
|
-
useCollapse?: boolean;
|
|
16
|
-
/**
|
|
17
|
-
* item configuration
|
|
18
|
-
* @type DescItem
|
|
19
|
-
*/
|
|
8
|
+
export interface DescriptionProps {
|
|
20
9
|
schema: DescItem[];
|
|
21
|
-
/**
|
|
22
|
-
* 数据
|
|
23
|
-
* @type object
|
|
24
|
-
*/
|
|
25
10
|
data: Recordable;
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
* @type CollapseContainerOptions
|
|
29
|
-
*/
|
|
30
|
-
collapseOptions?: CollapseContainerOptions;
|
|
11
|
+
labelWidth?: number;
|
|
12
|
+
isShowColon?: boolean;
|
|
31
13
|
}
|
|
32
14
|
export interface DescInstance {
|
|
33
15
|
setDescProps(descProps: Partial<DescriptionProps>): void;
|