@fmdevui/fm-dev 1.0.91 → 1.0.92
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/es/packages/core/ui/components/fmaddressparsing/index.vue2.mjs +37 -13
- package/es/packages/core/utils/cityparess/index.mjs +37 -13
- package/index.js +75 -27
- package/index.min.js +26 -26
- package/index.min.mjs +26 -26
- package/index.mjs +75 -27
- package/lib/packages/core/ui/components/fmaddressparsing/index.vue2.js +37 -13
- package/lib/packages/core/utils/cityparess/index.js +37 -13
- package/package.json +1 -1
- /package/lib/{make-installer.css → index.css} +0 -0
package/index.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.92 */
|
|
2
2
|
import { defineComponent, reactive, computed, watch, resolveComponent, createBlock, openBlock, withCtx, createVNode, createElementVNode, createTextVNode, toDisplayString as toDisplayString$1, withDirectives, createElementBlock, Fragment, renderList, vShow, ref, onMounted, nextTick, normalizeStyle, createCommentVNode, normalizeClass, withModifiers, mergeModels, useModel, effectScope, getCurrentInstance, shallowRef, isRef as isRef$1, inject, onUnmounted, h, Text, markRaw, hasInjectionContext, toRaw as toRaw$1, isReactive as isReactive$1, toRef, unref, getCurrentScope, onScopeDispose, toRefs, resolveDirective, resolveDynamicComponent, useSlots, mergeProps, createSlots, renderSlot, toHandlers, onBeforeUnmount, onUpdated, useAttrs, normalizeProps, guardReactiveProps } from 'vue';
|
|
3
3
|
import crypto from 'crypto';
|
|
4
4
|
import require$$0 from 'url';
|
|
@@ -37933,22 +37933,46 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
37933
37933
|
if (objectOne.list.length == 1) {
|
|
37934
37934
|
return { p: objectOne.p, c: objectOne.c, jval };
|
|
37935
37935
|
} else if (objectOne.list.length > 1) {
|
|
37936
|
-
const
|
|
37937
|
-
const
|
|
37938
|
-
if (
|
|
37939
|
-
return { p:
|
|
37940
|
-
} else if (
|
|
37936
|
+
const jval32 = val.substr(0, 3);
|
|
37937
|
+
const objectThreed2 = splitCity(jval32, province);
|
|
37938
|
+
if (objectThreed2.list.length == 1) {
|
|
37939
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
37940
|
+
} else if (objectThreed2.list.length == 0) {
|
|
37941
37941
|
return { p: objectOne.p, c: objectOne.c, jval: val };
|
|
37942
|
-
} else if (
|
|
37943
|
-
const
|
|
37944
|
-
const
|
|
37945
|
-
if (
|
|
37946
|
-
return { p:
|
|
37947
|
-
} else if (
|
|
37948
|
-
return { p:
|
|
37942
|
+
} else if (objectThreed2.list.length > 0) {
|
|
37943
|
+
const jval42 = val.substr(0, 4);
|
|
37944
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
37945
|
+
if (objectFoure2.list.length > 0) {
|
|
37946
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
37947
|
+
} else if (objectFoure2.list.length == 0) {
|
|
37948
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
37949
37949
|
}
|
|
37950
37950
|
}
|
|
37951
37951
|
}
|
|
37952
|
+
const jval3 = val.substr(0, 3);
|
|
37953
|
+
const objectThreed = splitCity(jval3, province);
|
|
37954
|
+
if (objectThreed.list.length == 1) {
|
|
37955
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
37956
|
+
} else if (objectThreed.list.length > 1) {
|
|
37957
|
+
const jval42 = val.substr(0, 4);
|
|
37958
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
37959
|
+
if (objectFoure2.list.length > 0) {
|
|
37960
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
37961
|
+
} else if (objectFoure2.list.length == 0) {
|
|
37962
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
37963
|
+
}
|
|
37964
|
+
}
|
|
37965
|
+
const jval4 = val.substr(0, 4);
|
|
37966
|
+
const objectFoure = splitCity(jval4, province);
|
|
37967
|
+
if (objectFoure.list.length == 1) {
|
|
37968
|
+
return { p: objectFoure.p, c: objectFoure.c, jval: jval4 };
|
|
37969
|
+
} else if (objectFoure.list.length > 1) {
|
|
37970
|
+
const jval5 = val.substr(0, 5);
|
|
37971
|
+
const objectFive = splitCity(jval5, province);
|
|
37972
|
+
if (objectFive.list.length > 0) {
|
|
37973
|
+
return { p: objectFive.p, c: objectFive.c, jval: jval5 };
|
|
37974
|
+
}
|
|
37975
|
+
}
|
|
37952
37976
|
return { p: "", c: "", jval: "" };
|
|
37953
37977
|
};
|
|
37954
37978
|
const splitCity = (val, province) => {
|
|
@@ -38083,7 +38107,7 @@ var _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
38083
38107
|
"\u6D77\u5357\u7701|\u6D77\u5357",
|
|
38084
38108
|
"\u6CB3\u5317\u7701|\u6CB3\u5317",
|
|
38085
38109
|
"\u6CB3\u5357\u7701|\u6CB3\u5357",
|
|
38086
|
-
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F",
|
|
38110
|
+
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F|\u9ED1\u9F99",
|
|
38087
38111
|
"\u6E56\u5317\u7701|\u6E56\u5317",
|
|
38088
38112
|
"\u6E56\u5357\u7701|\u6E56\u5357",
|
|
38089
38113
|
"\u5409\u6797\u7701|\u5409\u6797",
|
|
@@ -59038,22 +59062,46 @@ const getCity = (val, province) => {
|
|
|
59038
59062
|
if (objectOne.list.length == 1) {
|
|
59039
59063
|
return { p: objectOne.p, c: objectOne.c, jval };
|
|
59040
59064
|
} else if (objectOne.list.length > 1) {
|
|
59041
|
-
const
|
|
59042
|
-
const
|
|
59043
|
-
if (
|
|
59044
|
-
return { p:
|
|
59045
|
-
} else if (
|
|
59065
|
+
const jval32 = val.substr(0, 3);
|
|
59066
|
+
const objectThreed2 = splitCity(jval32, province);
|
|
59067
|
+
if (objectThreed2.list.length == 1) {
|
|
59068
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
59069
|
+
} else if (objectThreed2.list.length == 0) {
|
|
59046
59070
|
return { p: objectOne.p, c: objectOne.c, jval: val };
|
|
59047
|
-
} else if (
|
|
59048
|
-
const
|
|
59049
|
-
const
|
|
59050
|
-
if (
|
|
59051
|
-
return { p:
|
|
59052
|
-
} else if (
|
|
59053
|
-
return { p:
|
|
59071
|
+
} else if (objectThreed2.list.length > 0) {
|
|
59072
|
+
const jval42 = val.substr(0, 4);
|
|
59073
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
59074
|
+
if (objectFoure2.list.length > 0) {
|
|
59075
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
59076
|
+
} else if (objectFoure2.list.length == 0) {
|
|
59077
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
59054
59078
|
}
|
|
59055
59079
|
}
|
|
59056
59080
|
}
|
|
59081
|
+
const jval3 = val.substr(0, 3);
|
|
59082
|
+
const objectThreed = splitCity(jval3, province);
|
|
59083
|
+
if (objectThreed.list.length == 1) {
|
|
59084
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
59085
|
+
} else if (objectThreed.list.length > 1) {
|
|
59086
|
+
const jval42 = val.substr(0, 4);
|
|
59087
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
59088
|
+
if (objectFoure2.list.length > 0) {
|
|
59089
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
59090
|
+
} else if (objectFoure2.list.length == 0) {
|
|
59091
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
59092
|
+
}
|
|
59093
|
+
}
|
|
59094
|
+
const jval4 = val.substr(0, 4);
|
|
59095
|
+
const objectFoure = splitCity(jval4, province);
|
|
59096
|
+
if (objectFoure.list.length == 1) {
|
|
59097
|
+
return { p: objectFoure.p, c: objectFoure.c, jval: jval4 };
|
|
59098
|
+
} else if (objectFoure.list.length > 1) {
|
|
59099
|
+
const jval5 = val.substr(0, 5);
|
|
59100
|
+
const objectFive = splitCity(jval5, province);
|
|
59101
|
+
if (objectFive.list.length > 0) {
|
|
59102
|
+
return { p: objectFive.p, c: objectFive.c, jval: jval5 };
|
|
59103
|
+
}
|
|
59104
|
+
}
|
|
59057
59105
|
return { p: "", c: "", jval: "" };
|
|
59058
59106
|
};
|
|
59059
59107
|
const splitCity = (val, province) => {
|
|
@@ -59188,7 +59236,7 @@ const provinceData = [
|
|
|
59188
59236
|
"\u6D77\u5357\u7701|\u6D77\u5357",
|
|
59189
59237
|
"\u6CB3\u5317\u7701|\u6CB3\u5317",
|
|
59190
59238
|
"\u6CB3\u5357\u7701|\u6CB3\u5357",
|
|
59191
|
-
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F",
|
|
59239
|
+
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F|\u9ED1\u9F99",
|
|
59192
59240
|
"\u6E56\u5317\u7701|\u6E56\u5317",
|
|
59193
59241
|
"\u6E56\u5357\u7701|\u6E56\u5357",
|
|
59194
59242
|
"\u5409\u6797\u7701|\u5409\u6797",
|
|
@@ -197,22 +197,46 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
197
197
|
if (objectOne.list.length == 1) {
|
|
198
198
|
return { p: objectOne.p, c: objectOne.c, jval };
|
|
199
199
|
} else if (objectOne.list.length > 1) {
|
|
200
|
-
const
|
|
201
|
-
const
|
|
202
|
-
if (
|
|
203
|
-
return { p:
|
|
204
|
-
} else if (
|
|
200
|
+
const jval32 = val.substr(0, 3);
|
|
201
|
+
const objectThreed2 = splitCity(jval32, province);
|
|
202
|
+
if (objectThreed2.list.length == 1) {
|
|
203
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
204
|
+
} else if (objectThreed2.list.length == 0) {
|
|
205
205
|
return { p: objectOne.p, c: objectOne.c, jval: val };
|
|
206
|
-
} else if (
|
|
207
|
-
const
|
|
208
|
-
const
|
|
209
|
-
if (
|
|
210
|
-
return { p:
|
|
211
|
-
} else if (
|
|
212
|
-
return { p:
|
|
206
|
+
} else if (objectThreed2.list.length > 0) {
|
|
207
|
+
const jval42 = val.substr(0, 4);
|
|
208
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
209
|
+
if (objectFoure2.list.length > 0) {
|
|
210
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
211
|
+
} else if (objectFoure2.list.length == 0) {
|
|
212
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
213
213
|
}
|
|
214
214
|
}
|
|
215
215
|
}
|
|
216
|
+
const jval3 = val.substr(0, 3);
|
|
217
|
+
const objectThreed = splitCity(jval3, province);
|
|
218
|
+
if (objectThreed.list.length == 1) {
|
|
219
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
220
|
+
} else if (objectThreed.list.length > 1) {
|
|
221
|
+
const jval42 = val.substr(0, 4);
|
|
222
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
223
|
+
if (objectFoure2.list.length > 0) {
|
|
224
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
225
|
+
} else if (objectFoure2.list.length == 0) {
|
|
226
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
const jval4 = val.substr(0, 4);
|
|
230
|
+
const objectFoure = splitCity(jval4, province);
|
|
231
|
+
if (objectFoure.list.length == 1) {
|
|
232
|
+
return { p: objectFoure.p, c: objectFoure.c, jval: jval4 };
|
|
233
|
+
} else if (objectFoure.list.length > 1) {
|
|
234
|
+
const jval5 = val.substr(0, 5);
|
|
235
|
+
const objectFive = splitCity(jval5, province);
|
|
236
|
+
if (objectFive.list.length > 0) {
|
|
237
|
+
return { p: objectFive.p, c: objectFive.c, jval: jval5 };
|
|
238
|
+
}
|
|
239
|
+
}
|
|
216
240
|
return { p: "", c: "", jval: "" };
|
|
217
241
|
};
|
|
218
242
|
const splitCity = (val, province) => {
|
|
@@ -347,7 +371,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
347
371
|
"\u6D77\u5357\u7701|\u6D77\u5357",
|
|
348
372
|
"\u6CB3\u5317\u7701|\u6CB3\u5317",
|
|
349
373
|
"\u6CB3\u5357\u7701|\u6CB3\u5357",
|
|
350
|
-
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F",
|
|
374
|
+
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F|\u9ED1\u9F99",
|
|
351
375
|
"\u6E56\u5317\u7701|\u6E56\u5317",
|
|
352
376
|
"\u6E56\u5357\u7701|\u6E56\u5357",
|
|
353
377
|
"\u5409\u6797\u7701|\u5409\u6797",
|
|
@@ -124,22 +124,46 @@ const getCity = (val, province) => {
|
|
|
124
124
|
if (objectOne.list.length == 1) {
|
|
125
125
|
return { p: objectOne.p, c: objectOne.c, jval };
|
|
126
126
|
} else if (objectOne.list.length > 1) {
|
|
127
|
-
const
|
|
128
|
-
const
|
|
129
|
-
if (
|
|
130
|
-
return { p:
|
|
131
|
-
} else if (
|
|
127
|
+
const jval32 = val.substr(0, 3);
|
|
128
|
+
const objectThreed2 = splitCity(jval32, province);
|
|
129
|
+
if (objectThreed2.list.length == 1) {
|
|
130
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
131
|
+
} else if (objectThreed2.list.length == 0) {
|
|
132
132
|
return { p: objectOne.p, c: objectOne.c, jval: val };
|
|
133
|
-
} else if (
|
|
134
|
-
const
|
|
135
|
-
const
|
|
136
|
-
if (
|
|
137
|
-
return { p:
|
|
138
|
-
} else if (
|
|
139
|
-
return { p:
|
|
133
|
+
} else if (objectThreed2.list.length > 0) {
|
|
134
|
+
const jval42 = val.substr(0, 4);
|
|
135
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
136
|
+
if (objectFoure2.list.length > 0) {
|
|
137
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
138
|
+
} else if (objectFoure2.list.length == 0) {
|
|
139
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
140
140
|
}
|
|
141
141
|
}
|
|
142
142
|
}
|
|
143
|
+
const jval3 = val.substr(0, 3);
|
|
144
|
+
const objectThreed = splitCity(jval3, province);
|
|
145
|
+
if (objectThreed.list.length == 1) {
|
|
146
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
147
|
+
} else if (objectThreed.list.length > 1) {
|
|
148
|
+
const jval42 = val.substr(0, 4);
|
|
149
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
150
|
+
if (objectFoure2.list.length > 0) {
|
|
151
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
152
|
+
} else if (objectFoure2.list.length == 0) {
|
|
153
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
const jval4 = val.substr(0, 4);
|
|
157
|
+
const objectFoure = splitCity(jval4, province);
|
|
158
|
+
if (objectFoure.list.length == 1) {
|
|
159
|
+
return { p: objectFoure.p, c: objectFoure.c, jval: jval4 };
|
|
160
|
+
} else if (objectFoure.list.length > 1) {
|
|
161
|
+
const jval5 = val.substr(0, 5);
|
|
162
|
+
const objectFive = splitCity(jval5, province);
|
|
163
|
+
if (objectFive.list.length > 0) {
|
|
164
|
+
return { p: objectFive.p, c: objectFive.c, jval: jval5 };
|
|
165
|
+
}
|
|
166
|
+
}
|
|
143
167
|
return { p: "", c: "", jval: "" };
|
|
144
168
|
};
|
|
145
169
|
const splitCity = (val, province) => {
|
|
@@ -274,7 +298,7 @@ const provinceData = [
|
|
|
274
298
|
"\u6D77\u5357\u7701|\u6D77\u5357",
|
|
275
299
|
"\u6CB3\u5317\u7701|\u6CB3\u5317",
|
|
276
300
|
"\u6CB3\u5357\u7701|\u6CB3\u5357",
|
|
277
|
-
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F",
|
|
301
|
+
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F|\u9ED1\u9F99",
|
|
278
302
|
"\u6E56\u5317\u7701|\u6E56\u5317",
|
|
279
303
|
"\u6E56\u5357\u7701|\u6E56\u5357",
|
|
280
304
|
"\u5409\u6797\u7701|\u5409\u6797",
|
package/package.json
CHANGED
|
File without changes
|