@lambo-design/wang-editor 1.0.0-beta.7 → 1.0.0-beta.8
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/index.js +1 -0
- package/package.json +11 -4
- package/src/index.vue +8 -1
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@lambo-design/wang-editor",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.8",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"author": "lambo",
|
|
@@ -13,8 +13,15 @@
|
|
|
13
13
|
"wangeditor": "^3.1.1"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@lambo-design/core": "^4.7.1-beta.
|
|
17
|
-
"@lambo-design/shared": "^1.0.0-beta.
|
|
16
|
+
"@lambo-design/core": "^4.7.1-beta.158",
|
|
17
|
+
"@lambo-design/shared": "^1.0.0-beta.250"
|
|
18
18
|
},
|
|
19
|
-
"scripts": {
|
|
19
|
+
"scripts": {
|
|
20
|
+
"release": "pnpm release-beta && git push --follow-tags && pnpm re-publish",
|
|
21
|
+
"release-major": "standard-version --release-as major",
|
|
22
|
+
"release-minor": "standard-version --release-as minor",
|
|
23
|
+
"release-patch": "standard-version --release-as patch",
|
|
24
|
+
"release-beta": "standard-version --prerelease beta",
|
|
25
|
+
"re-publish": "pnpm publish --access public --no-git-checks"
|
|
26
|
+
}
|
|
20
27
|
}
|
package/src/index.vue
CHANGED
|
@@ -39,6 +39,13 @@ export default {
|
|
|
39
39
|
type: Boolean,
|
|
40
40
|
default: true
|
|
41
41
|
},
|
|
42
|
+
/**
|
|
43
|
+
* @description 是否使用 base64 保存图片
|
|
44
|
+
*/
|
|
45
|
+
uploadImgShowBase64: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
42
49
|
/**
|
|
43
50
|
* 上传图片上下文
|
|
44
51
|
*/
|
|
@@ -95,7 +102,7 @@ export default {
|
|
|
95
102
|
// 隐藏“网络图片”tab
|
|
96
103
|
self.editor.customConfig.showLinkImg = false
|
|
97
104
|
// 使用 base64 保存图片
|
|
98
|
-
|
|
105
|
+
self.editor.customConfig.uploadImgShowBase64 = self.uploadImgShowBase64
|
|
99
106
|
// 上传图片到服务器
|
|
100
107
|
// this.editor.customConfig.uploadImgServer = config.ossServerContext + "/file/wangeditor/put"
|
|
101
108
|
//
|