mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
[bugfix] Address & Contact list style (#230)
* [bugfix] Checkbox border render error in weixin browser * [bugfix] TreeSelect dependency path error * [bugfix] Swipe should clear autoplay timer when destroyed * [bugfix] Optimize component dependency analyze when build style entry * merge * update yarn.lock * update README.md * update README.md * update README.md * update README.md * update README.md * [Doc] add more badges in README.md * update README.md * [bugfix] Address & Contact list style * fix: contact test cases
This commit is contained in:
parent
c1923bc87d
commit
0884cad227
@ -24,13 +24,14 @@ function analyzeDependencies(componentName, libDir) {
|
||||
})
|
||||
const checkList = ['base'];
|
||||
search(dependencies, checkList);
|
||||
console.log(componentName ,checkList);
|
||||
return checkList.filter(component => checkComponentHasStyle(component));
|
||||
}
|
||||
|
||||
function search(tree, checkList) {
|
||||
tree && Object.keys(tree).forEach(key => {
|
||||
search(tree[key], checkList);
|
||||
const component = key.split('/vant/lib/')[1].replace('/index.js', '');
|
||||
const component = key.split('/vant/lib/')[1].replace('/index.js', '').replace('mixins/', '');
|
||||
if (checkList.indexOf(component) === -1) {
|
||||
checkList.push(component);
|
||||
}
|
||||
|
@ -8,8 +8,8 @@
|
||||
<template v-else-if="type === 'edit'">
|
||||
<van-icon class="van-contact-card__icon" name="contact" />
|
||||
<div class="van-contact-card__text">
|
||||
<p>联系人:{{ name }}</p>
|
||||
<p>联系电话:{{ tel }}</p>
|
||||
<div>联系人:{{ name }}</div>
|
||||
<div>联系电话:{{ tel }}</div>
|
||||
</div>
|
||||
</template>
|
||||
</div>
|
||||
|
@ -27,7 +27,10 @@
|
||||
&__group {
|
||||
height: 100%;
|
||||
overflow-y: scroll;
|
||||
padding-bottom: 40px;
|
||||
box-sizing: border-box;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
background-color: $background-color;
|
||||
}
|
||||
|
||||
&__name {
|
||||
|
@ -2,6 +2,10 @@
|
||||
|
||||
.van-contact-list {
|
||||
height: 100%;
|
||||
overflow-y: auto;
|
||||
padding-bottom: 55px;
|
||||
box-sizing: border-box;
|
||||
background-color: $background-color;
|
||||
|
||||
.van-cell__value {
|
||||
color: $text-color;
|
||||
|
@ -41,8 +41,8 @@ describe('ContactCard', () => {
|
||||
});
|
||||
|
||||
expect(wrapper.hasClass('van-contact-card')).to.be.true;
|
||||
expect(wrapper.find('.van-contact-card__text p')[0].text()).to.equal('联系人:测试姓名');
|
||||
expect(wrapper.find('.van-contact-card__text p')[1].text()).to.equal('联系电话:13000000000');
|
||||
expect(wrapper.find('.van-contact-card__text div')[0].text()).to.equal('联系人:测试姓名');
|
||||
expect(wrapper.find('.van-contact-card__text div')[1].text()).to.equal('联系电话:13000000000');
|
||||
});
|
||||
});
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user