feat(playground): add 3.13 version and change layoutReverse default (#1291)

This commit is contained in:
gimmyhehe 2024-01-12 11:41:18 +08:00 committed by GitHub
parent 069c0856eb
commit c3ef249888
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 4 deletions

View File

@ -17,11 +17,11 @@ import logoUrl from './assets/opentiny-logo.svg?url'
import GitHub from './icons/Github.vue'
import Share from './icons/Share.vue'
const VERSION = 'tiny-vue-version-3.12'
const VERSION = 'tiny-vue-version-3.13'
const LAYOUT = 'playground-layout'
const LAYOUT_REVERSE = 'playground-layout-reverse'
const versions = ['3.12', '3.11', '3.10', '3.9', '3.8']
const versions = ['3.13', '3.12', '3.11', '3.10', '3.9', '3.8']
const latestVersion = localStorage.getItem(VERSION) || versions[0]
const cdnHost = localStorage.getItem('setting-cdn')
const getRuntime = (version) => `${cdnHost}/@opentiny/vue@${version}/runtime/`
@ -89,8 +89,7 @@ const store = new useStore({
// repl
const state = reactive({
layout: localStorage.getItem(LAYOUT) || 'horizon',
// 'false'
layoutReverse: !(localStorage.getItem(LAYOUT_REVERSE) === 'false'),
layoutReverse: localStorage.getItem(LAYOUT_REVERSE) === 'true',
layoutOptions: [
{ value: 'horizon', text: '水平' },
{ value: 'vertical', text: '垂直' }