搜索结果列表页面开发
This commit is contained in:
29
src/components/Demo/README.md
Normal file
29
src/components/Demo/README.md
Normal file
@@ -0,0 +1,29 @@
|
||||
# Demo
|
||||
|
||||
### 说明
|
||||
- xxxxxx(描述组件,并提供基础demo.建议demo使用最常见的用法即可)
|
||||
|
||||
``` html
|
||||
<Demo xxxx />
|
||||
```
|
||||
|
||||
### Props
|
||||
|
||||
| 参数 | 说明 | 类型 | 可选值 | 默认值 |
|
||||
|-----------|------------------------|----------------------------|----------|-----------|
|
||||
| id | 实体key | string | - | - |
|
||||
|
||||
|
||||
### Emits
|
||||
|
||||
| 方法 | 说明 | 返回值 |
|
||||
|-----------------|------------------------------------|---------------------|
|
||||
| onDelete | 删除 | id |
|
||||
|
||||
|
||||
### Slots
|
||||
|
||||
| 名称 | 说明 |
|
||||
|---------------------|---------------------------------------------|
|
||||
| default | 中间显示区域 |
|
||||
|
||||
21
src/components/Demo/index.vue
Normal file
21
src/components/Demo/index.vue
Normal file
@@ -0,0 +1,21 @@
|
||||
<template>
|
||||
<div class="g-demo">
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
interface IProps {
|
||||
// 声明props内容
|
||||
}
|
||||
defineProps<IProps>();
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
@import 'devui-theme/styles-var/devui-var.scss';
|
||||
|
||||
.g-demo {
|
||||
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user