@zkwq/business 0.0.70 → 0.0.71
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/css/Cover.css +2 -3
- package/dist/css/Cover.min.css +1 -1
- package/dist/index.js +6 -2
- package/dist/index.min.js +1 -1
- package/dist/index.umd.cjs +1 -1
- package/dist/index.umd.min.cjs +1 -1
- package/package.json +3 -3
package/dist/css/Cover.css
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
|
|
2
|
-
.avatar-uploader .base-upload{width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;}
|
|
3
|
-
|
|
4
2
|
|
|
5
3
|
|
|
6
4
|
|
|
@@ -114,4 +112,5 @@
|
|
|
114
112
|
.avatar[data-v-b7afb416] {
|
|
115
113
|
width: 314px;
|
|
116
114
|
height: 130px;
|
|
117
|
-
}
|
|
115
|
+
}
|
|
116
|
+
.avatar-uploader .base-upload{width: 100%;height: 100%;display: flex;align-items: center;justify-content: center;}
|
package/dist/css/Cover.min.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
[data-v-b7afb416]:export{primary:#2F3A91;success:#67C23A;warning:#FF791A;danger:#F1403C;info:#8590a6}.avatar-uploader[data-v-b7afb416]{width:314px;height:130px;border:1px dashed #dcdfe6;display:flex;align-items:center;justify-content:center;position:relative}.avatar-uploader .FileMask__actions[data-v-b7afb416]{width:100%;height:100%;position:absolute;left:0;top:0;opacity:0;border-radius:4px;transition:all .2s;background-color:rgba(0,0,0,.5);color:#fff;display:flex;align-items:center;justify-content:center;font-size:18px}.avatar-uploader .FileMask__actions i[data-v-b7afb416]{cursor:pointer}.avatar-uploader .FileMask__actions i+i[data-v-b7afb416]{margin-left:16px}.avatar-uploader:hover .FileMask__actions[data-v-b7afb416]{opacity:1}.avatar-uploader-icon[data-v-b7afb416]{font-size:30px}.avatar[data-v-b7afb416]{width:314px;height:130px}.avatar-uploader .base-upload{width:100%;height:100%;display:flex;align-items:center;justify-content:center}
|
package/dist/index.js
CHANGED
|
@@ -27398,6 +27398,10 @@ const j0 = {
|
|
|
27398
27398
|
event: "update:value"
|
|
27399
27399
|
},
|
|
27400
27400
|
props: {
|
|
27401
|
+
userId: {
|
|
27402
|
+
required: !0,
|
|
27403
|
+
type: String
|
|
27404
|
+
},
|
|
27401
27405
|
value: {
|
|
27402
27406
|
type: String,
|
|
27403
27407
|
default: ""
|
|
@@ -27425,7 +27429,7 @@ const j0 = {
|
|
|
27425
27429
|
mounted() {
|
|
27426
27430
|
this.id = dc(), this.$nextTick(() => {
|
|
27427
27431
|
this.editor = new $c(document.getElementById(this.id)), this.editor.config.height = 300, this.editor.config.focus = !1, this.editor.config.uploadImgServer = Gt, this.editor.config.uploadFileName = "file1000", this.editor.config.uploadImgMaxLength = 1, this.placeholder && (this.editor.config.placeholder = this.placeholder), this.editor.config.uploadImgParams = {
|
|
27428
|
-
uploader: this.
|
|
27432
|
+
uploader: this.userId
|
|
27429
27433
|
}, this.editor.config.uploadImgHooks = {
|
|
27430
27434
|
// 图片上传并返回了结果,想要自己把图片插入到编辑器中
|
|
27431
27435
|
// 例如服务器端返回的不是 { errno: 0, data: [...] } 这种格式,可使用 customInsert
|
|
@@ -27433,7 +27437,7 @@ const j0 = {
|
|
|
27433
27437
|
s.errno == 0 ? t(Xt + s.fastdfspath) : this.$message.error("图片上传失败");
|
|
27434
27438
|
}
|
|
27435
27439
|
}, this.editor.config.uploadVideoServer = Gt, this.editor.config.uploadVideoMaxSize = 100 * 1024 * 1024, this.editor.config.uploadVideoName = "file1000", this.editor.config.uploadVideoParams = {
|
|
27436
|
-
uploader: this.
|
|
27440
|
+
uploader: this.userId
|
|
27437
27441
|
}, this.editor.config.uploadVideoHooks = {
|
|
27438
27442
|
// 视频上传并返回了结果,想要自己把视频插入到编辑器中
|
|
27439
27443
|
// 例如服务器端返回的不是 { errno: 0, data: { url : '.....'} } 这种格式,可使用 customInsert
|