File tree Expand file tree Collapse file tree 8 files changed +62
-74
lines changed Expand file tree Collapse file tree 8 files changed +62
-74
lines changed Original file line number Diff line number Diff line change
1
+ import { defineComponent } from 'vue'
2
+ import CodeBox from '../../shared/devui-codebox/devui-codebox'
3
+ import ButtonPrimary from './primary/primary'
4
+ import ButtonCommon from './common/common'
5
+
6
+ export default defineComponent ( {
7
+ name : 'd-button-demo' ,
8
+ setup ( ) {
9
+ const primarySource = { } ;
10
+ const commonSource = { } ;
11
+
12
+ return ( ) => {
13
+ return < div class = "demo-container" >
14
+ < div class = "demo-example" >
15
+ < div class = "demo-title" > { '主要按钮' } </ div >
16
+ < div class = "demo-text" > </ div >
17
+ < CodeBox id = "components-button-primary" sourceData = { primarySource } >
18
+ < ButtonPrimary > </ ButtonPrimary >
19
+ </ CodeBox >
20
+ </ div >
21
+ < div class = "demo-example" >
22
+ < div class = "demo-title" > { '次要按钮' } </ div >
23
+ < div class = "demo-text" > </ div >
24
+ < CodeBox id = "components-button-common" sourceData = { commonSource } >
25
+ < ButtonCommon > </ ButtonCommon >
26
+ </ CodeBox >
27
+ </ div >
28
+ </ div >
29
+ }
30
+ }
31
+ } )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
- import ButtonDemoComponent from './button-demo.vue '
1
+ import ButtonDemoComponent from './button-demo'
2
2
import DevUIApiComponent from '../../shared/devui-api/devui-api'
3
3
4
4
const routes = [
Original file line number Diff line number Diff line change
1
+ import { defineComponent } from 'vue'
2
+
3
+ export default defineComponent ( {
4
+ name : 'd-codebox' ,
5
+ props : {
6
+ id : String ,
7
+ sourceData : Object
8
+ } ,
9
+ setup ( props , ctx ) {
10
+ return ( ) => {
11
+ return < div >
12
+ devui-codebox
13
+ { ctx . slots . default ?.( ) }
14
+ </ div >
15
+ }
16
+ }
17
+ } )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change
1
+ import { defineComponent } from 'vue'
2
+
3
+ export default defineComponent ( {
4
+ name : 'd-highlight' ,
5
+ props : {
6
+ } ,
7
+ setup ( props , ctx ) {
8
+ return ( ) => {
9
+ return < div > devui-highlight</ div >
10
+ }
11
+ }
12
+ } )
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 23
23
</template >
24
24
25
25
<script >
26
- import ButtonDemo from ' ../../devui/button/demo/button-demo.vue '
26
+ import ButtonDemo from ' ../../devui/button/demo/button-demo'
27
27
import Tabs from ' ../../devui/tabs/tabs'
28
28
import Tab from ' ../../devui/tabs/tab'
29
29
You can’t perform that action at this time.
0 commit comments