1.1.3 • Published 4 years ago

cr-inputchange v1.1.3

Weekly downloads
-
License
MIT
Repository
-
Last release
4 years ago

cr-comp

react component

Usage

import React from 'react';
import InputChange from 'cr-inputchange';
import 'cr-inputchange/assets/index.css';

const doPost = (val) => {
  console.log('数据保存', val)
}
function ChangeText() {
  return (
    <InputChange
      title='传入文本'
      post={doPost}
      titleStyle={{fontSize: 20}}
    />
  )
}

API

nametypedescription
titlestring文本框初始文本数据
postfunction数据修改后回掉函数
titleStyleReact.CSSProperties文本样式

Development

git clone https://github.com/Fea-Sin/cr-inputChange.git
npm install
npm start

Example

http://localhost:8018/examples/testOne.html

Test

npm test

npm run coverage

License

cr-inputChange is released under the MIT license.

1.1.3

4 years ago

1.1.2

4 years ago

1.1.1

4 years ago

1.1.0

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago