cr-inputchange

1.1.3 • Public • Published

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

name type description
title string 文本框初始文本数据
post function 数据修改后回掉函数
titleStyle React.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.

Readme

Keywords

none

Package Sidebar

Install

npm i cr-inputchange

Weekly Downloads

0

Version

1.1.3

License

MIT

Unpacked Size

50.5 kB

Total Files

12

Last publish

Collaborators

  • fea-sin