fixed some bugs

fixed some bugs
This commit is contained in:
梁灏 2016-10-28 18:27:04 +08:00
parent 8a3bad748c
commit 4b7138b97f
6 changed files with 28 additions and 27 deletions

View file

@ -37,7 +37,7 @@
</template>
<script>
import Popper from '../base/popper';
import Button from '../button/button.vue';
import iButton from '../button/button.vue';
import clickoutside from '../../directives/clickoutside';
import { oneOf } from '../../utils/assist';
@ -46,7 +46,7 @@
export default {
mixins: [Popper],
directives: { clickoutside },
components: { iButton: Button },
components: { iButton },
props: {
trigger: {
validator (value) {
@ -92,9 +92,9 @@
computed: {
classes () {
return [
prefixCls + '',
`${prefixCls}`,
{
[prefixCls + '-confirm']: this.confirm
[`${prefixCls}-confirm`]: this.confirm
}
]
},
@ -102,7 +102,7 @@
let style = {};
if (!!this.width) {
style.width = '${this.width}px';
style.width = `${this.width}px`;
}
return style;
}