@v2coding/ui 0.1.37 → 0.1.38
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/dist/v2coding-ui.esm.js +13 -9
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +37 -38
- package/package.json +1 -1
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -1862,18 +1862,13 @@ var FieldMixin = {
|
|
|
1862
1862
|
this.$emit('ready');
|
|
1863
1863
|
},
|
|
1864
1864
|
|
|
1865
|
-
|
|
1865
|
+
emitChange() {
|
|
1866
1866
|
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
1867
1867
|
args[_key] = arguments[_key];
|
|
1868
1868
|
}
|
|
1869
1869
|
|
|
1870
1870
|
this.$emit('input', ...args);
|
|
1871
1871
|
this.$emit('change', ...args);
|
|
1872
|
-
await this.$nextTick();
|
|
1873
|
-
|
|
1874
|
-
if (this.$parent.$options.componentName === 'ElFormItem') {
|
|
1875
|
-
this.$parent.validate('change');
|
|
1876
|
-
}
|
|
1877
1872
|
},
|
|
1878
1873
|
|
|
1879
1874
|
onChange(val) {
|
|
@@ -4864,6 +4859,15 @@ var script$p = {
|
|
|
4864
4859
|
getFileName(url) {
|
|
4865
4860
|
const pathname = decodeURI(new URL(url).pathname);
|
|
4866
4861
|
return pathname.substring(pathname.lastIndexOf('/') + 1);
|
|
4862
|
+
},
|
|
4863
|
+
|
|
4864
|
+
async onChange(val) {
|
|
4865
|
+
this.emitChange(val);
|
|
4866
|
+
await this.$nextTick();
|
|
4867
|
+
|
|
4868
|
+
if (this.$parent.$options.componentName === 'ElFormItem') {
|
|
4869
|
+
this.$parent.validate('change');
|
|
4870
|
+
}
|
|
4867
4871
|
}
|
|
4868
4872
|
|
|
4869
4873
|
}
|
|
@@ -4936,8 +4940,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
4936
4940
|
|
|
4937
4941
|
const __vue_inject_styles__$p = function (inject) {
|
|
4938
4942
|
if (!inject) return;
|
|
4939
|
-
inject("data-v-
|
|
4940
|
-
source: ".ui-file-upload-field[data-v-
|
|
4943
|
+
inject("data-v-88ea6810_0", {
|
|
4944
|
+
source: ".ui-file-upload-field[data-v-88ea6810]{width:100%}.ui-file-upload-field .uploader[data-v-88ea6810]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-88ea6810] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-88ea6810] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-88ea6810]{padding:5px 10px;line-height:1;background-color:#409eff;color:#fff;font-size:12px;transition:background-color .3s}.ui-file-upload-field .upload-btn[data-v-88ea6810]:hover{background-color:#0d84ff}.ui-file-upload-field .files[data-v-88ea6810]{max-width:100%}.ui-file-upload-field .files .file[data-v-88ea6810]{color:#606266;font-size:14px;transition:all .3s;cursor:pointer;display:grid;grid-template-columns:14px auto 28px;align-items:center;max-width:100%}.ui-file-upload-field .files .file a[data-v-88ea6810]{color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-88ea6810]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-88ea6810]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-88ea6810]{color:var(--color-primary)}.ui-file-upload-field .files .file:hover .close[data-v-88ea6810]{color:#409eff;visibility:visible}",
|
|
4941
4945
|
map: undefined,
|
|
4942
4946
|
media: undefined
|
|
4943
4947
|
});
|
|
@@ -4945,7 +4949,7 @@ const __vue_inject_styles__$p = function (inject) {
|
|
|
4945
4949
|
/* scoped */
|
|
4946
4950
|
|
|
4947
4951
|
|
|
4948
|
-
const __vue_scope_id__$p = "data-v-
|
|
4952
|
+
const __vue_scope_id__$p = "data-v-88ea6810";
|
|
4949
4953
|
/* module identifier */
|
|
4950
4954
|
|
|
4951
4955
|
const __vue_module_identifier__$p = undefined;
|