ui-process-h5 0.1.9 → 0.1.12
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 +6 -0
- package/lib/Tab/index.d.ts +2 -0
- package/lib/Tab/src/tab.vue.d.ts +10 -0
- package/lib/index.common.js +85 -6
- package/lib/index.d.ts +3 -2
- package/lib/index.esm.js +1 -1
- package/lib/index.umd.js +85 -6
- package/lib/index.umd.min.js +1 -1
- package/lib/process/src/process.vue.d.ts +24 -0
- package/package.json +2 -1
package/README.md
CHANGED
package/lib/index.common.js
CHANGED
|
@@ -90,7 +90,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
90
90
|
|
|
91
91
|
// EXPORTS
|
|
92
92
|
__webpack_require__.d(__webpack_exports__, {
|
|
93
|
-
"
|
|
93
|
+
"TopsProcess": function() { return /* reexport */ packages_process; },
|
|
94
|
+
"TopsTap": function() { return /* reexport */ Tab; },
|
|
94
95
|
"default": function() { return /* binding */ entry_lib; }
|
|
95
96
|
});
|
|
96
97
|
|
|
@@ -113,19 +114,59 @@ if (typeof window !== 'undefined') {
|
|
|
113
114
|
|
|
114
115
|
;// CONCATENATED MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
115
116
|
var external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject = require("vue");
|
|
116
|
-
;// 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=
|
|
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=2cd1004b&ts=true
|
|
117
118
|
|
|
118
119
|
const _hoisted_1 = {
|
|
119
120
|
class: "process-warp"
|
|
120
121
|
};
|
|
121
122
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
122
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.createElementBlock)("div", _hoisted_1, "
|
|
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)($setup.host) + " ", 1);
|
|
123
124
|
}
|
|
124
|
-
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=
|
|
125
|
+
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=2cd1004b&ts=true
|
|
125
126
|
|
|
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
|
+
|
|
127
129
|
/* harmony default export */ var processvue_type_script_lang_ts = ({
|
|
128
|
-
name:
|
|
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 || "123333");
|
|
151
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_namespaceObject.watch)(() => props.processId, (val, preVal) => {
|
|
152
|
+
if (val) {
|
|
153
|
+
/* axios.get. */
|
|
154
|
+
}
|
|
155
|
+
});
|
|
156
|
+
return {
|
|
157
|
+
processStatus,
|
|
158
|
+
host
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
methods: {
|
|
162
|
+
getColor(status) {
|
|
163
|
+
if (status == "审核中") return "#FFA52D";
|
|
164
|
+
if (status == "已驳回") return "#F14B4C";
|
|
165
|
+
if (status == "已撤销") return "#CECECE";
|
|
166
|
+
if (status == "已完成") return "#6DC743";
|
|
167
|
+
return "#1389FF";
|
|
168
|
+
}
|
|
169
|
+
}
|
|
129
170
|
});
|
|
130
171
|
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=script&lang=ts
|
|
131
172
|
|
|
@@ -146,10 +187,48 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(processvue_type
|
|
|
146
187
|
app.component(Process.name, Process);
|
|
147
188
|
}; */
|
|
148
189
|
/* harmony default export */ var packages_process = (process);
|
|
190
|
+
;// 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
|
|
191
|
+
|
|
192
|
+
const tabvue_type_template_id_188ebdfc_ts_true_hoisted_1 = {
|
|
193
|
+
class: "tops-tab"
|
|
194
|
+
};
|
|
195
|
+
function tabvue_type_template_id_188ebdfc_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
196
|
+
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");
|
|
197
|
+
}
|
|
198
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue?vue&type=template&id=188ebdfc&ts=true
|
|
199
|
+
|
|
200
|
+
;// 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
|
|
201
|
+
/* harmony default export */ var tabvue_type_script_lang_ts = ({
|
|
202
|
+
name: "tops-tab",
|
|
203
|
+
props: {
|
|
204
|
+
tapList: {
|
|
205
|
+
type: Array,
|
|
206
|
+
default: () => []
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
});
|
|
210
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue?vue&type=script&lang=ts
|
|
211
|
+
|
|
212
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
;
|
|
218
|
+
const tab_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tabvue_type_script_lang_ts, [['render',tabvue_type_template_id_188ebdfc_ts_true_render]])
|
|
219
|
+
|
|
220
|
+
/* harmony default export */ var tab = (tab_exports_);
|
|
221
|
+
;// CONCATENATED MODULE: ./packages/Tab/index.ts
|
|
222
|
+
|
|
223
|
+
/* Process.install = (app: App): void => {
|
|
224
|
+
app.component(Process.name, Process);
|
|
225
|
+
}; */
|
|
226
|
+
/* harmony default export */ var Tab = (tab);
|
|
149
227
|
;// CONCATENATED MODULE: ./packages/index.ts
|
|
150
228
|
|
|
229
|
+
|
|
151
230
|
// 所有组件列表
|
|
152
|
-
const components = [packages_process];
|
|
231
|
+
const components = [packages_process, Tab];
|
|
153
232
|
// 定义 install 方法
|
|
154
233
|
const install = app => {
|
|
155
234
|
// 遍历注册所有组件
|
package/lib/index.d.ts
CHANGED
package/lib/index.esm.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
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||"123333");return r((()=>e.processId),((s,r)=>{})),{processStatus:t,host:a}},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(i.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
CHANGED
|
@@ -107,7 +107,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
107
107
|
|
|
108
108
|
// EXPORTS
|
|
109
109
|
__webpack_require__.d(__webpack_exports__, {
|
|
110
|
-
"
|
|
110
|
+
"TopsProcess": function() { return /* reexport */ packages_process; },
|
|
111
|
+
"TopsTap": function() { return /* reexport */ Tab; },
|
|
111
112
|
"default": function() { return /* binding */ entry_lib; }
|
|
112
113
|
});
|
|
113
114
|
|
|
@@ -130,19 +131,59 @@ if (typeof window !== 'undefined') {
|
|
|
130
131
|
|
|
131
132
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
132
133
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(203);
|
|
133
|
-
;// 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=
|
|
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=2cd1004b&ts=true
|
|
134
135
|
|
|
135
136
|
const _hoisted_1 = {
|
|
136
137
|
class: "process-warp"
|
|
137
138
|
};
|
|
138
139
|
function render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
139
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.openBlock)(), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createElementBlock)("div", _hoisted_1, "
|
|
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)($setup.host) + " ", 1);
|
|
140
141
|
}
|
|
141
|
-
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=
|
|
142
|
+
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=template&id=2cd1004b&ts=true
|
|
142
143
|
|
|
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
|
+
|
|
144
146
|
/* harmony default export */ var processvue_type_script_lang_ts = ({
|
|
145
|
-
name:
|
|
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 || "123333");
|
|
168
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.processId, (val, preVal) => {
|
|
169
|
+
if (val) {
|
|
170
|
+
/* axios.get. */
|
|
171
|
+
}
|
|
172
|
+
});
|
|
173
|
+
return {
|
|
174
|
+
processStatus,
|
|
175
|
+
host
|
|
176
|
+
};
|
|
177
|
+
},
|
|
178
|
+
methods: {
|
|
179
|
+
getColor(status) {
|
|
180
|
+
if (status == "审核中") return "#FFA52D";
|
|
181
|
+
if (status == "已驳回") return "#F14B4C";
|
|
182
|
+
if (status == "已撤销") return "#CECECE";
|
|
183
|
+
if (status == "已完成") return "#6DC743";
|
|
184
|
+
return "#1389FF";
|
|
185
|
+
}
|
|
186
|
+
}
|
|
146
187
|
});
|
|
147
188
|
;// CONCATENATED MODULE: ./packages/process/src/process.vue?vue&type=script&lang=ts
|
|
148
189
|
|
|
@@ -163,10 +204,48 @@ const __exports__ = /*#__PURE__*/(0,exportHelper/* default */.Z)(processvue_type
|
|
|
163
204
|
app.component(Process.name, Process);
|
|
164
205
|
}; */
|
|
165
206
|
/* harmony default export */ var packages_process = (process);
|
|
207
|
+
;// 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
|
|
208
|
+
|
|
209
|
+
const tabvue_type_template_id_188ebdfc_ts_true_hoisted_1 = {
|
|
210
|
+
class: "tops-tab"
|
|
211
|
+
};
|
|
212
|
+
function tabvue_type_template_id_188ebdfc_ts_true_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
213
|
+
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");
|
|
214
|
+
}
|
|
215
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue?vue&type=template&id=188ebdfc&ts=true
|
|
216
|
+
|
|
217
|
+
;// 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
|
|
218
|
+
/* harmony default export */ var tabvue_type_script_lang_ts = ({
|
|
219
|
+
name: "tops-tab",
|
|
220
|
+
props: {
|
|
221
|
+
tapList: {
|
|
222
|
+
type: Array,
|
|
223
|
+
default: () => []
|
|
224
|
+
}
|
|
225
|
+
}
|
|
226
|
+
});
|
|
227
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue?vue&type=script&lang=ts
|
|
228
|
+
|
|
229
|
+
;// CONCATENATED MODULE: ./packages/Tab/src/tab.vue
|
|
230
|
+
|
|
231
|
+
|
|
232
|
+
|
|
233
|
+
|
|
234
|
+
;
|
|
235
|
+
const tab_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(tabvue_type_script_lang_ts, [['render',tabvue_type_template_id_188ebdfc_ts_true_render]])
|
|
236
|
+
|
|
237
|
+
/* harmony default export */ var tab = (tab_exports_);
|
|
238
|
+
;// CONCATENATED MODULE: ./packages/Tab/index.ts
|
|
239
|
+
|
|
240
|
+
/* Process.install = (app: App): void => {
|
|
241
|
+
app.component(Process.name, Process);
|
|
242
|
+
}; */
|
|
243
|
+
/* harmony default export */ var Tab = (tab);
|
|
166
244
|
;// CONCATENATED MODULE: ./packages/index.ts
|
|
167
245
|
|
|
246
|
+
|
|
168
247
|
// 所有组件列表
|
|
169
|
-
const components = [packages_process];
|
|
248
|
+
const components = [packages_process, Tab];
|
|
170
249
|
// 定义 install 方法
|
|
171
250
|
const install = app => {
|
|
172
251
|
// 遍历注册所有组件
|
package/lib/index.umd.min.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
(function(e,
|
|
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[o,n]of t)r[o]=n;return r}},203:function(t){t.exports=e}},r={};function o(e){var n=r[e];if(void 0!==n)return n.exports;var c=r[e]={exports:{}};return t[e](c,c.exports,o),c.exports}!function(){o.d=function(e,t){for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})}}(),function(){o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)}}(),function(){o.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}}(),function(){o.p=""}();var n={};return function(){if(o.r(n),o.d(n,{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&&(o.p=t[1])}var r=o(203);const c={class:"process-warp"};function s(e,t,o,n,s,u){return(0,r.openBlock)(),(0,r.createElementBlock)("div",c,(0,r.toDisplayString)(n.host)+" ",1)}var u={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)(""),o=(0,r.ref)({NODE_ENV:"production",BASE_URL:"/"}.VUE_APP_BASE_URL||"123333");return(0,r.watch)((()=>e.processId),((e,t)=>{})),{processStatus:t,host:o}},methods:{getColor(e){return"审核中"==e?"#FFA52D":"已驳回"==e?"#F14B4C":"已撤销"==e?"#CECECE":"已完成"==e?"#6DC743":"#1389FF"}}},i=o(744);const p=(0,i.Z)(u,[["render",s]]);var f=p,a=f;const d={class:"tops-tab"};function l(e,t,o,n,c,s){return(0,r.openBlock)(),(0,r.createElementBlock)("div",d,"tops-tab")}var y={name:"tops-tab",props:{tapList:{type:Array,default:()=>[]}}};const v=(0,i.Z)(y,[["render",l]]);var m=v,b=m;const S=[a,b],x=e=>{S.map((t=>e.component(t.name,t)))};var g={install:x},E=g}(),n}()}));
|
|
2
2
|
//# sourceMappingURL=index.umd.min.js.map
|
|
@@ -1,4 +1,28 @@
|
|
|
1
1
|
declare const _default: {
|
|
2
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): {
|
|
21
|
+
processStatus: import("vue").Ref<string>;
|
|
22
|
+
host: any;
|
|
23
|
+
};
|
|
24
|
+
methods: {
|
|
25
|
+
getColor(status: string): "#FFA52D" | "#F14B4C" | "#CECECE" | "#6DC743" | "#1389FF";
|
|
26
|
+
};
|
|
3
27
|
};
|
|
4
28
|
export default _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ui-process-h5",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.12",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "流程组件",
|
|
6
6
|
"main": "lib/index.min.js",
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
"build:esm-bundle": "rollup --config ./build/rollup.config.js"
|
|
16
16
|
},
|
|
17
17
|
"dependencies": {
|
|
18
|
+
"axios": "^1.3.5",
|
|
18
19
|
"bpmn-moddle": "^8.0.1",
|
|
19
20
|
"core-js": "^3.8.3",
|
|
20
21
|
"vue": "^3.2.13"
|