0.1.9 • Published 4 years ago

jiu-lib-test-01 v0.1.9

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

TitleWithEditor

本组件实现了可编辑的标题功能,适用于标题可编辑的场景。编辑时自动选中文字,编辑值为空自动恢复之前的值。

安装

使用npm:

$ npm i jiu-lib-test-01

How to Use

Import:

import { TitleWithEditor } from 'jiu-lib-test-01';

Render in your component:

    render() {
        const { title } = this.state
        return (
            <TitleWithEditor value={title} onChange={this.onTitleChange} />
        )
    }

API

value

显示在组件中的内容,类型为string

onChange(e)

组件内容改变时的回调函数,e为修改后的内容

0.1.8

4 years ago

0.1.9

4 years ago

0.1.7

5 years ago

0.1.6

5 years ago

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago