zbase-components

1.0.19 • Public • Published

zbase-components

vue常用组件库

Installation

npm i zbase-components

Usage

// 在vue项目入口文件main.js中引入
import ZbaseComponents from 'zbase-components'
import "zbase-components/lib/style/index.css";
import Vue from 'vue'

Vue.use(ZbaseComponents)

multi-window

vue多窗口

在显示多窗口的页面

<template>
  <div>
    <button @click="open">打开新窗口</button>
    <button @click="close">关闭窗口</button>
    <ZbaseMultiWindowBox />
  </div>
</template>


<script>
export default {
  data () {
    return {
    }
  },
  methods: {
    open () {
      // 打开新窗口
      this.$multiWindow.open('https://www.github.com/zbase2020')
    },
    close () {
      // 关闭窗口-默认关闭当前打开窗口
      this.$multiWindow.close()
      // 关闭指定窗口
      // this.$multiWindow.close('https://www.github.com/zbase2020')
    }
  }
}
</script>

Package Sidebar

Install

npm i zbase-components

Weekly Downloads

1

Version

1.0.19

License

ISC

Unpacked Size

2.21 MB

Total Files

16

Last publish

Collaborators

  • zbase2020