yuang-framework-ui-pc 1.1.47 → 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.
@@ -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);
@@ -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.47",
3
+ "version": "1.1.48",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts --mode dev",