@vunk/form 0.0.1-alpha.27 → 0.0.1-alpha.28
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.
|
@@ -8,13 +8,13 @@
|
|
|
8
8
|
min-width: 100px;
|
|
9
9
|
}
|
|
10
10
|
|
|
11
|
-
|
|
12
|
-
.el-upload-list__item-status-label{
|
|
13
|
-
z-index: 1;
|
|
14
|
-
}
|
|
15
|
-
.el-upload-list__item .el-icon--close{
|
|
16
|
-
z-index: 1;
|
|
17
|
-
}
|
|
18
|
-
.el-upload-list__item-name .el-icon.el-icon--download-primary{
|
|
19
|
-
color: var(--el-color-primary);
|
|
20
|
-
}
|
|
11
|
+
|
|
12
|
+
.el-upload-list__item-status-label{
|
|
13
|
+
z-index: 1;
|
|
14
|
+
}
|
|
15
|
+
.el-upload-list__item .el-icon--close{
|
|
16
|
+
z-index: 1;
|
|
17
|
+
}
|
|
18
|
+
.el-upload-list__item-name .el-icon.el-icon--download-primary{
|
|
19
|
+
color: var(--el-color-primary);
|
|
20
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _VkfFormItemCtx, VkfFormItem } from '@vunk/form/components/form-item';
|
|
2
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
2
3
|
import { uploadProps, ElProgress, ElIcon, useNamespace, useLocale, ElUpload, ElLink } from 'element-plus';
|
|
3
4
|
import { openBlock, createElementBlock, createElementVNode, defineComponent, resolveComponent, Fragment, createCommentVNode, normalizeClass, createBlock, withModifiers, createVNode, withCtx, toDisplayString, normalizeStyle, shallowRef, normalizeProps, guardReactiveProps, mergeProps, createSlots, renderSlot, createTextVNode } from 'vue';
|
|
4
5
|
import { pickObject } from '@vunk/core/shared/utils-object';
|
|
@@ -36,10 +37,20 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
36
37
|
default: ""
|
|
37
38
|
}
|
|
38
39
|
});
|
|
40
|
+
const createBindProps = bindPropsFactory(props);
|
|
39
41
|
const emits = {
|
|
40
42
|
"update:fileList": null,
|
|
41
43
|
"remove": (e) => e
|
|
42
44
|
};
|
|
45
|
+
const createOnEmits = onEmitsFactory(emits);
|
|
46
|
+
|
|
47
|
+
var ctx = /*#__PURE__*/Object.freeze({
|
|
48
|
+
__proto__: null,
|
|
49
|
+
props: props,
|
|
50
|
+
createBindProps: createBindProps,
|
|
51
|
+
emits: emits,
|
|
52
|
+
createOnEmits: createOnEmits
|
|
53
|
+
});
|
|
43
54
|
|
|
44
55
|
/*! Element Plus Icons Vue v2.0.9 */
|
|
45
56
|
|
|
@@ -330,8 +341,8 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
330
341
|
createCommentVNode(" Due to close btn only appears when li gets focused disappears after li gets blurred, thus keyboard navigation can never reach close btn"),
|
|
331
342
|
createCommentVNode(" This is a bug which needs to be fixed "),
|
|
332
343
|
createCommentVNode(" TODO: Fix the incorrect navigation interaction "),
|
|
333
|
-
createCommentVNode(` <i v-if="!disabled" :class="nsIcon.m('close-tip')">{{
|
|
334
|
-
t('el.upload.deleteTip')
|
|
344
|
+
createCommentVNode(` <i v-if="!disabled" :class="nsIcon.m('close-tip')">{{
|
|
345
|
+
t('el.upload.deleteTip')
|
|
335
346
|
}}</i> `),
|
|
336
347
|
createCommentVNode(" picture-card "),
|
|
337
348
|
_ctx.listType === "picture-card" ? (openBlock(), createElementBlock("span", {
|
|
@@ -482,4 +493,4 @@ script.install = (app) => {
|
|
|
482
493
|
app.component(script.name, script);
|
|
483
494
|
};
|
|
484
495
|
|
|
485
|
-
export { script as VkfUpload, types as __VkfUpload, script as default };
|
|
496
|
+
export { script as VkfUpload, ctx as _VkfUploadCtx, types as __VkfUpload, script as default };
|
|
@@ -162,7 +162,12 @@ export declare const props: {
|
|
|
162
162
|
default: undefined;
|
|
163
163
|
};
|
|
164
164
|
};
|
|
165
|
+
export declare const createBindProps: <T2 extends import("@vunk/core").NormalObject, EX extends (Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"drag", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2>)[] | undefined>(propsArg: T2, excludes?: EX | undefined) => import("vue").ComputedRef<{ [P in EX extends (infer KE)[] ? Exclude<Extract<"required", keyof T2>, KE> | Exclude<Extract<"type", keyof T2>, KE> | Exclude<Extract<"label", keyof T2>, KE> | Exclude<Extract<"labelWidth", keyof T2>, KE> | Exclude<Extract<"prop", keyof T2>, KE> | Exclude<Extract<"rules", keyof T2>, KE> | Exclude<Extract<"error", keyof T2>, KE> | Exclude<Extract<"validateStatus", keyof T2>, KE> | Exclude<Extract<"for", keyof T2>, KE> | Exclude<Extract<"inlineMessage", keyof T2>, KE> | Exclude<Extract<"showMessage", keyof T2>, KE> | Exclude<Extract<"formItemSize", keyof T2>, KE> | Exclude<Extract<"formItemSlots", keyof T2>, KE> | Exclude<Extract<"elRef", keyof T2>, KE> | Exclude<Extract<"inline", keyof T2>, KE> | Exclude<Extract<"readonly", keyof T2>, KE> | Exclude<Extract<"name", keyof T2>, KE> | Exclude<Extract<"data", keyof T2>, KE> | Exclude<Extract<"disabled", keyof T2>, KE> | Exclude<Extract<"drag", keyof T2>, KE> | Exclude<Extract<"multiple", keyof T2>, KE> | Exclude<Extract<"onChange", keyof T2>, KE> | Exclude<Extract<"onRemove", keyof T2>, KE> | Exclude<Extract<"listType", keyof T2>, KE> | Exclude<Extract<"onPreview", keyof T2>, KE> | Exclude<Extract<"preview", keyof T2>, KE> | Exclude<Extract<"method", keyof T2>, KE> | Exclude<Extract<"beforeUpload", keyof T2>, KE> | Exclude<Extract<"beforeRemove", keyof T2>, KE> | Exclude<Extract<"onSuccess", keyof T2>, KE> | Exclude<Extract<"onProgress", keyof T2>, KE> | Exclude<Extract<"onError", keyof T2>, KE> | Exclude<Extract<"onExceed", keyof T2>, KE> | Exclude<Extract<"action", keyof T2>, KE> | Exclude<Extract<"headers", keyof T2>, KE> | Exclude<Extract<"withCredentials", keyof T2>, KE> | Exclude<Extract<"showFileList", keyof T2>, KE> | Exclude<Extract<"accept", keyof T2>, KE> | Exclude<Extract<"fileList", keyof T2>, KE> | Exclude<Extract<"autoUpload", keyof T2>, KE> | Exclude<Extract<"httpRequest", keyof T2>, KE> | Exclude<Extract<"limit", keyof T2>, KE> | Exclude<Extract<"tip", keyof T2>, KE> : Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"drag", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2>]: { [k in Extract<"required", keyof T2> | Extract<"type", keyof T2> | Extract<"label", keyof T2> | Extract<"labelWidth", keyof T2> | Extract<"prop", keyof T2> | Extract<"rules", keyof T2> | Extract<"error", keyof T2> | Extract<"validateStatus", keyof T2> | Extract<"for", keyof T2> | Extract<"inlineMessage", keyof T2> | Extract<"showMessage", keyof T2> | Extract<"formItemSize", keyof T2> | Extract<"formItemSlots", keyof T2> | Extract<"elRef", keyof T2> | Extract<"inline", keyof T2> | Extract<"readonly", keyof T2> | Extract<"name", keyof T2> | Extract<"data", keyof T2> | Extract<"disabled", keyof T2> | Extract<"drag", keyof T2> | Extract<"multiple", keyof T2> | Extract<"onChange", keyof T2> | Extract<"onRemove", keyof T2> | Extract<"listType", keyof T2> | Extract<"onPreview", keyof T2> | Extract<"preview", keyof T2> | Extract<"method", keyof T2> | Extract<"beforeUpload", keyof T2> | Extract<"beforeRemove", keyof T2> | Extract<"onSuccess", keyof T2> | Extract<"onProgress", keyof T2> | Extract<"onError", keyof T2> | Extract<"onExceed", keyof T2> | Extract<"action", keyof T2> | Extract<"headers", keyof T2> | Extract<"withCredentials", keyof T2> | Extract<"showFileList", keyof T2> | Extract<"accept", keyof T2> | Extract<"fileList", keyof T2> | Extract<"autoUpload", keyof T2> | Extract<"httpRequest", keyof T2> | Extract<"limit", keyof T2> | Extract<"tip", keyof T2>]: T2[k]; }[P]; }>;
|
|
165
166
|
export declare const emits: {
|
|
166
167
|
'update:fileList': null;
|
|
167
168
|
remove: (e: UploadFile) => UploadFile;
|
|
168
169
|
};
|
|
170
|
+
export declare const createOnEmits: <T2 extends import("@vunk/core").AnyFunc, EX extends ("remove" | "update:fileList")[] | undefined>(emit: T2, excludes?: EX | undefined) => { [P in EX extends (infer KE)[] ? Exclude<"remove", KE> | Exclude<"update:fileList", KE> : "remove" | "update:fileList"]: {
|
|
171
|
+
'update:fileList': (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
172
|
+
remove: (...e: import("@vunk/core").RestParameters<T2>) => void;
|
|
173
|
+
}[P]; };
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { _VkfFormItemCtx } from '@vunk/form/components/form-item';
|
|
2
|
+
import { bindPropsFactory, onEmitsFactory } from '@vunk/core/shared/utils-vue';
|
|
2
3
|
import { uploadProps } from 'element-plus';
|
|
3
4
|
|
|
4
5
|
var __defProp = Object.defineProperty;
|
|
@@ -30,9 +31,11 @@ const props = __spreadProps(__spreadValues(__spreadValues({}, _VkfFormItemCtx.pr
|
|
|
30
31
|
default: ""
|
|
31
32
|
}
|
|
32
33
|
});
|
|
34
|
+
const createBindProps = bindPropsFactory(props);
|
|
33
35
|
const emits = {
|
|
34
36
|
"update:fileList": null,
|
|
35
37
|
"remove": (e) => e
|
|
36
38
|
};
|
|
39
|
+
const createOnEmits = onEmitsFactory(emits);
|
|
37
40
|
|
|
38
|
-
export { emits, props };
|
|
41
|
+
export { createBindProps, createOnEmits, emits, props };
|
package/index.css
CHANGED
|
@@ -132,13 +132,13 @@
|
|
|
132
132
|
min-width: 100px;
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
-
|
|
136
|
-
.el-upload-list__item-status-label{
|
|
137
|
-
z-index: 1;
|
|
138
|
-
}
|
|
139
|
-
.el-upload-list__item .el-icon--close{
|
|
140
|
-
z-index: 1;
|
|
141
|
-
}
|
|
142
|
-
.el-upload-list__item-name .el-icon.el-icon--download-primary{
|
|
143
|
-
color: var(--el-color-primary);
|
|
144
|
-
}
|
|
135
|
+
|
|
136
|
+
.el-upload-list__item-status-label{
|
|
137
|
+
z-index: 1;
|
|
138
|
+
}
|
|
139
|
+
.el-upload-list__item .el-icon--close{
|
|
140
|
+
z-index: 1;
|
|
141
|
+
}
|
|
142
|
+
.el-upload-list__item-name .el-icon.el-icon--download-primary{
|
|
143
|
+
color: var(--el-color-primary);
|
|
144
|
+
}
|