_cursor.ai/101-工程介绍.md | ●●●●● patch | view | raw | blame | history | |
_cursor.ai/102-开发规范.md | ●●●●● patch | view | raw | blame | history | |
_cursor.ai/201-请求层基类Fetcher.md | ●●●●● patch | view | raw | blame | history | |
_cursor.ai/202-数据控制层基类Pilot.md | ●●●●● patch | view | raw | blame | history | |
_cursor.ai/301-公共表单组件.md | ●●●●● patch | view | raw | blame | history | |
_cursor.ai/common.doc/Tools.doc.md | patch | view | raw | blame | history | |
_cursor.ai/prompts/更新公共组件的文档.prompts.md | ●●●●● patch | view | raw | blame | history | |
_cursor.ai/rules/type-component-child.mdc | ●●●●● patch | view | raw | blame | history | |
_cursor.ai/rules/type-component-pub.mdc | ●●●●● patch | view | raw | blame | history | |
_cursor.ai/rules/type-component.mdc | ●●●●● patch | view | raw | blame | history | |
_cursor.ai/文档说明.md | ●●●●● patch | view | raw | blame | history |
_cursor.ai/101-工程介绍.md
File was deleted _cursor.ai/102-开发规范.md
File was deleted _cursor.ai/201-请求层基类Fetcher.md
File was deleted _cursor.ai/202-数据控制层基类Pilot.md
File was deleted _cursor.ai/301-公共表单组件.md
File was deleted _cursor.ai/common.doc/Tools.doc.md
_cursor.ai/prompts/更新公共组件的文档.prompts.md
File was deleted _cursor.ai/rules/type-component-child.mdc
File was deleted _cursor.ai/rules/type-component-pub.mdc
File was deleted _cursor.ai/rules/type-component.mdc
New file @@ -0,0 +1,57 @@ --- description: globs: src/pages/**/**/cmpt/*.vue,src/components/**/**/*.vue alwaysApply: false --- # 界面子组件&公共组件 界面子组件与公共组件,就是一个普通 Vue 组件 ## 子组件空白模板 ```html /** * CExample - 示范组件 * @author Tevin */ <template> <view class="c-example"> <!-- 组件内容 --> <AtButton type="primary" size="small" :onClick="evt => handleOpen()" >示例按钮</AtButton> </view> </template> <script> import Taro from '@tarojs/taro'; import { AtButton } from 'taro-ui-vue'; import './cExample.scss'; export default { name: 'CExample', components: { AtButton, }, props: { onOpened: Function, }, data() { return { }; }, computed: { }, methods: { handleOpen() { this.onOpened(); } }, mounted() {}, }; </script> ``` _cursor.ai/文档说明.md
@@ -19,8 +19,7 @@ - [请求集](/src/components/_cursor.ai/rules/type-fetchers.mdc) - [数据控制器](/src/components/_cursor.ai/rules/type-pilot.mdc) - [界面](/src/components/_cursor.ai/rules/type-surface.mdc) - [子组件](/src/components/_cursor.ai/rules/type-component-child.mdc) - [公共组件](/src/components/_cursor.ai/rules/type-component-pub.mdc) - [子组件&公共组件](/src/components/_cursor.ai/rules/type-component.mdc) ### 规则类型:自主决定 `Agent-Requested`