@redchili/search-bar
TypeScript icon, indicating that this package has built-in type declarations

1.0.7-alpha.0 • Public • Published

@redchili/search-bar

搜索条(基于 ant-design、uform)

NPM JavaScript Style Guide

Install

npm install --save @redchili/search-bar

// or

yarn add @redchili/search-bar (推荐使用)

Usage

import React from 'react'

import MyComponent from '@redchili/search-bar'

export default function Example()  {
  const schema = {
  type: "object",
  properties: {
    name: {
      type: "radio",
      enum: ["1", "2", "3", "4"],
      title: "name"
    }
  }
};
const onSearch = (v) => {
  console.log(
    "%c搜索关键词",
    "background: #69c0ff; color: white; padding: 4px",
    v
  );
};
  return <SearchBar schema={schema} onCaptureForm={onSearch} />;
}

License

MIT © xiamu14

Readme

Keywords

none

Package Sidebar

Install

npm i @redchili/search-bar

Weekly Downloads

0

Version

1.0.7-alpha.0

License

MIT

Unpacked Size

47.5 kB

Total Files

9

Last publish

Collaborators

  • redchili