open-index/open-npm huggingface dataset:
npm package: @fishx/request
Description: Restful client for fishx
Latest version: 1.0.3

# @fishx/request

## Installation

```sh
yarn add @fishx/request
```

## Usage

```jsx
import React from 'react'
import { getAxiosInstance } from '@fishx/request'

const newRest = {
  baseURL: BASE_URL,
  timeout: 10000,
  interceptor: {
    requestInterceptor: {
      request: handleReqDefault,
      requestError: handleReqErrorDefault,
    },
    responseInterceptor: {
      response: handleResDefault,
      responseError: handleResErrDefault,
    },
  },
};

const axiosIns = getAxiosInstance(newRest);

export defulat Todos
```
npm package: @fishx/rest
Description: Restful client for fishx
Latest version: 3.0.0

# @fishx/rest

## Installation

```sh
yarn add @fishx/rest
```

## Usage

```jsx
import React from 'react'
import { useFetch } from '@fishx/rest'

const Todos = () => {
  const { loading, data, error } = useFetch(
    'https://jsonplaceholder.typicode.com/todos',
  )

  if (loading) return <span>loading...</span>
  if (error) return <span>error!</span>

  return (
    <ul>
      {data.map(item => (
        <li key={item.id}>{item.title}</li>
      ))}
    </ul>
  )
}
export defulat Todos
```
npm package: @fishx/sort-select
Description: 可排序的选择框展示
Latest version: 1.0.0

# 排序选择框

@fishx/sort-select

可排序的选择框展示


## API

### SortSelect

| 参数 | 说明   | 类型        | 默认值 |
| ---- | ---- | ---------------| -------|
| choosenList | 数据源 | Array | []     |
| unChooseList | 数据源 | Array | []     |
| selectResultCallback | 回调方法 | {(selectList, unselectList) => {}} |      |

### 选择项数据结构

```ts
interface SelectItem {
    privId: string,
    privName: string,
    url: string,
    iconBase64: string,
}
```

| 参数                 | 说明                                                                             | 类型    | 默认值   |
| -------------------- | ------------------------------------------------------------------------------  | ------- | -------- |
| privId               | 选择项id                                                                         | string  |          |
| privName             | 名称                                                                             | string  |          |
| url                  | 点击跳转链接                                                                       | string  |          |
| iconBase64           | base64的图片                                                                       | string  |          |