@shuyun-ep-team/kylin-ui-plus
TypeScript icon, indicating that this package has built-in type declarations

0.3.7 • Public • Published

介绍:

kylin-ui-plus 是基于 kylin-ui react 组件库开发的通用和业务组件 plus 版。

在开始之前,推荐先学习 kylin-ui

接入步骤

1.安装

npm i @shuyun-ep-team/kylin-ui-plus@latest @shuyun-ep-team/kylin-ui@latest

2.示例

import React, { useState, useCallback } from "react";
import { ProEnterInputSelect, ConfigProvider } from "@shuyun-ep-team/kylin-ui-plus";

export default () => {
  const [value, setValue] = useState();
  const onChange = useCallback((v) => {
    setValue(v);
    console.log("onChange:", v);
  }, []);

  return (
    <ConfigProvider
      language="en-US"
      allLanguages={[
        {
          id: 1,
          language: "zh-CN",
          describer: "中文",
          isDefault: true,
        },
        {
          id: 2,
          language: "en-US",
          describer: "English",
          isDefault: false,
        },
      ]}
    >
      <ProEnterInputSelect style={{ width: 300 }} value={value} onChange={onChange} />
    </ConfigProvider>
  );
};

Package Sidebar

Install

npm i @shuyun-ep-team/kylin-ui-plus

Weekly Downloads

2

Version

0.3.7

License

none

Unpacked Size

5.3 MB

Total Files

385

Last publish

Collaborators

  • jialong.ye
  • yong.tao
  • wangxinzhuo
  • linweixian
  • markzhang
  • kezhongfa
  • yiranphp
  • bhxing