@vunk/form 0.0.1-alpha.25 → 0.0.1-alpha.26

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.
@@ -399,7 +399,7 @@ var script = defineComponent({
399
399
  props,
400
400
  setup(props2) {
401
401
  const formItemBindProps = _VkfFormItemCtx.createBindProps(props2);
402
- const coreBindProps = createUploadBindProps(props2, ["disabled"]);
402
+ const coreBindProps = createUploadBindProps(props2, ["disabled", "fileList"]);
403
403
  const uploadRef = shallowRef();
404
404
  const handleRemove = (file) => {
405
405
  var _a;
@@ -425,44 +425,48 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
425
425
  const _component_ElUpload = resolveComponent("ElUpload");
426
426
  const _component_VkfFormItem = resolveComponent("VkfFormItem");
427
427
  return openBlock(), createBlock(_component_VkfFormItem, normalizeProps(guardReactiveProps(_ctx.formItemBindProps)), {
428
- default: withCtx(() => [
429
- createVNode(_component_ElUpload, mergeProps({
430
- class: ["vkf-upload", {
431
- "is-readonly": _ctx.readonly
432
- }]
433
- }, _ctx.coreBindProps, {
434
- "onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:fileList", $event)),
435
- ref: "uploadRef",
436
- disabled: _ctx.readonly || _ctx.disabled
437
- }), createSlots({
438
- file: withCtx(({ file }) => [
439
- createVNode(_component_FileVue, {
440
- file,
441
- listType: _ctx.listType,
442
- disabled: _ctx.readonly || _ctx.disabled,
443
- onPreview: _ctx.onPreview,
444
- onRemove: _ctx.handleRemove
445
- }, null, 8, ["file", "listType", "disabled", "onPreview", "onRemove"])
446
- ]),
447
- default: withCtx(() => [
448
- createVNode(_component_ElLink, { type: "primary" }, {
449
- default: withCtx(() => [
450
- _hoisted_1
451
- ]),
452
- _: 1
453
- }),
454
- renderSlot(_ctx.$slots, "default")
455
- ]),
456
- _: 2
457
- }, [
458
- _ctx.tip ? {
459
- name: "tip",
460
- fn: withCtx(() => [
461
- createElementVNode("div", _hoisted_2, toDisplayString(_ctx.tip), 1)
462
- ])
463
- } : void 0
464
- ]), 1040, ["class", "disabled"])
465
- ]),
428
+ default: withCtx(() => {
429
+ var _a;
430
+ return [
431
+ createVNode(_component_ElUpload, mergeProps({
432
+ class: ["vkf-upload", {
433
+ "is-readonly": _ctx.readonly
434
+ }]
435
+ }, _ctx.coreBindProps, {
436
+ fileList: (_a = _ctx.fileList) != null ? _a : [],
437
+ "onUpdate:fileList": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:fileList", $event)),
438
+ ref: "uploadRef",
439
+ disabled: _ctx.readonly || _ctx.disabled
440
+ }), createSlots({
441
+ file: withCtx(({ file }) => [
442
+ createVNode(_component_FileVue, {
443
+ file,
444
+ listType: _ctx.listType,
445
+ disabled: _ctx.readonly || _ctx.disabled,
446
+ onPreview: _ctx.onPreview,
447
+ onRemove: _ctx.handleRemove
448
+ }, null, 8, ["file", "listType", "disabled", "onPreview", "onRemove"])
449
+ ]),
450
+ default: withCtx(() => [
451
+ createVNode(_component_ElLink, { type: "primary" }, {
452
+ default: withCtx(() => [
453
+ _hoisted_1
454
+ ]),
455
+ _: 1
456
+ }),
457
+ renderSlot(_ctx.$slots, "default")
458
+ ]),
459
+ _: 2
460
+ }, [
461
+ _ctx.tip ? {
462
+ name: "tip",
463
+ fn: withCtx(() => [
464
+ createElementVNode("div", _hoisted_2, toDisplayString(_ctx.tip), 1)
465
+ ])
466
+ } : void 0
467
+ ]), 1040, ["class", "fileList", "disabled"])
468
+ ];
469
+ }),
466
470
  _: 3
467
471
  }, 16);
468
472
  }
@@ -206,7 +206,6 @@ declare const _default: import("vue").DefineComponent<{
206
206
  withCredentials: boolean;
207
207
  showFileList: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
208
208
  accept: string;
209
- fileList: import("element-plus").UploadUserFile[];
210
209
  autoUpload: import("element-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
211
210
  httpRequest: import("element-plus").UploadRequestHandler;
212
211
  limit: number | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vunk/form",
3
- "version": "0.0.1-alpha.25",
3
+ "version": "0.0.1-alpha.26",
4
4
  "description": "",
5
5
  "main": "index.esm.js",
6
6
  "scripts": {