hs-elementui
TypeScript icon, indicating that this package has built-in type declarations

0.2.190 • Public • Published

hs-elementui

一、使用方式

  • 1、安装

    npm install hs-elementui@latest -registry=http://192.168.0.123:4873/
  • 2、在项目中的main.js文件中引入

    import HsElementui from 'hs-elementui';
    import 'hs-elementui/lib/hs-elementui.css';
    Vue.use(HsElementui);
  • 3、组件中使用-举例

    <hs-tabs
      tabType="divi"
      :tabs="tabs"
      :activeTab="0"
      @change="tabChange"
    ></hs-tabs>
    export default {
      data () {
        return {
          curTab: 'documentary',
          tabs: [
            {
              id: 'documentary',
              name: '跟单数据'
            },
            {
              id: 'booking',
              name: '订单数据'
            }
          ]
        }
      },
      methods: {
        tabChange: function (id) {
          this.curTab = id
        }
      }
    };

二、主要的API

参数 类型 说明 默认值
tabs Array tab数组
tabType String tab类型
curTab String 当前活动tab
tabChange Function tab切换事件

##npm库(http://192.168.0.177:4873/)

Package Sidebar

Install

npm i hs-elementui

Weekly Downloads

3

Version

0.2.190

License

none

Unpacked Size

8.65 MB

Total Files

323

Last publish

Collaborators

  • libertym