yc-vep-ui 0.2.0 → 0.2.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/dist/components/Form/index.vue.d.ts +3 -2
- package/dist/components/Form/type.d.ts +2 -2
- package/dist/components/utils/index.d.ts +3 -7
- package/dist/components/utils/render.d.ts +3 -1
- package/dist/{yc-vep-ui.css → index.css} +13 -13
- package/dist/vep-ui.es.js +757 -499
- package/dist/vep-ui.umd.js +1 -1
- package/package.json +14 -10
|
@@ -3,7 +3,8 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
3
3
|
props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
|
|
4
4
|
readonly onReset?: ((...args: any[]) => any) | undefined;
|
|
5
5
|
readonly onSubmit?: ((...args: any[]) => any) | undefined;
|
|
6
|
-
|
|
6
|
+
readonly "onUpdate:model"?: ((...args: any[]) => any) | undefined;
|
|
7
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onReset" | "onSubmit" | "onUpdate:model"> & IFormProps<T> & Partial<{}>> & import('vue').PublicProps;
|
|
7
8
|
expose(exposed: import('vue').ShallowUnwrapRef<IFormInstance>): void;
|
|
8
9
|
attrs: any;
|
|
9
10
|
slots: {
|
|
@@ -14,7 +15,7 @@ declare const _default: <T extends Record<string, any>>(__VLS_props: NonNullable
|
|
|
14
15
|
form: import('@vue/reactivity').DistributeRef<import('vue').Reactive<T>>;
|
|
15
16
|
}): any;
|
|
16
17
|
};
|
|
17
|
-
emit: (event: "reset" | "submit", ...args: any[]) => void;
|
|
18
|
+
emit: (event: "reset" | "submit" | "update:model", ...args: any[]) => void;
|
|
18
19
|
}>) => import('vue').VNode & {
|
|
19
20
|
__ctx?: Awaited<typeof __VLS_setup>;
|
|
20
21
|
};
|
|
@@ -16,8 +16,8 @@ export interface IFormProps<T> {
|
|
|
16
16
|
column?: number
|
|
17
17
|
/** 默认值 */
|
|
18
18
|
defaultValues?: Record<string, any>
|
|
19
|
-
/**
|
|
20
|
-
|
|
19
|
+
/** 表单数据对象 (同 el-form 的 model) */
|
|
20
|
+
model?: Record<string, any>
|
|
21
21
|
valueModel?: 'default' | 'underline'
|
|
22
22
|
/** 按钮尺寸 */
|
|
23
23
|
size?: '' | 'small' | 'default' | 'large'
|
|
@@ -1,9 +1,5 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
/**
|
|
3
|
-
* 去重数组(基于 SameValueZero 比较)
|
|
4
|
-
*/
|
|
1
|
+
export declare const baseUrl: string;
|
|
2
|
+
/** 去重数组(基于 SameValueZero 比较)*/
|
|
5
3
|
export declare function uniq<T>(arr: T[]): T[];
|
|
6
|
-
/**
|
|
7
|
-
* 根据指定 key 去重数组
|
|
8
|
-
*/
|
|
4
|
+
/** 根据指定 key 去重数组 */
|
|
9
5
|
export declare function uniqBy<T>(arr: T[], key: keyof T | ((item: T) => unknown)): T[];
|
|
@@ -36,7 +36,9 @@ declare function text(props: TextProps & {
|
|
|
36
36
|
prop: string;
|
|
37
37
|
}): any;
|
|
38
38
|
declare function staffSelect(props: any): any;
|
|
39
|
-
declare function upload(props: IUploadProps
|
|
39
|
+
declare function upload(props: IUploadProps & {
|
|
40
|
+
modelValue?: any[];
|
|
41
|
+
}): any;
|
|
40
42
|
declare const _default: {
|
|
41
43
|
button: typeof button;
|
|
42
44
|
link: typeof link;
|
|
@@ -42,24 +42,24 @@
|
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
-
.ui-form-buttons[data-v-
|
|
45
|
+
.ui-form-buttons[data-v-5e602fff] {
|
|
46
46
|
display: flex;
|
|
47
47
|
justify-content: flex-start;
|
|
48
48
|
align-items: center;
|
|
49
49
|
}
|
|
50
50
|
.ui-form {
|
|
51
|
-
&[data-v-
|
|
51
|
+
&[data-v-5e602fff] {
|
|
52
52
|
display: grid;
|
|
53
|
-
grid-template-columns: repeat(var(--
|
|
53
|
+
grid-template-columns: repeat(var(--fc2b2f2a), minmax(0, 1fr));
|
|
54
54
|
gap: 0px 40px;
|
|
55
55
|
}
|
|
56
|
-
&[data-v-
|
|
56
|
+
&[data-v-5e602fff] .el-form-item__label {
|
|
57
57
|
margin-bottom: 0;
|
|
58
58
|
font-weight: bold;
|
|
59
59
|
font-size: 0.8em;
|
|
60
60
|
color: #6b7280;
|
|
61
61
|
}
|
|
62
|
-
&[data-v-
|
|
62
|
+
&[data-v-5e602fff] .el-form-item__content {
|
|
63
63
|
display: flex;
|
|
64
64
|
flex-wrap: inherit;
|
|
65
65
|
width: 100%;
|
|
@@ -77,8 +77,8 @@
|
|
|
77
77
|
|
|
78
78
|
/* 下划线样式 */
|
|
79
79
|
.underline {
|
|
80
|
-
&[data-v-
|
|
81
|
-
&[data-v-
|
|
80
|
+
&[data-v-5e602fff] .el-input__wrapper,
|
|
81
|
+
&[data-v-5e602fff] .el-textarea__inner {
|
|
82
82
|
box-shadow: 0px 1px 0px var(--el-input-border-color, var(--el-border-color));
|
|
83
83
|
}
|
|
84
84
|
}
|
|
@@ -147,7 +147,7 @@
|
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
.staff-tree[data-v-
|
|
150
|
+
.staff-tree[data-v-5c901fff] {
|
|
151
151
|
position: relative;
|
|
152
152
|
height: 90%;
|
|
153
153
|
overflow-y: auto;
|
|
@@ -155,28 +155,28 @@
|
|
|
155
155
|
border-radius: 4px;
|
|
156
156
|
margin-top: 8px;
|
|
157
157
|
}
|
|
158
|
-
.staff-select-trigger[data-v-
|
|
158
|
+
.staff-select-trigger[data-v-5c901fff] {
|
|
159
159
|
width: 100%;
|
|
160
160
|
cursor: pointer;
|
|
161
161
|
}
|
|
162
|
-
.staff-select-trigger[data-v-
|
|
162
|
+
.staff-select-trigger[data-v-5c901fff] .el-select {
|
|
163
163
|
width: 100%;
|
|
164
164
|
pointer-events: none;
|
|
165
165
|
}
|
|
166
166
|
.staff-item {
|
|
167
|
-
&[data-v-
|
|
167
|
+
&[data-v-5c901fff] {
|
|
168
168
|
line-height: 28px;
|
|
169
169
|
padding: 0% 20px 0% 10px;
|
|
170
170
|
display: flex;
|
|
171
171
|
justify-content: space-between;
|
|
172
172
|
align-items: center;
|
|
173
173
|
}
|
|
174
|
-
&[data-v-
|
|
174
|
+
&[data-v-5c901fff]:hover {
|
|
175
175
|
background-color: rgba(102, 177, 255, 0.5);
|
|
176
176
|
}
|
|
177
177
|
}
|
|
178
178
|
.is-required {
|
|
179
|
-
&[data-v-
|
|
179
|
+
&[data-v-5c901fff] .el-select__wrapper {
|
|
180
180
|
border: 1px solid red;
|
|
181
181
|
}
|
|
182
182
|
}
|