yuang-framework-ui-pc 1.1.46 → 1.1.48

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.
@@ -52,6 +52,6 @@ export { default as EleVirtualTable } from './ele-virtual-table/index';
52
52
  export { default as EleWatermark } from './ele-watermark/index';
53
53
  export { default as EleTest } from './ele-test/index';
54
54
  export { default as YuTest } from './yu-test/index';
55
- export { default as YuFramworkSliderCaptchaDialog } from './yu-framework-slider-captcha-dialog/index';
56
- export { default as YuFramworkAttachmentFileUpload } from './yu-framework-attachment-file-upload/index';
57
- export { default as YuFramworkAttachmentImageUpload } from './yu-framework-attachment-image-upload/index';
55
+ export { default as YuFrameworkSliderCaptchaDialog } from './yu-framework-slider-captcha-dialog/index';
56
+ export { default as YuFrameworkAttachmentFileUpload } from './yu-framework-attachment-file-upload/index';
57
+ export { default as YuFrameworkAttachmentImageUpload } from './yu-framework-attachment-image-upload/index';
@@ -109,8 +109,8 @@ export {
109
109
  default51 as EleUploadList,
110
110
  default52 as EleVirtualTable,
111
111
  default53 as EleWatermark,
112
- default57 as YuFramworkAttachmentFileUpload,
113
- default58 as YuFramworkAttachmentImageUpload,
114
- default56 as YuFramworkSliderCaptchaDialog,
112
+ default57 as YuFrameworkAttachmentFileUpload,
113
+ default58 as YuFrameworkAttachmentImageUpload,
114
+ default56 as YuFrameworkSliderCaptchaDialog,
115
115
  default55 as YuTest
116
116
  };
@@ -35,7 +35,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
35
35
  status: "done"
36
36
  });
37
37
  }
38
- debugger;
39
38
  files.value = JSON.stringify(fileList);
40
39
  });
41
40
  });
@@ -1,4 +1,5 @@
1
1
  import { ComponentParam } from '@/model/component/param';
2
+ import { FrameworkAttachment } from '@/interface/framework/frameworkAttachment';
2
3
 
3
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
5
  modelValue: import('vue').PropType<any>;
@@ -6,11 +7,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
6
7
  type: import('vue').PropType<ComponentParam>;
7
8
  required: true;
8
9
  };
9
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ change: (frameworkAttachment: FrameworkAttachment) => void;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
13
  modelValue: import('vue').PropType<any>;
11
14
  param: {
12
15
  type: import('vue').PropType<ComponentParam>;
13
16
  required: true;
14
17
  };
15
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ }>> & Readonly<{
19
+ onChange?: ((frameworkAttachment: FrameworkAttachment) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
21
  export default _default;
@@ -14,8 +14,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  "modelValue": {},
15
15
  "modelModifiers": {}
16
16
  }),
17
- emits: ["update:modelValue"],
18
- setup(__props) {
17
+ emits: /* @__PURE__ */ mergeModels(["change"], ["update:modelValue"]),
18
+ setup(__props, { emit: __emit }) {
19
+ const emit = __emit;
19
20
  const images = ref([]);
20
21
  const isLoading = ref(false);
21
22
  const checkFile = (file) => {
@@ -76,6 +77,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76
77
  item.progress = 100;
77
78
  item.status = "done";
78
79
  item.url = res.data.data.fullUrl;
80
+ emit("change", res.data.data);
79
81
  }).catch((e) => {
80
82
  item.status = "exception";
81
83
  EleMessage.error(e.message);
@@ -111,6 +111,6 @@ exports.EleVirtualTable = index$O;
111
111
  exports.EleWatermark = index$P;
112
112
  exports.EleTest = index$Q;
113
113
  exports.YuTest = index$R;
114
- exports.YuFramworkSliderCaptchaDialog = index$S;
115
- exports.YuFramworkAttachmentFileUpload = index$T;
116
- exports.YuFramworkAttachmentImageUpload = index$U;
114
+ exports.YuFrameworkSliderCaptchaDialog = index$S;
115
+ exports.YuFrameworkAttachmentFileUpload = index$T;
116
+ exports.YuFrameworkAttachmentImageUpload = index$U;
@@ -52,6 +52,6 @@ export { default as EleVirtualTable } from './ele-virtual-table/index';
52
52
  export { default as EleWatermark } from './ele-watermark/index';
53
53
  export { default as EleTest } from './ele-test/index';
54
54
  export { default as YuTest } from './yu-test/index';
55
- export { default as YuFramworkSliderCaptchaDialog } from './yu-framework-slider-captcha-dialog/index';
56
- export { default as YuFramworkAttachmentFileUpload } from './yu-framework-attachment-file-upload/index';
57
- export { default as YuFramworkAttachmentImageUpload } from './yu-framework-attachment-image-upload/index';
55
+ export { default as YuFrameworkSliderCaptchaDialog } from './yu-framework-slider-captcha-dialog/index';
56
+ export { default as YuFrameworkAttachmentFileUpload } from './yu-framework-attachment-file-upload/index';
57
+ export { default as YuFrameworkAttachmentImageUpload } from './yu-framework-attachment-image-upload/index';
@@ -36,7 +36,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
36
36
  status: "done"
37
37
  });
38
38
  }
39
- debugger;
40
39
  files.value = JSON.stringify(fileList);
41
40
  });
42
41
  });
@@ -15,8 +15,9 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
15
15
  "modelValue": {},
16
16
  "modelModifiers": {}
17
17
  }),
18
- emits: ["update:modelValue"],
19
- setup(__props) {
18
+ emits: /* @__PURE__ */ vue.mergeModels(["change"], ["update:modelValue"]),
19
+ setup(__props, { emit: __emit }) {
20
+ const emit = __emit;
20
21
  const images = vue.ref([]);
21
22
  const isLoading = vue.ref(false);
22
23
  const checkFile = (file) => {
@@ -77,6 +78,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
77
78
  item.progress = 100;
78
79
  item.status = "done";
79
80
  item.url = res.data.data.fullUrl;
81
+ emit("change", res.data.data);
80
82
  }).catch((e) => {
81
83
  item.status = "exception";
82
84
  message.EleMessage.error(e.message);
@@ -1,4 +1,5 @@
1
1
  import { ComponentParam } from '@/model/component/param';
2
+ import { FrameworkAttachment } from '@/interface/framework/frameworkAttachment';
2
3
 
3
4
  declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
4
5
  modelValue: import('vue').PropType<any>;
@@ -6,11 +7,15 @@ declare const _default: import('vue').DefineComponent<import('vue').ExtractPropT
6
7
  type: import('vue').PropType<ComponentParam>;
7
8
  required: true;
8
9
  };
9
- }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
+ }>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
+ change: (frameworkAttachment: FrameworkAttachment) => void;
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
10
13
  modelValue: import('vue').PropType<any>;
11
14
  param: {
12
15
  type: import('vue').PropType<ComponentParam>;
13
16
  required: true;
14
17
  };
15
- }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
18
+ }>> & Readonly<{
19
+ onChange?: ((frameworkAttachment: FrameworkAttachment) => any) | undefined;
20
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
16
21
  export default _default;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.1.46",
3
+ "version": "1.1.48",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts --mode dev",