2.0.1 • Published 11 months ago

ibps-pending v2.0.1

Weekly downloads
-
License
LC
Repository
-
Last release
11 months ago

ibps-penging

一款基于Vue框架和Element-UI组件库开发的待办中心栏目和待办消息

ibps-penging有两种组件:

  • 待办中心栏目(ibps-penging-column)
  • 待办消息(ibps-penging-message)

install 安装

    npm install ibps-penging --save

use 使用

在main.js中写入下面的代码

    import Vue from 'vue'
    import IbpsPenging from 'ibps-penging'
    Vue.use(IbpsPenging)

接下来,你就可以在页面中使用IbpsPenging

<template>
     <ibps-pending-message
    :url="pendingUrl"
    :headers="pendingHeaders"
    :more-url="pendingMoreUrl"
    />
    <p/>
    <ibps-pending-column
    :url="pendingUrl"
    :headers="pendingHeaders"
    :more-url="pendingMoreUrl"
    :height="430"
    />

</template>
<script>
    export default {
        data () {
            return {
               //api地址
                pendingUrl:"http://192.168.3.230:42000/ibps",
                      //api地址请求头,主要设置token
                 pendingHeaders:{
                    'X-Authorization-access_token':'e3ae39424a44438d9458c69aeb631cb5'
                 }, 
                //点击更多跳转的地址
                 pendingMoreUrl:"http://localhost:9528/#/"
            }
        }
    }
</script>

如果页面直接引用 【推荐该方案】

<template>
    <ibps-pending-message
    :url="pendingUrl"
    :headers="pendingHeaders"
    :more-url="pendingMoreUrl"
    />
    <p/>
    <ibps-pending-column
    :url="pendingUrl"
    :headers="pendingHeaders"
    :more-url="pendingMoreUrl"
    :height="430"
    />
</template>
<script>
import { IbpsPendingColumn } from 'ibps-pending'
import { IbpsPendingMessage } from 'ibps-pending'
    export default {
      components: {
        IbpsPendingColumn,
        IbpsPendingMessage
      },
        data () {
            return {
               //api地址
                pendingUrl:"http://192.168.3.230:42000/ibps",
                      //api地址请求头,主要设置token
                 pendingHeaders:{
                    'X-Authorization-access_token':'e3ae39424a44438d9458c69aeb631cb5'
                 }, 
                //点击更多跳转的地址
                 pendingMoreUrl:"http://localhost:9528/#/"
            }
        }
    }
</script>

ibps-pending-column 配置说明:

属性 Attributes

属性说明 类型 默认值
urlapi地址String-
headersapi地址请求头,主要设置tokenObject-
more-url点击更多和栏目的跳转地址String-
height栏目的高度Number400
limit栏目的显示条数Number20

ibps-pending-message 配置说明:

属性 Attributes

属性说明 类型 默认值
urlapi地址String-
headersapi地址请求头,主要设置tokenObject-
more-url点击更多和栏目的跳转地址String-
limit栏目的显示条数Number3

插槽 Slots

name说明
icon图标插槽String-
2.0.1

11 months ago

1.1.9

1 year ago

1.1.8

1 year ago

1.1.7

1 year ago

1.1.6

1 year ago

1.1.5

1 year ago

1.1.4

1 year ago

1.1.3

1 year ago

1.1.2

1 year ago

1.1.1

1 year ago

1.1.0

1 year ago

1.0.8

1 year ago

1.0.7

1 year ago

1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago