IView元件化之部署及按鈕學習
阿新 • • 發佈:2018-12-27
<template> <div id="app"> <div> <modulesview></modulesview> <RadioGroup v-model="buttonsize" type="button"> <Radio label="large">Large</Radio> <Radio label="default">Default</Radio> <Radio label="small">small</Radio> </RadioGroup> <Button type="success" icon="ios-search" :size="buttonsize" :loading="loading2" @click="activeState">臥槽</Button> </div> </div> </template> <script> import modulesview from './views/mydemo.vue' export default { name: 'App', data(){ return { buttonsize : 'large', loading2 : false } }, components:{ modulesview },methods:{ activeState(){ this.loading2= true; } } } </script>