diff --git a/src/pages/about/about.vue b/src/pages/about/about.vue index a0c17a2..d05ffff 100644 --- a/src/pages/about/about.vue +++ b/src/pages/about/about.vue @@ -10,6 +10,7 @@ import { LOGIN_PAGE } from '@/router/config' import { tabbarStore } from '@/tabbar/store' import RequestComp from './components/request.vue' +import VBindCss from './components/VBindCss.vue' // 奇怪:同样的代码放在 vue 里面不会校验到错误,放在 .ts 文件里面会校验到错误 // const testOxlint = (name: string) => { @@ -73,16 +74,6 @@ onReady(() => { onShow(() => { console.log('onShow uniKuRoot exposeRef', uniKuRoot.value?.exposeRef) }) - -const testBindCssVariable = ref('red') -function changeTestBindCssVariable() { - if (testBindCssVariable.value === 'red') { - testBindCssVariable.value = 'green' - } - else { - testBindCssVariable.value = 'red' - } -} - - diff --git a/src/pages/about/components/VBindCss.vue b/src/pages/about/components/VBindCss.vue new file mode 100644 index 0000000..fae22d9 --- /dev/null +++ b/src/pages/about/components/VBindCss.vue @@ -0,0 +1,27 @@ + + + + +