when to modifier

This commit is contained in:
niunai 2017-03-02 15:53:29 +08:00
parent 1c81270de2
commit b30b98e61c
5 changed files with 7 additions and 7 deletions

View File

@ -42,7 +42,6 @@ router.afterEach(route => {
Vue.nextTick(() => {
document.body.scrollTop = indexScrollTop;
});
}
});

View File

@ -11,7 +11,7 @@
],
"scripts": {
"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: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",

View File

@ -61,9 +61,9 @@ export default {
'z-button--' + type,
'z-button--' + size,
{
'is-disabled': disabled,
'is-loading': loading,
'is-block': block
'z-button--disabled': disabled,
'z-button--loading': loading,
'z-button--block': block
}
]}
onClick={this.handleClick}

View File

@ -75,13 +75,13 @@
font-size: 10px;
}
@when disabled {
@m disabled {
color: $button-disabled-color;
background-color: $button-disabled-background-color;
border: 1px solid $button-disabled-border-color;
}
@when block {
@m block {
display: block;
}
}

View File

@ -2,6 +2,7 @@
display: inline-block;
box-sizing: border-box;
padding-right: 10px;
vertical-align: middle;
&:last-child {
padding-right: 0;
}