You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
?> If this options is `false` but you dont want to emojify some specific colons , [Refer this](https://github.com/docsifyjs/docsify/issues/742#issuecomment-586313143)
413
+
?> If this options is `false` but you don't want to emojify some specific colons , [Refer this](https://github.com/docsifyjs/docsify/issues/742#issuecomment-586313143)
414
414
415
415
## mergeNavbar
416
416
@@ -494,15 +494,15 @@ window.$docsify = {
494
494
```
495
495
496
496
## crossOriginLinks
497
-
- type: `Array`
498
497
499
-
When `routerMode: 'history'`, you may face the cross-origin issues, See [#1379](https://github.com/docsifyjs/docsify/issues/1379).
500
-
In Markdown content, there is a simple way to solve it, see extends Markdown syntax `Cross-Origin link` in [helpers](helpers.md).
498
+
- type: `Array`
499
+
500
+
When `routerMode: 'history'`, you may face the cross-origin issues, See [#1379](https://github.com/docsifyjs/docsify/issues/1379).
501
+
In Markdown content, there is a simple way to solve it, see extends Markdown syntax `Cross-Origin link` in [helpers](helpers.md).
Load the right 404 page according to the localisation:
607
+
Load the right 404 page according to the localization:
608
608
609
609
```js
610
610
window.$docsify= {
@@ -629,3 +629,104 @@ window.$docsify = {
629
629
topMargin:90, // default: 0
630
630
};
631
631
```
632
+
633
+
## vueComponents
634
+
635
+
- type: `Object`
636
+
637
+
Creates and registers global [Vue components](https://vuejs.org/v2/guide/components.html). Components are specified using the component name as the key with an object containing Vue options as the value. Component `data` is unique for each instance and will not persist as users navigate the site.
638
+
639
+
```js
640
+
window.$docsify= {
641
+
vueComponents: {
642
+
'button-counter': {
643
+
template:`
644
+
<button @click="count += 1">
645
+
You clicked me {{ count }} times
646
+
</button>
647
+
`,
648
+
data() {
649
+
return {
650
+
count:0,
651
+
};
652
+
},
653
+
},
654
+
},
655
+
};
656
+
```
657
+
658
+
```markdown
659
+
<button-counter></button-counter>
660
+
```
661
+
662
+
<outputdata-lang="output">
663
+
<button-counter></button-counter>
664
+
</output>
665
+
666
+
## vueGlobalOptions
667
+
668
+
- type: `Object`
669
+
670
+
Specifies [Vue options](https://vuejs.org/v2/api/#Options-Data) for use with Vue content not explicitly mounted with [vueMounts](#mounting-dom-elements), [vueComponents](#components), or a [markdown script](#markdown-script). Changes to global `data` will persist and be reflected anywhere global references are used.
671
+
672
+
```js
673
+
window.$docsify= {
674
+
vueGlobalOptions: {
675
+
data() {
676
+
return {
677
+
count:0,
678
+
};
679
+
},
680
+
},
681
+
};
682
+
```
683
+
684
+
```markdown
685
+
<p>
686
+
<button @click="count -= 1">-</button>
687
+
{{ count }}
688
+
<button @click="count += 1">+</button>
689
+
</p>
690
+
```
691
+
692
+
<outputdata-lang="output">
693
+
<p>
694
+
<button @click="count -= 1">-</button>
695
+
{{ count }}
696
+
<button @click="count += 1">+</button>
697
+
</p>
698
+
</output>
699
+
700
+
## vueMounts
701
+
702
+
- type: `Object`
703
+
704
+
Specifies DOM elements to mount as [Vue instances](https://vuejs.org/v2/guide/instance.html) and their associated options. Mount elements are specified using a [CSS selector](https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors) as the key with an object containing Vue options as their value. Docsify will mount the first matching element in the main content area each time a new page is loaded. Mount element `data` is unique for each instance and will not persist as users navigate the site.
0 commit comments