From 32d2e292be458cdbb25ca2ab9db42a04da30a496 Mon Sep 17 00:00:00 2001 From: Tevin <tingquanren@163.com> Date: Tue, 18 Mar 2025 10:25:32 +0800 Subject: [PATCH] 知识库规则文档调整 --- _cursor.ai/rules/type-surface.mdc | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/_cursor.ai/rules/type-surface.mdc b/_cursor.ai/rules/type-surface.mdc index be88d50..be5de5f 100644 --- a/_cursor.ai/rules/type-surface.mdc +++ b/_cursor.ai/rules/type-surface.mdc @@ -5,3 +5,39 @@ --- # 界面 + +## 界面空白模板 + +```html +/** +* pageName - 页面名称 +* @author 作者 +*/ + +<template> + <CPage> + <CNavBar title="页面名称" /> + <CContent class="page-name"> + <!-- 页面内容 --> + </CContent> + </CPage> +</template> + +<script> +import Taro from '@tarojs/taro'; +import {} from 'taro-ui-vue'; +import { PPageName } from '@pilots/pilotGroup/PPageName'; +import { CPage, CContent, CNavBar } from '@components/layout/h5Page'; +import './pageName.scss'; + +export default { + name: 'PageName', + components: {}, + ...new PPageName().createOptions(), +}; +</script> +``` + +说明: +- H5 界面需要 CPage、CContent、CNavBar 这三个排版组件作为页面的基础布局 +- 在小程序中则不需要,删除即可 \ No newline at end of file -- Gitblit v1.9.1