ant-design-vue/examples/App.vue

49 lines
848 B
Vue
Raw Normal View History

2020-03-23 03:00:24 +00:00
<template>
2020-05-28 15:36:43 +00:00
<a-config-provider>
<a-button-group class="dddd" style="color: red" @click="onClick">
<a-button>Cancel</a-button>
<a-button type="primary">
OK
</a-button>
</a-button-group>
2020-05-28 11:45:50 +00:00
<a-button
:class="['test']"
class="aaa"
style="display: inline"
block
:type="type"
2020-05-28 15:36:43 +00:00
@click="onClick"
2020-05-28 11:45:50 +00:00
>
2020-03-23 03:00:24 +00:00
Primary
</a-button>
2020-05-27 11:11:46 +00:00
<a-button block>
Default
</a-button>
<a-button type="dashed" block>
2020-03-23 03:00:24 +00:00
Dashed
</a-button>
2020-05-27 11:11:46 +00:00
<a-button type="danger" block>
2020-03-23 03:00:24 +00:00
Danger
</a-button>
2020-05-27 11:11:46 +00:00
<a-button type="link" block>
2020-03-23 03:00:24 +00:00
Link
</a-button>
2020-05-28 11:45:50 +00:00
</a-config-provider>
2020-03-23 03:00:24 +00:00
</template>
<script>
export default {
name: 'Demo',
2020-05-28 11:45:50 +00:00
data() {
return {
type: 'primary',
};
},
2020-05-27 11:11:46 +00:00
methods: {
onClick() {
console.log(1);
},
},
2020-03-23 03:00:24 +00:00
};
</script>