@kyfe/fms-vue2-components 0.0.14 → 0.0.15
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/{date-picker-bottom.deb0334b.js → date-picker-bottom.5688d83c.js} +1 -1
- package/dist/{date-picker-dropdown.8820ef37.js → date-picker-dropdown.c082cbff.js} +1 -1
- package/dist/{date-picker-right.90fb4b93.js → date-picker-right.511a96e2.js} +1 -1
- package/dist/{date-picker-top.535bf0c5.js → date-picker-top.17ea98f4.js} +1 -1
- package/dist/{date-week-month.f258023a.js → date-week-month.7daaa52f.js} +1 -1
- package/dist/fms-ks-components/index.js +2 -2
- package/dist/{fms-ks-components.c4804aac.js → fms-ks-components.af0aec1f.js} +6 -6
- package/dist/fms-ks-form-grid/index.js +1 -1
- package/dist/fms-ks-picker/index.js +2 -2
- package/dist/fms-ks-picker.906d4deb.js +99 -0
- package/dist/fms-money-split/index.js +62 -0
- package/dist/fms-money-split/style.css +1 -0
- package/dist/fms-text-more/index.js +11603 -0
- package/dist/fms-text-more/style.css +1 -0
- package/dist/index.js +58 -52
- package/dist/{mixin.ce520697.js → mixin.4e154332.js} +1 -1
- package/dist/oa-datetime-picker-new/style.css +1 -1
- package/package.json +1 -1
- package/src/components/fms-ks-picker/fms-ks-picker.vue +61 -5
- package/src/components/fms-money-split/fms-money-split.vue +76 -0
- package/src/components/fms-money-split/index.js +7 -0
- package/src/components/fms-text-more/fms-text-more.vue +353 -0
- package/src/components/fms-text-more/index.js +7 -0
- package/src/index.js +6 -0
- package/dist/fms-ks-picker.766b55f9.js +0 -61
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { D as r, M as s, W as c } from "./fms-ks-components.
|
|
1
|
+
import { D as r, M as s, W as c } from "./fms-ks-components.af0aec1f.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 _ = {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
|
-
import { F as o } from "../fms-ks-components.
|
|
3
|
-
import { F as a } from "../fms-ks-components.
|
|
2
|
+
import { F as o } from "../fms-ks-components.af0aec1f.js";
|
|
3
|
+
import { F as a } from "../fms-ks-components.af0aec1f.js";
|
|
4
4
|
o.install = function(n) {
|
|
5
5
|
n.component(o.name, o);
|
|
6
6
|
};
|
|
@@ -4,7 +4,7 @@ import { n as wt } from "./plugin-vue2_normalizer.ed7092a9.js";
|
|
|
4
4
|
import da from "./datetime-popup/index.js";
|
|
5
5
|
import Te from "dayjs";
|
|
6
6
|
import { F as d_ } from "./fms-ks-select.002b6536.js";
|
|
7
|
-
import { F as __ } from "./fms-ks-picker.
|
|
7
|
+
import { F as __ } from "./fms-ks-picker.906d4deb.js";
|
|
8
8
|
import { F as v_ } from "./fms-ks-select-box.b75cf9d8.js";
|
|
9
9
|
import { F as m_ } from "./fms-ks-search-tips.d36859c3.js";
|
|
10
10
|
import { F as g_ } from "./fms-ks-search-tips-new.d68b86e6.js";
|
|
@@ -3902,19 +3902,19 @@ const B_ = I_.exports, z_ = {
|
|
|
3902
3902
|
"./quarter-select.b6256880.js"
|
|
3903
3903
|
), Z_ = () => import(
|
|
3904
3904
|
/* webpackChunkName: "date-week-month" */
|
|
3905
|
-
"./date-week-month.
|
|
3905
|
+
"./date-week-month.7daaa52f.js"
|
|
3906
3906
|
), Q_ = () => import(
|
|
3907
3907
|
/* webpackChunkName: "date-picker-bottom" */
|
|
3908
|
-
"./date-picker-bottom.
|
|
3908
|
+
"./date-picker-bottom.5688d83c.js"
|
|
3909
3909
|
), G_ = () => import(
|
|
3910
3910
|
/* webpackChunkName: "date-picker-top" */
|
|
3911
|
-
"./date-picker-top.
|
|
3911
|
+
"./date-picker-top.17ea98f4.js"
|
|
3912
3912
|
), J_ = () => import(
|
|
3913
3913
|
/* webpackChunkName: "date-picker-right" */
|
|
3914
|
-
"./date-picker-right.
|
|
3914
|
+
"./date-picker-right.511a96e2.js"
|
|
3915
3915
|
), X_ = () => import(
|
|
3916
3916
|
/* webpackChunkName: "date-picker-dropdown" */
|
|
3917
|
-
"./date-picker-dropdown.
|
|
3917
|
+
"./date-picker-dropdown.c082cbff.js"
|
|
3918
3918
|
), Rv = q_, Ov = V_, Nv = U_, Ev = W_, Iv = K_, Bv = H_, zv = Z_, ev = Q_, tv = G_, rv = J_, nv = X_;
|
|
3919
3919
|
const iv = {
|
|
3920
3920
|
month: "YYYY/MM",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
2
|
import { get as n } from "lodash";
|
|
3
|
-
import { F as f } from "../fms-ks-components.
|
|
3
|
+
import { F as f } from "../fms-ks-components.af0aec1f.js";
|
|
4
4
|
import { n as a } from "../plugin-vue2_normalizer.ed7092a9.js";
|
|
5
5
|
import './style.css';class c {
|
|
6
6
|
constructor(t) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './../fms-copy-box/style.css';
|
|
2
|
-
import { F as o } from "../fms-ks-picker.
|
|
3
|
-
import { F as e } from "../fms-ks-picker.
|
|
2
|
+
import { F as o } from "../fms-ks-picker.906d4deb.js";
|
|
3
|
+
import { F as e } from "../fms-ks-picker.906d4deb.js";
|
|
4
4
|
o.install = function(m) {
|
|
5
5
|
m.component(o.name, o);
|
|
6
6
|
};
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { n } from "./plugin-vue2_normalizer.ed7092a9.js";
|
|
2
|
+
const o = {
|
|
3
|
+
name: "FmsKsPicker",
|
|
4
|
+
props: {
|
|
5
|
+
value: {
|
|
6
|
+
type: String,
|
|
7
|
+
default: ""
|
|
8
|
+
},
|
|
9
|
+
label: {
|
|
10
|
+
type: String,
|
|
11
|
+
default: ""
|
|
12
|
+
},
|
|
13
|
+
placeholder: {
|
|
14
|
+
type: String,
|
|
15
|
+
default: ""
|
|
16
|
+
},
|
|
17
|
+
columns: {
|
|
18
|
+
type: Array,
|
|
19
|
+
default: () => []
|
|
20
|
+
},
|
|
21
|
+
options: {
|
|
22
|
+
type: [Array, Function],
|
|
23
|
+
default: () => []
|
|
24
|
+
},
|
|
25
|
+
required: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !1
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
data() {
|
|
31
|
+
return {
|
|
32
|
+
showPicker: !1
|
|
33
|
+
};
|
|
34
|
+
},
|
|
35
|
+
computed: {
|
|
36
|
+
rawOptions() {
|
|
37
|
+
return typeof this.options == "function" ? this.options() || [] : this.options || [];
|
|
38
|
+
},
|
|
39
|
+
pickerColumns() {
|
|
40
|
+
return this.rawOptions.length ? this.rawOptions : this.columns;
|
|
41
|
+
},
|
|
42
|
+
displayValue() {
|
|
43
|
+
return this.findTextByCode(this.pickerColumns, this.value) || this.value;
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
methods: {
|
|
47
|
+
findTextByCode(i, e) {
|
|
48
|
+
for (const t of i || []) {
|
|
49
|
+
if (String(t.code) === String(e))
|
|
50
|
+
return t.text;
|
|
51
|
+
if (Array.isArray(t.children) && t.children.length) {
|
|
52
|
+
const r = this.findTextByCode(t.children, e);
|
|
53
|
+
if (r)
|
|
54
|
+
return r;
|
|
55
|
+
}
|
|
56
|
+
}
|
|
57
|
+
return "";
|
|
58
|
+
},
|
|
59
|
+
getSelectedNode(i) {
|
|
60
|
+
let e = this.pickerColumns, t = null;
|
|
61
|
+
for (const r of i || []) {
|
|
62
|
+
if (!e || !e[r])
|
|
63
|
+
return null;
|
|
64
|
+
t = e[r], e = t.children || [];
|
|
65
|
+
}
|
|
66
|
+
return t;
|
|
67
|
+
},
|
|
68
|
+
showPickerFn() {
|
|
69
|
+
this.showPicker = !0;
|
|
70
|
+
},
|
|
71
|
+
onConfirm(i, e) {
|
|
72
|
+
let t = null;
|
|
73
|
+
i && !Array.isArray(i) && typeof i == "object" ? t = i : t = this.getSelectedNode(Array.isArray(e) ? e : []);
|
|
74
|
+
const r = t ? t.code : "";
|
|
75
|
+
this.$emit("input", r, t), this.showPicker = !1;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
var s = function() {
|
|
80
|
+
var e = this, t = e._self._c;
|
|
81
|
+
return t("div", { staticClass: "pick-box" }, [t("div", { staticClass: "pick-field-box", on: { click: e.showPickerFn } }, [t("ks-field", { attrs: { readonly: "", clickable: "", "input-align": "right", "error-message-align": "right", required: e.required, name: "picker", value: e.displayValue, label: e.label, "right-icon": "arrow", rules: [{ required: e.required, message: `\u8BF7\u9009\u62E9${e.label}` }], placeholder: e.placeholder } })], 1), t("ks-popup", { attrs: { position: "bottom" }, model: { value: e.showPicker, callback: function(r) {
|
|
82
|
+
e.showPicker = r;
|
|
83
|
+
}, expression: "showPicker" } }, [t("ks-picker", { attrs: { "show-toolbar": "", columns: e.pickerColumns }, on: { confirm: e.onConfirm, cancel: function(r) {
|
|
84
|
+
e.showPicker = !1;
|
|
85
|
+
} } })], 1)], 1);
|
|
86
|
+
}, l = [], a = /* @__PURE__ */ n(
|
|
87
|
+
o,
|
|
88
|
+
s,
|
|
89
|
+
l,
|
|
90
|
+
!1,
|
|
91
|
+
null,
|
|
92
|
+
null,
|
|
93
|
+
null,
|
|
94
|
+
null
|
|
95
|
+
);
|
|
96
|
+
const u = a.exports;
|
|
97
|
+
export {
|
|
98
|
+
u as F
|
|
99
|
+
};
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
import './../fms-copy-box/style.css';
|
|
2
|
+
import { p as a } from "../filter.8157a654.js";
|
|
3
|
+
import { n as i } from "../plugin-vue2_normalizer.ed7092a9.js";
|
|
4
|
+
import './style.css';function u(s) {
|
|
5
|
+
const t = /([\d.]+)([亿万元]+)?/g, n = [];
|
|
6
|
+
let e;
|
|
7
|
+
for (; (e = t.exec(s)) !== null; )
|
|
8
|
+
n.push({
|
|
9
|
+
amount: e[1],
|
|
10
|
+
unit: e[2]
|
|
11
|
+
});
|
|
12
|
+
return n;
|
|
13
|
+
}
|
|
14
|
+
const m = {
|
|
15
|
+
name: "FmsMoneySplit",
|
|
16
|
+
props: {
|
|
17
|
+
amount: {
|
|
18
|
+
type: [Number, String],
|
|
19
|
+
default: ""
|
|
20
|
+
},
|
|
21
|
+
amountStyle: {
|
|
22
|
+
type: Object,
|
|
23
|
+
default: () => ({
|
|
24
|
+
fontSize: "22px",
|
|
25
|
+
fontWeight: "bold"
|
|
26
|
+
})
|
|
27
|
+
},
|
|
28
|
+
unitStyle: {
|
|
29
|
+
type: Object,
|
|
30
|
+
default: () => ({
|
|
31
|
+
fontSize: "12px"
|
|
32
|
+
})
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
computed: {
|
|
36
|
+
moneyUnits() {
|
|
37
|
+
return u(a(this.amount));
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
var c = function() {
|
|
42
|
+
var t = this, n = t._self._c;
|
|
43
|
+
return n("div", { staticClass: "fms-money-split" }, [t._l(t.moneyUnits, function(e, l) {
|
|
44
|
+
return [n("span", { key: `amount-${l}`, staticClass: "fms-money-split__amount", style: t.amountStyle }, [t._v(t._s(e.amount))]), n("span", { key: `unit-${l}`, staticClass: "fms-money-split__unit", style: t.unitStyle }, [t._v(t._s(e.unit))])];
|
|
45
|
+
})], 2);
|
|
46
|
+
}, _ = [], r = /* @__PURE__ */ i(
|
|
47
|
+
m,
|
|
48
|
+
c,
|
|
49
|
+
_,
|
|
50
|
+
!1,
|
|
51
|
+
null,
|
|
52
|
+
"17c65bcb",
|
|
53
|
+
null,
|
|
54
|
+
null
|
|
55
|
+
);
|
|
56
|
+
const o = r.exports;
|
|
57
|
+
o.install = function(s) {
|
|
58
|
+
s.component(o.name, o);
|
|
59
|
+
};
|
|
60
|
+
export {
|
|
61
|
+
o as default
|
|
62
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.fms-money-split[data-v-17c65bcb]{height:26px;display:flex;align-items:baseline;color:#ff8600}
|