npm package: @flyriselink/pai-ui
Description: pai-ui is components for flyriselink.
Author: flyriselink
Latest version: 2.5.5

# pai-ui

> pai-ui 是 flyrise 的自定义 UI 组件，沉淀了多年业务开发的特色，如附件上传、树型、组织架构组件等。

## 使用指南&示例

[http://39.108.55.230:31080/pai-ui/](http://39.108.55.230:31080/pai-ui/)

## 更新日志（ChangeLog）

- ## 2.5.5

  - 部分基础组件 返回数据枚举映射
  - 国际化优化

- ## 2.5.3

  优化

  - 上报支持启用关闭
  - 上传组件样式；avatar 模式，默认宽高
  - 角色选择，去除多余

- ## 2.5.2

  优化

  - 人员组件优化

- ## 2.5.1

  优化

  - uploader 上传优化

- ## 2.5.0

  新增

  - org-select, post-select, role-select 多选时值模式，修复只读，清除图标；回显闪一下消失
  - editor 属性 autoHeight，只读时自适应高度

  优化

  - sn 流水号获取数据，支持检查并刷新流水号
  - tag-input 改变事件优化，最大数限制
  - uploader 支持只读属性

- ## 2.4.3

  优化

  - 部分组件的禁用效果

  ......

  ### 2.4.2

  fix code-view prop

  ### 2.4.1

  fix dict role-select

  ### 2.4.0

  add tag-input prop "valueMode"
  fix org-select、role-select、post-select、uploader、editor readonly
  fix dict、sn

  ### 2.3.0

  add sn prop "preview" "showInput" "readonly"

  ### 2.2.0

  add entId can be sourced from the system
  fix tag-input
  fix prop "size"

  ### 2.1.8

  fix post-select search

  ### 2.1.7

  fix dict match

  ### 2.1.6

  fix report log
  add dict prop "weak-match" and "data-filter"

  ### 2.1.5

  fix dict

  ### 2.1.4

  fix tree-async search customSelection attribute

  ### 2.1.3

  fix tree-async customSelection attribute

  ### 2.1.2

  fix org-select、post-select、role-select validate

  ### 2.1.1

  uploader adjust the style

  ### 2.1.0

  add version to distinguish services

  fix org-select checkBox value

  ### 2.0.0

  org-select/org-picker/org-picker-dialog/org-picker-popover/organization/post-select/icon-select/sn change the service

  fix org-select、post-select、role-select popover

  ### 1.13.2

  fix pdf preview

  ### 1.13.1

  fix the tips of code-view when cancel fullscreen mode.

  ### 1.13.0

  icon-select enable clearable prop

  uploader avatar prop "removeBtn" rename to "clearable"

  ### 1.12.0

  uploader add autoComplete and isLock prop

  ### 1.11.9

  fix image and avatar uploader fit none support

  ### 1.11.8

  fix org-select loading prop

  ### 1.11.6

  fix org-select loading prop

  ### 1.11.5

  tree-async add loading prop

  ### 1.11.4

  uploader add change-id

  ### 1.11.3

  fix editor about table th resize and value change with code-view

  ### 1.11.2

  org-select add showDept prop

  ### 1.11.1

  fix editor about code format

  ### 1.11.0

  change base component of role-select

  ### 1.10.7

  fix image about attachId change

  ### 1.10.6

  fix org-picker about trace tooltip

  ### 1.10.5

  fix tree-async defaultExpandLevel logic

  ### 1.10.4

  fix tree-async and org-select about gather mode

  ### 1.10.2

  change org-select valueMode

  ### 1.10.1

  fix tree-async auto expand logic

  add code beautify/minify for js

  ### 1.10.0

  post-select enable show group

  ### 1.9.19

  fix tree-async and org-select logic

  ### 1.9.18

  update tree-async node api

  ### 1.9.16

  fix org-select wrong cache

  ### 1.9.15

  fix tree-async appendChildNode

  fix org-select reload

  ### 1.9.14

  fix org-select style

  add org-select prop type

  ### 1.9.13

  fix tree-async、org-select restore logic

  ### 1.9.12

  fix tree-async raw logic

  add org-select parser for group type

  ### 1.9.11

  tree-async update style

  ### 1.9.10

  org-select enable nodeFilter、customSelection

  tree-async update style

  ### 1.9.9

  fix org-select group search and tree-async search slot

  ### 1.9.8

  tree-async add node api

  ### 1.9.7

  tree-async add slot and custom selection

  org-select add group support

  ### 1.9.6

  fix bug for org-select and tree-async about value restore

  ### 1.9.5

  fix bug about editor(fullscreen lost)

  ### 1.9.4

  fix bug about oss request

  ### 1.9.3

  fix bug for org-select and tree-async

  ### 1.9.2

  fix bug for preview private file

  ### 1.9.1

  fix bug for private oss and rar type

  add pdf preview

  ### 1.8.5

  fix editor fullscreen bugs

  ### 1.8.2

  icon-select support icon font

  ### 1.8.1

  fix style (org-select)

  ### 1.8.0

  add post-select
  add role-select
  deprecate organization
  deprecate org-picker

  ### 1.7.19

  tree-async value change fix

  ### 1.7.18

  bug fix for safari

  ### 1.7.17

  tree-async style fix

  ### 1.7.14

  org-select enhance

  ### 1.7.13

  org-picker-dialog

  ### 1.7.12

  org-picker update filter

  ### 1.7.11

  org-picker fix

  ### 1.7.10

  update org-picker

  ### 1.7.9

  org-picker add ry async search and bug fix

  ### 1.7.8

  fix sass encoding

  ### 1.7.6

  fix org-select value restore

  ### 1.7.5

  fix org-picker-popover

  ### 1.7.4

  fix org-select

  ### 1.7.3

  update editor.

  ### 1.6.6

  org-picker fix.

  ### 1.6.0

  update org-select to async version

  ### 1.5.5

  fix org-picker used in el-dialog

  ### 1.5.4

  bug fix

  ### 1.5.3

  bug fix

  ### 1.5.2

  update org-picker

  ### 1.4.5

  fix editor about strike and checkbox

  ### 1.4.4

  fix org-picker-popover about disabled

  ### 1.4.2

  update webpack 5
  sn more params
  bug fix

  ### 1.3.14

  icon-select upgrade style

  ### 1.3.13

  tree-select filter fix

  ### 1.3.12

  tree-select model fix

  ### 1.3.10

  org-picker bugs fix

  ### 1.3.9

  org-picker add source value

  ### 1.3.6

  uploader bugs fix

  ### 1.3.4

  add data-attach-id for uploader

  ### 1.3.3

  fix empty img of icon-select

  ### 1.3.2

  fix uploader disabled support

  ### 1.3.1

  fix upload osstoken missing
  org-picker add role tab

  ### 1.2.39

  以下的版本被意外的 npm deprecate，不影响安装。

  ### 1.2.38

  fix ossToken get

  ### 1.2.37

  fix response data parse

  ### 1.2.36

  fix transformResponse if logic

  ### 1.2.35

  fix icon-select when attach change to empty

  ### 1.2.34

  avoid inner error make parent container error

  bug fix

  ### 1.2.33

  fix code-view readonly prop not work

  ### 1.2.32

  echarts mount on window when install chart

  ### 1.2.31

  uploader picture/picture-card mode, fix upload button visibility.

  ### 1.2.30

  uploader picture\* mode, notify is missing.

  ### 1.2.29

  fix icon-select restore

  ### 1.2.28

  fix icon-select lazy load

  ### 1.2.27

  fix widget emiter off

  ### 1.2.26

  add widget emiter

  ### 1.2.25

  fix image lazy load

  ### 1.2.24

  fix directive for html node

  ### 1.2.23

  add directive for password

  ### 1.2.22

  fix icon-select oss wrong remove record

  ### 1.2.21

  fix icon-select lazy load

  fix image for relative path

  ### 1.2.20

  fix vue version error

  ### 1.2.19

  fix about onTokenExpires

  ### 1.2.18

  new version:

  [npm install @flyriselink/pai-ui](https://www.npmjs.com/package/@flyriselink/pai-ui)

  ### 1.2.17

  previous version:

  [npm install paiui](https://www.npmjs.com/package/paiui)

  image oss lazy load enhance

  icon-select update

  ### 1.2.16

  image oss lazy load fix

  ### 1.2.15

  image blob convert to base64

  ### 1.2.14

  image enable oss lazy load

  ### 1.2.13

  icon-select bug fix

  export icon-select component

  make icon-select image faster

  ### 1.2.10

  icon-select back to current selection and style fix

  ### 1.2.9

  icon-select style update

  ### 1.2.8

  icon-select title update

  ### 1.2.7

  icon-select logic update

  ### 1.2.6

  icon-select bug fix

  ### 1.2.5

  update icon-select

  ### 1.2.4

  upgrade icon-select

  ### 1.2.3

  rename svg-select to icon-select and upgrade that can upload image

  ### 1.2.2

  uploader(single) limit tips fix

  ### 1.2.1

  uploader add on-preview event

  ### 1.2.0

  add svg-select

  ### 1.1.174

  oss bug fix
  package config fix

  ### 1.1.173

  org-select upgrade

  ### 1.1.172

  change theme usage

  ### 1.1.171

  change theme usage

  ### 1.1.170

  fix code-view crashed

  ### 1.1.169

  fix image when fit=none

  fix editor watch menus change (disable watch menus)

  ### 1.1.168

  tag-input/org-select support dark theme

  fix uploader about value watch disabled after delete some files

  ### 1.1.166

  code-view enable line-wrapping

  ### 1.1.165

  fix editor for ssr

  ### 1.1.164

  fix validator about required msg

  ### 1.1.163

  fix editor ol ul style and format logic

  ### 1.1.162

  fix single uploader attachId missing

  ### 1.1.161

  uploader add empty file slot

  ### 1.1.160

  tag-input add default trim logic

  fix editor placeholder offset

  ### 1.1.159

  enable oss params with image and editor

  ### 1.1.158

  fix org-select when not in el-form

  ### 1.1.157

  code view add groovy mode

  add token expires callback when install

  ### 1.1.156

  fix uploader size exceed tips

  fix image responseType

  ### 1.1.155

  dynamic to get token and ossToken

  ### 1.1.154

  fix org-select when value is empty str

  ### 1.1.153

  fix org-select about check immediate

  ### 1.1.152

  add chart options interceptor

  fix api transformResponse

  ### 1.1.151

  fix something about api creator

  ### 1.1.150

  fix uploader request data type

  ### 1.1.149

  update dict cache logic

  ApiCreator add pathReplaceMap api

  ### 1.1.148

  fix editor when fullscreen switch to coding mode without format

  fix validator about length

  enable dict cache and readonly slot ang fix some bugs

  ### 1.1.147

  cover wangeditor@4.6.16 about usage of !important with h1~h5 and p

  remove 5s fix timeout about apiCreator

  ### 1.1.146

  fix bug about dict

  ### 1.1.145

  update doc and fix bug about org-select

  ### 1.1.144

  update org-select

  ### 1.1.143

  bug fix about editor

  ### 1.1.142

  upgrade code-view support append to body and editor fullscreen append to body

  ### 1.1.141

  bug fix about org-select

  ### 1.1.140

  org-select support el-form validate

  ### 1.1.139

  add org-select base on vue-treeselect

  ### 1.1.138

  fix height when editor is readonly

  ### 1.1.137

  editor add clean tool and enable readonly

  ### 1.1.136

  upgrade code-view & add editor component

  ### 1.1.135

  fix editor for ssr

  ### 1.1.134

  fix uploader complete request data way

  ### 1.1.133

  update uploader support svg
  fix uploader mime type

  ### 1.1.132

  fix oss complete put data type

  use readonly instead readOnly

  update doc and upgrade code-view

  ### 1.1.131

  creator bug fix

  ### 1.1.130

  bug fix

  ### 1.1.129

  api creator enable custom headers when request

  ### 1.1.128

  api creator enable custom headers config

  ### 1.1.127

  export {validator}

  ### 1.1.126

  fix uploader avatar size error

  ### 1.1.125

  fix dict change value

  ### 1.1.124

  fix dict init value and light theme

  ### 1.1.123

  fix api creator wrong data convert

  ### 1.1.122

  add copy prototype and add code-view mode clike(java) and sql

  ### 1.1.121

  fix pie chart when size is small and enable to hide percent display

  ### 1.1.120

  fix api creator about baseURL

  ### 1.1.119

  fix code-view & image-viewer

  ### 1.1.118

  light theme and code-view fix and date format fix

  ### 1.1.117

  fix validator required false

  ### 1.1.116

  upgrade tag-input & add dict component

  ### 1.1.115

  fix code-view theme default value

  ### 1.1.114

  fix dialog enable before-close

  ### 1.1.113

  fix code-view theme

  ### 1.1.112

  code-view enable theme setting

  ### 1.1.111

  fix uploader model bind

  ### 1.1.110

  code-view enable yaml & fix about dialog close on modal

  ### 1.1.109(depleted)

  ### 1.1.108

  enable uploader drag

  ### 1.1.107

  fix about dialog show-button

  ### 1.1.106

  fix about dialog slot v-slot and slot

  ### 1.1.105

  fix about dialog slot support v-slot and slot

  ### 1.1.104

  fix about dialog ref and slot bug

  ### 1.1.103

  fix code-view ssr

  ### 1.1.102

  replace md5 lib & update doc menu

  ### 1.1.101

  enable code view edit code and on-change event

  ### 1.1.100

  upgrade code view component scroll bar color

  ### 1.1.99

  upgrade code view component scroll bar

  ### 1.1.98

  add code view component copy btn

  ### 1.1.97

  add dialog component

  ### 1.1.96

  add code view component & fix avatar uploader & upgrade uploader

  ### 1.1.95

  upgrade uploader about type/size/style and bug fix

  ### 1.1.94

  upgrade uploader preview

  ### 1.1.93

  upgrade locale setting

  ### 1.1.92

  bug fixed

  ### 1.1.91

  bug fixed

  ### 1.1.90

  bug fixed

  ### 1.1.89

  enhance tag-input

  ### 1.1.88

  bug fixed & upgrade tag-input & add input directive

  ### 1.1.87

  bug fixed

  ### 1.1.86

  bug fixed

  ### 1.1.85

  bug fixed

  ### 1.1.84

  bug fixed & add p-int

  ### 1.1.83

  bug fixed

  ### 1.1.82

  新增组织架构选择器优化

  ### 1.1.81

  bug fixed

  ### 1.1.80

  新增组织架构选择器支持范围过滤(单选)

  ### 1.1.79

  bug fix

  ### 1.1.78

  新增组织架构选择器支持范围过滤

  ### 1.1.77

  新增组织架构选择器

  ### 1.1.76

  修复 token 获得 Promise or return Promise

  ### 1.1.75

  修复 token 获得

  ### 1.1.74

  修复 ossToken 的获得，支持返回 Promise

  ### 1.1.73

  修复 cacheKey 丢失

  ### 1.1.72

  更新接口构造器

  ### 1.1.71

  树组件增加 node-click 事件

  ### v1.1.70

  初始化、接口调用时支持 function 类型的 token

  ### v1.1.69

  图表 bar 增加支持 label-show 和 label-mode 设置
  uploader 支持 trigger slot

  ### v1.1.68

  修复上传组件清空 attachid 异常；
  修复单文件上传 limit 提示语异常；
  增加获取文件列表的方法。

  ### v1.1.67

  修复图表数据变化响应丢失

  ### v1.1.66

  修复表单校验的 max、min 规则

  ### v1.1.65

  增强附件组件功能：

  - 缓存清除
  - 两种获取上传状态

  ### v1.1.20

  - 新增树型、组织架构组件
  - 优化文档与 Demo

  ### V1.1.16

  - 新增附件上传组件

  ### V1.1.21

  - 新增图表控件
  - 新增埋点方法
  - 优化 Demo