yuang-framework-ui-pc 1.1.77 → 1.1.78

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.
@@ -62,16 +62,17 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
62
  init();
63
63
  });
64
64
  const init = () => {
65
+ console.log("modelValue.value", modelValue.value);
66
+ console.log("componentParam.value", componentParam.value);
67
+ if (!modelValue.value) {
68
+ return;
69
+ }
65
70
  if (isExecuting) {
66
71
  pendingExecute = true;
67
72
  return;
68
73
  }
69
74
  isExecuting = true;
70
75
  fileList.value = [];
71
- if (!modelValue.value) {
72
- EleMessage.error("参数[modelValue]为空");
73
- return;
74
- }
75
76
  http.post(`${application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: modelValue.value, pageSize: 100 }).then((res) => {
76
77
  let attachemtList = res.data.data.records;
77
78
  for (let i = 0; i < attachemtList.length; i++) {
@@ -188,7 +189,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
188
189
  };
189
190
  const emitChange = () => {
190
191
  if (!modelValue.value) {
191
- EleMessage.error("参数[modelValue]为空");
192
192
  return;
193
193
  }
194
194
  http.post(`${application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: modelValue.value, pageSize: 100 }).then((res) => {
@@ -209,18 +209,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
209
209
  const handleRetryUpload = (uploadItem) => {
210
210
  handleUpload(uploadItem, true);
211
211
  };
212
- watch(
213
- () => props.modelValue,
214
- () => {
215
- init();
216
- }
217
- );
218
212
  watch(
219
213
  () => componentParam,
220
214
  () => {
215
+ console.log("props.param发生改变", props.param);
221
216
  init();
222
217
  },
223
- { deep: true }
218
+ { deep: true, immediate: true }
224
219
  );
225
220
  return (_ctx, _cache) => {
226
221
  const _component_ele_upload_list = resolveComponent("ele-upload-list");
@@ -95,7 +95,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
95
95
  () => {
96
96
  init();
97
97
  },
98
- { immediate: true }
98
+ { immediate: true, immediate: true }
99
99
  );
100
100
  __expose({
101
101
  showDialog
@@ -97,7 +97,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
97
97
  () => {
98
98
  init();
99
99
  },
100
- { immediate: true }
100
+ { immediate: true, immediate: true }
101
101
  );
102
102
  __expose({
103
103
  showDialog
@@ -63,16 +63,17 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
63
63
  init();
64
64
  });
65
65
  const init = () => {
66
+ console.log("modelValue.value", modelValue.value);
67
+ console.log("componentParam.value", componentParam.value);
68
+ if (!modelValue.value) {
69
+ return;
70
+ }
66
71
  if (isExecuting) {
67
72
  pendingExecute = true;
68
73
  return;
69
74
  }
70
75
  isExecuting = true;
71
76
  fileList.value = [];
72
- if (!modelValue.value) {
73
- message.EleMessage.error("参数[modelValue]为空");
74
- return;
75
- }
76
77
  httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: modelValue.value, pageSize: 100 }).then((res) => {
77
78
  let attachemtList = res.data.data.records;
78
79
  for (let i = 0; i < attachemtList.length; i++) {
@@ -189,7 +190,6 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
189
190
  };
190
191
  const emitChange = () => {
191
192
  if (!modelValue.value) {
192
- message.EleMessage.error("参数[modelValue]为空");
193
193
  return;
194
194
  }
195
195
  httpConfig.http.post(`${applicationConfig.application.gatewayServerBaseUrl}/framework-api/core/framework-attachment/selectPage`, { codeForEqual: modelValue.value, pageSize: 100 }).then((res) => {
@@ -210,18 +210,13 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
210
210
  const handleRetryUpload = (uploadItem) => {
211
211
  handleUpload(uploadItem, true);
212
212
  };
213
- vue.watch(
214
- () => props.modelValue,
215
- () => {
216
- init();
217
- }
218
- );
219
213
  vue.watch(
220
214
  () => componentParam,
221
215
  () => {
216
+ console.log("props.param发生改变", props.param);
222
217
  init();
223
218
  },
224
- { deep: true }
219
+ { deep: true, immediate: true }
225
220
  );
226
221
  return (_ctx, _cache) => {
227
222
  const _component_ele_upload_list = vue.resolveComponent("ele-upload-list");
@@ -96,7 +96,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
96
96
  () => {
97
97
  init();
98
98
  },
99
- { immediate: true }
99
+ { immediate: true, immediate: true }
100
100
  );
101
101
  __expose({
102
102
  showDialog
@@ -98,7 +98,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
98
98
  () => {
99
99
  init();
100
100
  },
101
- { immediate: true }
101
+ { immediate: true, immediate: true }
102
102
  );
103
103
  __expose({
104
104
  showDialog
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "yuang-framework-ui-pc",
3
- "version": "1.1.77",
3
+ "version": "1.1.78",
4
4
  "type": "module",
5
5
  "scripts": {
6
6
  "dev": "vite --host --config vite.global.ts --mode dev",