WebApp【公共组件库】@前端(For Git Submodule)
Tevin
2025-03-18 dda26e1f5111bb9f875271bb4524714483dfe31b
知识库文档调整,删除旧文档
1 files added
1 files renamed
1 files modified
8 files deleted
1362 ■■■■■ changed files
_cursor.ai/101-工程介绍.md 299 ●●●●● patch | view | raw | blame | history
_cursor.ai/102-开发规范.md 370 ●●●●● patch | view | raw | blame | history
_cursor.ai/201-请求层基类Fetcher.md 324 ●●●●● patch | view | raw | blame | history
_cursor.ai/202-数据控制层基类Pilot.md 233 ●●●●● patch | view | raw | blame | history
_cursor.ai/301-公共表单组件.md 46 ●●●●● patch | view | raw | blame | history
_cursor.ai/common.doc/Tools.doc.md patch | view | raw | blame | history
_cursor.ai/prompts/更新公共组件的文档.prompts.md 16 ●●●●● patch | view | raw | blame | history
_cursor.ai/rules/type-component-child.mdc 7 ●●●●● patch | view | raw | blame | history
_cursor.ai/rules/type-component-pub.mdc 7 ●●●●● patch | view | raw | blame | history
_cursor.ai/rules/type-component.mdc 57 ●●●●● patch | view | raw | blame | history
_cursor.ai/文档说明.md 3 ●●●● 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`