jmash-region 0.1.2 → 0.1.4
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/{edit-vdHIxitr.mjs → edit-D7Uz4LdN.mjs} +1 -1
- package/dist/{edit.vue_vue_type_script_setup_true_lang-C9pLcmwM.mjs → edit.vue_vue_type_script_setup_true_lang-GRPUbgJ5.mjs} +1 -1
- package/dist/{index-D7i_f1-9.mjs → index-BLBgitsS.mjs} +2 -2
- package/dist/{index-BzlvOAZv.mjs → index-CdOnDOrK.mjs} +35 -27
- package/dist/index-CsYjg_vi.mjs +1778 -0
- package/dist/index.mjs +1 -1
- package/dts/src/components/JmashRegionCascader/index.vue.d.ts +9 -0
- package/dts/src/components/JmashRegionCascader2/index.vue.d.ts +18 -2
- package/dts/src/components/JmashRegionTree/index.vue.d.ts +11 -1
- package/package.json +1 -1
- package/dist/index-DO0cZHg4.mjs +0 -1731
|
@@ -4,7 +4,7 @@ var q = (n, i, g) => Dn(n, typeof i != "symbol" ? i + "" : i, g);
|
|
|
4
4
|
import { ref as D, reactive as E, defineComponent as En, mergeModels as W, useModel as Nn, resolveComponent as k, openBlock as S, createBlock as A, withCtx as j, createElementVNode as Mn, createVNode as c, createTextVNode as Y, toDisplayString as H, unref as b, createElementBlock as Q, Fragment as J, renderList as X } from "vue";
|
|
5
5
|
import { ElMessage as nn } from "element-plus";
|
|
6
6
|
import { EnumDict as gn } from "jmash-core";
|
|
7
|
-
import { d as I, e as Rn } from "./index-
|
|
7
|
+
import { d as I, e as Rn } from "./index-CsYjg_vi.mjs";
|
|
8
8
|
import { useI18n as Zn } from "vue-i18n";
|
|
9
9
|
class p {
|
|
10
10
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as de, ref as _, resolveComponent as a, resolveDirective as se, openBlock as m, createElementBlock as R, createElementVNode as T, createVNode as l, withCtx as n, withKeys as me, unref as i, createTextVNode as f, toDisplayString as u, withDirectives as C, createBlock as h, isRef as ue, createCommentVNode as U } from "vue";
|
|
2
2
|
import { useTableHooks as pe } from "jmash-core";
|
|
3
|
-
import { d as V } from "./index-
|
|
4
|
-
import { D as j, _ as ce, C as ge } from "./edit.vue_vue_type_script_setup_true_lang-
|
|
3
|
+
import { d as V } from "./index-CsYjg_vi.mjs";
|
|
4
|
+
import { D as j, _ as ce, C as ge } from "./edit.vue_vue_type_script_setup_true_lang-GRPUbgJ5.mjs";
|
|
5
5
|
import { useI18n as fe } from "vue-i18n";
|
|
6
6
|
import { ElMessageBox as ve, ElMessage as ye } from "element-plus";
|
|
7
7
|
const be = { class: "app-container" }, _e = { class: "search-container" }, Ce = ["onClick"], he = ["onClick"], ke = ["onClick"], De = /* @__PURE__ */ de({
|
|
@@ -1,72 +1,80 @@
|
|
|
1
|
-
import { defineComponent as
|
|
2
|
-
import { _ as
|
|
3
|
-
const
|
|
1
|
+
import { defineComponent as m, ref as C, resolveComponent as i, openBlock as f, createElementBlock as _, createVNode as l, withCtx as a, createTextVNode as u, toDisplayString as t } from "vue";
|
|
2
|
+
import { _ as p, a as g, b } from "./index-CsYjg_vi.mjs";
|
|
3
|
+
const v = { class: "app-container" }, y = /* @__PURE__ */ m({
|
|
4
4
|
__name: "index",
|
|
5
|
-
setup(
|
|
6
|
-
const e =
|
|
5
|
+
setup(V) {
|
|
6
|
+
const e = C({
|
|
7
7
|
regionCodeTree: "141024100",
|
|
8
8
|
regionCodeCascader: ["14", "1410", "141024", "141024100", "141024100231"],
|
|
9
|
-
regionCodeCascade2: "141024100"
|
|
9
|
+
regionCodeCascade2: "141024100",
|
|
10
|
+
regionCodeCascade2FullLabel: ""
|
|
10
11
|
});
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
function c(n) {
|
|
13
|
+
n && (e.value.regionCodeCascade2FullLabel = n.join(""));
|
|
14
|
+
}
|
|
15
|
+
return (n, o) => {
|
|
16
|
+
const d = i("el-form-item"), s = i("el-form");
|
|
17
|
+
return f(), _("div", v, [
|
|
14
18
|
l(s, {
|
|
15
19
|
ref: "queryFormRef",
|
|
16
20
|
model: e.value
|
|
17
21
|
}, {
|
|
18
22
|
default: a(() => [
|
|
19
|
-
l(
|
|
23
|
+
l(d, { label: "树形控件地区编码" }, {
|
|
20
24
|
default: a(() => [
|
|
21
|
-
t(
|
|
25
|
+
u(t(e.value.regionCodeTree), 1)
|
|
22
26
|
]),
|
|
23
27
|
_: 1
|
|
24
28
|
}),
|
|
25
|
-
l(
|
|
29
|
+
l(d, { label: "树形控件" }, {
|
|
26
30
|
default: a(() => [
|
|
27
|
-
l(
|
|
31
|
+
l(p, {
|
|
28
32
|
modelValue: e.value.regionCodeTree,
|
|
29
|
-
"onUpdate:modelValue": o[0] || (o[0] = (
|
|
33
|
+
"onUpdate:modelValue": o[0] || (o[0] = (r) => e.value.regionCodeTree = r),
|
|
30
34
|
clearable: "",
|
|
31
35
|
"check-strictly": !0,
|
|
36
|
+
"max-depth": 4,
|
|
32
37
|
placeholder: "请选择地区"
|
|
33
38
|
}, null, 8, ["modelValue"])
|
|
34
39
|
]),
|
|
35
40
|
_: 1
|
|
36
41
|
}),
|
|
37
|
-
l(
|
|
42
|
+
l(d, { label: "级联控件地区编码" }, {
|
|
38
43
|
default: a(() => [
|
|
39
|
-
t(
|
|
44
|
+
u(t(e.value.regionCodeCascader), 1)
|
|
40
45
|
]),
|
|
41
46
|
_: 1
|
|
42
47
|
}),
|
|
43
|
-
l(
|
|
48
|
+
l(d, { label: "级联控件" }, {
|
|
44
49
|
default: a(() => [
|
|
45
|
-
l(
|
|
50
|
+
l(g, {
|
|
46
51
|
style: { width: "100%" },
|
|
47
52
|
modelValue: e.value.regionCodeCascader,
|
|
48
|
-
"onUpdate:modelValue": o[1] || (o[1] = (
|
|
53
|
+
"onUpdate:modelValue": o[1] || (o[1] = (r) => e.value.regionCodeCascader = r),
|
|
49
54
|
clearable: "",
|
|
50
|
-
"check-strictly": !
|
|
55
|
+
"check-strictly": !0,
|
|
56
|
+
"max-depth": 4,
|
|
51
57
|
placeholder: "请选择地区"
|
|
52
58
|
}, null, 8, ["modelValue"])
|
|
53
59
|
]),
|
|
54
60
|
_: 1
|
|
55
61
|
}),
|
|
56
|
-
l(
|
|
62
|
+
l(d, { label: "级联控件地区编码" }, {
|
|
57
63
|
default: a(() => [
|
|
58
|
-
t(
|
|
64
|
+
u(t(e.value.regionCodeCascade2) + " " + t(e.value.regionCodeCascade2FullLabel), 1)
|
|
59
65
|
]),
|
|
60
66
|
_: 1
|
|
61
67
|
}),
|
|
62
|
-
l(
|
|
68
|
+
l(d, { label: "级联控件" }, {
|
|
63
69
|
default: a(() => [
|
|
64
|
-
l(
|
|
70
|
+
l(b, {
|
|
65
71
|
style: { width: "100%" },
|
|
66
72
|
modelValue: e.value.regionCodeCascade2,
|
|
67
|
-
"onUpdate:modelValue": o[2] || (o[2] = (
|
|
73
|
+
"onUpdate:modelValue": o[2] || (o[2] = (r) => e.value.regionCodeCascade2 = r),
|
|
68
74
|
clearable: "",
|
|
69
|
-
|
|
75
|
+
onChange: c,
|
|
76
|
+
"check-strictly": !1,
|
|
77
|
+
"max-depth": 3,
|
|
70
78
|
placeholder: "请选择地区"
|
|
71
79
|
}, null, 8, ["modelValue"])
|
|
72
80
|
]),
|
|
@@ -80,5 +88,5 @@ const g = { class: "app-container" }, h = /* @__PURE__ */ i({
|
|
|
80
88
|
}
|
|
81
89
|
});
|
|
82
90
|
export {
|
|
83
|
-
|
|
91
|
+
y as default
|
|
84
92
|
};
|