ydcss / vue-ydui Goto Github PK
View Code? Open in Web Editor NEWA mobile components Library with Vue2.js. 一只基于Vue2.x的移动端组件库。
Home Page: http://vue.ydui.org
License: MIT License
A mobile components Library with Vue2.js. 一只基于Vue2.x的移动端组件库。
Home Page: http://vue.ydui.org
License: MIT License
使用yd-sendcode组件时,会提示yd-button未注册,不能正确显示按钮的样式
再做滚动加载的时候出现这样的问题,loadList方法只能触发一次,无法触发第二次
建个群吧.你的作品必火,看好你
Custom Color
是否应该提供点击状态下的bgcolor与color
或者有其他方法实现
谢谢
请问怎么自定义rem的样式?
引用 Layout 框架后
this.$dialog.notify({
mes: 'mesage',
timeout: 2000
});
.m-notify 被layout遮挡
解决方式设置z-index值设大
.m-notify {
z-index: 5;
}
.cell-right 下缺少对.cell-right input[type=tel](移动端输入手机号码作用很大)类型的样式支持
看了源码发现
watch: {
value(val) {
val && this.isIOS && addClass(this.scrollView, 'g-fix-ios-overflow-scrolling-bug');
this.show = val;
}
},
UI 检查value变化代码中 在IOS下面 会添加一个g-fix-ios-overflow-scrolling-bug, 但 外部把val 设置为false时,内部并不会把g-fix-ios-overflow-scrolling-bug清理掉. 在IOS下面关掉popup时 这个CSS还在那里. 导致页面卡顿
ERROR in static/js/app.7943fd3077bde75cb885.js from UglifyJs
Unexpected token: name (islock) [./src/components/utils/assist.js:6,6][static/js /app.7943fd3077bde75cb885.js:18,6]
打包遇到这个是什么问题?
你好,现在有这样一个需求,我们希望使用yd-tab的时候有类似layout的布局,选项卡的标题类似navbar, 选项卡内容的一部分类似tabbar请问我该如何实现,谢谢,辛苦了
yd-tab-panel 上使用change pros的时候,由于在slot中使用checkbox导致checkbox的change事件会向上传递到选项卡的change pros,使用@change.native.stop也无法解决
<yd-cityselect v-model="show2" :done="result2" provance="optsAddressData.provance" city="optsAddressData.provance.city" area="optsAddressData.provance.area" ></yd-cityselect>
异步数据获取回写回去,点击展示地址列表但是数据不关联,默认从第一项【请选择】开始,这是什么原因呢?是我回写的方式不对?
yd-cell-item type="link" v-for 绑定数据的时候 路由 :href="{name:'XXX',params:{ xx:xx }} " 报错
nvalid prop: type check failed for prop "href". Expected String, got Object.
但是功能上没有错误 这怎么解决啊 是我路由绑定的方法不对?
关于使用倒计时组件,开发中后端给到的接口一般为秒,建议支持time=秒,感谢
会一直维护吗?组件会稳定增加吗?另外有交流群啥的么?
现在在做购物车,所以价格会随着数量的变化而变化, 请问作者是怎么考虑这个问题的?如果有必要我可以pull request一份代码过来
RT
你好!
省市县级联里的api,yd-cityselect参数里省份拼写有误,应该是province,而不是provance。
tabbar不能指示当前所在位置,建议修改styles
方法:如果没有active参数的话,取消style的绑定, 然后user可以通过 .router-link-active
的定义来指示当前位置。 (可能需要添加参数:exact)
这个组件效果很好但是有一个问题:
各级地区只有名字没有对应的id,但是后端数据库存的基本上是id,无法与后端对接
建议地区数据源可以传递,定义相对的数据格式如:{name:'北京', id : '1'},这样就很方便与后端对接
望采纳
在yd-cell-item 中使用spinner的时候出现样式问题,希望有一个好的解决办法
怎么给组件自定义想要的样式?例如header因需求需修改为黑底白字?是否可以考虑自定义增加class?
Tab默认用加一个固定的ID, J_Tab建议去掉吧
这个是比较着急的地方,目前在尝试用你的开源项目做个demo,我看了你在样式中定义了important,导致我在使用其他字体图标,很难控制大小一致(阿里妈妈的字体库下载的图标大小不一,你这边的图标肯定无法满足所有需要)
以下是你的代码
.cell-icon :after, .cell-icon :before {
color: inherit;
font-size: .42rem!important;
margin-right: .1rem;
}
我的代码,你在slot="icon"强制定义了上面的css,我在i上定义 style="font-size: .3rem!important"都无效-。-
<yd-cell-item arrow href="#" type="link">
<span style="display:block;" slot="icon"><i class="iconfont iconfont-che" style="font-size: .3rem!important"></i></span>
<span slot="left">我的车辆</span>
</yd-cell-item>
1.有没有考虑把iconfont能够扩展?
2.对于我碰到的问题,你有好的方式么
actionsheet为上拉菜单,建议增加改变方向的pros,即下拉菜单,可以从顶部弹出
Uncaught TypeError: Cannot read property 'getBoundingClientRect' of undefined(…); infinitescroll.vue?2de8:64
怎么修改为 time="2017-06-06 06:06:06" 格式?
< yd-cell-item >
< span slot="left">手机号:< /span>
< input slot="right" type="number" placeholder="请输入手机号">
< /yd-cell-item>
你好,很喜欢这个UI,提点建议。当我使用这个控件做密码输入。我发现type=“password”是没有样式的。我不知道是不是有什么特殊的考虑。如果不影响其他组件的使用。希望能在
.cell-right input[type=date], .cell-right input[type=datetime-local], .cell-right input[type=number], .cell-right input[type=text], .cell-right input[type=time]
这个里面加上input[type=password]
ERROR in .//vue-ydui/dist/lib.px/dialog/index.js/vue-ydui/dist/lib.px/dialog/index.js 2:82-96
Module not found: Error: Cannot resolve module 'Vue' in /xxxxx/xxxx/node_modules/vue-ydui/dist/lib.px/dialog @ ./
Child html-webpack-plugin for "index.html":
Asset Size Chunks Chunk Names
index.html 1.47 MB 0
webpack: Failed to compile.
现在单独添加checkbox原生,因为css的原因并不显示, 显示了也不好看。算上一些操作,不如封装一个组件来的方便,请问作者是如何考虑这个问题的?
使用infinitescroll做项目的时候有用到tab,每个tab-panel-item加载的infinitescroll都不一样,但infinitescroll会同时触发,当有列表的数据为空时其他列表也不加载了。
RT
你好,如题使用滚动加载和下拉刷新时'$on'和$'emit'都是 undefined,原因是this.$yduiBus是undefined,这是什么原因,求教
缺少时间选择组件,其它的都非常的不错,期待加上,目前项目ui组件选择中....
`
<yd-scrolltab-panel :label="item.text" v-for="(item,index) in cat">
<div style="height: 350px;background-color: gray;">
<yd-badge type="primary" v-for="c in item.child">{{c.text}}</yd-badge>
</div>
</yd-scrolltab-panel>
`
如果动态赋值, 则scrolltab左侧的目录显示不出来。建议更换获取子组件scrolltab-panel的方法
methods: { result1(ret) { this.model1 = ret.provance + ' ' + ret.city + ' ' + ret.area; } }
应为: province
[vue-devtools] Ready. Detected Vue v2.2.6
toConsumableArray.js?1825:19 Uncaught (in promise) TypeError: Cannot convert undefined or null to object
at from (native)
at exports.default (eval at 348 (http://localhost:8080/1.js:218:1), :19:31)
at eval (eval at 341 (http://localhost:8080/1.js:203:1), :52:206)
升级0.4.4版本以后 yd-navbar 高度很小
审查元素后发现
header 里面多出了style="background-color: rgb(255, 255, 255); height: 0.9rem;"(0.4.3之前版本没有)
我引入的css是px版本 所以此处style应该使用css样式代替比较好
在cell-item中使用主要是spinner样式的text-align和height会被覆盖,望修复
一个页面不能多个infinitescroll?
单选等的样式过于耦合cell的样式,比如我想把单选放到left上,则显示不出来了。作者的关于cell的设计思路是什么呢?
目前使用的省市区楼主做的用户体验还是很赞的,但是美中不足
比如:这个插件是不是可以扩展为级联选择控件(类似iview的同类插件),比如我其实需要一个车牌地区的级联选择省-市(浙F)这种,没办法扩展了
步骤:在layout内容部分嵌套使用layout布局时
结果:顶部底部和内容部分都有滚动条,内部嵌套的layout里面的navbar无法固定
请问我如何在进入页面时候,先异步请求数据,获得 dataList = [ ] 后,再挂载 Slider 呢?我试过,但是好像组件有点问题哦。
<yd-slider autoplay="3000"> <yd-slider-item v-for="data in dataList"> <a :href="data.href"> <img :src="data.img"> </a> </yd-slider-item> </yd-slider>
我引入的是vue-ydui/dist/ydui.px.css px版本的css
但是icon并没有颜色变化为#FF685D
调试之后发现icon的标签的style确实有了color:#FF685D
但是icon还有一个before伪类 伪类的css并没有变化 color:#a6a5a5
所以图标颜色还是#a6a5a5
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.