Skip to content

Commit

Permalink
fix: card 文档修改
Browse files Browse the repository at this point in the history
  • Loading branch information
Drjingfubo committed Sep 27, 2022
1 parent c9e0c1f commit 13a2556
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 7 deletions.
1 change: 0 additions & 1 deletion src/packages/__VUE/avatar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ export default create({
const activeAvatar = (event: MouseEvent) => {
emit('active-avatar', event);
console.log(event);
};
const onError = (event: MouseEvent) => {
Expand Down
8 changes: 7 additions & 1 deletion src/packages/__VUE/card/doc.en-US.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ app.use(Card).use(Tag).use(Price);

```
:::
### Prop
### Props

| Attribute | Description | Type | Default |
|---------|--------------------------------------------|---------|-----------|
Expand All @@ -157,6 +157,12 @@ app.use(Card).use(Tag).use(Price);
| shop-name | shop-name | String | - |
| is-need-price | Whether price display is required| Boolean | true |

### Events

| Event | Description | Arguments |
|----------|----------|----------|
| click | click event | event: MouseEvent |


### Slots

Expand Down
7 changes: 6 additions & 1 deletion src/packages/__VUE/card/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ app.use(Card).use(Tag).use(Price);

```
:::
### Prop
### Props

| 字段 | 说明 | 类型 | 默认值 |
|---------|--------------------------------------------|---------|-----------|
Expand All @@ -157,6 +157,11 @@ app.use(Card).use(Tag).use(Price);
| shop-name | 店铺名称| String | - |
| is-need-price | 是否需要价格展示| Boolean | true |

### Events

| 事件名称 | 说明 | 回调参数 |
|----------|----------|----------|
| click | 点击事件 | event: MouseEvent |

### Slots

Expand Down
2 changes: 0 additions & 2 deletions src/packages/__VUE/card/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ export default create({
},
setup(props, { emit, slots }) {
// console.log(slots['origin']);
const isHaveSlot = (slot: string) => {
return slots[slot];
};
Expand Down
1 change: 0 additions & 1 deletion src/packages/__VUE/tag/index.taro.vue
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,6 @@ export default create({
};
const onClick = (event: MouseEvent) => {
event.stopPropagation();
emit('click', event);
};
Expand Down
1 change: 0 additions & 1 deletion src/packages/__VUE/tag/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ export default create({
};
const onClick = (event: MouseEvent) => {
event.stopPropagation();
emit('click', event);
};
Expand Down

0 comments on commit 13a2556

Please sign in to comment.