mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
when to modifier
This commit is contained in:
parent
1c81270de2
commit
b30b98e61c
@ -42,7 +42,6 @@ router.afterEach(route => {
|
|||||||
Vue.nextTick(() => {
|
Vue.nextTick(() => {
|
||||||
document.body.scrollTop = indexScrollTop;
|
document.body.scrollTop = indexScrollTop;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
],
|
],
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"bootstrap": "npm i --registry=http://registry.npm.qima-inc.com",
|
"bootstrap": "npm i --registry=http://registry.npm.qima-inc.com",
|
||||||
"dev": "npm run bootstrap && npm run build:file && webpack-dev-server --inline --hot --config build/webpack.config.js",
|
"dev": "npm run build:file && webpack-dev-server --inline --hot --config build/webpack.config.js",
|
||||||
"build:file": "node build/bin/build-entry.js",
|
"build:file": "node build/bin/build-entry.js",
|
||||||
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
|
"build:utils": "cross-env BABEL_ENV=utils babel src --out-dir lib --ignore src/index.js",
|
||||||
"build:zanui-css": "gulp build --gulpfile packages/zanui-css/gulpfile.js && cp-cli packages/zanui-css/lib lib/zanui-css",
|
"build:zanui-css": "gulp build --gulpfile packages/zanui-css/gulpfile.js && cp-cli packages/zanui-css/lib lib/zanui-css",
|
||||||
|
@ -61,9 +61,9 @@ export default {
|
|||||||
'z-button--' + type,
|
'z-button--' + type,
|
||||||
'z-button--' + size,
|
'z-button--' + size,
|
||||||
{
|
{
|
||||||
'is-disabled': disabled,
|
'z-button--disabled': disabled,
|
||||||
'is-loading': loading,
|
'z-button--loading': loading,
|
||||||
'is-block': block
|
'z-button--block': block
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
onClick={this.handleClick}
|
onClick={this.handleClick}
|
||||||
|
@ -75,13 +75,13 @@
|
|||||||
font-size: 10px;
|
font-size: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
@when disabled {
|
@m disabled {
|
||||||
color: $button-disabled-color;
|
color: $button-disabled-color;
|
||||||
background-color: $button-disabled-background-color;
|
background-color: $button-disabled-background-color;
|
||||||
border: 1px solid $button-disabled-border-color;
|
border: 1px solid $button-disabled-border-color;
|
||||||
}
|
}
|
||||||
|
|
||||||
@when block {
|
@m block {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,6 +2,7 @@
|
|||||||
display: inline-block;
|
display: inline-block;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding-right: 10px;
|
padding-right: 10px;
|
||||||
|
vertical-align: middle;
|
||||||
&:last-child {
|
&:last-child {
|
||||||
padding-right: 0;
|
padding-right: 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user