ui-process-h5 0.1.4 → 0.1.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -0
- package/lib/Tab/index.d.ts +2 -0
- package/lib/Tab/src/tab.vue.d.ts +10 -0
- package/lib/index.common.js +246 -0
- package/lib/index.d.ts +8 -0
- package/lib/index.esm.js +1 -0
- package/lib/index.umd.js +264 -0
- package/lib/index.umd.min.js +2 -0
- package/lib/process/index.d.ts +2 -0
- package/lib/process/src/process.vue.d.ts +25 -0
- package/package.json +36 -14
- package/yarn-error.log +5809 -0
- package/src/index.ts +0 -23
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# ui-process-h5
|
|
2
|
+
|
|
3
|
+
## Project setup
|
|
4
|
+
```
|
|
5
|
+
yarn install
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
### Compiles and hot-reloads for development
|
|
9
|
+
```
|
|
10
|
+
yarn serve
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
### Compiles and minifies for production
|
|
14
|
+
```
|
|
15
|
+
yarn build
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
### Customize configuration
|
|
19
|
+
See [Configuration Reference](https://cli.vuejs.org/config/).
|
|
20
|
+
|
|
21
|
+
### packages
|
|
22
|
+
组件列表
|
|
23
|
+
|
|
24
|
+
### examples
|
|
25
|
+
组件示例
|
|
@@ -0,0 +1,246 @@
|
|
|
1
|
+
/******/ (function() { // webpackBootstrap
|
|
2
|
+
/******/ "use strict";
|
|
3
|
+
/******/ var __webpack_modules__ = ({
|
|
4
|
+
|
|
5
|
+
/***/ 744:
|
|
6
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
7
|
+
|
|
8
|
+
var __webpack_unused_export__;
|
|
9
|
+
|
|
10
|
+
__webpack_unused_export__ = ({ value: true });
|
|
11
|
+
// runtime helper for setting properties on components
|
|
12
|
+
// in a tree-shakable way
|
|
13
|
+
exports.Z = (sfc, props) => {
|
|
14
|
+
const target = sfc.__vccOpts || sfc;
|
|
15
|
+
for (const [key, val] of props) {
|
|
16
|
+
target[key] = val;
|
|
17
|
+
}
|
|
18
|
+
return target;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
/***/ })
|
|
23
|
+
|
|
24
|
+
/******/ });
|
|
25
|
+
/************************************************************************/
|
|
26
|
+
/******/ // The module cache
|
|
27
|
+
/******/ var __webpack_module_cache__ = {};
|
|
28
|
+
/******/
|
|
29
|
+
/******/ // The require function
|
|
30
|
+
/******/ function __webpack_require__(moduleId) {
|
|
31
|
+
/******/ // Check if module is in cache
|
|
32
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
33
|
+
/******/ if (cachedModule !== undefined) {
|
|
34
|
+
/******/ return cachedModule.exports;
|
|
35
|
+
/******/ }
|
|
36
|
+
/******/ // Create a new module (and put it into the cache)
|
|
37
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
38
|
+
/******/ // no module.id needed
|
|
39
|
+
/******/ // no module.loaded needed
|
|
40
|
+
/******/ exports: {}
|
|
41
|
+
/******/ };
|
|
42
|
+
/******/
|
|
43
|
+
/******/ // Execute the module function
|
|
44
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // Return the exports of the module
|
|
47
|
+
/******/ return module.exports;
|
|
48
|
+
/******/ }
|
|
49
|
+
/******/
|
|
50
|
+
/************************************************************************/
|
|
51
|
+
/******/ /* webpack/runtime/define property getters */
|
|
52
|
+
/******/ !function() {
|
|
53
|
+
/******/ // define getter functions for harmony exports
|
|
54
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
55
|
+
/******/ for(var key in definition) {
|
|
56
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
57
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
58
|
+
/******/ }
|
|
59
|
+
/******/ }
|
|
60
|
+
/******/ };
|
|
61
|
+
/******/ }();
|
|
62
|
+
/******/
|
|
63
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
64
|
+
/******/ !function() {
|
|
65
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
66
|
+
/******/ }();
|
|
67
|
+
/******/
|
|
68
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
69
|
+
/******/ !function() {
|
|
70
|
+
/******/ // define __esModule on exports
|
|
71
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
72
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
73
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
74
|
+
/******/ }
|
|
75
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
76
|
+
/******/ };
|
|
77
|
+
/******/ }();
|
|
78
|
+
/******/
|
|
79
|
+
/******/ /* webpack/runtime/publicPath */
|
|
80
|
+
/******/ !function() {
|
|
81
|
+
/******/ __webpack_require__.p = "";
|
|
82
|
+
/******/ }();
|
|
83
|
+
/******/
|
|
84
|
+
/************************************************************************/
|
|
85
|
+
var __webpack_exports__ = {};
|
|
86
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
87
|
+
!function() {
|
|
88
|
+
// ESM COMPAT FLAG
|
|
89
|
+
__webpack_require__.r(__webpack_exports__);
|
|
90
|
+
|
|
91
|
+
// EXPORTS
|
|
92
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
93
|
+
"TopsProcess": function() { return /* reexport */ packages_process; },
|
|
94
|
+
"TopsTap": function() { return /* reexport */ Tab; },
|
|
95
|
+
"default": function() { return /* binding */ entry_lib; }
|
|
96
|
+
});
|
|
97
|
+
|
|
98
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
99
|
+
/* eslint-disable no-var */
|
|
100
|
+
// This file is imported into lib/wc client bundles.
|
|
101
|
+
|
|
102
|
+
if (typeof window !== 'undefined') {
|
|
103
|
+
var currentScript = window.document.currentScript
|
|
104
|
+
if (false) { var getCurrentScript; }
|
|
105
|
+
|
|
106
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
107
|
+
if (src) {
|
|
108
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
// Indicate to webpack that this file can be concatenated
|
|
113
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
114
|
+
|
|
115
|
+
;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
116
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
|
117
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=template&id=3eeea49c&ts=true
|
|
118
|
+
|
|
119
|
+
const _hoisted_1 = {
|
|
120
|
+
class: "process-warp"
|
|
121
|
+
};
|
|
122
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
123
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_1, (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.toDisplayString)(_ctx.host) + " ", 1);
|
|
124
|
+
}
|
|
125
|
+
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=3eeea49c&ts=true
|
|
126
|
+
|
|
127
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=script&lang=ts
|
|
128
|
+
|
|
129
|
+
/* harmony default export */ var processvue_type_script_lang_ts = ({
|
|
130
|
+
name: "tops-process",
|
|
131
|
+
props: {
|
|
132
|
+
processId: {
|
|
133
|
+
require: true,
|
|
134
|
+
default: "",
|
|
135
|
+
type: String
|
|
136
|
+
},
|
|
137
|
+
processDefId: {
|
|
138
|
+
require: true,
|
|
139
|
+
default: "",
|
|
140
|
+
type: String
|
|
141
|
+
},
|
|
142
|
+
taskId: {
|
|
143
|
+
require: true,
|
|
144
|
+
default: "",
|
|
145
|
+
type: String
|
|
146
|
+
}
|
|
147
|
+
},
|
|
148
|
+
setup(props) {
|
|
149
|
+
const processStatus = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)("");
|
|
150
|
+
const host = (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.ref)(({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_BASE_URL);
|
|
151
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.processId, (val, preVal) => {
|
|
152
|
+
if (val) {}
|
|
153
|
+
});
|
|
154
|
+
return processStatus.value, host.value;
|
|
155
|
+
},
|
|
156
|
+
methods: {
|
|
157
|
+
getColor(status) {
|
|
158
|
+
if (status == "审核中") return "#FFA52D";
|
|
159
|
+
if (status == "已驳回") return "#F14B4C";
|
|
160
|
+
if (status == "已撤销") return "#CECECE";
|
|
161
|
+
if (status == "已完成") return "#6DC743";
|
|
162
|
+
return "#1389FF";
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
});
|
|
166
|
+
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=script&lang=ts
|
|
167
|
+
|
|
168
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
169
|
+
var exportHelper = __webpack_require__(744);
|
|
170
|
+
;// CONCATENATED MODULE: ./packages/process/src/process.vue
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
;
|
|
176
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(processvue_type_script_lang_ts, [['render',render]])
|
|
177
|
+
|
|
178
|
+
/* harmony default export */ var process = (__exports__);
|
|
179
|
+
;// CONCATENATED MODULE: ./packages/process/index.ts
|
|
180
|
+
|
|
181
|
+
/* Process.install = (app: App): void => {
|
|
182
|
+
app.component(Process.name, Process);
|
|
183
|
+
}; */
|
|
184
|
+
/* harmony default export */ var packages_process = (process);
|
|
185
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/Tab/src/tab.vue?vue&type=template&id=188ebdfc&ts=true
|
|
186
|
+
|
|
187
|
+
const tabvue_type_template_id_188ebdfc_ts_true_hoisted_1 = {
|
|
188
|
+
class: "tops-tab"
|
|
189
|
+
};
|
|
190
|
+
function tabvue_type_template_id_188ebdfc_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
191
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", tabvue_type_template_id_188ebdfc_ts_true_hoisted_1, "tops-tab");
|
|
192
|
+
}
|
|
193
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue?vue&type=template&id=188ebdfc&ts=true
|
|
194
|
+
|
|
195
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/Tab/src/tab.vue?vue&type=script&lang=ts
|
|
196
|
+
/* harmony default export */ var tabvue_type_script_lang_ts = ({
|
|
197
|
+
name: "tops-tab",
|
|
198
|
+
props: {
|
|
199
|
+
tapList: {
|
|
200
|
+
type: Array,
|
|
201
|
+
default: () => []
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue?vue&type=script&lang=ts
|
|
206
|
+
|
|
207
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue
|
|
208
|
+
|
|
209
|
+
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
;
|
|
213
|
+
const tab_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tabvue_type_script_lang_ts, [['render',tabvue_type_template_id_188ebdfc_ts_true_render]])
|
|
214
|
+
|
|
215
|
+
/* harmony default export */ var tab = (tab_exports_);
|
|
216
|
+
;// CONCATENATED MODULE: ./packages/Tab/index.ts
|
|
217
|
+
|
|
218
|
+
/* Process.install = (app: App): void => {
|
|
219
|
+
app.component(Process.name, Process);
|
|
220
|
+
}; */
|
|
221
|
+
/* harmony default export */ var Tab = (tab);
|
|
222
|
+
;// CONCATENATED MODULE: ./packages/index.ts
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
// 所有组件列表
|
|
226
|
+
const components = [packages_process, Tab];
|
|
227
|
+
// 定义 install 方法
|
|
228
|
+
const install = app => {
|
|
229
|
+
// 遍历注册所有组件
|
|
230
|
+
components.map(component => app.component(component.name, component));
|
|
231
|
+
};
|
|
232
|
+
|
|
233
|
+
/* harmony default export */ var packages_0 = ({
|
|
234
|
+
install
|
|
235
|
+
});
|
|
236
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
/* harmony default export */ var entry_lib = (packages_0);
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
}();
|
|
243
|
+
module.exports = __webpack_exports__;
|
|
244
|
+
/******/ })()
|
|
245
|
+
;
|
|
246
|
+
//# sourceMappingURL=index.common.js.map
|
package/lib/index.d.ts
ADDED
package/lib/index.esm.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{ref as s,watch as r,openBlock as e,createElementBlock as t,createTextVNode as a,toDisplayString as n,createCommentVNode as o}from"vue";var c={name:"tops-process",props:{processId:{require:!0,default:"",type:String},processDefId:{require:!0,default:"",type:String},taskId:{require:!0,default:"",type:String}},setup(e){const t=s(""),a=s(process.env.VUE_APP_BASE_URL);return r((()=>e.processId),((s,r)=>{})),t.value,a.value},methods:{getColor:s=>"审核中"==s?"#FFA52D":"已驳回"==s?"#F14B4C":"已撤销"==s?"#CECECE":"已完成"==s?"#6DC743":"#1389FF"}};const p={class:"process-warp"};c.render=function(s,r,c,i,l,u){return e(),t("div",p,[a(n(s.host)+" ",1),o(' <div class="process-main" v-if="processStatus.status">\r\n <div class="process-ml-item border">\r\n <div class="process-mli-name">流程状态</div>\r\n <div class="process-mli-value">\r\n <div\r\n class="process-mliv-dd"\r\n :style="{ background: getColor(processStatus.status) }"\r\n v-if="\r\n processStatus.status || processStatus.bizStatusName\r\n "\r\n >\r\n {{\r\n processStatus.bizStatusName\r\n ? processStatus.bizStatusName\r\n : processStatus.status\r\n }}\r\n </div>\r\n </div>\r\n </div>\r\n <div class="process-ml-item border">\r\n <div class="process-mli-name">流程发起时间</div>\r\n <div class="process-mli-value">\r\n <span>{{ processStatus.createTime }}</span>\r\n </div>\r\n </div>\r\n\r\n <div\r\n class="process-ml-item"\r\n v-if="\r\n processStatus.allUserNames &&\r\n processStatus.allUserNames.length\r\n "\r\n >\r\n <div class="process-mli-name">审批节点</div>\r\n <div class="process-mli-value">\r\n <span class="process-mliv-jd">{{\r\n `${\r\n processStatus.taskState == 4\r\n ? processStatus.currUserName\r\n : processStatus.allUserNames.toString()\r\n }审批中`\r\n }}</span>\r\n </div>\r\n </div>\r\n </div> ')])},c.__file="packages/process/src/process.vue";var i={name:"tops-tab",props:{tapList:{type:Array,default:()=>[]}}};const l={class:"tops-tab"};i.render=function(s,r,a,n,o,c){return e(),t("div",l,"tops-tab")},i.__file="packages/Tab/src/tab.vue";const u=[c,i];var d={install:s=>{u.map((r=>s.component(r.name,r)))}};export{c as TopsProcess,i as TopsTap,d as default};
|
package/lib/index.umd.js
ADDED
|
@@ -0,0 +1,264 @@
|
|
|
1
|
+
(function webpackUniversalModuleDefinition(root, factory) {
|
|
2
|
+
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
|
+
module.exports = factory(require("vue"));
|
|
4
|
+
else if(typeof define === 'function' && define.amd)
|
|
5
|
+
define([], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["index"] = factory(require("vue"));
|
|
8
|
+
else
|
|
9
|
+
root["index"] = factory(root["Vue"]);
|
|
10
|
+
})((typeof self !== 'undefined' ? self : this), function(__WEBPACK_EXTERNAL_MODULE__203__) {
|
|
11
|
+
return /******/ (function() { // webpackBootstrap
|
|
12
|
+
/******/ "use strict";
|
|
13
|
+
/******/ var __webpack_modules__ = ({
|
|
14
|
+
|
|
15
|
+
/***/ 744:
|
|
16
|
+
/***/ (function(__unused_webpack_module, exports) {
|
|
17
|
+
|
|
18
|
+
var __webpack_unused_export__;
|
|
19
|
+
|
|
20
|
+
__webpack_unused_export__ = ({ value: true });
|
|
21
|
+
// runtime helper for setting properties on components
|
|
22
|
+
// in a tree-shakable way
|
|
23
|
+
exports.Z = (sfc, props) => {
|
|
24
|
+
const target = sfc.__vccOpts || sfc;
|
|
25
|
+
for (const [key, val] of props) {
|
|
26
|
+
target[key] = val;
|
|
27
|
+
}
|
|
28
|
+
return target;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
/***/ }),
|
|
33
|
+
|
|
34
|
+
/***/ 203:
|
|
35
|
+
/***/ (function(module) {
|
|
36
|
+
|
|
37
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__203__;
|
|
38
|
+
|
|
39
|
+
/***/ })
|
|
40
|
+
|
|
41
|
+
/******/ });
|
|
42
|
+
/************************************************************************/
|
|
43
|
+
/******/ // The module cache
|
|
44
|
+
/******/ var __webpack_module_cache__ = {};
|
|
45
|
+
/******/
|
|
46
|
+
/******/ // The require function
|
|
47
|
+
/******/ function __webpack_require__(moduleId) {
|
|
48
|
+
/******/ // Check if module is in cache
|
|
49
|
+
/******/ var cachedModule = __webpack_module_cache__[moduleId];
|
|
50
|
+
/******/ if (cachedModule !== undefined) {
|
|
51
|
+
/******/ return cachedModule.exports;
|
|
52
|
+
/******/ }
|
|
53
|
+
/******/ // Create a new module (and put it into the cache)
|
|
54
|
+
/******/ var module = __webpack_module_cache__[moduleId] = {
|
|
55
|
+
/******/ // no module.id needed
|
|
56
|
+
/******/ // no module.loaded needed
|
|
57
|
+
/******/ exports: {}
|
|
58
|
+
/******/ };
|
|
59
|
+
/******/
|
|
60
|
+
/******/ // Execute the module function
|
|
61
|
+
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
|
|
62
|
+
/******/
|
|
63
|
+
/******/ // Return the exports of the module
|
|
64
|
+
/******/ return module.exports;
|
|
65
|
+
/******/ }
|
|
66
|
+
/******/
|
|
67
|
+
/************************************************************************/
|
|
68
|
+
/******/ /* webpack/runtime/define property getters */
|
|
69
|
+
/******/ !function() {
|
|
70
|
+
/******/ // define getter functions for harmony exports
|
|
71
|
+
/******/ __webpack_require__.d = function(exports, definition) {
|
|
72
|
+
/******/ for(var key in definition) {
|
|
73
|
+
/******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
|
|
74
|
+
/******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
|
|
75
|
+
/******/ }
|
|
76
|
+
/******/ }
|
|
77
|
+
/******/ };
|
|
78
|
+
/******/ }();
|
|
79
|
+
/******/
|
|
80
|
+
/******/ /* webpack/runtime/hasOwnProperty shorthand */
|
|
81
|
+
/******/ !function() {
|
|
82
|
+
/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
|
|
83
|
+
/******/ }();
|
|
84
|
+
/******/
|
|
85
|
+
/******/ /* webpack/runtime/make namespace object */
|
|
86
|
+
/******/ !function() {
|
|
87
|
+
/******/ // define __esModule on exports
|
|
88
|
+
/******/ __webpack_require__.r = function(exports) {
|
|
89
|
+
/******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
|
|
90
|
+
/******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
91
|
+
/******/ }
|
|
92
|
+
/******/ Object.defineProperty(exports, '__esModule', { value: true });
|
|
93
|
+
/******/ };
|
|
94
|
+
/******/ }();
|
|
95
|
+
/******/
|
|
96
|
+
/******/ /* webpack/runtime/publicPath */
|
|
97
|
+
/******/ !function() {
|
|
98
|
+
/******/ __webpack_require__.p = "";
|
|
99
|
+
/******/ }();
|
|
100
|
+
/******/
|
|
101
|
+
/************************************************************************/
|
|
102
|
+
var __webpack_exports__ = {};
|
|
103
|
+
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
104
|
+
!function() {
|
|
105
|
+
// ESM COMPAT FLAG
|
|
106
|
+
__webpack_require__.r(__webpack_exports__);
|
|
107
|
+
|
|
108
|
+
// EXPORTS
|
|
109
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
110
|
+
"TopsProcess": function() { return /* reexport */ packages_process; },
|
|
111
|
+
"TopsTap": function() { return /* reexport */ Tab; },
|
|
112
|
+
"default": function() { return /* binding */ entry_lib; }
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/setPublicPath.js
|
|
116
|
+
/* eslint-disable no-var */
|
|
117
|
+
// This file is imported into lib/wc client bundles.
|
|
118
|
+
|
|
119
|
+
if (typeof window !== 'undefined') {
|
|
120
|
+
var currentScript = window.document.currentScript
|
|
121
|
+
if (false) { var getCurrentScript; }
|
|
122
|
+
|
|
123
|
+
var src = currentScript && currentScript.src.match(/(.+\/)[^/]+\.js(\?.*)?$/)
|
|
124
|
+
if (src) {
|
|
125
|
+
__webpack_require__.p = src[1] // eslint-disable-line
|
|
126
|
+
}
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
// Indicate to webpack that this file can be concatenated
|
|
130
|
+
/* harmony default export */ var setPublicPath = (null);
|
|
131
|
+
|
|
132
|
+
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
133
|
+
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(203);
|
|
134
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=template&id=3eeea49c&ts=true
|
|
135
|
+
|
|
136
|
+
const _hoisted_1 = {
|
|
137
|
+
class: "process-warp"
|
|
138
|
+
};
|
|
139
|
+
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
140
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_1, (0,external_commonjs_vue_commonjs2_vue_root_Vue_.toDisplayString)(_ctx.host) + " ", 1);
|
|
141
|
+
}
|
|
142
|
+
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=3eeea49c&ts=true
|
|
143
|
+
|
|
144
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/process/src/process.vue?vue&type=script&lang=ts
|
|
145
|
+
|
|
146
|
+
/* harmony default export */ var processvue_type_script_lang_ts = ({
|
|
147
|
+
name: "tops-process",
|
|
148
|
+
props: {
|
|
149
|
+
processId: {
|
|
150
|
+
require: true,
|
|
151
|
+
default: "",
|
|
152
|
+
type: String
|
|
153
|
+
},
|
|
154
|
+
processDefId: {
|
|
155
|
+
require: true,
|
|
156
|
+
default: "",
|
|
157
|
+
type: String
|
|
158
|
+
},
|
|
159
|
+
taskId: {
|
|
160
|
+
require: true,
|
|
161
|
+
default: "",
|
|
162
|
+
type: String
|
|
163
|
+
}
|
|
164
|
+
},
|
|
165
|
+
setup(props) {
|
|
166
|
+
const processStatus = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)("");
|
|
167
|
+
const host = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(({"NODE_ENV":"production","BASE_URL":"/"}).VUE_APP_BASE_URL);
|
|
168
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.processId, (val, preVal) => {
|
|
169
|
+
if (val) {}
|
|
170
|
+
});
|
|
171
|
+
return processStatus.value, host.value;
|
|
172
|
+
},
|
|
173
|
+
methods: {
|
|
174
|
+
getColor(status) {
|
|
175
|
+
if (status == "审核中") return "#FFA52D";
|
|
176
|
+
if (status == "已驳回") return "#F14B4C";
|
|
177
|
+
if (status == "已撤销") return "#CECECE";
|
|
178
|
+
if (status == "已完成") return "#6DC743";
|
|
179
|
+
return "#1389FF";
|
|
180
|
+
}
|
|
181
|
+
}
|
|
182
|
+
});
|
|
183
|
+
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=script&lang=ts
|
|
184
|
+
|
|
185
|
+
// EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
|
|
186
|
+
var exportHelper = __webpack_require__(744);
|
|
187
|
+
;// CONCATENATED MODULE: ./packages/process/src/process.vue
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
;
|
|
193
|
+
const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(processvue_type_script_lang_ts, [['render',render]])
|
|
194
|
+
|
|
195
|
+
/* harmony default export */ var process = (__exports__);
|
|
196
|
+
;// CONCATENATED MODULE: ./packages/process/index.ts
|
|
197
|
+
|
|
198
|
+
/* Process.install = (app: App): void => {
|
|
199
|
+
app.component(Process.name, Process);
|
|
200
|
+
}; */
|
|
201
|
+
/* harmony default export */ var packages_process = (process);
|
|
202
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/templateLoader.js??ruleSet[1].rules[4]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/Tab/src/tab.vue?vue&type=template&id=188ebdfc&ts=true
|
|
203
|
+
|
|
204
|
+
const tabvue_type_template_id_188ebdfc_ts_true_hoisted_1 = {
|
|
205
|
+
class: "tops-tab"
|
|
206
|
+
};
|
|
207
|
+
function tabvue_type_template_id_188ebdfc_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
208
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", tabvue_type_template_id_188ebdfc_ts_true_hoisted_1, "tops-tab");
|
|
209
|
+
}
|
|
210
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue?vue&type=template&id=188ebdfc&ts=true
|
|
211
|
+
|
|
212
|
+
;// CONCATENATED MODULE: ./node_modules/thread-loader/dist/cjs.js!./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-86.use[2]!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./packages/Tab/src/tab.vue?vue&type=script&lang=ts
|
|
213
|
+
/* harmony default export */ var tabvue_type_script_lang_ts = ({
|
|
214
|
+
name: "tops-tab",
|
|
215
|
+
props: {
|
|
216
|
+
tapList: {
|
|
217
|
+
type: Array,
|
|
218
|
+
default: () => []
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue?vue&type=script&lang=ts
|
|
223
|
+
|
|
224
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue
|
|
225
|
+
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
|
|
229
|
+
;
|
|
230
|
+
const tab_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tabvue_type_script_lang_ts, [['render',tabvue_type_template_id_188ebdfc_ts_true_render]])
|
|
231
|
+
|
|
232
|
+
/* harmony default export */ var tab = (tab_exports_);
|
|
233
|
+
;// CONCATENATED MODULE: ./packages/Tab/index.ts
|
|
234
|
+
|
|
235
|
+
/* Process.install = (app: App): void => {
|
|
236
|
+
app.component(Process.name, Process);
|
|
237
|
+
}; */
|
|
238
|
+
/* harmony default export */ var Tab = (tab);
|
|
239
|
+
;// CONCATENATED MODULE: ./packages/index.ts
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
// 所有组件列表
|
|
243
|
+
const components = [packages_process, Tab];
|
|
244
|
+
// 定义 install 方法
|
|
245
|
+
const install = app => {
|
|
246
|
+
// 遍历注册所有组件
|
|
247
|
+
components.map(component => app.component(component.name, component));
|
|
248
|
+
};
|
|
249
|
+
|
|
250
|
+
/* harmony default export */ var packages_0 = ({
|
|
251
|
+
install
|
|
252
|
+
});
|
|
253
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/cli-service/lib/commands/build/entry-lib.js
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
/* harmony default export */ var entry_lib = (packages_0);
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
}();
|
|
260
|
+
/******/ return __webpack_exports__;
|
|
261
|
+
/******/ })()
|
|
262
|
+
;
|
|
263
|
+
});
|
|
264
|
+
//# sourceMappingURL=index.umd.js.map
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
(function(e,t){"object"===typeof exports&&"object"===typeof module?module.exports=t(require("vue")):"function"===typeof define&&define.amd?define([],t):"object"===typeof exports?exports["index"]=t(require("vue")):e["index"]=t(e["Vue"])})("undefined"!==typeof self?self:this,(function(e){return function(){"use strict";var t={744:function(e,t){t.Z=(e,t)=>{const r=e.__vccOpts||e;for(const[n,o]of t)r[n]=o;return r}},203:function(t){t.exports=e}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var u=r[e]={exports:{}};return t[e](u,u.exports,n),u.exports}!function(){n.d=function(e,t){for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){n.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){n.p=""}();var o={};return function(){if(n.r(o),n.d(o,{TopsProcess:function(){return a},TopsTap:function(){return b},default:function(){return E}}),"undefined"!==typeof window){var e=window.document.currentScript,t=e&&e.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);t&&(n.p=t[1])}var r=n(203);const u={class:"process-warp"};function c(e,t,n,o,c,s){return(0,r.openBlock)(),(0,r.createElementBlock)("div",u,(0,r.toDisplayString)(e.host)+" ",1)}var s={name:"tops-process",props:{processId:{require:!0,default:"",type:String},processDefId:{require:!0,default:"",type:String},taskId:{require:!0,default:"",type:String}},setup(e){const t=(0,r.ref)(""),n=(0,r.ref)({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_BASE_URL);return(0,r.watch)((()=>e.processId),((e,t)=>{})),t.value,n.value},methods:{getColor(e){return"审核中"==e?"#FFA52D":"已驳回"==e?"#F14B4C":"已撤销"==e?"#CECECE":"已完成"==e?"#6DC743":"#1389FF"}}},i=n(744);const p=(0,i.Z)(s,[["render",c]]);var f=p,a=f;const d={class:"tops-tab"};function l(e,t,n,o,u,c){return(0,r.openBlock)(),(0,r.createElementBlock)("div",d,"tops-tab")}var v={name:"tops-tab",props:{tapList:{type:Array,default:()=>[]}}};const y=(0,i.Z)(v,[["render",l]]);var m=y,b=m;const S=[a,b],x=e=>{S.map((t=>e.component(t.name,t)))};var g={install:x},E=g}(),o}()}));
|
|
2
|
+
//# sourceMappingURL=index.umd.min.js.map
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
name: string;
|
|
3
|
+
props: {
|
|
4
|
+
processId: {
|
|
5
|
+
require: boolean;
|
|
6
|
+
default: string;
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
};
|
|
9
|
+
processDefId: {
|
|
10
|
+
require: boolean;
|
|
11
|
+
default: string;
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
};
|
|
14
|
+
taskId: {
|
|
15
|
+
require: boolean;
|
|
16
|
+
default: string;
|
|
17
|
+
type: StringConstructor;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
20
|
+
setup(props: any): any;
|
|
21
|
+
methods: {
|
|
22
|
+
getColor(status: string): "#FFA52D" | "#F14B4C" | "#CECECE" | "#6DC743" | "#1389FF";
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
package/package.json
CHANGED
|
@@ -1,14 +1,36 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ui-process-h5",
|
|
3
|
-
"version": "0.1.
|
|
4
|
-
"private": false,
|
|
5
|
-
"
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
"
|
|
13
|
-
|
|
14
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "ui-process-h5",
|
|
3
|
+
"version": "0.1.10",
|
|
4
|
+
"private": false,
|
|
5
|
+
"description": "流程组件",
|
|
6
|
+
"main": "lib/index.min.js",
|
|
7
|
+
"module": "lib/index.esm.js",
|
|
8
|
+
"typings": "lib/index.d.ts",
|
|
9
|
+
"keyword": "vue3",
|
|
10
|
+
"scripts": {
|
|
11
|
+
"serve": "vue-cli-service serve",
|
|
12
|
+
"build": "yarn build:clean && yarn build:lib && yarn build:esm-bundle && rimraf lib/demo.html",
|
|
13
|
+
"build:clean": "rimraf lib",
|
|
14
|
+
"build:lib": "vue-cli-service build --target lib --name index --dest lib packages/index.ts",
|
|
15
|
+
"build:esm-bundle": "rollup --config ./build/rollup.config.js"
|
|
16
|
+
},
|
|
17
|
+
"dependencies": {
|
|
18
|
+
"bpmn-moddle": "^8.0.1",
|
|
19
|
+
"core-js": "^3.8.3",
|
|
20
|
+
"vue": "^3.2.13"
|
|
21
|
+
},
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@vue/cli-plugin-babel": "~5.0.0",
|
|
24
|
+
"@vue/cli-plugin-typescript": "~5.0.0",
|
|
25
|
+
"@vue/cli-service": "~5.0.0",
|
|
26
|
+
"sass": "^1.32.7",
|
|
27
|
+
"sass-loader": "^12.0.0",
|
|
28
|
+
"typescript": "~4.5.5",
|
|
29
|
+
"@rollup/plugin-node-resolve": "^13.0.5",
|
|
30
|
+
"@vue/compiler-sfc": "^3.0.0",
|
|
31
|
+
"rollup": "^2.58.0",
|
|
32
|
+
"rollup-plugin-terser": "^7.0.2",
|
|
33
|
+
"rollup-plugin-typescript2": "^0.30.0",
|
|
34
|
+
"rollup-plugin-vue": "^6.0.0"
|
|
35
|
+
}
|
|
36
|
+
}
|