@v2coding/ui 1.1.6 → 1.1.7
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 +16 -8
- package/dist/v2coding-ui.min.js +1 -1
- package/dist/v2coding-ui.ssr.js +21 -13
- package/package.json +1 -1
package/dist/v2coding-ui.esm.js
CHANGED
|
@@ -4952,6 +4952,10 @@ var script$o = {
|
|
|
4952
4952
|
};
|
|
4953
4953
|
return this.$axios.post(this.createAttachmentUrl, params);
|
|
4954
4954
|
}
|
|
4955
|
+
},
|
|
4956
|
+
label: {
|
|
4957
|
+
type: String,
|
|
4958
|
+
default: '浏览...'
|
|
4955
4959
|
}
|
|
4956
4960
|
},
|
|
4957
4961
|
|
|
@@ -5115,7 +5119,7 @@ var __vue_render__$o = function () {
|
|
|
5115
5119
|
class: {
|
|
5116
5120
|
disabled: _vm.uploading
|
|
5117
5121
|
}
|
|
5118
|
-
}, [_vm._v(
|
|
5122
|
+
}, [_vm._v(_vm._s(_vm.label))])]) : _vm._e(), _vm._v(" "), _c('div', {
|
|
5119
5123
|
staticClass: "files"
|
|
5120
5124
|
}, [_vm._l(_vm.pickerValue, function (url, index) {
|
|
5121
5125
|
return [!!url ? _c('div', {
|
|
@@ -5147,8 +5151,8 @@ var __vue_staticRenderFns__$o = [];
|
|
|
5147
5151
|
|
|
5148
5152
|
const __vue_inject_styles__$o = function (inject) {
|
|
5149
5153
|
if (!inject) return;
|
|
5150
|
-
inject("data-v-
|
|
5151
|
-
source: ".ui-file-upload-field[data-v-
|
|
5154
|
+
inject("data-v-05f592d0_0", {
|
|
5155
|
+
source: ".ui-file-upload-field[data-v-05f592d0]{width:100%}.ui-file-upload-field .uploader[data-v-05f592d0]{margin-bottom:5px}.ui-file-upload-field .uploader.disabled[data-v-05f592d0] .el-upload{cursor:not-allowed;pointer-events:none}.ui-file-upload-field .uploader.disabled[data-v-05f592d0] .el-upload .upload-btn{color:#888c94;background-color:#edeef0}.ui-file-upload-field .upload-btn[data-v-05f592d0]{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-05f592d0]:hover{background-color:#0d84ff}.ui-file-upload-field .files[data-v-05f592d0]{max-width:100%}.ui-file-upload-field .files .file[data-v-05f592d0]{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-05f592d0]{color:#606266;transition:all .3s;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ui-file-upload-field .files .file .close[data-v-05f592d0]{color:transparent;width:28px;text-align:center;visibility:hidden;transition:color .3s;font-weight:700}.ui-file-upload-field .files .file[data-v-05f592d0]:hover{background-color:#f5f7fa}.ui-file-upload-field .files .file:hover a[data-v-05f592d0]{color:var(--color-primary)}.ui-file-upload-field .files .file:hover .close[data-v-05f592d0]{color:#409eff;visibility:visible}",
|
|
5152
5156
|
map: undefined,
|
|
5153
5157
|
media: undefined
|
|
5154
5158
|
});
|
|
@@ -5156,7 +5160,7 @@ const __vue_inject_styles__$o = function (inject) {
|
|
|
5156
5160
|
/* scoped */
|
|
5157
5161
|
|
|
5158
5162
|
|
|
5159
|
-
const __vue_scope_id__$o = "data-v-
|
|
5163
|
+
const __vue_scope_id__$o = "data-v-05f592d0";
|
|
5160
5164
|
/* module identifier */
|
|
5161
5165
|
|
|
5162
5166
|
const __vue_module_identifier__$o = undefined;
|
|
@@ -5190,6 +5194,10 @@ var script$n = {
|
|
|
5190
5194
|
uploadType: {
|
|
5191
5195
|
type: String,
|
|
5192
5196
|
default: 'oss'
|
|
5197
|
+
},
|
|
5198
|
+
label: {
|
|
5199
|
+
type: String,
|
|
5200
|
+
default: '上传图片'
|
|
5193
5201
|
}
|
|
5194
5202
|
}
|
|
5195
5203
|
};
|
|
@@ -5252,7 +5260,7 @@ var __vue_render__$n = function () {
|
|
|
5252
5260
|
staticClass: "item upload-btn"
|
|
5253
5261
|
}, [_c('i', {
|
|
5254
5262
|
staticClass: "el-icon-plus"
|
|
5255
|
-
}), _vm._v(" "), _c('span', [_vm._v(
|
|
5263
|
+
}), _vm._v(" "), _c('span', [_vm._v(_vm._s(_vm.label))])])]) : _vm._e()], 2);
|
|
5256
5264
|
};
|
|
5257
5265
|
|
|
5258
5266
|
var __vue_staticRenderFns__$n = [];
|
|
@@ -5260,8 +5268,8 @@ var __vue_staticRenderFns__$n = [];
|
|
|
5260
5268
|
|
|
5261
5269
|
const __vue_inject_styles__$n = function (inject) {
|
|
5262
5270
|
if (!inject) return;
|
|
5263
|
-
inject("data-v-
|
|
5264
|
-
source: ".ui-image-upload-field[data-v-
|
|
5271
|
+
inject("data-v-3b615947_0", {
|
|
5272
|
+
source: ".ui-image-upload-field[data-v-3b615947]{width:100%;display:flex;flex-direction:row;flex-wrap:wrap}.ui-image-upload-field .uploader.disabled[data-v-3b615947] .el-upload{cursor:not-allowed;pointer-events:none}.ui-image-upload-field .uploader.disabled[data-v-3b615947] .el-upload .upload-btn{background:#edeef0;color:#888c94}.ui-image-upload-field .item[data-v-3b615947]{position:relative;display:flex;justify-content:center;align-items:center;overflow:hidden;width:140px;height:140px;margin-bottom:10px;margin-right:10px;border:1px dashed #d0d2d7;padding:8px;border-radius:2px;box-sizing:border-box}.ui-image-upload-field .item .remove[data-v-3b615947]{position:absolute;top:0;right:0;width:24px;height:24px;background-color:rgba(0,0,0,.7);border-radius:0 0 0 22px;cursor:pointer}.ui-image-upload-field .item .remove .el-icon-close[data-v-3b615947]{position:absolute;top:4px;right:4px;color:#fff;font-size:14px}.ui-image-upload-field .item.upload-btn[data-v-3b615947]{background:#f7f8f9;display:flex;flex-direction:column;align-items:center;justify-content:center;border:none;color:#409eff}.ui-image-upload-field .item.upload-btn>.el-icon-plus[data-v-3b615947]{font-size:1.6em}.ui-image-upload-field .item.upload-btn>span[data-v-3b615947]{font-size:16px;line-height:1.2;margin-top:5px}.ui-image-upload-field .item:hover .modal[data-v-3b615947]{visibility:visible}.ui-image-upload-field[data-v-3b615947] .preview{display:inline-block;width:auto;max-width:60%;left:50%;transform:translateX(-50%)}",
|
|
5265
5273
|
map: undefined,
|
|
5266
5274
|
media: undefined
|
|
5267
5275
|
});
|
|
@@ -5269,7 +5277,7 @@ const __vue_inject_styles__$n = function (inject) {
|
|
|
5269
5277
|
/* scoped */
|
|
5270
5278
|
|
|
5271
5279
|
|
|
5272
|
-
const __vue_scope_id__$n = "data-v-
|
|
5280
|
+
const __vue_scope_id__$n = "data-v-3b615947";
|
|
5273
5281
|
/* module identifier */
|
|
5274
5282
|
|
|
5275
5283
|
const __vue_module_identifier__$n = undefined;
|