# Class: TextCard

## TextCard(content)

TextCard 纯文本卡片

## Constructor

#### new TextCard(content)

##### Parameters:

Name | Type | Description
--- | --- | ---
`content` | string | 文本内容

Source:
  - card/TextCard.js, line 26

### Extends

- BaseCard

### Methods

#### addCueWords(arr) → {BaseCard}

添加用户操作提示。所有卡片都可以添加引导提升

##### Parameters:

Name | Type | Description
--- | --- | ---
`arr` | Array | 提示的话术

Inherited From:
  - BaseCard#addCueWords
Source:
  - card/BaseCard.js, line 81

##### Returns:

返回自己

Type
  BaseCard

##### Example

    this.addCueWords(['十元', '二十元']);

#### getData(key) → {mixed}

获取卡片数据，或者某个字段的值 Example: this.getData(); this.getData('fieldName');

##### Parameters:

Name | Type | Description
--- | --- | ---
`key` | string | 字段名，可选。如果不提供字段名，返回整个卡片数据

Inherited From:
  - BaseCard#getData
Source:
  - card/BaseCard.js, line 124

##### Returns:

Type
  mixed

#### setAnchor(url, anchorText) → {BaseCard}

设置"查看更多" ，设置卡片锚点

##### Parameters:

Name | Type | Description
--- | --- | ---
`url` | string | 链接地址
`anchorText` | string | 锚点展现的文字，可选。如果不设置，默认为"查看更多"

Inherited From:
  - BaseCard#setAnchor
Source:
  - card/BaseCard.js, line 102

##### Returns:

返回自己

Type
  BaseCard