style: 调整测试页面和组件示例页面样式
This commit is contained in:
parent
4f78bcb77c
commit
ff2c25ff75
@ -10,7 +10,7 @@ const { replace } = useRouter()
|
|||||||
<img src="@/assets/imgs/404/404.png" width="500" />
|
<img src="@/assets/imgs/404/404.png" width="500" />
|
||||||
</template>
|
</template>
|
||||||
<template #footer>
|
<template #footer>
|
||||||
<n-button @click="replace('/')">返回首页</n-button>
|
<n-button color="#002d6f" @click="replace('/')">返回首页</n-button>
|
||||||
</template>
|
</template>
|
||||||
</n-result>
|
</n-result>
|
||||||
</div>
|
</div>
|
||||||
@ -19,6 +19,7 @@ const { replace } = useRouter()
|
|||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
.page-404 {
|
.page-404 {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
min-height: calc(100vh - 60px);
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div p24>
|
||||||
<div class="action-btns">
|
<div class="action-btns">
|
||||||
<n-button size="small" type="primary" @click="handleCreate">新建文章</n-button>
|
<n-button size="small" type="primary" @click="handleCreate">新建文章</n-button>
|
||||||
</div>
|
</div>
|
||||||
@ -11,7 +11,7 @@
|
|||||||
:columns="columns"
|
:columns="columns"
|
||||||
:pagination="pagination"
|
:pagination="pagination"
|
||||||
:row-key="(row) => row.id"
|
:row-key="(row) => row.id"
|
||||||
max-height="calc(100vh - 260px)"
|
max-height="calc(100vh - 250px)"
|
||||||
@update:checked-row-keys="handleCheck"
|
@update:checked-row-keys="handleCheck"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
<input v-model="post.title" type="text" placeholder="输入文章标题..." class="title" />
|
<input v-model="post.title" type="text" placeholder="输入文章标题..." class="title" />
|
||||||
<n-button type="primary" style="width: 80px" :loading="btnLoading" @click="handleSavePost">保存</n-button>
|
<n-button type="primary" style="width: 80px" :loading="btnLoading" @click="handleSavePost">保存</n-button>
|
||||||
</div>
|
</div>
|
||||||
<md-editor v-model="post.content" style="height: calc(100vh - 180px)" />
|
<md-editor v-model="post.content" style="height: calc(100vh - 140px)" />
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
|
@ -13,5 +13,7 @@ const handleDelete = function () {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<n-button @click="handleDelete">删除</n-button>
|
<div p24>
|
||||||
|
<n-button type="error" @click="handleDelete">删除</n-button>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -16,5 +16,7 @@ onDeactivated(() => {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<n-gradient-text gradient="linear-gradient(90deg, red 0%, green 50%, blue 100%)"> 注意查看提示语 </n-gradient-text>
|
<div p24>
|
||||||
|
<n-gradient-text gradient="linear-gradient(90deg, red 0%, green 50%, blue 100%)"> 注意查看提示语 </n-gradient-text>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -12,5 +12,7 @@ function handleLogin() {
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<n-button @click="handleLogin">点击登陆</n-button>
|
<div p24>
|
||||||
|
<n-button type="primary" @click="handleLogin">点击登陆</n-button>
|
||||||
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div>
|
<div p24>
|
||||||
<div class="content-box">
|
<div p20 bg="#fff">
|
||||||
<p text-12>测试12px</p>
|
<p text-12>测试12px</p>
|
||||||
<p text-13>测试13px</p>
|
<p text-13>测试13px</p>
|
||||||
<p text-14>测试14px</p>
|
<p text-14>测试14px</p>
|
||||||
@ -13,11 +13,3 @@
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
|
||||||
.content-box {
|
|
||||||
background-color: #fff;
|
|
||||||
border-radius: 15px;
|
|
||||||
padding: 20px;
|
|
||||||
}
|
|
||||||
</style>
|
|
||||||
|
Loading…
Reference in New Issue
Block a user