@opentiny/vue-docs 2.1.1 → 2.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +3 -3
- package/playground/App.vue +3 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opentiny/vue-docs",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.2",
|
|
4
4
|
"dependencies": {
|
|
5
5
|
"@unocss/reset": "0.38.2",
|
|
6
6
|
"@vue/repl": "^2.5.5",
|
|
@@ -19,12 +19,12 @@
|
|
|
19
19
|
"@opentiny/vue": "~3.11.0",
|
|
20
20
|
"@opentiny/vue-common": "~3.11.0",
|
|
21
21
|
"@opentiny/vue-icon": "~3.11.0",
|
|
22
|
-
"@opentiny/vue-icon-saas": "~3.11.0",
|
|
23
22
|
"@opentiny/vue-theme": "~3.11.0",
|
|
24
|
-
"@opentiny/vue-design-aurora": "~3.11.0",
|
|
25
23
|
"@opentiny/vue-design-smb": "~3.11.0",
|
|
26
24
|
"@opentiny/vue-theme-mobile": "~3.11.0",
|
|
27
25
|
"@opentiny/vue-vite-import": "~1.1.5",
|
|
26
|
+
"@opentiny/vue-icon-saas": "~3.11.0",
|
|
27
|
+
"@opentiny/vue-design-aurora": "~3.11.0",
|
|
28
28
|
"@opentiny/vue-theme-saas": "~3.11.0"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
package/playground/App.vue
CHANGED
|
@@ -3,7 +3,7 @@ import { onMounted, reactive, ref } from 'vue'
|
|
|
3
3
|
import { Repl, useStore, File } from '@opentiny/vue-repl'
|
|
4
4
|
import '@opentiny/vue-repl/dist/style.css'
|
|
5
5
|
|
|
6
|
-
import
|
|
6
|
+
import Editor from '@vue/repl/codemirror-editor'
|
|
7
7
|
import { ButtonGroup as TinyButtonGroup, Select as TinySelect, Option as TinyOption, Notify } from '@opentiny/vue'
|
|
8
8
|
import { staticDemoPath, getWebdocPath } from '@/views/components/cmpConfig'
|
|
9
9
|
import { fetchDemosFile } from '@/tools/utils'
|
|
@@ -16,6 +16,7 @@ import Share from './icons/Share.vue'
|
|
|
16
16
|
const versions = ['3.11', '3.10', '3.9', '3.8']
|
|
17
17
|
const latestVersion = versions[0]
|
|
18
18
|
const cdnHost = 'https://unpkg.com'
|
|
19
|
+
window.localStorage.setItem('setting-cdn', cdnHost)
|
|
19
20
|
|
|
20
21
|
const searchObj = new URLSearchParams(location.search)
|
|
21
22
|
const tinyMode = searchObj.get('mode')
|
|
@@ -213,7 +214,7 @@ function share() {
|
|
|
213
214
|
</div>
|
|
214
215
|
</div>
|
|
215
216
|
<Repl
|
|
216
|
-
:editor="
|
|
217
|
+
:editor="Editor"
|
|
217
218
|
:store="store"
|
|
218
219
|
:theme="dark ? 'dark' : 'light'"
|
|
219
220
|
:preview-options="state.previewOptions"
|