1.1.0 • Published 3 years ago

@jdplus/pui v1.1.0

Weekly downloads
86
License
ISC
Repository
-
Last release
3 years ago

name: PUI介绍 route: /

weight: 1

介绍

PUI是由京东plus前端团队开发的一款移动端UI组件库,其中包含了众多的组件

快速上手

在命令行中下载pui组件库,输入如下命令

npm install --save @jdplus/pui 然后等待下载完成就可以在项目中愉快的使用组件啦~

更细日志

Bug Fixes

  • no: 修复了slider张红提出的几个小bug并且发布了新版 (e04d4e4)
  • 配置提交类型 (3105b00)

Features

  • no: slider组件新增三个touch回调函数 (e0af184)
  • 增加提交表情包 (7349469)
  • 增加提交配置 (78902b2)

PUI拖拽工具json配置

组件属性 API 介绍

属性说明
name组件名称
container组件是否为容器可以进行拖拽
children组件是否有子元素
category组件分类
img组件缩略图
style拖拽后的组件样式
sort_style容器组件拖拽后的容器样式
***组件自身属性props

组件自身属性可根据组件的props加入到配置中

组件属性配置项API,用于拖拽工具中属性面板的显示

属性说明类型默认值是否必选
type属性类型Input | Select | Boolean | InputNumber-
value属性值String | Boolean | Number | String[]-
pname属性名称String-

Demo

    [
        {
            "name": {
                "type": "Input",
                "value": "PuiRow",
                "pname": "PuiRow"
            },
            "align": {
                "type": "Select",
                "value": ["space-between", "space-around", "top", "middle", "bottom"],
                "pname": "align"
            },
            "justify": {
                "type": "Select",
                "value": ["start", "center", "end"],
                "pname": "justify"
            },
            "container": {
                "type": "Boolean",
                "value": true,
                "pname": "是否为容器"
            },
            "children": {
                "value": []
            },
            "img": {
                "value": "https://img11.360buyimg.com/imagetools/jfs/t1/161531/1/7100/5074/602f6748E119cb3aa/6f3dff9782455915.png"
            },
            "category": {
                "value": "basic"
            },
            "style": {
                "value": {
                    "width": "100%",
                    "minHeight": "60px",
                    "border": "2px solid #f0f0f0",
                    "background": "#ffffff",
                    "marginBottom": "10px"
                }
            },
            "sort_style": {
                "value": {
                    "width": "100%",
                    "minHeight": "60px"
                }
            }
        }
        //...其它组件配置项
    ]
1.1.0

3 years ago

1.0.15

3 years ago

1.0.14

3 years ago

1.0.11

3 years ago

1.0.13

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.10

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago

0.0.1

4 years ago