1.1.9 • Published 2 years ago

communicationtool v1.1.9

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

communicationtools

vue2 npm unpkg

Example

<!-- main.js入口文件-->
import Tool from 'communicationtools';
Vue.use(Tool);
<!-- xxx.vue入口文件-->
<template>
    <Tool
		:toolType="toolType"
		:isFixed="isFixed"
		@fixedHandler="fixedHandler"
		:fnType="fnType"
		:signData="signData"
		:curTypeTool="curTypeTool">
    </Tool>
</template>

Project NPM Release

1.修改package.json 版本号
2.npm run lib
3.npm login
   username :***
   password :***
   Email : ***
4.npm publish

Project setup

1.npm install
2.npm run serve

Project Vue v-bind Options

AttributeDescriptionTypeOptionsDefault
drawerVisible插件的显示以及隐藏Booleanfalse
successSendHandler子传递给父得消息函数functionvalue (Object)
closedHandler子传递给父得关闭函数 用来初始化数据等function
curTypeTool外部唤起内部组件参数,输入 toolType 数据 type 字段Stringmessage:消息列表,relNoti:发布消息''
copyphone非该系统拨号盘电话显示String——''
signData标记类型,点、线、面的数据集String——''
fnType事件类型 1:事件类型、2:标记类型Number——1
toolType工具栏工具权限Array——{title: '消息',type: 'message'},{title: '人员', type: 'personnel'},{title: '机构', type: 'organ' },{title: '短信', type: 'sms'},{title: '拨号',type: 'dial'}
fixedHandler组件内部信息对外暴漏functionvalue (Object){type:'',info:{}}

Project API Defaults BaseURL

在引入项目中添加 axios.defaults.baseURL = res.data.baseUrl; Vue.prototype.staticFileUrl = res.data.staticFileUrl; Vue.prototype.activeMQUrl = res.data.activeMQUrl;

Project Element

由于该项目打包后不自带各种插件,所以需要在引入项目中添加。 例如:Element 需要添加组件。

Project directory

├─public
|   ├─domain.json                // 接口变量包含后台接口json,MQ,文件上传接口
├─app
|    ├─components                // 项目组件
│    ├─assets                    // 静态文件
│    │  ├─css                    // css
│    │  ├─js                     // js
│    │  └─images                 // 图片
│    └─plugins                   // 页面
│        ├─element.js            // element.js 插件
├─package.json                   // 项目描述及依赖
└─vue.config.js                  // vue和webpack配置
1.1.9

2 years ago

1.1.8

2 years ago

1.1.7

2 years ago

1.1.6

2 years ago

1.1.5

3 years ago

1.1.4

3 years ago

1.1.3

3 years ago

1.1.2

3 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago