0.1.5 • Published 1 year ago

iui-vue-p v0.1.5

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

iui-vue 文档说明

安装

npm install iui-vue-p -S

快速上手

//注册全部组建
// 全部引入
import IUI from "iui-vue-p"
import 'iui-vue-p/styles';
app.use(IUI)

默认颜色说明

属性说明类型默认值
状态色#27E14FString成功
状态色#F1F326String信息
状态色#FFA00DString提醒
状态色#FF5520String失败

默认主题说明

属性说明类型默认值
主题色#0D9DFFString主题色
线条色#EBEEF5String线条色
标题色#909399String文字标题浅色
内容色#606266String文字内容深色
背景色#FAFAFAString背景色
默认背景色#FFFFFFString默认背景色
表单一级颜色#F7FBFFString一级颜色
一级表单字体#627FA4String一级字体颜色

重置样式代码说美国

:root {  
  /* 状态色 */  
  --success-color-iui: #27E14F;  /*成功*/
  --info-color-iui: #F1F326;    /*信息*/
  --warning-color-iui: #FFA00D;    /*提醒*/
  --error-color-iui: #FF5520;    /*失败*/
  
  /* 默认主题色 */  
  --theme-color-iui: #0D9DFF;    /* 主题色 */
  --line-color-iui: #EBEEF5;    /* 线条色 */
  --title-color-iui: #909399;    /* 标题色 */
  --content-color-iui: #606266;    /* 内容色 */
  --bg-color-iui: #FAFAFA; /*背景色*/
  --default-bg-color-iui: #fff; /*默认背景色*/
  --table-bg-color-parent:#F7FBFF; /* 表格 顶层页面的颜色*/
  --table-font-color-parent:#627FA4;/* 表格 顶层页面的字体颜色*/

  --font-size-iui: 14px; /* 字体大小 */
  --font-size-iui-key: 16px; /* 字体大小 */
  --font-size-family: 'OPlusSans3-Medium'; /* 字体 */
  --font-weight-iui: 500; /* 字体粗细 */

弹窗组件

 组件名称 <IuiVueDialog></IuiVueDialog>
属性说明类型可选值默认值
visible是否显示弹窗Booleantrue/falsefalse
title自定义标题String--
closable是否显示关闭按钮Booleantrue/falsetrue
size区分弹窗内容区域的大小Stringlarge/medium/small/minilarge
customClass自定义类名String--
content中间内容填充Array[][]
-------textObject{type:'text';data:String;}单独文字弹窗
-------textareaObject{type:'textarea'; title:String; data:Array<{title:String; value:String; required:Boolean; placeholder:String; }>}文字加输入框
-------textObject{type:'table';data:Array<{lable:String; value:String; col:Number; disabled:Boolean; meta:Array; data:[]}>;}单独文字弹窗
:---::---::---::---::---:
okFun绑定确认按钮函数Function--
noFun绑定取消/关闭按钮函数Function--
<IuiVueDialog 
  :title="vis.title" 
  :customClass="vis.customClass"  
  :closable="vis.closable" 
  :content="vis.content" 
  :size="vis.size" 
  :type="vis.type" 
  :visible="vis.visible" 
  :okFun="() => { vis.visible = false }" 
  :noFun="() => { vis.visible = false }">

  <!-- 自定义内容 -->
  <template v-slot:content>
    我是自定义的内容 在这里哦
  </template>
  <template v-slot:footer>
    我是自定义的内容 在这里哦
  </template>
  <!-- 自定义内容 -->

</IuiVueDialog>

单独文字文本内容

alt text

{
  type: 'text',
  data: "我是内容:密评专家 我是自己配置的", // type为text的数据
},

文字加输入框 / 禁用输入框

alt text

{
      type: 'textarea',
      title: '我是textarea的标题',
      data: [
        {
          title: '标题',
          required: true,
          value: '',
          placeholder: '请输入内容'
        },
        {
          title: '标题',
          required: false,
          value: '',
          placeholder: '请输入内容',
          disabled: true,
        }
      ]
    },

表格输入框

alt text

{
      type: 'table',
      data: [
        {
          lable: '标题文字',
          col: 3, // 几列 自定义数据存放几列
          placeholder: '请输入内容',
          disabled: true,
          meta: ['title', 'value'],
          data: [
            {
              title: '标题0',
              value: '标题0',
            },
            {
              title: '标题1',
              value: '标题1',
            }
          ]
        },
        {
          lable: '标题文字2',
          col: 1, // 几列 自定义数据存放几列
          placeholder: '请输入内容',
          disabled: true,
          meta: ['title', 'value'],
          data: [{
            title: '标题0',
            value: '标题0',
          },
          {
            title: '标题1',
            value: '标题1',
          }
          ]
        }
      ]
    }

间距组件

组件名称 <IuiVueElSpace></IuiVueElSpace>
属性说明类型可选值默认值
size间隔大小string / number / [number, number]small
direction间隔大小string / number / [number, number]small
<IuiVueElSpace>
  <IuiVueElSpace :size="'large'" direction="vertical">
    <IuiVueButton>大间距</IuiVueButton>
    <IuiVueButton>大间距</IuiVueButton>
  </IuiVueElSpace>
  <IuiVueElSpace :size="'default'" direction="vertical">
    <IuiVueButton>Default</IuiVueButton>
    <IuiVueButton>Default</IuiVueButton>
  </IuiVueElSpace>
  <IuiVueElSpace :size="'small'" direction="vertical">
    <IuiVueButton>小间距</IuiVueButton>
    <IuiVueButton>小间距</IuiVueButton>
  </IuiVueElSpace>
</IuiVueElSpace>

Alert组件

组件名称 <IuiVueElAlert ></IuiVueElAlert >
属性说明类型可选值默认值
title标题string
type类型success/warning/info/errorinfo
close-text自定义关闭按钮文本string
<IuiVueEllAlert title="Success alert" type="success"></IuiVueEllAlert>
<IuiVueEllAlert title="Customized close text" type="info" close-text="Gotcha"></IuiVueEllAlert>

import IuiVueElMessage from "iui-vue-p/components/iui-vue-EIMessage"
IuiVueElMessage.info({ plain: true, message: '1', })
IuiVueElMessage.success({ plain: true, message: '2' })
IuiVueElMessage.warning({ message: '4', showClose: true, })
IuiVueElMessage.error({ plain: true, message: '3' })
IuiVueElMessage.error({ plain: true, message: '3' })

alt text alt text

按钮组件

组件名称 <IuiVueButton></IuiVueButton>
属性说明类型可选值默认值
size大小选择stringlarge/default/samll
types类型primary-蓝/default-默认/danger-红色default
disabled禁用booleanfalse/truefalse
<IuiVueButton types="primary">Primary</IuiVueButton> 主按钮 - 纯色
<IuiVueButton type="default" plain>Success</IuiVueButton>成功 - 线框
<IuiVueButton types="danger" round>Danger</IuiVueButton>错误 - 圆角

alt text

表单组件

组件名称 <IuiVueFromCell></IuiVueFromCell>
属性说明类型可选值默认值
type一级页面/二级页面显示的单元格stringparent/childparent
content数据Array[][]
const vis2: any = reactive({
  type: 'parent',// parent 一级页面  child 二级页面显示的单元格
  content: [
    {
      type: 'transverse_from', //横向的列表
      col: 1, // 几列 自定义数据存放几列
      placeholder: '请输入内容',
      disabled: true,
      meta: ['title', 'value'], //data数据渲染字段
      data: [
        {
          title: '标题0',
          value: '',
        }
      ]
    },
    {
      type: 'transverse_from', //横向的列表
      col: 3, // 几列 自定义数据存放几列
      placeholder: '请输入内容',
      disabled: true,
      meta: ['title', 'value'],
      data: [
        {
          title: '标题0',
          value: '',
        }
      ]
    },
    {
      type: 'direction_from', //横向的列表
      column: [{
        prop: 'date',
        label: 'Date数据'
      }],
      data: [{
        date: '2016-05-03',
        name: 'Tom',
        address: 'No. 189, Grove St, Los Angeles',
      }]
    },
    {
      type: 'textarea_from',
      meta: ['label', 'value'],
      data: [
        {
          label: '文本域',
          value: '我是内容'
        },
        {
          label: '短内容',
          value: '我是内容 也可以是html'
        }
      ]
    },
    {
      type: 'textarea_edit_from',
      meta: ['label', 'value'],
      data: [
        {
          label: '富文本内容',
          value: `富文本内容,<div class="xben-container"> <img src="https://element-plus.org/images/sponsors/CRMEB-l.png"/> <img src="https://element-plus.org/images/sponsors/CRMEB-l.png"/> <img src="https://element-plus.org/images/sponsors/CRMEB-l.png"/> </div>`
        },
        {
          label: '短内容',
          value: '我是内容 也可以是html'
        }
      ]
    }
  ]
})
 同一方案下带文件的多条记录表单样式 组件:<IuiVueElTable></IuiVueElTable>
 <IuiVueElTable :show-header="false" :data="tableData" :span-method="objectSpanMethod" border
      style="width: 100%; margin-top: 20px">
      <IuiVueElTableColumn prop="id" label="ID" width="180" />
      <!-- solt 需要传入 :slotName="['default']" -->
      <IuiVueElTableColumn label="Name" :slotName="['default']">
        <template #default="scope">
          <div>
            2024-01-17 15:54:08
            <a href="">实施方案.pdf</a>
            <IuiVueElTag style="float:right;" round effect="plain">查看整改反馈</IuiVueElTag>
          </div>
        </template>
      </IuiVueElTableColumn>
    </IuiVueElTable>
组件名称 <IuiVueTextarea></IuiVueTextarea>
属性说明类型可选值默认值
label标题boolanfalse/truefalse
disabled禁用boolanfalse/truefalse
  <IuiVueTextarea :data="vis3.data"> </IuiVueTextarea>
  const vis3: any = reactive({
    data: [{
      label: '标题',
      disabled: false,
      placeholder: '请输入内容',
      value: ''
    }, {
      label: '标题',
      disabled: false,
      placeholder: '请输入内容',
      value: ''
    }, {
      label: '标题',
      disabled: true,
      placeholder: '请输入内容',
      value: ''
    },]
  })

alt text alt text alt text alt text

0.1.5

1 year ago

0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.99

1 year ago

0.0.97

1 year ago

0.0.96

1 year ago

0.0.95

1 year ago

0.0.94

1 year ago

0.0.93

1 year ago

0.0.92

1 year ago

0.0.91

1 year ago

0.0.90

1 year ago

0.0.89

1 year ago

0.0.87

1 year ago

0.0.86

1 year ago

0.0.85

1 year ago

0.0.84

1 year ago

0.0.83

1 year ago

0.0.82

1 year ago

0.0.81

1 year ago

0.0.80

1 year ago

0.0.79

1 year ago

0.0.78

1 year ago

0.0.75

1 year ago

0.0.74

1 year ago

0.0.73

1 year ago

0.0.71

1 year ago

0.0.70

1 year ago

0.0.69

1 year ago

0.0.68

1 year ago

0.0.67

1 year ago

0.0.66

1 year ago

0.0.65

1 year ago

0.0.64

1 year ago

0.0.63

1 year ago

0.0.62

1 year ago

0.0.61

1 year ago

0.0.60

1 year ago

0.0.59

1 year ago

0.0.57

1 year ago

0.0.56

1 year ago

0.0.55

1 year ago

0.0.54

1 year ago

0.0.53

1 year ago

0.0.52

1 year ago

0.0.51

1 year ago

0.0.6

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago