xyvcard-goods 0.0.30 → 0.0.32
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/{ImageUpload-Dk6GY6PA.mjs → ImageUpload-BMw9FVJL.mjs} +2 -2
- package/dist/{edit-BY1AVieE.mjs → edit-Bh5jT6eo.mjs} +6 -6
- package/dist/{edit-BYxk3lFr.mjs → edit-BlQj1xVR.mjs} +6 -6
- package/dist/{edit-ehVvbusK.mjs → edit-CuGiM5xu.mjs} +3 -3
- package/dist/{edit-CRc6GqY4.mjs → edit-CyhVo22f.mjs} +3 -3
- package/dist/{edit-D9JqZTHN.mjs → edit-DvO1wYIL.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-d769FSho.mjs → edit.vue_vue_type_script_setup_true_lang-Bx32ZXck.mjs} +76 -74
- package/dist/{index-CNVwLggO.mjs → index-8JQB4NmH.mjs} +149 -141
- package/dist/{index-Vu01FEMS.mjs → index-B7_M6fAN.mjs} +2 -2
- package/dist/{index-Dpms2ryP.mjs → index-BlZupHNB.mjs} +1998 -1875
- package/dist/{index-DloS7z9I.mjs → index-BrBipAPq.mjs} +1 -1
- package/dist/{index-R43ND-Ey.mjs → index-CVM7nBhM.mjs} +14 -14
- package/dist/{index-BLO5ssji.mjs → index-Dk9-_0Ir.mjs} +129 -122
- package/dist/{index-BaX061kc.mjs → index-Dz9NSJh1.mjs} +8 -8
- package/dist/{index-DvCC73mO.mjs → index-DzUSeIbT.mjs} +14 -14
- package/dist/index.mjs +1 -1
- package/dist/{info-CJxN7XOi.mjs → info-CLt9Ea38.mjs} +3 -3
- package/dist/{info-CzhzwS5C.mjs → info-NFU_3fNY.mjs} +4 -4
- package/dist/{skuForm-X1aeeUCX.mjs → skuForm-8WZm2j5V.mjs} +6 -6
- package/dist/{skuForm-K3S131WX.mjs → skuForm-Dr6dKGa4.mjs} +19 -19
- package/dist/{skuTable-7VaeJKGp.mjs → skuTable-BwIc5hr5.mjs} +4 -4
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { defineComponent as b, ref as o, watchEffect as E, computed as P, resolveComponent as n,
|
|
1
|
+
import { defineComponent as b, ref as o, watchEffect as E, computed as P, resolveComponent as n, createElementBlock as R, openBlock as S, Fragment as j, createVNode as i, withCtx as p, createElementVNode as k } from "vue";
|
|
2
2
|
import { ElMessageBox as N } from "element-plus";
|
|
3
3
|
import { fileApi as s } from "jmash-core";
|
|
4
4
|
import { useI18n as M } from "vue-i18n";
|
|
@@ -46,7 +46,7 @@ const z = ["src"], A = /* @__PURE__ */ b({
|
|
|
46
46
|
};
|
|
47
47
|
return (e, t) => {
|
|
48
48
|
const g = n("Plus"), _ = n("el-icon"), C = n("el-upload"), L = n("el-dialog");
|
|
49
|
-
return
|
|
49
|
+
return S(), R(j, null, [
|
|
50
50
|
i(C, {
|
|
51
51
|
ref_key: "uploadImageRef",
|
|
52
52
|
ref: V,
|
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { _ as x } from "./ImageUpload-
|
|
2
|
-
import { defineComponent as z, ref as P, reactive as R, resolveComponent as p,
|
|
1
|
+
import { _ as x } from "./ImageUpload-BMw9FVJL.mjs";
|
|
2
|
+
import { defineComponent as z, ref as P, reactive as R, resolveComponent as p, createElementBlock as I, openBlock as h, createElementVNode as f, createVNode as e, unref as r, withCtx as s, Fragment as M, renderList as O, createBlock as k, createTextVNode as v, toDisplayString as H, createCommentVNode as j } from "vue";
|
|
3
3
|
import { ElMessage as U } from "element-plus";
|
|
4
4
|
import { useRouter as Y, useRoute as J } from "vue-router";
|
|
5
5
|
import { routerUtil as w } from "jmash-core";
|
|
6
6
|
import { useI18n as K } from "vue-i18n";
|
|
7
|
-
import { D as m, C as Q } from "./index-
|
|
8
|
-
import { a as b } from "./index-
|
|
9
|
-
import W from "./skuForm-
|
|
7
|
+
import { D as m, C as Q } from "./index-B7_M6fAN.mjs";
|
|
8
|
+
import { a as b } from "./index-BlZupHNB.mjs";
|
|
9
|
+
import W from "./skuForm-Dr6dKGa4.mjs";
|
|
10
10
|
const X = { class: "app-container" }, Z = { class: "search-container" }, ee = { class: "image-card" }, pe = /* @__PURE__ */ z({
|
|
11
11
|
__name: "edit",
|
|
12
12
|
setup(le) {
|
|
@@ -409,7 +409,7 @@ const X = { class: "app-container" }, Z = { class: "search-container" }, ee = {
|
|
|
409
409
|
onClick: $
|
|
410
410
|
}, {
|
|
411
411
|
default: s(() => l[12] || (l[12] = [
|
|
412
|
-
v("保存")
|
|
412
|
+
v("保存", -1)
|
|
413
413
|
])),
|
|
414
414
|
_: 1,
|
|
415
415
|
__: [12]
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { _ as J } from "./ImageUpload-
|
|
2
|
-
import { defineComponent as K, ref as v, reactive as T, resolveComponent as n,
|
|
1
|
+
import { _ as J } from "./ImageUpload-BMw9FVJL.mjs";
|
|
2
|
+
import { defineComponent as K, ref as v, reactive as T, resolveComponent as n, createElementBlock as V, openBlock as f, createElementVNode as c, createVNode as e, unref as t, withCtx as s, Fragment as w, renderList as R, createBlock as h, createTextVNode as U, toDisplayString as Q, createCommentVNode as X } from "vue";
|
|
3
3
|
import { ElMessage as $ } from "element-plus";
|
|
4
4
|
import { useRouter as Y, useRoute as Z } from "vue-router";
|
|
5
5
|
import { routerUtil as E } from "jmash-core";
|
|
6
6
|
import { useI18n as x } from "vue-i18n";
|
|
7
|
-
import { D as i, C as ee } from "./index-
|
|
8
|
-
import { a as _ } from "./index-
|
|
7
|
+
import { D as i, C as ee } from "./index-B7_M6fAN.mjs";
|
|
8
|
+
import { a as _ } from "./index-BlZupHNB.mjs";
|
|
9
9
|
import { g as le } from "./index-BHmGYIuc.mjs";
|
|
10
10
|
import { WangEditor as oe } from "xyvcard-cms";
|
|
11
|
-
import te from "./skuForm-
|
|
11
|
+
import te from "./skuForm-8WZm2j5V.mjs";
|
|
12
12
|
const se = { class: "app-container" }, ae = { class: "search-container" }, ue = { class: "image-card" }, he = /* @__PURE__ */ K({
|
|
13
13
|
__name: "edit",
|
|
14
14
|
setup(de) {
|
|
@@ -501,7 +501,7 @@ const se = { class: "app-container" }, ae = { class: "search-container" }, ue =
|
|
|
501
501
|
onClick: L
|
|
502
502
|
}, {
|
|
503
503
|
default: s(() => l[16] || (l[16] = [
|
|
504
|
-
U("保存")
|
|
504
|
+
U("保存", -1)
|
|
505
505
|
])),
|
|
506
506
|
_: 1,
|
|
507
507
|
__: [16]
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as E, mergeModels as V, ref as B, reactive as N, useModel as F, resolveComponent as r,
|
|
1
|
+
import { defineComponent as E, mergeModels as V, ref as B, reactive as N, useModel as F, resolveComponent as r, createBlock as K, openBlock as O, withCtx as l, createVNode as o, unref as d, createElementVNode as x, createTextVNode as w, toDisplayString as U } from "vue";
|
|
2
2
|
import { ElMessage as k } from "element-plus";
|
|
3
3
|
import { useI18n as A } from "vue-i18n";
|
|
4
|
-
import { g as p } from "./index-
|
|
4
|
+
import { g as p } from "./index-BrBipAPq.mjs";
|
|
5
5
|
import { _ as T } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
7
7
|
__name: "edit",
|
|
@@ -59,7 +59,7 @@ const z = { class: "dialog-footer" }, G = /* @__PURE__ */ E({
|
|
|
59
59
|
}
|
|
60
60
|
return (e, n) => {
|
|
61
61
|
const s = r("jmash-single-image-upload"), u = r("el-form-item"), c = r("el-col"), v = r("el-input"), R = r("el-row"), S = r("el-form"), I = r("el-button"), D = r("el-dialog");
|
|
62
|
-
return
|
|
62
|
+
return O(), K(D, {
|
|
63
63
|
modelValue: a.value,
|
|
64
64
|
"onUpdate:modelValue": n[2] || (n[2] = (m) => a.value = m),
|
|
65
65
|
onClose: h
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent as j, mergeModels as v, ref as I, reactive as C, useModel as E, resolveComponent as m,
|
|
1
|
+
import { defineComponent as j, mergeModels as v, ref as I, reactive as C, useModel as E, resolveComponent as m, createBlock as F, openBlock as K, withCtx as o, createVNode as l, unref as r, createElementVNode as O, createTextVNode as L, toDisplayString as N } from "vue";
|
|
2
2
|
import { ElMessage as w } from "element-plus";
|
|
3
3
|
import { useI18n as S } from "vue-i18n";
|
|
4
|
-
import { b as c } from "./index-
|
|
4
|
+
import { b as c } from "./index-BlZupHNB.mjs";
|
|
5
5
|
import { _ as D } from "./_plugin-vue_export-helper-CHgC5LLL.mjs";
|
|
6
6
|
const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
7
7
|
__name: "edit",
|
|
@@ -62,7 +62,7 @@ const x = { class: "dialog-footer" }, A = /* @__PURE__ */ j({
|
|
|
62
62
|
}
|
|
63
63
|
return (e, t) => {
|
|
64
64
|
const n = m("el-input"), i = m("el-form-item"), f = m("el-col"), M = m("el-row"), B = m("el-form"), h = m("el-button"), U = m("el-dialog");
|
|
65
|
-
return
|
|
65
|
+
return K(), F(U, {
|
|
66
66
|
modelValue: s.value,
|
|
67
67
|
"onUpdate:modelValue": t[3] || (t[3] = (d) => s.value = d),
|
|
68
68
|
onClose: V
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { defineComponent as wn, mergeModels as E, ref as $, reactive as R, useModel as qn, onMounted as pn, resolveComponent as p,
|
|
1
|
+
import { defineComponent as wn, mergeModels as E, ref as $, reactive as R, useModel as qn, onMounted as pn, resolveComponent as p, createBlock as an, openBlock as kn, withCtx as j, createVNode as t, unref as x, createElementVNode as Cn, createTextVNode as A, toDisplayString as U } from "vue";
|
|
2
2
|
import { ElMessage as L } from "element-plus";
|
|
3
3
|
import { useI18n as Sn } from "vue-i18n";
|
|
4
|
-
import { g as B } from "./index-
|
|
5
|
-
import { D as O } from "./index-
|
|
6
|
-
const
|
|
4
|
+
import { g as B } from "./index-BlZupHNB.mjs";
|
|
5
|
+
import { D as O } from "./index-B7_M6fAN.mjs";
|
|
6
|
+
const Pn = /^[\uD800-\uDBFF]$/, _n = /^[\uDC00-\uDFFF]$/, Dn = /[\uD800-\uDBFF][\uDC00-\uDFFF]/g;
|
|
7
7
|
var F;
|
|
8
8
|
(function(n) {
|
|
9
9
|
n[n.Unknown = 1e-13] = "Unknown", n[n.Rule = 1e-12] = "Rule", n[n.DICT = 2e-8] = "DICT", n[n.Surname = 1] = "Surname", n[n.Custom = 1] = "Custom";
|
|
10
10
|
})(F || (F = {}));
|
|
11
|
-
const
|
|
11
|
+
const r = {
|
|
12
12
|
Normal: 1,
|
|
13
13
|
Surname: 10,
|
|
14
14
|
Custom: 100
|
|
@@ -17,12 +17,12 @@ function m(n) {
|
|
|
17
17
|
var i;
|
|
18
18
|
return n.length - (((i = n.match(Dn)) === null || i === void 0 ? void 0 : i.length) || 0);
|
|
19
19
|
}
|
|
20
|
-
function
|
|
20
|
+
function _(n) {
|
|
21
21
|
const i = [];
|
|
22
22
|
let g = 0;
|
|
23
23
|
for (; g < n.length; ) {
|
|
24
24
|
const u = n[g];
|
|
25
|
-
|
|
25
|
+
Pn.test(u) && _n.test(n[g + 1]) ? (i.push(n.substring(g, g + 2)), g += 2) : (i.push(u), g += 1);
|
|
26
26
|
}
|
|
27
27
|
return i;
|
|
28
28
|
}
|
|
@@ -18716,7 +18716,7 @@ Object.keys(W).forEach((n) => {
|
|
|
18716
18716
|
for (let g of i)
|
|
18717
18717
|
a.set(g, n);
|
|
18718
18718
|
});
|
|
18719
|
-
const
|
|
18719
|
+
const In = [
|
|
18720
18720
|
"zh",
|
|
18721
18721
|
"ch",
|
|
18722
18722
|
"sh",
|
|
@@ -18741,7 +18741,7 @@ const Tn = [
|
|
|
18741
18741
|
"y",
|
|
18742
18742
|
"w",
|
|
18743
18743
|
""
|
|
18744
|
-
],
|
|
18744
|
+
], Tn = ["j", "q", "x"], vn = [
|
|
18745
18745
|
"uān",
|
|
18746
18746
|
"uán",
|
|
18747
18747
|
"uǎn",
|
|
@@ -18833,7 +18833,7 @@ const Tn = [
|
|
|
18833
18833
|
斗: "dǒu",
|
|
18834
18834
|
更: "gēng"
|
|
18835
18835
|
};
|
|
18836
|
-
function
|
|
18836
|
+
function Zn() {
|
|
18837
18837
|
const n = {
|
|
18838
18838
|
零一: "líng yī",
|
|
18839
18839
|
"〇一": "líng yī",
|
|
@@ -18849,12 +18849,12 @@ function vn() {
|
|
|
18849
18849
|
}
|
|
18850
18850
|
return n;
|
|
18851
18851
|
}
|
|
18852
|
-
const Q =
|
|
18852
|
+
const Q = Zn(), Vn = Object.keys(Q).map((n) => ({
|
|
18853
18853
|
zh: n,
|
|
18854
18854
|
pinyin: Q[n],
|
|
18855
18855
|
probability: 1e-12,
|
|
18856
18856
|
length: m(n),
|
|
18857
|
-
priority:
|
|
18857
|
+
priority: r.Normal,
|
|
18858
18858
|
dict: Symbol("rule")
|
|
18859
18859
|
})), yn = {
|
|
18860
18860
|
// 说不说,说一说,叠词之间发音为轻声
|
|
@@ -18874,11 +18874,11 @@ function Rn(n, i, g) {
|
|
|
18874
18874
|
if ($n.indexOf(n) === -1)
|
|
18875
18875
|
return S(n);
|
|
18876
18876
|
if (i === g && i && S(i) !== i)
|
|
18877
|
-
return
|
|
18877
|
+
return I(S(n));
|
|
18878
18878
|
if (g && !En[n].includes(g)) {
|
|
18879
18879
|
const u = S(g);
|
|
18880
18880
|
if (u !== g) {
|
|
18881
|
-
const h =
|
|
18881
|
+
const h = T(u), s = yn[n];
|
|
18882
18882
|
for (let o in s)
|
|
18883
18883
|
if (s[o].indexOf(Number(h)) !== -1)
|
|
18884
18884
|
return o;
|
|
@@ -19394,7 +19394,7 @@ const M = {
|
|
|
19394
19394
|
pinyin: M[n],
|
|
19395
19395
|
probability: 1 + m(n),
|
|
19396
19396
|
length: m(n),
|
|
19397
|
-
priority:
|
|
19397
|
+
priority: r.Surname,
|
|
19398
19398
|
dict: Symbol("surname")
|
|
19399
19399
|
})), J = {
|
|
19400
19400
|
这个: "zhè ge",
|
|
@@ -21558,7 +21558,7 @@ const M = {
|
|
|
21558
21558
|
pinyin: J[n],
|
|
21559
21559
|
probability: 2e-8,
|
|
21560
21560
|
length: 2,
|
|
21561
|
-
priority:
|
|
21561
|
+
priority: r.Normal,
|
|
21562
21562
|
dict: Symbol("dict2")
|
|
21563
21563
|
})), X = {
|
|
21564
21564
|
为什么: "wèi shén me",
|
|
@@ -21891,7 +21891,7 @@ const M = {
|
|
|
21891
21891
|
pinyin: X[n],
|
|
21892
21892
|
probability: 2e-8,
|
|
21893
21893
|
length: 3,
|
|
21894
|
-
priority:
|
|
21894
|
+
priority: r.Normal,
|
|
21895
21895
|
dict: Symbol("dict3")
|
|
21896
21896
|
})), Y = {
|
|
21897
21897
|
成吉思汗: "chéng jí sī hán",
|
|
@@ -23494,7 +23494,7 @@ const M = {
|
|
|
23494
23494
|
pinyin: Y[n],
|
|
23495
23495
|
probability: 2e-8,
|
|
23496
23496
|
length: 4,
|
|
23497
|
-
priority:
|
|
23497
|
+
priority: r.Normal,
|
|
23498
23498
|
dict: Symbol("dict4")
|
|
23499
23499
|
})), nn = {
|
|
23500
23500
|
巴尔干半岛: "bā ěr gàn bàn dǎo",
|
|
@@ -23517,7 +23517,7 @@ const M = {
|
|
|
23517
23517
|
pinyin: nn[n],
|
|
23518
23518
|
probability: 2e-8,
|
|
23519
23519
|
length: 5,
|
|
23520
|
-
priority:
|
|
23520
|
+
priority: r.Normal,
|
|
23521
23521
|
dict: Symbol("dict5")
|
|
23522
23522
|
}));
|
|
23523
23523
|
function gn(n, i) {
|
|
@@ -23527,7 +23527,7 @@ function hn(n) {
|
|
|
23527
23527
|
n.probability < 1e-300 && (n.probability *= 1e300, n.decimal += 1);
|
|
23528
23528
|
}
|
|
23529
23529
|
function Kn(n) {
|
|
23530
|
-
return n.priority ===
|
|
23530
|
+
return n.priority === r.Custom ? -(n.length * n.length * 100) : n.priority === r.Surname ? -(n.length * n.length * 10) : 0;
|
|
23531
23531
|
}
|
|
23532
23532
|
function Hn(n, i) {
|
|
23533
23533
|
const g = [];
|
|
@@ -23556,7 +23556,7 @@ function un(n, i) {
|
|
|
23556
23556
|
return n && n.count <= i.count ? n : i;
|
|
23557
23557
|
}
|
|
23558
23558
|
function Qn(n) {
|
|
23559
|
-
return n.priority ===
|
|
23559
|
+
return n.priority === r.Custom ? -(n.length * n.length * 1e5) : n.priority === r.Surname ? -(n.length * n.length * 100) : 1;
|
|
23560
23560
|
}
|
|
23561
23561
|
function Gn(n, i) {
|
|
23562
23562
|
const g = [];
|
|
@@ -23612,7 +23612,7 @@ class Yn {
|
|
|
23612
23612
|
// 构建 trie 树
|
|
23613
23613
|
buildTrie(i) {
|
|
23614
23614
|
for (let g of i) {
|
|
23615
|
-
const u =
|
|
23615
|
+
const u = _(g.zh);
|
|
23616
23616
|
let h = this.root;
|
|
23617
23617
|
for (let s = 0; s < u.length; s++) {
|
|
23618
23618
|
let o = u[s];
|
|
@@ -23667,7 +23667,7 @@ class Yn {
|
|
|
23667
23667
|
// 搜索字符串返回匹配的模式串
|
|
23668
23668
|
match(i, g) {
|
|
23669
23669
|
let u = this.root, h = [];
|
|
23670
|
-
const s =
|
|
23670
|
+
const s = _(i);
|
|
23671
23671
|
for (let o = 0; o < s.length; o++) {
|
|
23672
23672
|
let z = s[o];
|
|
23673
23673
|
for (; u !== null && !u.children.has(z); )
|
|
@@ -23676,11 +23676,11 @@ class Yn {
|
|
|
23676
23676
|
u = this.root;
|
|
23677
23677
|
else {
|
|
23678
23678
|
u = u.children.get(z);
|
|
23679
|
-
const y = u.patterns.find((c) => g === "off" ? c.priority !==
|
|
23679
|
+
const y = u.patterns.find((c) => g === "off" ? c.priority !== r.Surname : g === "head" ? c.length - 1 - o === 0 : !0);
|
|
23680
23680
|
y && h.push(Object.assign(Object.assign({}, y), { index: o - y.length + 1 }));
|
|
23681
23681
|
let l = u.fail;
|
|
23682
23682
|
for (; l !== null; ) {
|
|
23683
|
-
const c = l.patterns.find((e) => g === "off" ? e.priority !==
|
|
23683
|
+
const c = l.patterns.find((e) => g === "off" ? e.priority !== r.Surname : g === "head" ? e.length - 1 - o === 0 : !0);
|
|
23684
23684
|
c && h.push(Object.assign(Object.assign({}, c), { index: o - c.length + 1 })), l = l.fail;
|
|
23685
23685
|
}
|
|
23686
23686
|
}
|
|
@@ -23707,11 +23707,11 @@ const ii = new ln(), gi = () => ii, S = (n) => {
|
|
|
23707
23707
|
}, hi = (n, i, g, u) => {
|
|
23708
23708
|
const h = cn.search(n, g, u);
|
|
23709
23709
|
let s = 0;
|
|
23710
|
-
const o =
|
|
23710
|
+
const o = _(n);
|
|
23711
23711
|
for (let z = 0; z < o.length; ) {
|
|
23712
23712
|
const y = h[s];
|
|
23713
23713
|
if (y && z === y.index) {
|
|
23714
|
-
if (y.length === 1 && y.priority <=
|
|
23714
|
+
if (y.length === 1 && y.priority <= r.Normal) {
|
|
23715
23715
|
const e = o[z];
|
|
23716
23716
|
let f = "";
|
|
23717
23717
|
f = G(e, o[z - 1], o[z + 1]), i[z] = {
|
|
@@ -23725,12 +23725,12 @@ const ii = new ln(), gi = () => ii, S = (n) => {
|
|
|
23725
23725
|
const l = y.pinyin.split(" ");
|
|
23726
23726
|
let c = 0;
|
|
23727
23727
|
for (let e = 0; e < y.length; e++) {
|
|
23728
|
-
const f =
|
|
23728
|
+
const f = _(y.zh);
|
|
23729
23729
|
i[z + e] = {
|
|
23730
23730
|
origin: f[e],
|
|
23731
|
-
result: l[c],
|
|
23731
|
+
result: l[c] || "",
|
|
23732
23732
|
isZh: !0,
|
|
23733
|
-
originPinyin: l[c]
|
|
23733
|
+
originPinyin: l[c] || ""
|
|
23734
23734
|
}, c++;
|
|
23735
23735
|
}
|
|
23736
23736
|
z += y.length, s++;
|
|
@@ -23746,7 +23746,7 @@ const ii = new ln(), gi = () => ii, S = (n) => {
|
|
|
23746
23746
|
}
|
|
23747
23747
|
}
|
|
23748
23748
|
return { list: i, matches: h };
|
|
23749
|
-
},
|
|
23749
|
+
}, I = (n) => n.replace(/(ā|á|ǎ|à)/g, "a").replace(/(ō|ó|ǒ|ò)/g, "o").replace(/(ē|é|ě|è)/g, "e").replace(/(ī|í|ǐ|ì)/g, "i").replace(/(ū|ú|ǔ|ù)/g, "u").replace(/(ǖ|ǘ|ǚ|ǜ)/g, "ü").replace(/(n̄|ń|ň|ǹ)/g, "n").replace(/(m̄|ḿ|m̌|m̀)/g, "m").replace(/(ê̄|ế|ê̌|ề)/g, "ê"), tn = (n, i = "off") => {
|
|
23750
23750
|
const g = gi();
|
|
23751
23751
|
let u = a.get(n) ? a.get(n).split(" ") : [];
|
|
23752
23752
|
if (g.get(n))
|
|
@@ -23771,31 +23771,33 @@ const ii = new ln(), gi = () => ii, S = (n) => {
|
|
|
23771
23771
|
originPinyin: n
|
|
23772
23772
|
}
|
|
23773
23773
|
];
|
|
23774
|
-
}, D = (n) => {
|
|
23775
|
-
const
|
|
23776
|
-
for (let
|
|
23777
|
-
for (let
|
|
23778
|
-
if (
|
|
23779
|
-
let
|
|
23780
|
-
|
|
23774
|
+
}, D = (n, i) => {
|
|
23775
|
+
const g = n.split(" "), u = [], h = [];
|
|
23776
|
+
for (let s of g)
|
|
23777
|
+
for (let o of In)
|
|
23778
|
+
if (s.startsWith(o)) {
|
|
23779
|
+
let z = s.slice(o.length);
|
|
23780
|
+
Tn.indexOf(o) !== -1 && vn.indexOf(z) !== -1 && (z = Mn[z]), u.push(o), h.push(z);
|
|
23781
23781
|
break;
|
|
23782
23782
|
}
|
|
23783
|
-
return {
|
|
23784
|
-
|
|
23785
|
-
|
|
23783
|
+
return i === "standard" && u.forEach((s, o) => {
|
|
23784
|
+
(s === "y" || s === "w") && (u[o] = "");
|
|
23785
|
+
}), {
|
|
23786
|
+
final: h.join(" "),
|
|
23787
|
+
initial: u.join(" ")
|
|
23786
23788
|
// 声母
|
|
23787
23789
|
};
|
|
23788
|
-
},
|
|
23790
|
+
}, P = (n) => {
|
|
23789
23791
|
const { final: i } = D(n);
|
|
23790
23792
|
let g = "", u = "", h = "";
|
|
23791
|
-
return Nn.indexOf(
|
|
23792
|
-
},
|
|
23793
|
+
return Nn.indexOf(I(i)) !== -1 ? (g = i[0], u = i[1], h = i.slice(2)) : (u = i[0] || "", h = i.slice(1) || ""), { head: g, body: u, tail: h };
|
|
23794
|
+
}, T = (n) => {
|
|
23793
23795
|
const i = /(ā|ō|ē|ī|ū|ǖ|n̄|m̄|ê̄)/, g = /(á|ó|é|í|ú|ǘ|ń|ḿ|ế)/, u = /(ǎ|ǒ|ě|ǐ|ǔ|ǚ|ň|m̌|ê̌)/, h = /(à|ò|è|ì|ù|ǜ|ǹ|m̀|ề)/, s = /(a|o|e|i|u|ü|ê)/, o = /(n|m)$/, z = [];
|
|
23794
23796
|
return n.split(" ").forEach((l) => {
|
|
23795
23797
|
i.test(l) ? z.push("1") : g.test(l) ? z.push("2") : u.test(l) ? z.push("3") : h.test(l) ? z.push("4") : s.test(l) || o.test(l) ? z.push("0") : z.push("");
|
|
23796
23798
|
}), z.join(" ");
|
|
23797
23799
|
}, si = (n, i) => {
|
|
23798
|
-
const g =
|
|
23800
|
+
const g = I(n).split(" "), u = T(i).split(" "), h = [];
|
|
23799
23801
|
return g.forEach((s, o) => {
|
|
23800
23802
|
h.push(`${s}${u[o]}`);
|
|
23801
23803
|
}), h.join(" ");
|
|
@@ -23805,17 +23807,17 @@ const ii = new ln(), gi = () => ii, S = (n) => {
|
|
|
23805
23807
|
g.push(i ? h[0] : h);
|
|
23806
23808
|
}), g.join(" ");
|
|
23807
23809
|
}, oi = (n) => typeof n != "string" ? (console.error("The first param of pinyin is error: " + n + ' is not assignable to type "string".'), !1) : !0;
|
|
23808
|
-
function
|
|
23810
|
+
function v(n, i) {
|
|
23809
23811
|
return i instanceof RegExp ? i.test(n) : !0;
|
|
23810
23812
|
}
|
|
23811
23813
|
const zi = (n, i) => {
|
|
23812
23814
|
let g = i.nonZh;
|
|
23813
23815
|
if (g === "removed")
|
|
23814
|
-
return n.filter((u) => u.isZh || !
|
|
23816
|
+
return n.filter((u) => u.isZh || !v(u.origin, i.nonZhScope));
|
|
23815
23817
|
if (g === "consecutive") {
|
|
23816
23818
|
for (let u = n.length - 2; u >= 0; u--) {
|
|
23817
23819
|
const h = n[u], s = n[u + 1];
|
|
23818
|
-
!h.isZh && !s.isZh &&
|
|
23820
|
+
!h.isZh && !s.isZh && v(h.origin, i.nonZhScope) && v(s.origin, i.nonZhScope) && (h.origin += s.origin, h.result += s.result, s.delete = !0);
|
|
23819
23821
|
}
|
|
23820
23822
|
return n.filter((u) => !u.delete);
|
|
23821
23823
|
} else
|
|
@@ -23826,17 +23828,17 @@ const zi = (n, i) => {
|
|
|
23826
23828
|
break;
|
|
23827
23829
|
case "num":
|
|
23828
23830
|
n.forEach((g) => {
|
|
23829
|
-
g.result = g.isZh ?
|
|
23831
|
+
g.result = g.isZh ? T(g.result) : "";
|
|
23830
23832
|
});
|
|
23831
23833
|
break;
|
|
23832
23834
|
case "initial":
|
|
23833
23835
|
n.forEach((g) => {
|
|
23834
|
-
g.result = g.isZh ? D(g.result).initial : "";
|
|
23836
|
+
g.result = g.isZh ? D(g.result, i.initialPattern).initial : "";
|
|
23835
23837
|
});
|
|
23836
23838
|
break;
|
|
23837
23839
|
case "final":
|
|
23838
23840
|
n.forEach((g) => {
|
|
23839
|
-
g.result = g.isZh ? D(g.result).final : "";
|
|
23841
|
+
g.result = g.isZh ? D(g.result, i.initialPattern).final : "";
|
|
23840
23842
|
});
|
|
23841
23843
|
break;
|
|
23842
23844
|
case "first":
|
|
@@ -23846,17 +23848,17 @@ const zi = (n, i) => {
|
|
|
23846
23848
|
break;
|
|
23847
23849
|
case "finalHead":
|
|
23848
23850
|
n.forEach((g) => {
|
|
23849
|
-
g.result = g.isZh ?
|
|
23851
|
+
g.result = g.isZh ? P(g.result).head : "";
|
|
23850
23852
|
});
|
|
23851
23853
|
break;
|
|
23852
23854
|
case "finalBody":
|
|
23853
23855
|
n.forEach((g) => {
|
|
23854
|
-
g.result = g.isZh ?
|
|
23856
|
+
g.result = g.isZh ? P(g.result).body : "";
|
|
23855
23857
|
});
|
|
23856
23858
|
break;
|
|
23857
23859
|
case "finalTail":
|
|
23858
23860
|
n.forEach((g) => {
|
|
23859
|
-
g.result = g.isZh ?
|
|
23861
|
+
g.result = g.isZh ? P(g.result).tail : "";
|
|
23860
23862
|
});
|
|
23861
23863
|
break;
|
|
23862
23864
|
}
|
|
@@ -23866,7 +23868,7 @@ const zi = (n, i) => {
|
|
|
23866
23868
|
break;
|
|
23867
23869
|
case "none":
|
|
23868
23870
|
n.forEach((g) => {
|
|
23869
|
-
g.isZh && (g.result =
|
|
23871
|
+
g.isZh && (g.result = I(g.result));
|
|
23870
23872
|
});
|
|
23871
23873
|
break;
|
|
23872
23874
|
case "num": {
|
|
@@ -23878,7 +23880,7 @@ const zi = (n, i) => {
|
|
|
23878
23880
|
}
|
|
23879
23881
|
}, ci = (n, i) => {
|
|
23880
23882
|
i.v && n.forEach((g) => {
|
|
23881
|
-
g.isZh && (g.result = g.result.replace(/ü/g, "v"));
|
|
23883
|
+
g.isZh && (g.result = g.result.replace(/ü/g, typeof i.v == "string" ? i.v : "v"));
|
|
23882
23884
|
});
|
|
23883
23885
|
}, ti = (n, i, g) => {
|
|
23884
23886
|
if (i.multiple && m(g) === 1) {
|
|
@@ -23889,7 +23891,7 @@ const zi = (n, i) => {
|
|
|
23889
23891
|
});
|
|
23890
23892
|
}
|
|
23891
23893
|
return i.type === "array" ? n.map((u) => u.result) : i.type === "all" ? n.map((u) => {
|
|
23892
|
-
const h = u.isZh ? u.result : "", { initial: s, final: o } = D(h), { head: z, body: y, tail: l } =
|
|
23894
|
+
const h = u.isZh ? u.result : "", { initial: s, final: o } = D(h, i.initialPattern), { head: z, body: y, tail: l } = P(h);
|
|
23893
23895
|
let c = [];
|
|
23894
23896
|
return h !== "" && (c = [h].concat(tn(u.origin, i.surname).filter((e) => e !== h))), {
|
|
23895
23897
|
origin: u.origin,
|
|
@@ -23900,7 +23902,7 @@ const zi = (n, i) => {
|
|
|
23900
23902
|
finalHead: z,
|
|
23901
23903
|
finalBody: y,
|
|
23902
23904
|
finalTail: l,
|
|
23903
|
-
num: Number(
|
|
23905
|
+
num: Number(T(u.originPinyin)),
|
|
23904
23906
|
isZh: u.isZh,
|
|
23905
23907
|
polyphonic: c,
|
|
23906
23908
|
inZhRange: !!a.get(u.origin),
|
|
@@ -23936,7 +23938,7 @@ var N;
|
|
|
23936
23938
|
n[n.AllSegment = 1] = "AllSegment", n[n.AllArray = 2] = "AllArray", n[n.AllString = 3] = "AllString", n[n.PinyinSegment = 4] = "PinyinSegment", n[n.PinyinArray = 5] = "PinyinArray", n[n.PinyinString = 6] = "PinyinString", n[n.ZhSegment = 7] = "ZhSegment", n[n.ZhArray = 8] = "ZhArray", n[n.ZhString = 9] = "ZhString";
|
|
23937
23939
|
})(N || (N = {}));
|
|
23938
23940
|
N.AllSegment;
|
|
23939
|
-
const
|
|
23941
|
+
const ri = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
23940
23942
|
__name: "edit",
|
|
23941
23943
|
props: /* @__PURE__ */ E({
|
|
23942
23944
|
entityKey: {
|
|
@@ -23950,7 +23952,7 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
23950
23952
|
}),
|
|
23951
23953
|
emits: /* @__PURE__ */ E(["refresh"], ["update:modelValue"]),
|
|
23952
23954
|
setup(n, { emit: i }) {
|
|
23953
|
-
var
|
|
23955
|
+
var Z;
|
|
23954
23956
|
const { t: g } = Sn(), u = $();
|
|
23955
23957
|
let h = R({
|
|
23956
23958
|
requestId: Math.random() * 10 + "",
|
|
@@ -23976,11 +23978,11 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
23976
23978
|
O.goodsCategoryListBizLayDict.useValues();
|
|
23977
23979
|
});
|
|
23978
23980
|
const c = i;
|
|
23979
|
-
(
|
|
23981
|
+
(Z = z.entityKey) != null && Z.categoryId && (h = Object.assign(h, z.entityKey), h.parentId === "00000000-0000-0000-0000-000000000000" && (h.parentId = ""));
|
|
23980
23982
|
const e = async () => {
|
|
23981
23983
|
var d;
|
|
23982
|
-
await ((d = u.value) == null ? void 0 : d.validate((
|
|
23983
|
-
|
|
23984
|
+
await ((d = u.value) == null ? void 0 : d.validate((b) => {
|
|
23985
|
+
b && (h.categoryId ? B.update(h).then((w) => {
|
|
23984
23986
|
w.status === 200 && (L({
|
|
23985
23987
|
message: g("common.submitSuccess"),
|
|
23986
23988
|
type: "success"
|
|
@@ -24010,15 +24012,15 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24010
24012
|
separator: ""
|
|
24011
24013
|
}).toUpperCase();
|
|
24012
24014
|
};
|
|
24013
|
-
return (d,
|
|
24014
|
-
const w = p("el-input"), k = p("el-form-item"), C = p("el-col"),
|
|
24015
|
-
return
|
|
24015
|
+
return (d, b) => {
|
|
24016
|
+
const w = p("el-input"), k = p("el-form-item"), C = p("el-col"), rn = p("el-tree-select"), bn = p("jmash-single-image-upload"), xn = p("el-row"), mn = p("el-form"), V = p("el-button"), fn = p("el-dialog");
|
|
24017
|
+
return kn(), an(fn, {
|
|
24016
24018
|
modelValue: o.value,
|
|
24017
|
-
"onUpdate:modelValue":
|
|
24019
|
+
"onUpdate:modelValue": b[4] || (b[4] = (q) => o.value = q),
|
|
24018
24020
|
onClose: f
|
|
24019
24021
|
}, {
|
|
24020
24022
|
footer: j(() => [
|
|
24021
|
-
Cn("div",
|
|
24023
|
+
Cn("div", ri, [
|
|
24022
24024
|
t(V, { onClick: f }, {
|
|
24023
24025
|
default: j(() => [
|
|
24024
24026
|
A(U(d.$t("common.cancel")), 1)
|
|
@@ -24056,7 +24058,7 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24056
24058
|
default: j(() => [
|
|
24057
24059
|
t(w, {
|
|
24058
24060
|
modelValue: x(h).categoryName,
|
|
24059
|
-
"onUpdate:modelValue":
|
|
24061
|
+
"onUpdate:modelValue": b[0] || (b[0] = (q) => x(h).categoryName = q),
|
|
24060
24062
|
placeholder: d.$t("goodsCategory.categoryNameRequired"),
|
|
24061
24063
|
maxlength: "60",
|
|
24062
24064
|
"show-word-limit": "",
|
|
@@ -24078,7 +24080,7 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24078
24080
|
default: j(() => [
|
|
24079
24081
|
t(w, {
|
|
24080
24082
|
modelValue: x(h).categoryCode,
|
|
24081
|
-
"onUpdate:modelValue":
|
|
24083
|
+
"onUpdate:modelValue": b[1] || (b[1] = (q) => x(h).categoryCode = q),
|
|
24082
24084
|
disabled: l.value,
|
|
24083
24085
|
placeholder: d.$t("goodsCategory.categoryCodeRequired"),
|
|
24084
24086
|
maxlength: "30",
|
|
@@ -24098,9 +24100,9 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24098
24100
|
prop: "parentId"
|
|
24099
24101
|
}, {
|
|
24100
24102
|
default: j(() => [
|
|
24101
|
-
t(
|
|
24103
|
+
t(rn, {
|
|
24102
24104
|
modelValue: x(h).parentId,
|
|
24103
|
-
"onUpdate:modelValue":
|
|
24105
|
+
"onUpdate:modelValue": b[2] || (b[2] = (q) => x(h).parentId = q),
|
|
24104
24106
|
data: x(O).goodsCategoryListBizLayDict.values,
|
|
24105
24107
|
filterable: "",
|
|
24106
24108
|
clearable: "",
|
|
@@ -24121,7 +24123,7 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24121
24123
|
prop: "picUrl"
|
|
24122
24124
|
}, {
|
|
24123
24125
|
default: j(() => [
|
|
24124
|
-
t(
|
|
24126
|
+
t(bn, {
|
|
24125
24127
|
"picture-url": x(h).picUrl,
|
|
24126
24128
|
onImageSrc: jn,
|
|
24127
24129
|
width: 80,
|
|
@@ -24142,7 +24144,7 @@ const bi = { class: "dialog-footer" }, qi = /* @__PURE__ */ wn({
|
|
|
24142
24144
|
default: j(() => [
|
|
24143
24145
|
t(w, {
|
|
24144
24146
|
modelValue: x(h).description,
|
|
24145
|
-
"onUpdate:modelValue":
|
|
24147
|
+
"onUpdate:modelValue": b[3] || (b[3] = (q) => x(h).description = q),
|
|
24146
24148
|
type: "textarea",
|
|
24147
24149
|
autosize: { minRows: 2 },
|
|
24148
24150
|
maxlength: "200",
|