|
|
@@ -1,23 +1,25 @@
|
|
|
<template>
|
|
|
- <view class="content">
|
|
|
- <image class="logo" src="/static/logo.png" />
|
|
|
- <view class="text-area">
|
|
|
- <text class="title">{{ title }}</text>
|
|
|
+ <z-paging>
|
|
|
+ <view class="content">
|
|
|
+ <image class="logo" src="/static/logo.png" />
|
|
|
+ <view class="text-area">
|
|
|
+ <text class="title">{{ title }}</text>
|
|
|
+ </view>
|
|
|
+ <view class="mb-80">{{ selectDictLabel(class_type, 1) }}</view>
|
|
|
+ <view class="bg-blue-500 text-white p-4 rounded">Hello UnoCSS!</view>
|
|
|
+ <up-button text="月落"></up-button>
|
|
|
</view>
|
|
|
- <view class="mb-80">{{ selectDictLabel(class_type, 1) }}</view>
|
|
|
- <view class="bg-blue-500 text-white p-4 rounded">Hello UnoCSS!</view>
|
|
|
- <up-button text="月落"></up-button>
|
|
|
- </view>
|
|
|
+ </z-paging>
|
|
|
</template>
|
|
|
<script setup lang="ts">
|
|
|
const { proxy } = getCurrentInstance() as ComponentInternalInstance;
|
|
|
-const { class_type } = toRefs<any>(proxy?.useDict("class_type"));
|
|
|
-const title = ref("Hello");
|
|
|
+const { class_type } = toRefs<any>(proxy?.useDict('class_type'));
|
|
|
+const title = ref('Hello');
|
|
|
onMounted(() => {
|
|
|
uni.showToast({
|
|
|
- title: "Hello World!",
|
|
|
- icon: "none",
|
|
|
- duration: 2000
|
|
|
+ title: 'Hello World!',
|
|
|
+ icon: 'none',
|
|
|
+ duration: 2000,
|
|
|
});
|
|
|
});
|
|
|
</script>
|