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 CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Plugin } from 'vue';
2
- import { ProcessFlow } from './src/ProcessFlow';
2
+ import { CmcProcessFlow } from './src/ProcessFlow';
3
3
  declare const plugin: Plugin<[]>;
4
- export { ProcessFlow };
4
+ export { CmcProcessFlow };
5
5
  export default plugin;
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 I = (t) => ({
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
- }), q = /* @__PURE__ */ l({
11
- __name: "ProcessFlow",
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 = I(e.request);
17
+ const e = t, n = i(""), r = C(e.request);
18
18
  console.log("props.request", e.request), console.log("processInstanceApi", r);
19
- const a = () => {
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
- }, c = (s) => {
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 && c(s);
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: a }, {
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
- }), C = {
48
+ }), A = {
49
49
  install(t) {
50
- t.component("CmcLinkProcessFlow", q);
50
+ t.component("CmcProcessFlow", I);
51
51
  }
52
52
  };
53
53
  export {
54
- q as ProcessFlow,
55
- C as default
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:"ProcessFlow",props:{processInstanceId:{},request:{}},setup(n){const s=n,c=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:c.value}})},m=o=>{c.value=o,l.getApprovalDetail(o).then(r=>{console.log(r)})};return e.watch(()=>s.processInstanceId,o=>{debugger;o&&o!==c.value&&m(o)},{immediate:!0,deep:!0}),(o,r)=>{const f=e.resolveComponent("el-button");return e.openBlock(),e.createBlock(f,{onClick:d},{default:e.withCtx(()=>[...r[0]||(r[0]=[e.createTextVNode("aaaa",-1)])]),_:1})}}}),u={install(n){n.component("CmcLinkProcessFlow",p)}};t.ProcessFlow=p,t.default=u,Object.defineProperties(t,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
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 ProcessFlow } from './src/ProcessFlow.vue';
2
- export { ProcessFlow };
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 {ProcessFlow} from "./src/ProcessFlow";
2
+ import {CmcProcessFlow} from "./src/ProcessFlow";
3
3
 
4
4
  // 定义插件对象,严格标注类型
5
5
  const plugin: Plugin<[]> = {
6
6
  install(app: App) {
7
- app.component('CmcLinkProcessFlow', ProcessFlow)
7
+ app.component('CmcProcessFlow', CmcProcessFlow)
8
8
  }
9
9
  }
10
10
  // 支持按需引入
11
- export {ProcessFlow }
11
+ export {CmcProcessFlow }
12
12
 
13
13
  // 默认导出插件(必须是Plugin类型)
14
14
  export default plugin
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "nbb-component-ui",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "main": "./dist/index.umd.js",
5
5
  "module": "./dist/index.es.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,3 +1,3 @@
1
- import ProcessFlow from './src/ProcessFlow.vue'
1
+ import CmcProcessFlow from './src/CmcProcessFlow.vue'
2
2
 
3
- export { ProcessFlow }
3
+ export { CmcProcessFlow }