This repository was archived by the owner on Jan 9, 2022. It is now read-only.
File tree Expand file tree Collapse file tree 6 files changed +19
-29
lines changed Expand file tree Collapse file tree 6 files changed +19
-29
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <GDialog v-model =" dialogState" >
2
+ <!-- < GDialog v-model="dialogState">
3
3
Content
4
- </GDialog >
4
+ </GDialog> -->
5
5
6
6
<BtnWrapper >
7
7
<BaseBtn @click =" onOpen" >
11
11
</template >
12
12
13
13
<script >
14
- import { GDialog } from ' gitart-vue-dialog'
15
- import ' gitart-vue-dialog/dist/style.css'
16
-
17
14
export default {
18
15
name: ' BaseDialog' ,
19
- components: {
20
- GDialog,
21
- },
22
-
23
16
data : () => ({
24
17
dialogState: false ,
25
18
}),
Original file line number Diff line number Diff line change 13
13
</template >
14
14
15
15
<script >
16
- import { GDialog } from ' gitart-vue-dialog'
17
- import ' gitart-vue-dialog/dist/style.css'
18
-
19
16
export default {
20
17
name: ' BaseDialog' ,
21
- components: {
22
- GDialog,
23
- },
24
-
25
18
data : () => ({
26
19
dialogState: false ,
27
20
}),
Original file line number Diff line number Diff line change 1
1
import DefaultTheme from 'vitepress/theme'
2
+ // import { GDialog } from 'gitart-vue-dialog'
3
+ // import 'gitart-vue-dialog/dist/style.css'
2
4
import './custom.css'
3
5
4
- import BaseBtn from '@/.vitepress/components/Base/BaseBtn.vue'
6
+ // import BaseBtn from '@/.vitepress/components/Base/BaseBtn.vue'
5
7
6
- import BtnWrapper from '@/.vitepress/components/Layout/BtnWrapper.vue'
8
+ // import BtnWrapper from '@/.vitepress/components/Layout/BtnWrapper.vue'
7
9
8
10
export default {
9
11
...DefaultTheme ,
10
12
enhanceApp ( { app } ) {
11
- app . component ( 'BaseBtn' , BaseBtn )
12
- app . component ( 'BtnWrapper' , BtnWrapper )
13
+ // app.component('GDialog', GDialog)
14
+
15
+ // app.component('BaseBtn', BaseBtn)
16
+ // app.component('BtnWrapper', BtnWrapper)
13
17
}
14
18
}
Original file line number Diff line number Diff line change 1
- <script setup >
1
+ <!-- < script setup>
2
2
import BaseDialog from '@/.vitepress/components/Dialogs/Guide/BaseDialog.vue'
3
3
import BaseStyledDialog from '@/.vitepress/components/Dialogs/Guide/BaseStyledDialog.vue'
4
- </script >
4
+ </script> -->
5
5
6
6
# Component Usage
7
7
@@ -11,9 +11,9 @@ Just styles and register GDialog component. In some cases it's enough
11
11
<<< @/.vitepress/includes/minumal-working-example/main.js
12
12
<<< @/.vitepress/includes/minumal-working-example/YourComponent.js
13
13
<<< @/.vitepress/includes/minumal-working-example/YourComponent.html
14
-
14
+ <!--
15
15
<BaseDialog />
16
16
17
17
Pretty **ugly** dialog, right? Let's add max-width, background and some padding. Take a look:
18
18
19
- <BaseStyledDialog />
19
+ <BaseStyledDialog /> -->
Original file line number Diff line number Diff line change 1
- <script setup >
1
+ <!-- < script setup>
2
2
import BaseDialog from '@/.vitepress/components/Dialogs/Guide/BaseDialog.vue'
3
3
import BaseStyledDialog from '@/.vitepress/components/Dialogs/Guide/BaseStyledDialog.vue'
4
- </script >
4
+ </script> -->
5
5
6
6
![ Tux, the Linux mascot] ( /gitart-dialog-logo.svg )
7
7
@@ -34,8 +34,8 @@ Let's use standalone component (without installing plugin)
34
34
<<< @/.vitepress/includes/minumal-working-example/YourComponent.js
35
35
<<< @/.vitepress/includes/minumal-working-example/YourComponent.html
36
36
37
- <BaseDialog />
37
+ <!-- < BaseDialog />
38
38
39
39
Pretty **ugly** dialog, right? Let's add max-width, background and some padding. Take a look:
40
40
41
- <BaseStyledDialog />
41
+ <BaseStyledDialog /> -->
Original file line number Diff line number Diff line change @@ -6,7 +6,7 @@ heroText: Gitart Vue Dialog
6
6
tagline : Beautiful dialogs (Vue 3 only)
7
7
8
8
actionText : View Docs
9
- actionLink : /guide/
9
+ actionLink : docs/introduction/getting-started
10
10
11
11
altActionText : Demo
12
12
altActionLink : https://michaelgitart.github.io/gitart-vue-dialog
You can’t perform that action at this time.
0 commit comments