Compare commits
3 Commits
Author | SHA1 | Date | |
---|---|---|---|
7e0087a7db | |||
8ff45e210c | |||
f60bf907b1 |
@ -7,25 +7,31 @@ export const useSimpleSearchState = defineStore('simpleSearch', () => {
|
|||||||
const api = useApiStore()
|
const api = useApiStore()
|
||||||
const keyword = ref('')
|
const keyword = ref('')
|
||||||
const result = ref([])
|
const result = ref([])
|
||||||
const count = ref([])
|
const count = ref(0)
|
||||||
const pageCount = ref(0)
|
const pageCount = ref(0)
|
||||||
const currentPage = ref(0)
|
const currentPage = ref(0)
|
||||||
const state = ref(null)
|
const state = ref(null)
|
||||||
async function load() {
|
async function load() {
|
||||||
if (currentPage.value == pageCount.value) state.value = 'finish'
|
if (pageCount.value && currentPage.value >= pageCount.value){ state.value = 'finish'; return }
|
||||||
let res = await api.workSimpleSearch(keyword.value, currentPage.value)
|
let res = await api.workSimpleSearch(keyword.value, currentPage.value)
|
||||||
res = res.data
|
res = res.data
|
||||||
|
if( pageCount.value ) {
|
||||||
|
currentPage.value++
|
||||||
|
if (currentPage.value > pageCount.value) currentPage.value = pageCount.value
|
||||||
|
}
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
currentPage.value = res.page
|
if ( !pageCount.value ) {
|
||||||
pageCount.value = res.pageCount
|
pageCount.value = res.pageCount
|
||||||
|
currentPage.value = res.page
|
||||||
|
}
|
||||||
count.value = res.count
|
count.value = res.count
|
||||||
state.value = import.meta.env.SSR ? 'ssrready' : 'ready'
|
state.value = import.meta.env.SSR ? 'ssrready' : 'ready'
|
||||||
result.value.push(...res.works)
|
result.value.push(...res.works)
|
||||||
} else if (res.code == 1) {
|
} else if (res.code == 1) {
|
||||||
if (currentPage.value) {
|
if ( count.value ) {
|
||||||
state.value = 'finish'
|
state.value = 'finish'
|
||||||
} else {
|
} else {
|
||||||
currentPage.value = 1
|
currentPage.value = 0
|
||||||
state.value = 'notfound'
|
state.value = 'notfound'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,7 +41,8 @@ export const useSimpleSearchState = defineStore('simpleSearch', () => {
|
|||||||
keyword.value = key
|
keyword.value = key
|
||||||
result.value = []
|
result.value = []
|
||||||
state.value = 'loading'
|
state.value = 'loading'
|
||||||
currentPage.value = 0
|
currentPage.value = 1
|
||||||
|
pageCount.value = 0
|
||||||
await load()
|
await load()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,10 +21,13 @@ export const useWorkReadState = defineStore('workRead', () => {
|
|||||||
const category = ref([])
|
const category = ref([])
|
||||||
const fandom = ref([])
|
const fandom = ref([])
|
||||||
const lang = ref(null)
|
const lang = ref(null)
|
||||||
|
const chapters = ref([])
|
||||||
|
const chapterIndex = ref(null)
|
||||||
function setData(data) {
|
function setData(data) {
|
||||||
|
cid.value = data.chapterId
|
||||||
id.value = data.workId
|
id.value = data.workId
|
||||||
title.value = data.title
|
title.value = data.title
|
||||||
summary.value = [escapeAndFormatText(data.summary)]
|
summary.value = data.summary ? escapeAndFormatText(data.summary) : null
|
||||||
pseud.value = data.pseud
|
pseud.value = data.pseud
|
||||||
text.value = data.text
|
text.value = data.text
|
||||||
publishedTime.value = data.stats.publishedTime
|
publishedTime.value = data.stats.publishedTime
|
||||||
@ -34,11 +37,26 @@ export const useWorkReadState = defineStore('workRead', () => {
|
|||||||
category.value = data.category
|
category.value = data.category
|
||||||
fandom.value = data.fandom
|
fandom.value = data.fandom
|
||||||
lang.value = data.lang
|
lang.value = data.lang
|
||||||
|
chapters.value = data.chapters || []
|
||||||
|
chapterIndex.value = data.chapterIndex ?? null
|
||||||
}
|
}
|
||||||
async function loadWork(target, targetc) {
|
async function loadWork(target, targetc) {
|
||||||
if (target == id.value && targetc == cid.value || state.value == 'loading') return
|
const itarget = parseInt(target)
|
||||||
|
if (isNaN(itarget)) {
|
||||||
|
console.log('a')
|
||||||
|
state.value = 'errformat'
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const itargetc = parseInt(targetc)
|
||||||
|
if (
|
||||||
|
itarget === id.value &&
|
||||||
|
(itargetc === cid.value || (isNaN(itargetc) && cid.value === null)) &&
|
||||||
|
state.value !== 'loading'
|
||||||
|
) return
|
||||||
|
id.value = itarget
|
||||||
|
cid.value = isNaN(itargetc) ? null : itargetc
|
||||||
state.value = 'loading'
|
state.value = 'loading'
|
||||||
const result = await api.getWork(target, targetc)
|
const result = await api.getWork(id.value, cid.value)
|
||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
setData(result.data)
|
setData(result.data)
|
||||||
state.value = 'ready'
|
state.value = 'ready'
|
||||||
@ -61,6 +79,8 @@ export const useWorkReadState = defineStore('workRead', () => {
|
|||||||
category,
|
category,
|
||||||
fandom,
|
fandom,
|
||||||
lang,
|
lang,
|
||||||
|
chapters,
|
||||||
|
chapterIndex,
|
||||||
setData,
|
setData,
|
||||||
loadWork
|
loadWork
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted, onServerPrefetch } from 'vue'
|
import { ref, watch, onMounted, nextTick, onServerPrefetch, onBeforeUnmount } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
|
|
||||||
import 'mdui/components/text-field.js'
|
import 'mdui/components/text-field.js'
|
||||||
import 'mdui/components/card.js'
|
import 'mdui/components/card.js'
|
||||||
@ -9,25 +9,53 @@ import { escapeAndFormatText } from '../utils.js'
|
|||||||
import { useSimpleSearchState } from '../stores/search.js'
|
import { useSimpleSearchState } from '../stores/search.js'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
const router = useRouter()
|
||||||
const inputField = ref('')
|
|
||||||
|
|
||||||
const simpleSearchState = useSimpleSearchState()
|
const simpleSearchState = useSimpleSearchState()
|
||||||
|
|
||||||
|
const inputField = ref('')
|
||||||
|
const label = ref(null)
|
||||||
|
const stateLabel = {
|
||||||
|
'loading': '加载中',
|
||||||
|
'finish': '加载完成',
|
||||||
|
'ready': '就绪',
|
||||||
|
'ssrready': '就绪',
|
||||||
|
'notfound': '未找到',
|
||||||
|
'ssrnotfound': '未找到',
|
||||||
|
}
|
||||||
|
|
||||||
|
let isObserver = null
|
||||||
|
|
||||||
onServerPrefetch(async () => {
|
onServerPrefetch(async () => {
|
||||||
if (route.query.keyword) {
|
if (route.query.keyword) {
|
||||||
await simpleSearchState.start(route.query.keyword)
|
await simpleSearchState.start(route.query.keyword)
|
||||||
}
|
}
|
||||||
console.log(simpleSearchState.result[0])
|
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(async () => {
|
||||||
|
watch(() => simpleSearchState.keyword, () => document.title = simpleSearchState.keyword)
|
||||||
inputField.value = route.query.keyword || ''
|
inputField.value = route.query.keyword || ''
|
||||||
if (inputField.value && simpleSearchState != 'ssrready') simpleSearchState.start(inputField.value)
|
if (inputField.value && simpleSearchState != 'ssrready') simpleSearchState.start(inputField.value)
|
||||||
|
isObserver = new IntersectionObserver((entries) => {
|
||||||
|
entries.forEach((entry) => {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
if (simpleSearchState.state == 'ready') simpleSearchState.load()
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, { threshold: 1 })
|
||||||
|
await nextTick()
|
||||||
|
isObserver.observe(label.value)
|
||||||
|
})
|
||||||
|
|
||||||
|
onBeforeUnmount(() => {
|
||||||
|
isObserver.disconnect();
|
||||||
})
|
})
|
||||||
|
|
||||||
function onSubmit(data) {
|
function onSubmit(data) {
|
||||||
if (simpleSearchState) simpleSearchState.start(data.src)
|
if (simpleSearchState) {
|
||||||
|
simpleSearchState.start(data.src)
|
||||||
|
router.replace(`/search/simple?keyword=${encodeURIComponent(data.src)}`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -45,7 +73,9 @@ function onSubmit(data) {
|
|||||||
<input type="text" id="src" name="src" />
|
<input type="text" id="src" name="src" />
|
||||||
<input type="submit" />
|
<input type="submit" />
|
||||||
</template></ClientOnly></Form><Hr />
|
</template></ClientOnly></Form><Hr />
|
||||||
<p>State: {{ simpleSearchState.state }}</p><Hr/>
|
<template v-if="simpleSearchState.state == 'ready' || simpleSearchState.state == 'finish' || simpleSearchState.state == 'ssrready'">
|
||||||
|
<p>找到 {{ simpleSearchState.count }}</p><Hr/>
|
||||||
|
</template>
|
||||||
<template v-if="simpleSearchState.result" v-for="work in simpleSearchState.result" :key="work.workId">
|
<template v-if="simpleSearchState.result" v-for="work in simpleSearchState.result" :key="work.workId">
|
||||||
<ClientOnly><mdui-card style="margin: 8px 0px;"><article>
|
<ClientOnly><mdui-card style="margin: 8px 0px;"><article>
|
||||||
<router-link :to="`/work/${work.workId}`"><h3>{{ work.title }}</h3></router-link>
|
<router-link :to="`/work/${work.workId}`"><h3>{{ work.title }}</h3></router-link>
|
||||||
@ -59,4 +89,9 @@ function onSubmit(data) {
|
|||||||
<Hr />
|
<Hr />
|
||||||
</template></ClientOnly>
|
</template></ClientOnly>
|
||||||
</template>
|
</template>
|
||||||
|
<p style="display: flex;" ref='label'>
|
||||||
|
{{ stateLabel[simpleSearchState.state] }} ({{ simpleSearchState.count }})
|
||||||
|
<span style="flex: 1;"/>
|
||||||
|
{{ simpleSearchState.currentPage }} / {{ simpleSearchState.pageCount }}
|
||||||
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,8 +19,6 @@ import 'mdui/components/button.js'
|
|||||||
import 'mdui/components/dropdown.js'
|
import 'mdui/components/dropdown.js'
|
||||||
import 'mdui/components/menu.js'
|
import 'mdui/components/menu.js'
|
||||||
import 'mdui/components/menu-item.js'
|
import 'mdui/components/menu-item.js'
|
||||||
import 'mdui/components/collapse.js'
|
|
||||||
import 'mdui/components/collapse-item.js'
|
|
||||||
import 'mdui/components/card.js'
|
import 'mdui/components/card.js'
|
||||||
|
|
||||||
import '@mdui/icons/bookmark.js'
|
import '@mdui/icons/bookmark.js'
|
||||||
@ -41,6 +39,7 @@ let lastCloseTimer = null
|
|||||||
let isObserver = null
|
let isObserver = null
|
||||||
let paragraphs = []
|
let paragraphs = []
|
||||||
let currentParagraph = null
|
let currentParagraph = null
|
||||||
|
const chapterDialog = ref(null)
|
||||||
|
|
||||||
const categoryName = {
|
const categoryName = {
|
||||||
mm: "男/男",
|
mm: "男/男",
|
||||||
@ -48,21 +47,25 @@ const categoryName = {
|
|||||||
fm: '女/男'
|
fm: '女/男'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onServerPrefetch(async () => {
|
onServerPrefetch(async () => {
|
||||||
await workReadState.loadWork(route.params.id, route.params.cid)
|
await workReadState.loadWork(route.params.id, route.params.cid)
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
watch(() => workReadState.state, (value) => { if (value == 'ready') routeState.customTitle = workReadState.title })
|
||||||
if (workReadState.state != 'ssrnotfound') await workReadState.loadWork(route.params.id, route.params.cid)
|
if (workReadState.state != 'ssrnotfound') await workReadState.loadWork(route.params.id, route.params.cid)
|
||||||
if (workReadState.state == 'ready') {
|
if (workReadState.state == 'ready') {
|
||||||
routeState.customTitle = workReadState.title
|
routeState.customTitle = workReadState.title
|
||||||
|
if (parseInt(route.params.cid) != workReadState.cid) {
|
||||||
|
router.replace(`/work/${workReadState.id}/${workReadState.cid}`)
|
||||||
|
return;
|
||||||
|
}
|
||||||
const paraCount = workReadState.text.length - 1
|
const paraCount = workReadState.text.length - 1
|
||||||
isObserver = new IntersectionObserver((entries) => {
|
isObserver = new IntersectionObserver((entries) => {
|
||||||
entries.forEach((entry) => {
|
entries.forEach((entry) => {
|
||||||
if (entry.isIntersecting) {
|
if (entry.isIntersecting) {
|
||||||
currentParagraph = entry.target
|
currentParagraph = entry.target
|
||||||
readIndex = entry.target.dataset.index;
|
readIndex = entry.target.dataset.index
|
||||||
readPercent.value = parseInt(readIndex / paraCount * 100)
|
readPercent.value = parseInt(readIndex / paraCount * 100)
|
||||||
if (lastPercent == 0) {
|
if (lastPercent == 0) {
|
||||||
lastPercent = readPercent.value
|
lastPercent = readPercent.value
|
||||||
@ -89,8 +92,13 @@ onMounted(async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
isObserver.disconnect();
|
if(isObserver) isObserver.disconnect();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
async function switchWorkWithIndex(target) {
|
||||||
|
workReadState.loadWork(workReadState.id,workReadState.chapters[target].chapterId);
|
||||||
|
router.replace(`/work/${workReadState.id}/${workReadState.cid}`)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -108,14 +116,20 @@ onBeforeUnmount(() => {
|
|||||||
</template>
|
</template>
|
||||||
<a @click="$router.back()">返回</a>
|
<a @click="$router.back()">返回</a>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="workReadState.state == 'errformat'">
|
||||||
|
<h2>路径格式错误</h2>
|
||||||
|
ID: {{ $route.params.id }}<br/>
|
||||||
|
<template v-if="$route.params.id">
|
||||||
|
CID: {{ $route.params.id }}
|
||||||
|
</template><br/>
|
||||||
|
<a @click="$router.back()">返回</a>
|
||||||
|
</template>
|
||||||
<template v-if="workReadState.state == 'ready'">
|
<template v-if="workReadState.state == 'ready'">
|
||||||
<article>
|
<article>
|
||||||
<h1 style="margin: auto">{{ workReadState.title }}</h1>
|
<h1 style="margin: auto">{{ workReadState.title }}</h1>
|
||||||
<h4>{{ workReadState.pesud }}</h4>
|
<h4>{{ workReadState.pesud }}</h4>
|
||||||
<mdui-card style="margin: 8px; padding: 0px;"><mdui-collapse acc>
|
<mdui-card style="margin: 8px; padding: 16px;">
|
||||||
<mdui-collapse-item value="info"><mdui-list-item class="infoblockhead" slot="header">
|
<strong>作品信息</strong><dl>
|
||||||
作品信息
|
|
||||||
</mdui-list-item><div class="infoblock"><dl>
|
|
||||||
<template v-if="workReadState.category"><dt>分类</dt><ul>
|
<template v-if="workReadState.category"><dt>分类</dt><ul>
|
||||||
<li v-for="item in workReadState.category" :key="item">
|
<li v-for="item in workReadState.category" :key="item">
|
||||||
{{ categoryName[item] }}</li>
|
{{ categoryName[item] }}</li>
|
||||||
@ -127,10 +141,8 @@ onBeforeUnmount(() => {
|
|||||||
<dt>语言</dt><dd>
|
<dt>语言</dt><dd>
|
||||||
{{ workReadState.lang }}
|
{{ workReadState.lang }}
|
||||||
</dd>
|
</dd>
|
||||||
</dl></div></mdui-collapse-item>
|
</dl><Hr/>
|
||||||
<mdui-collapse-item value="stats"><mdui-list-item class="infoblockhead" slot="header">
|
<strong>作品状态</strong><dl>
|
||||||
作品状态
|
|
||||||
</mdui-list-item><div class="infoblock"><dl>
|
|
||||||
<dt>发布时间</dt><dd>
|
<dt>发布时间</dt><dd>
|
||||||
{{ workReadState.publishedTime.year }} -
|
{{ workReadState.publishedTime.year }} -
|
||||||
{{ workReadState.publishedTime.month }} -
|
{{ workReadState.publishedTime.month }} -
|
||||||
@ -142,20 +154,44 @@ onBeforeUnmount(() => {
|
|||||||
<dt>点击</dt><dd>
|
<dt>点击</dt><dd>
|
||||||
{{ workReadState.hitCount }}
|
{{ workReadState.hitCount }}
|
||||||
</dd>
|
</dd>
|
||||||
</dl></div></mdui-collapse-item>
|
</dl>
|
||||||
</mdui-collapse></mdui-card>
|
</mdui-card>
|
||||||
<blockquote>
|
<template v-if="workReadState.chapters">
|
||||||
<p v-for="para in workReadState.summary" :key="para" v-html='para'></p>
|
<p>第 {{ workReadState.chapterIndex + 1 }} / {{ workReadState.chapters.length }} 章: {{ workReadState.chapters[workReadState.chapterIndex].title }}</p>
|
||||||
|
<mdui-button variant='filled' @click="chapterDialog.open = true">章节列表</mdui-button>
|
||||||
|
</template>
|
||||||
|
<blockquote v-if="workReadState.summary">
|
||||||
|
<p v-html='workReadState.summary'></p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<Hr />
|
<Hr />
|
||||||
<article ref='content'>
|
<article ref='content'>
|
||||||
<p v-for="(para, index) in workReadState.text" :key="para" :data-index="index">{{ para }}</p>
|
<p v-for="(para, index) in workReadState.text" :key="para" :data-index="index">{{ para }}</p>
|
||||||
</article>
|
</article>
|
||||||
</article>
|
</article>
|
||||||
|
<Hr/>
|
||||||
|
<p style="display: flex;" v-if="workReadState.chapters">
|
||||||
|
<mdui-button variant="filled" v-if="workReadState.chapterIndex != 0" @click="switchWorkWithIndex(workReadState.chapterIndex - 1)">上一章</mdui-button>
|
||||||
|
<span style="flex: 1;"/>
|
||||||
|
{{ workReadState.chapterIndex + 1 }} / {{ workReadState.chapters.length }}
|
||||||
|
<span style="flex: 1;"/>
|
||||||
|
<mdui-button variant="filled" v-if="workReadState.chapterIndex != workReadState.chapters.length - 1" @click="switchWorkWithIndex(workReadState.chapterIndex + 1)">下一章</mdui-button>
|
||||||
|
</p>
|
||||||
|
<div style="height: 64px" />
|
||||||
<mdui-fab class="mdui-fab" :extended="fabExtended">
|
<mdui-fab class="mdui-fab" :extended="fabExtended">
|
||||||
<mdui-icon-bookmark slot="icon"></mdui-icon-bookmark>
|
<mdui-icon-bookmark slot="icon"></mdui-icon-bookmark>
|
||||||
{{ readPercent }}%
|
{{ readPercent }}%
|
||||||
</mdui-fab>
|
</mdui-fab>
|
||||||
|
<mdui-dialog ref='chapterDialog' close-on-overlay-click>
|
||||||
|
<span slot="headline">章节列表</span>
|
||||||
|
<span slot="description">
|
||||||
|
共 {{ workReadState.chapters.length }} 个
|
||||||
|
<br/>
|
||||||
|
点击跳转
|
||||||
|
</span>
|
||||||
|
<mdui-list><mdui-list-item v-for="(chapter,index) in workReadState.chapters" :key="chapter.chapterId" @click="switchWorkWithIndex(index)">
|
||||||
|
{{index + 1}}. {{ chapter.title }}
|
||||||
|
</mdui-list-item></mdui-list>
|
||||||
|
</mdui-dialog>
|
||||||
</template>
|
</template>
|
||||||
<template #ssr>
|
<template #ssr>
|
||||||
<template v-if="workReadState.state == 'notfound' || workReadState.state == 'ssrnotfound'">
|
<template v-if="workReadState.state == 'notfound' || workReadState.state == 'ssrnotfound'">
|
||||||
@ -171,11 +207,11 @@ onBeforeUnmount(() => {
|
|||||||
<h2>{{ workReadState.title }}</h2>
|
<h2>{{ workReadState.title }}</h2>
|
||||||
<h4>{{ workReadState.pesud }}</h4>
|
<h4>{{ workReadState.pesud }}</h4>
|
||||||
<dl>
|
<dl>
|
||||||
<template v-if="workReadState.category"><dt>作品圈</dt><ul>
|
<template v-if="workReadState.category"><dt>分类</dt><ul>
|
||||||
<li v-for="item in workReadState.category" :key="item">
|
<li v-for="item in workReadState.category" :key="item">
|
||||||
{{ categoryName[item] }}</li>
|
{{ categoryName[item] }}</li>
|
||||||
</ul></template>
|
</ul></template>
|
||||||
<template v-if="workReadState.fandom"><dt>原著</dt><ul>
|
<template v-if="workReadState.fandom"><dt>作品圈</dt><ul>
|
||||||
<li v-for="item in workReadState.fandom" :key="item">
|
<li v-for="item in workReadState.fandom" :key="item">
|
||||||
{{ item }}</li>
|
{{ item }}</li>
|
||||||
</ul></template>
|
</ul></template>
|
||||||
@ -195,11 +231,11 @@ onBeforeUnmount(() => {
|
|||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<Hr />
|
<Hr />
|
||||||
<blockquote>
|
<template v-if="workReadState.summary"><blockquote>
|
||||||
<p v-for="para in workReadState.summary" :key="para" v-html='para'></p>
|
<p v-html='workReadState.summary'></p>
|
||||||
</blockquote>
|
</blockquote>
|
||||||
<Hr/>
|
<Hr /></template>
|
||||||
<article><p v-for="para in workReadState.text.slice(0, 10)" :key="para">{{ para }}</p></article>
|
<article><p v-for="para in workReadState.text.slice(0, 20)" :key="para">{{ para }}</p></article>
|
||||||
</template>
|
</template>
|
||||||
</template></ClientOnly>
|
</template></ClientOnly>
|
||||||
</template>
|
</template>
|
||||||
@ -212,12 +248,4 @@ onBeforeUnmount(() => {
|
|||||||
z-index: 1000; /* 确保悬浮按钮在其他内容上方 */
|
z-index: 1000; /* 确保悬浮按钮在其他内容上方 */
|
||||||
animation: slideInFromRight var(--mdui-motion-duration-medium2) var(--mdui-motion-easing-standard); /* 动画时长和缓动效果 */
|
animation: slideInFromRight var(--mdui-motion-duration-medium2) var(--mdui-motion-easing-standard); /* 动画时长和缓动效果 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.infoblock {
|
|
||||||
margin: 8px 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.infoblockhead {
|
|
||||||
background-color: rgb(var(--mdui-color-primary-container));
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user