youngluo / mp-weui Goto Github PK
View Code? Open in Web Editor NEWmp-weui 是基于 mpvue 和 weui-wxss 的微信小程序 UI 库。
Home Page: https://youngluo.github.io/mp-weui
License: MIT License
mp-weui 是基于 mpvue 和 weui-wxss 的微信小程序 UI 库。
Home Page: https://youngluo.github.io/mp-weui
License: MIT License
你好,你的这个项目和我的 MpUI 目标是一致的,有没有兴趣合作,将两个项目合并,一起开发。
这样可以方便看到组件效果
出现bug
navigateTo:fail page "pages/user/pages/news/main" is not found
代码如下:
Dialog.confirm(res.data.msg, {
showCancel: false,
confirmColor: '#ff0000'
})
问题复现步骤:
代码:
<template>
<form @submit="formSubmit" @reset="formReset">
<mp-field placeholder="请输入您的姓名" name='name' label="姓名" />
<mp-field placeholder="请输入您的手机号" type="number" name='mobile' label="手机号" />
<button formType="submit" size='large'>提交</button>
</form>
</template>
<script>
import MpField from 'mp-weui/packages/field';
export default {
components: {
MpField
},
methods: {
formSubmit (e) {
let { value } = e.target;
console.log('表单内容',value);
console.log('form发生了submit事件,携带数据为:', e);
},
formReset () {
console.log('form发生了reset事件');
}
}
};
</script>
期望的表现:
输入表单后,点击提交,
form的 @submit
事件中,可以打印出表单输入的值。
观察到的表现:
输入表单后,点击提交,
form的 @submit
事件中,一直打印出空字典。
若将mp-field 改为 input, 则可以得到预期的表现。
原因是因为表单提交时,会根据 input
的name
属性获取表单各个字段的值,
而 mp-filed 没有将name属性传递给 input,导致无法获取到表单的值。
swiper 轮播组件好像没有
v-for="(item, index) in columns" class="weui-tab__content" :key="item" @click="navClick(index)" > {{item}} </div>
吧v-if删除,写成这样
如题~~~网络原因传不了图
在文档里面也没有
但是在github上你的readme里面是说有的
ERROR Failed to compile with 1 errors 09:13:16
This dependency was not found:
问题复现步骤:
期望的表现:
[在这里描述期望的表现]
观察到的表现:
[在这里描述观察到的表现]
屏幕截图和动态 GIF 图
![复现步骤的屏幕截图和动态 GIF 图](图片的 url)
很好的UI,希望尽快完善..
您好,您的UI组件支持h5不?
问题复现步骤:
期望的表现:
[在这里描述期望的表现]
观察到的表现:
[在这里描述观察到的表现]
屏幕截图和动态 GIF 图
![复现步骤的屏幕截图和动态 GIF 图](图片的 url)
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.