- 🔭 I'm currently working on the crm web and low code in YMM.
- 🌱 I’m currently learning Node/Python/UE(user experience).
You can also read my articles in blog
[WIP]en: web design tool || mobile page builder/editor || mini webflow for mobile page. zh: 类似易企秀的H5制作、建站工具、可视化搭建系统.
Home Page: https://ly525.gitee.io/luban-h5
License: GNU General Public License v3.0
You can also read my articles in blog
luban-h5/front-end/h5/src/components/core/editor.js
Lines 226 to 231 in 8b43fd9
TODO
comment in 8b43fd9. It's been assigned to @ly525 because they committed the code.luban-h5/front-end/h5/src/components/core/support/shape.js
Lines 127 to 132 in eecd655
TODO
comment in eecd655. It's been assigned to @ly525 because they committed the code.$createElement(prop.editorType, // 比如 el-input、el-input-number
{
props: 编辑器的一些props, // 比如编辑器的一些配置,比如el-range 需要max、min,
value: 属性的对应初始值 // 一般取自 element 对应的 props 的值,
on: { input: handler } // v-model 处理用户在编辑器改变了属性值
}
}
@input
事件中,改变了对应prop值之后,重新渲染canvas即可,不过这一步会自动执行,因为 renderCanvas 会根据 elements 的变化自动更新画布置顶、置底
luban-h5/front-end/h5/src/components/core/editor/canvas/edit.js
Lines 9 to 14 in c305946
TODO
comment in c305946. It's been assigned to @ly525 because they committed the code.luban-h5/front-end/h5/src/views/Editor.vue
Lines 206 to 211 in 9e8e89f
TODO
comment in 9e8e89f. It's been assigned to @ly525 because they committed the code.commit dcf9c06
点击插件 -> 添加到画布上 -> 点击画布上的插件 -> 右侧编辑面板显示可以编辑的属性、修改属性值 -> 更新画布
luban-h5/front-end/h5/src/components/core/editor/edit-panel/props.js
Lines 34 to 39 in 25dbd43
TODO
comment in 25dbd43. It's been assigned to @ly525 because they committed the code.提供
#!zh: 使用相对路径的图片 替换原来的 网络图片地址。防止因为网络延迟打开速度过慢,用户以为点击图片插件无效
#!en: using local image replace origin online image. Sometimes, user don't see the picture after they clicked the picture plugin, just because the network is very slow and it takes too much time to load image from network
luban-h5/front-end/h5/src/components/core/editor/index.js
Lines 64 to 67 in 25dbd43
TODO
comment in 25dbd43. It's been assigned to @ly525 because they committed the code.七牛
阿里云
腾讯云
AWS
主要目的是防止 plugin 的props 和 new Element() 的 属性冲突,造成this上的值被覆盖
将 插件的 EditorConfig.components 添加到 this.$options.components 上即可
需要在 v-for 的时候,取值,绘制对应的icon
如下的写法会报错,因为此时的 ${item.value}
取的是在 Editor.vue
中声明的变量,而非v-for="(item, index) in textAlignTabs"
中的 item
template: `
<div class="wrap">
<el-radio-group v-model="value_" size="small">
<el-tooltip effect="dark" :content="item.label" placement="top" :key="index" v-for="(item, index) in textAlignTabs">
<el-radio-button :label="item.value">
<i :class="['fa', 'fa-align-${item.value}']" aria-hidden="true"></i>
</el-radio-button>
</el-tooltip>
</el-radio-group>
</div>
`,
template: `
<div class="wrap">
<el-radio-group v-model="value_" size="small">
<el-tooltip effect="dark" :content="item.label" placement="top" :key="index" v-for="(item, index) in textAlignTabs">
<el-radio-button :label="item.value">
<i :class="['fa', 'fa-align-'+item.value]" aria-hidden="true"></i>
</el-radio-button>
</el-tooltip>
</el-radio-group>
</div>
`,
luban-h5/front-end/h5/src/components/core/editor/canvas/edit.js
Lines 24 to 29 in eecd655
TODO
comment in eecd655. It's been assigned to @ly525 because they committed the code.A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.