nbb-component-ui 1.2.1 → 1.2.2
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/dist/index.d.ts +2 -2
- package/dist/index.es.js +12 -12
- package/dist/index.umd.js +1 -1
- package/dist/src/ProcessFlow/index.d.ts +2 -2
- package/index.ts +3 -3
- package/package.json +1 -1
- package/src/ProcessFlow/index.ts +2 -2
- /package/dist/src/ProcessFlow/src/{ProcessFlow.vue.d.ts → CmcProcessFlow.vue.d.ts} +0 -0
- /package/src/ProcessFlow/src/{ProcessFlow.vue → CmcProcessFlow.vue} +0 -0
package/dist/index.d.ts
CHANGED
package/dist/index.es.js
CHANGED
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
import { defineComponent as l, ref as i, watch as u, resolveComponent as m, openBlock as g, createBlock as d, withCtx as f, createTextVNode as v } from "vue";
|
|
2
2
|
import { ElMessage as _ } from "element-plus";
|
|
3
|
-
const
|
|
3
|
+
const C = (t) => ({
|
|
4
4
|
getApprovalDetail: async (e) => await t.get({
|
|
5
5
|
url: "/system/bpm/process-instance/get-approval-detail",
|
|
6
6
|
params: {
|
|
7
7
|
processInstanceId: e
|
|
8
8
|
}
|
|
9
9
|
})
|
|
10
|
-
}),
|
|
11
|
-
__name: "
|
|
10
|
+
}), I = /* @__PURE__ */ l({
|
|
11
|
+
__name: "CmcProcessFlow",
|
|
12
12
|
props: {
|
|
13
13
|
processInstanceId: {},
|
|
14
14
|
request: {}
|
|
15
15
|
},
|
|
16
16
|
setup(t) {
|
|
17
|
-
const e = t, n = i(""), r =
|
|
17
|
+
const e = t, n = i(""), r = C(e.request);
|
|
18
18
|
console.log("props.request", e.request), console.log("processInstanceApi", r);
|
|
19
|
-
const
|
|
19
|
+
const c = () => {
|
|
20
20
|
_.success("aaa!"), console.log(e.request), e.request.get({
|
|
21
21
|
url: "/system/bpm/process-instance/get-approval-detail",
|
|
22
22
|
params: {
|
|
23
23
|
processInstanceId: n.value
|
|
24
24
|
}
|
|
25
25
|
});
|
|
26
|
-
},
|
|
26
|
+
}, a = (s) => {
|
|
27
27
|
n.value = s, r.getApprovalDetail(s).then((o) => {
|
|
28
28
|
console.log(o);
|
|
29
29
|
});
|
|
@@ -32,12 +32,12 @@ const I = (t) => ({
|
|
|
32
32
|
() => e.processInstanceId,
|
|
33
33
|
(s) => {
|
|
34
34
|
debugger;
|
|
35
|
-
s && s !== n.value &&
|
|
35
|
+
s && s !== n.value && a(s);
|
|
36
36
|
},
|
|
37
37
|
{ immediate: !0, deep: !0 }
|
|
38
38
|
), (s, o) => {
|
|
39
39
|
const p = m("el-button");
|
|
40
|
-
return g(), d(p, { onClick:
|
|
40
|
+
return g(), d(p, { onClick: c }, {
|
|
41
41
|
default: f(() => [...o[0] || (o[0] = [
|
|
42
42
|
v("aaaa", -1)
|
|
43
43
|
])]),
|
|
@@ -45,12 +45,12 @@ const I = (t) => ({
|
|
|
45
45
|
});
|
|
46
46
|
};
|
|
47
47
|
}
|
|
48
|
-
}),
|
|
48
|
+
}), A = {
|
|
49
49
|
install(t) {
|
|
50
|
-
t.component("
|
|
50
|
+
t.component("CmcProcessFlow", I);
|
|
51
51
|
}
|
|
52
52
|
};
|
|
53
53
|
export {
|
|
54
|
-
|
|
55
|
-
|
|
54
|
+
I as CmcProcessFlow,
|
|
55
|
+
A as default
|
|
56
56
|
};
|
package/dist/index.umd.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.NbbComponentUi={},t.Vue,t.ElementPlus))})(this,function(t,e,a){"use strict";const i=n=>({getApprovalDetail:async s=>await n.get({url:"/system/bpm/process-instance/get-approval-detail",params:{processInstanceId:s}})}),p=e.defineComponent({__name:"
|
|
1
|
+
(function(t,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("element-plus")):typeof define=="function"&&define.amd?define(["exports","vue","element-plus"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.NbbComponentUi={},t.Vue,t.ElementPlus))})(this,function(t,e,a){"use strict";const i=n=>({getApprovalDetail:async s=>await n.get({url:"/system/bpm/process-instance/get-approval-detail",params:{processInstanceId:s}})}),p=e.defineComponent({__name:"CmcProcessFlow",props:{processInstanceId:{},request:{}},setup(n){const s=n,r=e.ref(""),l=i(s.request);console.log("props.request",s.request),console.log("processInstanceApi",l);const d=()=>{a.ElMessage.success("aaa!"),console.log(s.request),s.request.get({url:"/system/bpm/process-instance/get-approval-detail",params:{processInstanceId:r.value}})},m=o=>{r.value=o,l.getApprovalDetail(o).then(c=>{console.log(c)})};return e.watch(()=>s.processInstanceId,o=>{debugger;o&&o!==r.value&&m(o)},{immediate:!0,deep:!0}),(o,c)=>{const f=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(f,{onClick:d},{default:e.withCtx(()=>[...c[0]||(c[0]=[e.createTextVNode("aaaa",-1)])]),_:1})}}}),u={install(n){n.component("CmcProcessFlow",p)}};t.CmcProcessFlow=p,t.default=u,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { default as
|
|
2
|
-
export {
|
|
1
|
+
import { default as CmcProcessFlow } from './src/CmcProcessFlow.vue';
|
|
2
|
+
export { CmcProcessFlow };
|
package/index.ts
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import type { App, Plugin } from 'vue'
|
|
2
|
-
import {
|
|
2
|
+
import {CmcProcessFlow} from "./src/ProcessFlow";
|
|
3
3
|
|
|
4
4
|
// 定义插件对象,严格标注类型
|
|
5
5
|
const plugin: Plugin<[]> = {
|
|
6
6
|
install(app: App) {
|
|
7
|
-
app.component('
|
|
7
|
+
app.component('CmcProcessFlow', CmcProcessFlow)
|
|
8
8
|
}
|
|
9
9
|
}
|
|
10
10
|
// 支持按需引入
|
|
11
|
-
export {
|
|
11
|
+
export {CmcProcessFlow }
|
|
12
12
|
|
|
13
13
|
// 默认导出插件(必须是Plugin类型)
|
|
14
14
|
export default plugin
|
package/package.json
CHANGED
package/src/ProcessFlow/index.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import
|
|
1
|
+
import CmcProcessFlow from './src/CmcProcessFlow.vue'
|
|
2
2
|
|
|
3
|
-
export {
|
|
3
|
+
export { CmcProcessFlow }
|
|
File without changes
|
|
File without changes
|