This commit is contained in:
zhuxiang 2017-03-01 15:51:31 +08:00
parent dc2d685a34
commit a9b4b6a27b
5 changed files with 22 additions and 20 deletions

View File

@ -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 --port 8282 --inline --hot --config build/webpack.config.js", "dev": "npm run build:file && webpack-dev-server --port 8282 --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",

View File

@ -5,8 +5,9 @@
</template> </template>
<script> <script>
export default { export default {
name: 'zan-badge-group', name: 'zan-badge-group',
props: { props: {
// tab key // tab key
activeKey: { activeKey: {
@ -14,10 +15,11 @@ export default {
default: 0 default: 0
} }
}, },
data () {
data() {
return { return {
computedActiveKey: this.activeKey computedActiveKey: this.activeKey
};
} }
} };
};
</script> </script>

View File

@ -30,10 +30,10 @@ export default {
} }
}, },
computed: { computed: {
classNames () { classNames() {
return { return {
'is-select': this.mark == this.$parent.computedActiveKey ? true : false 'is-select': this.mark === this.$parent.computedActiveKey
} };
} }
} }
}; };

View File

@ -48,7 +48,7 @@
}, },
handleSearch() { handleSearch() {
// input // input
this.$emit('search', this.value) this.$emit('search', this.value);
} }
} }
}; };