@kyfe/fms-vue2-components 0.0.8 → 0.0.11

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.
Files changed (32) hide show
  1. package/dist/{date-picker-bottom.08bb5468.js → date-picker-bottom.deb0334b.js} +1 -1
  2. package/dist/{date-picker-dropdown.6bdf8884.js → date-picker-dropdown.8820ef37.js} +1 -1
  3. package/dist/{date-picker-right.0b16e9e5.js → date-picker-right.90fb4b93.js} +1 -1
  4. package/dist/{date-picker-top.bb84a0cf.js → date-picker-top.535bf0c5.js} +1 -1
  5. package/dist/{date-week-month.7ac3a67e.js → date-week-month.f258023a.js} +1 -1
  6. package/dist/fms-approval-header/index.js +100 -0
  7. package/dist/fms-approval-header/style.css +1 -0
  8. package/dist/fms-copy-box/index.js +1 -1
  9. package/dist/fms-ks-clamp-text/index.js +2 -2
  10. package/dist/fms-ks-components/index.js +2 -2
  11. package/dist/{fms-ks-components.53289d17.js → fms-ks-components.c4804aac.js} +121 -121
  12. package/dist/fms-ks-decrypt/index.js +2 -2
  13. package/dist/{fms-ks-decrypt.2f88e659.js → fms-ks-decrypt.e9bc1873.js} +1 -1
  14. package/dist/fms-ks-form-grid/index.js +1 -1
  15. package/dist/fms-ks-select/index.js +2 -2
  16. package/dist/fms-ks-select-box/index.js +2 -2
  17. package/dist/fms-ks-uploader/index.js +350 -0
  18. package/dist/fms-ks-uploader/style.css +1 -0
  19. package/dist/index.js +70 -33
  20. package/dist/{mixin.7a8d8392.js → mixin.ce520697.js} +1 -1
  21. package/dist/oa-datetime-picker-new/style.css +1 -1
  22. package/package.json +2 -2
  23. package/src/components/fms-approval-header/fms-approval-header.vue +258 -0
  24. package/src/components/fms-approval-header/index.js +7 -0
  25. package/src/components/fms-approval-header//345/256/241/346/240/270/345/244/264/351/203/250.md +0 -0
  26. package/src/components/fms-ks-uploader/fms-ks-uploader.vue +570 -0
  27. package/src/components/fms-ks-uploader/index.js +7 -0
  28. package/src/index.js +34 -2
  29. /package/dist/{filter.c93f4ddb.js → filter.8157a654.js} +0 -0
  30. /package/dist/{fms-ks-clamp-text.24eb5e8d.js → fms-ks-clamp-text.29353cc2.js} +0 -0
  31. /package/dist/{fms-ks-select-box.a00f0f08.js → fms-ks-select-box.b75cf9d8.js} +0 -0
  32. /package/dist/{fms-ks-select.59416fd8.js → fms-ks-select.002b6536.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { M as n } from "./mixin.7a8d8392.js";
1
+ import { M as n } from "./mixin.ce520697.js";
2
2
  import { n as o } from "./plugin-vue2_normalizer.ed7092a9.js";
3
3
  import './oa-datetime-picker-new/style.css';const s = {
4
4
  date: "\u65E5\u671F\u9009\u62E9",
@@ -1,4 +1,4 @@
1
- import { M as o } from "./mixin.7a8d8392.js";
1
+ import { M as o } from "./mixin.ce520697.js";
2
2
  import { n as a } from "./plugin-vue2_normalizer.ed7092a9.js";
3
3
  import './oa-datetime-picker-new/style.css';const n = {
4
4
  name: "date-picker-dropdown",
@@ -1,4 +1,4 @@
1
- import { M as s } from "./mixin.7a8d8392.js";
1
+ import { M as s } from "./mixin.ce520697.js";
2
2
  import { n as a } from "./plugin-vue2_normalizer.ed7092a9.js";
3
3
  import './oa-datetime-picker-new/style.css';const r = {
4
4
  name: "date-picker-right",
@@ -1,4 +1,4 @@
1
- import { M as s } from "./mixin.7a8d8392.js";
1
+ import { M as s } from "./mixin.ce520697.js";
2
2
  import { n as a } from "./plugin-vue2_normalizer.ed7092a9.js";
3
3
  import './oa-datetime-picker-new/style.css';const n = {
4
4
  name: "date-picker-top",
@@ -1,4 +1,4 @@
1
- import { D as r, M as s, W as c } from "./fms-ks-components.53289d17.js";
1
+ import { D as r, M as s, W as c } from "./fms-ks-components.c4804aac.js";
2
2
  import { t as o } from "./utils.159fba19.js";
3
3
  import { n as i } from "./plugin-vue2_normalizer.ed7092a9.js";
4
4
  import './oa-datetime-picker-new/style.css';const _ = {
@@ -0,0 +1,100 @@
1
+ import './../fms-copy-box/style.css';
2
+ import { get as o } from "lodash";
3
+ import { f as l } from "../filter.8157a654.js";
4
+ import { n as i } from "../plugin-vue2_normalizer.ed7092a9.js";
5
+ import './style.css';const u = {
6
+ name: "FmsApprovalHeader",
7
+ props: {
8
+ data: {
9
+ type: Object,
10
+ default: () => ({})
11
+ },
12
+ config: {
13
+ type: Array,
14
+ default: () => []
15
+ },
16
+ customFilters: {
17
+ type: Object,
18
+ default: () => ({})
19
+ }
20
+ },
21
+ computed: {
22
+ displayConfig() {
23
+ return this.config.filter((a) => a.show !== !1);
24
+ },
25
+ allFilters() {
26
+ return {
27
+ ...l,
28
+ ...this.customFilters
29
+ };
30
+ }
31
+ },
32
+ methods: {
33
+ getFormatterArgs(a) {
34
+ const { key: r } = a;
35
+ return {
36
+ value: o(this.data, r, ""),
37
+ data: this.data,
38
+ h: this.$createElement
39
+ };
40
+ },
41
+ isJsxFormatter(a) {
42
+ const { formatter: r } = a;
43
+ if (typeof r != "function")
44
+ return !1;
45
+ const e = this.getFormatterArgs(a), t = r(e.h, {
46
+ value: e.value,
47
+ data: e.data
48
+ });
49
+ return t && (t.__v_isVNode === !0 || typeof t == "object" && t.tag || typeof t == "object" && t.type);
50
+ },
51
+ getJsxComponent(a) {
52
+ const { formatter: r } = a, e = this.getFormatterArgs(a), t = r(e.h, {
53
+ value: e.value,
54
+ data: e.data
55
+ });
56
+ return t && (t.__v_isVNode || t.tag) ? {
57
+ render: () => t
58
+ } : t && (t.render || t.template) ? t : {
59
+ render: () => this.$createElement("span", "\u6E32\u67D3\u9519\u8BEF")
60
+ };
61
+ },
62
+ getContent(a) {
63
+ const { key: r, filter: e, lookupCode: t } = a;
64
+ let s = o(this.data, r, "");
65
+ if (s == null || s === "")
66
+ return "";
67
+ if (t)
68
+ return (void 0)(String(s), t);
69
+ if (e) {
70
+ if (typeof e == "function")
71
+ return e(s, this.data);
72
+ if (typeof e == "string" && this.allFilters[e])
73
+ return this.allFilters[e](s);
74
+ }
75
+ return s;
76
+ }
77
+ }
78
+ };
79
+ var c = function() {
80
+ var r = this, e = r._self._c;
81
+ return e("div", { staticClass: "private-approval" }, [e("div", { staticClass: "prior-approval" }, r._l(r.displayConfig, function(t) {
82
+ return e("div", { key: t.key, staticClass: "cell" }, [e("div", { staticClass: "label" }, [r._v(r._s(t.label))]), e("div", { staticClass: "content" }, [r.isJsxFormatter(t) ? e(r.getJsxComponent(t), { tag: "component" }) : [r._v(" " + r._s(r.getContent(t)) + " ")]], 2)]);
83
+ }), 0)]);
84
+ }, d = [], f = /* @__PURE__ */ i(
85
+ u,
86
+ c,
87
+ d,
88
+ !1,
89
+ null,
90
+ "deda40b9",
91
+ null,
92
+ null
93
+ );
94
+ const n = f.exports;
95
+ n.install = function(a) {
96
+ a.component(n.name, n);
97
+ };
98
+ export {
99
+ n as default
100
+ };
@@ -0,0 +1 @@
1
+ .prior-approval[data-v-deda40b9]{margin:0 16px;padding:4px 0 16px;border-radius:0 0 6px 6px;background:#ffffff}.prior-approval .cell[data-v-deda40b9]{display:flex;margin-bottom:10px;min-height:20px;line-height:20px;padding:0 16px;font-size:14px}.prior-approval .cell[data-v-deda40b9]:last-child{margin-bottom:0}.prior-approval .cell .label[data-v-deda40b9]{color:#858793;font-size:14px;width:72px;word-break:break-all}.prior-approval .cell .label-click[data-v-deda40b9]{color:#7972fe}.prior-approval .cell .content[data-v-deda40b9]{flex:1;margin-left:14px;color:#03050d;font-size:14px;text-align:left;word-break:break-all}.prior-approval .form-title[data-v-deda40b9]{position:relative;padding:8px 0 0 26px;margin-bottom:12px;font-size:14px;font-weight:600;height:28px;line-height:28px;background:#ffffff;color:#333}.prior-approval .form-title[data-v-deda40b9]:before{content:"";position:absolute;top:15px;left:16px;width:2px;height:14px;background:#7972fe}.prior-approval .form-title[data-v-deda40b9]:after{position:absolute;content:" ";pointer-events:none;right:0;top:0;left:16px;right:16px;border-bottom:1px solid #ebedf5;-webkit-transform:scaleY(.5);transform:scaleY(.5)}.prior-approval .form-title-no-after[data-v-deda40b9]{position:relative;padding:8px 0 0 26px;margin-bottom:12px;font-size:14px;font-weight:600;height:28px;line-height:28px;background:#ffffff;color:#333}.prior-approval .form-title-no-after[data-v-deda40b9]:before{content:"";position:absolute;top:15px;left:16px;width:2px;height:14px;background:#7972fe}.prior-approval .line[data-v-deda40b9]{height:1px;background-color:#eee;margin:6px 0}.prior-approval .upload-detail .van-uploader__wrapper .van-uploader__preview-delete[data-v-deda40b9],.prior-approval .upload-detail .van-uploader__wrapper .van-uploader__upload[data-v-deda40b9]{display:none}
@@ -1,5 +1,5 @@
1
1
  import './../fms-copy-box/style.css';
2
- import { F as r } from "../fms-ks-decrypt.2f88e659.js";
2
+ import { F as r } from "../fms-ks-decrypt.e9bc1873.js";
3
3
  import { n as c } from "../plugin-vue2_normalizer.ed7092a9.js";
4
4
  import './style.css';const d = window.vant && window.vant.Toast, m = {
5
5
  name: "FmsCopyBox",
@@ -1,6 +1,6 @@
1
1
  import './../fms-copy-box/style.css';
2
- import { F as m } from "../fms-ks-clamp-text.24eb5e8d.js";
3
- import { F as e } from "../fms-ks-clamp-text.24eb5e8d.js";
2
+ import { F as m } from "../fms-ks-clamp-text.29353cc2.js";
3
+ import { F as e } from "../fms-ks-clamp-text.29353cc2.js";
4
4
  m.install = function(o) {
5
5
  o.component(m.name, m);
6
6
  };
@@ -1,6 +1,6 @@
1
1
  import './../fms-copy-box/style.css';
2
- import { F as o } from "../fms-ks-components.53289d17.js";
3
- import { F as a } from "../fms-ks-components.53289d17.js";
2
+ import { F as o } from "../fms-ks-components.c4804aac.js";
3
+ import { F as a } from "../fms-ks-components.c4804aac.js";
4
4
  o.install = function(n) {
5
5
  n.component(o.name, o);
6
6
  };