yuang-framework-ui-pc 1.1.78 → 1.1.80
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.
package/es/ele-edit-tag/index.js
CHANGED
|
@@ -78,8 +78,7 @@ const _sfc_main = defineComponent({
|
|
|
78
78
|
const value = props.modelValue ? props.modelValue[index2] : void 0;
|
|
79
79
|
props.beforeRemove(index2, value).then(() => {
|
|
80
80
|
removeTag(index2);
|
|
81
|
-
}).catch((
|
|
82
|
-
console.error(ex);
|
|
81
|
+
}).catch(() => {
|
|
83
82
|
});
|
|
84
83
|
};
|
|
85
84
|
const handleInputChange = () => {
|
|
@@ -224,11 +224,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
224
224
|
tools: true,
|
|
225
225
|
modelValue: fileList.value,
|
|
226
226
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fileList.value = $event),
|
|
227
|
-
limit:
|
|
227
|
+
limit: componentParam.value.maxCount,
|
|
228
228
|
listType: listType.value,
|
|
229
229
|
accept: accept.value,
|
|
230
230
|
readonly: isLoading.value,
|
|
231
|
-
disabled:
|
|
231
|
+
disabled: componentParam.value.type != "edit",
|
|
232
232
|
sortable: { forceFallback: true },
|
|
233
233
|
onUpload: handleUpload,
|
|
234
234
|
onRetry: handleRetryUpload,
|
|
@@ -79,8 +79,7 @@ const _sfc_main = vue.defineComponent({
|
|
|
79
79
|
const value = props2.modelValue ? props2.modelValue[index2] : void 0;
|
|
80
80
|
props2.beforeRemove(index2, value).then(() => {
|
|
81
81
|
removeTag(index2);
|
|
82
|
-
}).catch((
|
|
83
|
-
console.error(ex);
|
|
82
|
+
}).catch(() => {
|
|
84
83
|
});
|
|
85
84
|
};
|
|
86
85
|
const handleInputChange = () => {
|
|
@@ -225,11 +225,11 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
225
225
|
tools: true,
|
|
226
226
|
modelValue: fileList.value,
|
|
227
227
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => fileList.value = $event),
|
|
228
|
-
limit:
|
|
228
|
+
limit: componentParam.value.maxCount,
|
|
229
229
|
listType: listType.value,
|
|
230
230
|
accept: accept.value,
|
|
231
231
|
readonly: isLoading.value,
|
|
232
|
-
disabled:
|
|
232
|
+
disabled: componentParam.value.type != "edit",
|
|
233
233
|
sortable: { forceFallback: true },
|
|
234
234
|
onUpload: handleUpload,
|
|
235
235
|
onRetry: handleRetryUpload,
|