diff --git a/docs/gridsome.config.js b/docs/gridsome.config.js index 083bf31a..49557c07 100644 --- a/docs/gridsome.config.js +++ b/docs/gridsome.config.js @@ -44,6 +44,7 @@ module.exports = { }, }, ], + runtimeCompiler: true, chainWebpack(config) { // Load variables for all vue-files const types = ['vue-modules', 'vue', 'normal-modules', 'normal'] diff --git a/docs/package.json b/docs/package.json index 58bfcbac..5179d224 100644 --- a/docs/package.json +++ b/docs/package.json @@ -23,6 +23,7 @@ "remark-toc": "^7.0.0", "typescript": "^4.0.3", "vue-github-button": "^1.1.2", + "vue-live": "^1.14.0", "y-indexeddb": "^9.0.5", "y-webrtc": "^10.1.6", "yjs": "^13.3.2" diff --git a/docs/src/components/Demo/style.scss b/docs/src/components/Demo/style.scss index f875b491..a14c2342 100644 --- a/docs/src/components/Demo/style.scss +++ b/docs/src/components/Demo/style.scss @@ -64,7 +64,7 @@ } &__link { - text-align: right; + // text-align: right; } &__error { @@ -72,4 +72,4 @@ color: $colorRed; background-color: rgba($colorRed, 0.1); } -} \ No newline at end of file +} diff --git a/docs/src/components/LiveDemo/CustomLayout.vue b/docs/src/components/LiveDemo/CustomLayout.vue new file mode 100644 index 00000000..ca7d8ccb --- /dev/null +++ b/docs/src/components/LiveDemo/CustomLayout.vue @@ -0,0 +1,90 @@ + + + + + diff --git a/docs/src/components/LiveDemo/index.vue b/docs/src/components/LiveDemo/index.vue new file mode 100644 index 00000000..5a1178d2 --- /dev/null +++ b/docs/src/components/LiveDemo/index.vue @@ -0,0 +1,134 @@ + + + + +