Skip to content
This repository was archived by the owner on Jun 18, 2024. It is now read-only.

Commit

Permalink
stash(wox-modules): 图标模块
Browse files Browse the repository at this point in the history
  • Loading branch information
Lionad-Morotar committed Jun 4, 2021
1 parent 8d4056f commit 848bafb
Show file tree
Hide file tree
Showing 16 changed files with 2,577 additions and 10 deletions.
1 change: 1 addition & 0 deletions build/module/new-module.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ export default {
</script>
<style lang="scss" scoped>
@import "../mixins";
.m-${title} {
}
</style>`
Expand Down
1 change: 0 additions & 1 deletion packages/wox-editor/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"ali-oss": "^6.15.2",
"core-js": "^3.6.5",
"element-ui": "^2.15.1",
"eslint": "7.14",
Expand Down
4 changes: 2 additions & 2 deletions packages/wox-editor/src/segments/screen/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ export default {
if (this.modules.length === 0) {
setTimeout(() => {
this.ADD_MODULE({
inits: this.plugins.find(x => x.title === '图片模块')
inits: this.plugins.find(x => x.title === '提示文本')
})
this.ADD_MODULE({
inits: this.plugins.find(x => x.title === '提示文本')
inits: this.plugins.find(x => x.title === '图标模块')
})
this.ADD_DRAFT()
}, 200)
Expand Down
2 changes: 1 addition & 1 deletion packages/wox-forms/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/* eslint-disable */


// TODO FIXME
import Vue from 'vue'
import VueCroppie from 'vue-croppie'
import Alioss from './plugins/alioss'
Expand Down
1 change: 1 addition & 0 deletions packages/wox-forms/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"url": "https://github.com/wox-builder/wox-forms/issues"
},
"dependencies": {
"ali-oss": "^6.15.2",
"element-ui": "^2.15.1",
"vue": "^2.6.11",
"vue-color": "^2.8.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/wox-forms/plugins/alioss/index.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import Uploader from './index.vue'

const OSS = require('ali-oss/dist/aliyun-oss-sdk')
const config = require('constant/alioss').config
const config = require('./config').config

const client = new OSS(config)

Expand Down
2 changes: 1 addition & 1 deletion packages/wox-modules/alert/meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
"description": "用于页面中展示重要的提示信息",
"cover": "https://lego-editor.oss-cn-shanghai.aliyuncs.com/preview/modules/preview-alert.png",
"is-base-category": true,
"categories": ["分割模块"]
"categories": ["文本模块"]
}
14 changes: 13 additions & 1 deletion packages/wox-modules/components.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import Space from './space'
import Procedure from './procedure'
import Compare from './compare'
import Alert from './alert'
import Icon from './icon'

export default {
getDefaultModuleList () {
Expand Down Expand Up @@ -108,10 +109,21 @@ export default {
"cover": "https://lego-editor.oss-cn-shanghai.aliyuncs.com/preview/modules/preview-alert.png",
"categories": [
"基础模块",
"分隔模块"
"文本模块"
],
"component": Alert,
"name": "m-alert"
},
{
"title": "图标模块",
"description": "图标模块",
"cover": "",
"categories": [
"基础模块",
"图标模块"
],
"component": Icon,
"name": "m-icon"
}])
}
}
3 changes: 2 additions & 1 deletion packages/wox-modules/components.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
"space": "./space",
"procedure": "./procedure",
"compare": "./compare",
"alert": "./alert"
"alert": "./alert",
"icon": "./icon"
}
Loading

0 comments on commit 848bafb

Please sign in to comment.