UNPKG

esign-disable-prompt

Version:

向对方拉入黑名单,不可用发起、填写、签署、审批等提示弹框

87 lines (58 loc) 1.65 kB
# esign-disable-prompt > 基于Vue黑名单禁用时的弹框组件 ## Build Setup ``` bash # install dependencies npm install esign-disable-prompt # serve with hot reload at localhost:8080 npm run dev # build for production with minification npm run build ``` ### 使用方法 全局引用 import esignDisablePrompt form esign-disable-prompt Vue.use(esignDisablePrompt) 按需引用 import { esignDisablePrompt } form esign-disable-prompt Vue.component(esignDisablePrompt.name,esignDisablePrompt) :::tip esignDisablePrompt 为组件名称,具体名称可以从下方组件列表寻找 ::: ## 1、说明 适用pc端 向组件传入一个请求方法 后续逻辑在组件中处理 Http为工程封装的请求对象 请求参数 processId 为当前流程id ### 基础用法 ```html <esign-disable-prompt :init="init" :afterClose="init" /> <script> export default { data() { return { }; }, methods: { init(){ return Http({ url: '', method: 'GET', body: {processId:''}, }) } } }; </script> ``` ### Attributes | 参数 | 说明 | 类型 | 是否必传 | 可选值 | 默认值 | |---------- |-------- |----------|---------- |------------ |-------- | | init | 请求函数 | Function | 是 | - | - | | afterClose| 弹框关闭的回调 | Function | 否 | - | - | :::tip ::: For detailed explanation on how things work, consult the [docs for vue-loader](http://vuejs.github.io/vue-loader).