1.0.8 • Published 2 years ago

topic-textarea v1.0.8

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

本组件为可随意插入话题的输入框,话题使用#包裹,如:#话题#

暂时不可直接更改输入框的 padding 等影响输入框整体宽度的属性

-- maxLen 为输入框最大可以输入的字符数 -- onInputTopic 为输入的话题 -- topicList

import TextArea from 'topic-textarea';
<Textarea
  maxLen={1000}
  onInputTopic={(e) => console.log(11, e)}
  topicList={['11', '22']}
  onClickTopicItem={(e) => console.log(222, e)}
  renderTopicItem={({ value, index }) => <div>xxxx{value}</div>}
  onChange={(e) => console.log(e)}
/>;
1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago