@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
|
@@ -193,22 +193,46 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
193
193
|
if (objectOne.list.length == 1) {
|
|
194
194
|
return { p: objectOne.p, c: objectOne.c, jval };
|
|
195
195
|
} else if (objectOne.list.length > 1) {
|
|
196
|
-
const
|
|
197
|
-
const
|
|
198
|
-
if (
|
|
199
|
-
return { p:
|
|
200
|
-
} else if (
|
|
196
|
+
const jval32 = val.substr(0, 3);
|
|
197
|
+
const objectThreed2 = splitCity(jval32, province);
|
|
198
|
+
if (objectThreed2.list.length == 1) {
|
|
199
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
200
|
+
} else if (objectThreed2.list.length == 0) {
|
|
201
201
|
return { p: objectOne.p, c: objectOne.c, jval: val };
|
|
202
|
-
} else if (
|
|
203
|
-
const
|
|
204
|
-
const
|
|
205
|
-
if (
|
|
206
|
-
return { p:
|
|
207
|
-
} else if (
|
|
208
|
-
return { p:
|
|
202
|
+
} else if (objectThreed2.list.length > 0) {
|
|
203
|
+
const jval42 = val.substr(0, 4);
|
|
204
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
205
|
+
if (objectFoure2.list.length > 0) {
|
|
206
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
207
|
+
} else if (objectFoure2.list.length == 0) {
|
|
208
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
209
209
|
}
|
|
210
210
|
}
|
|
211
211
|
}
|
|
212
|
+
const jval3 = val.substr(0, 3);
|
|
213
|
+
const objectThreed = splitCity(jval3, province);
|
|
214
|
+
if (objectThreed.list.length == 1) {
|
|
215
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
216
|
+
} else if (objectThreed.list.length > 1) {
|
|
217
|
+
const jval42 = val.substr(0, 4);
|
|
218
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
219
|
+
if (objectFoure2.list.length > 0) {
|
|
220
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
221
|
+
} else if (objectFoure2.list.length == 0) {
|
|
222
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
223
|
+
}
|
|
224
|
+
}
|
|
225
|
+
const jval4 = val.substr(0, 4);
|
|
226
|
+
const objectFoure = splitCity(jval4, province);
|
|
227
|
+
if (objectFoure.list.length == 1) {
|
|
228
|
+
return { p: objectFoure.p, c: objectFoure.c, jval: jval4 };
|
|
229
|
+
} else if (objectFoure.list.length > 1) {
|
|
230
|
+
const jval5 = val.substr(0, 5);
|
|
231
|
+
const objectFive = splitCity(jval5, province);
|
|
232
|
+
if (objectFive.list.length > 0) {
|
|
233
|
+
return { p: objectFive.p, c: objectFive.c, jval: jval5 };
|
|
234
|
+
}
|
|
235
|
+
}
|
|
212
236
|
return { p: "", c: "", jval: "" };
|
|
213
237
|
};
|
|
214
238
|
const splitCity = (val, province) => {
|
|
@@ -343,7 +367,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
343
367
|
"\u6D77\u5357\u7701|\u6D77\u5357",
|
|
344
368
|
"\u6CB3\u5317\u7701|\u6CB3\u5317",
|
|
345
369
|
"\u6CB3\u5357\u7701|\u6CB3\u5357",
|
|
346
|
-
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F",
|
|
370
|
+
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F|\u9ED1\u9F99",
|
|
347
371
|
"\u6E56\u5317\u7701|\u6E56\u5317",
|
|
348
372
|
"\u6E56\u5357\u7701|\u6E56\u5357",
|
|
349
373
|
"\u5409\u6797\u7701|\u5409\u6797",
|
|
@@ -122,22 +122,46 @@ const getCity = (val, province) => {
|
|
|
122
122
|
if (objectOne.list.length == 1) {
|
|
123
123
|
return { p: objectOne.p, c: objectOne.c, jval };
|
|
124
124
|
} else if (objectOne.list.length > 1) {
|
|
125
|
-
const
|
|
126
|
-
const
|
|
127
|
-
if (
|
|
128
|
-
return { p:
|
|
129
|
-
} else if (
|
|
125
|
+
const jval32 = val.substr(0, 3);
|
|
126
|
+
const objectThreed2 = splitCity(jval32, province);
|
|
127
|
+
if (objectThreed2.list.length == 1) {
|
|
128
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
129
|
+
} else if (objectThreed2.list.length == 0) {
|
|
130
130
|
return { p: objectOne.p, c: objectOne.c, jval: val };
|
|
131
|
-
} else if (
|
|
132
|
-
const
|
|
133
|
-
const
|
|
134
|
-
if (
|
|
135
|
-
return { p:
|
|
136
|
-
} else if (
|
|
137
|
-
return { p:
|
|
131
|
+
} else if (objectThreed2.list.length > 0) {
|
|
132
|
+
const jval42 = val.substr(0, 4);
|
|
133
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
134
|
+
if (objectFoure2.list.length > 0) {
|
|
135
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
136
|
+
} else if (objectFoure2.list.length == 0) {
|
|
137
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
138
138
|
}
|
|
139
139
|
}
|
|
140
140
|
}
|
|
141
|
+
const jval3 = val.substr(0, 3);
|
|
142
|
+
const objectThreed = splitCity(jval3, province);
|
|
143
|
+
if (objectThreed.list.length == 1) {
|
|
144
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
145
|
+
} else if (objectThreed.list.length > 1) {
|
|
146
|
+
const jval42 = val.substr(0, 4);
|
|
147
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
148
|
+
if (objectFoure2.list.length > 0) {
|
|
149
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
150
|
+
} else if (objectFoure2.list.length == 0) {
|
|
151
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
152
|
+
}
|
|
153
|
+
}
|
|
154
|
+
const jval4 = val.substr(0, 4);
|
|
155
|
+
const objectFoure = splitCity(jval4, province);
|
|
156
|
+
if (objectFoure.list.length == 1) {
|
|
157
|
+
return { p: objectFoure.p, c: objectFoure.c, jval: jval4 };
|
|
158
|
+
} else if (objectFoure.list.length > 1) {
|
|
159
|
+
const jval5 = val.substr(0, 5);
|
|
160
|
+
const objectFive = splitCity(jval5, province);
|
|
161
|
+
if (objectFive.list.length > 0) {
|
|
162
|
+
return { p: objectFive.p, c: objectFive.c, jval: jval5 };
|
|
163
|
+
}
|
|
164
|
+
}
|
|
141
165
|
return { p: "", c: "", jval: "" };
|
|
142
166
|
};
|
|
143
167
|
const splitCity = (val, province) => {
|
|
@@ -272,7 +296,7 @@ const provinceData = [
|
|
|
272
296
|
"\u6D77\u5357\u7701|\u6D77\u5357",
|
|
273
297
|
"\u6CB3\u5317\u7701|\u6CB3\u5317",
|
|
274
298
|
"\u6CB3\u5357\u7701|\u6CB3\u5357",
|
|
275
|
-
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F",
|
|
299
|
+
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F|\u9ED1\u9F99",
|
|
276
300
|
"\u6E56\u5317\u7701|\u6E56\u5317",
|
|
277
301
|
"\u6E56\u5357\u7701|\u6E56\u5357",
|
|
278
302
|
"\u5409\u6797\u7701|\u5409\u6797",
|
package/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! fm-dev v1.0.
|
|
1
|
+
/*! fm-dev v1.0.92 */
|
|
2
2
|
(function (global, factory) {
|
|
3
3
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue'), require('crypto'), require('url'), require('http'), require('https'), require('util'), require('stream'), require('assert'), require('zlib'), require('element-plus')) :
|
|
4
4
|
typeof define === 'function' && define.amd ? define(['exports', 'vue', 'crypto', 'url', 'http', 'https', 'util', 'stream', 'assert', 'zlib', 'element-plus'], factory) :
|
|
@@ -37928,22 +37928,46 @@
|
|
|
37928
37928
|
if (objectOne.list.length == 1) {
|
|
37929
37929
|
return { p: objectOne.p, c: objectOne.c, jval };
|
|
37930
37930
|
} else if (objectOne.list.length > 1) {
|
|
37931
|
-
const
|
|
37932
|
-
const
|
|
37933
|
-
if (
|
|
37934
|
-
return { p:
|
|
37935
|
-
} else if (
|
|
37931
|
+
const jval32 = val.substr(0, 3);
|
|
37932
|
+
const objectThreed2 = splitCity(jval32, province);
|
|
37933
|
+
if (objectThreed2.list.length == 1) {
|
|
37934
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
37935
|
+
} else if (objectThreed2.list.length == 0) {
|
|
37936
37936
|
return { p: objectOne.p, c: objectOne.c, jval: val };
|
|
37937
|
-
} else if (
|
|
37938
|
-
const
|
|
37939
|
-
const
|
|
37940
|
-
if (
|
|
37941
|
-
return { p:
|
|
37942
|
-
} else if (
|
|
37943
|
-
return { p:
|
|
37937
|
+
} else if (objectThreed2.list.length > 0) {
|
|
37938
|
+
const jval42 = val.substr(0, 4);
|
|
37939
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
37940
|
+
if (objectFoure2.list.length > 0) {
|
|
37941
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
37942
|
+
} else if (objectFoure2.list.length == 0) {
|
|
37943
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
37944
37944
|
}
|
|
37945
37945
|
}
|
|
37946
37946
|
}
|
|
37947
|
+
const jval3 = val.substr(0, 3);
|
|
37948
|
+
const objectThreed = splitCity(jval3, province);
|
|
37949
|
+
if (objectThreed.list.length == 1) {
|
|
37950
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
37951
|
+
} else if (objectThreed.list.length > 1) {
|
|
37952
|
+
const jval42 = val.substr(0, 4);
|
|
37953
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
37954
|
+
if (objectFoure2.list.length > 0) {
|
|
37955
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
37956
|
+
} else if (objectFoure2.list.length == 0) {
|
|
37957
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
37958
|
+
}
|
|
37959
|
+
}
|
|
37960
|
+
const jval4 = val.substr(0, 4);
|
|
37961
|
+
const objectFoure = splitCity(jval4, province);
|
|
37962
|
+
if (objectFoure.list.length == 1) {
|
|
37963
|
+
return { p: objectFoure.p, c: objectFoure.c, jval: jval4 };
|
|
37964
|
+
} else if (objectFoure.list.length > 1) {
|
|
37965
|
+
const jval5 = val.substr(0, 5);
|
|
37966
|
+
const objectFive = splitCity(jval5, province);
|
|
37967
|
+
if (objectFive.list.length > 0) {
|
|
37968
|
+
return { p: objectFive.p, c: objectFive.c, jval: jval5 };
|
|
37969
|
+
}
|
|
37970
|
+
}
|
|
37947
37971
|
return { p: "", c: "", jval: "" };
|
|
37948
37972
|
};
|
|
37949
37973
|
const splitCity = (val, province) => {
|
|
@@ -38078,7 +38102,7 @@
|
|
|
38078
38102
|
"\u6D77\u5357\u7701|\u6D77\u5357",
|
|
38079
38103
|
"\u6CB3\u5317\u7701|\u6CB3\u5317",
|
|
38080
38104
|
"\u6CB3\u5357\u7701|\u6CB3\u5357",
|
|
38081
|
-
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F",
|
|
38105
|
+
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F|\u9ED1\u9F99",
|
|
38082
38106
|
"\u6E56\u5317\u7701|\u6E56\u5317",
|
|
38083
38107
|
"\u6E56\u5357\u7701|\u6E56\u5357",
|
|
38084
38108
|
"\u5409\u6797\u7701|\u5409\u6797",
|
|
@@ -59033,22 +59057,46 @@
|
|
|
59033
59057
|
if (objectOne.list.length == 1) {
|
|
59034
59058
|
return { p: objectOne.p, c: objectOne.c, jval };
|
|
59035
59059
|
} else if (objectOne.list.length > 1) {
|
|
59036
|
-
const
|
|
59037
|
-
const
|
|
59038
|
-
if (
|
|
59039
|
-
return { p:
|
|
59040
|
-
} else if (
|
|
59060
|
+
const jval32 = val.substr(0, 3);
|
|
59061
|
+
const objectThreed2 = splitCity(jval32, province);
|
|
59062
|
+
if (objectThreed2.list.length == 1) {
|
|
59063
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
59064
|
+
} else if (objectThreed2.list.length == 0) {
|
|
59041
59065
|
return { p: objectOne.p, c: objectOne.c, jval: val };
|
|
59042
|
-
} else if (
|
|
59043
|
-
const
|
|
59044
|
-
const
|
|
59045
|
-
if (
|
|
59046
|
-
return { p:
|
|
59047
|
-
} else if (
|
|
59048
|
-
return { p:
|
|
59066
|
+
} else if (objectThreed2.list.length > 0) {
|
|
59067
|
+
const jval42 = val.substr(0, 4);
|
|
59068
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
59069
|
+
if (objectFoure2.list.length > 0) {
|
|
59070
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
59071
|
+
} else if (objectFoure2.list.length == 0) {
|
|
59072
|
+
return { p: objectThreed2.p, c: objectThreed2.c, jval: jval32 };
|
|
59049
59073
|
}
|
|
59050
59074
|
}
|
|
59051
59075
|
}
|
|
59076
|
+
const jval3 = val.substr(0, 3);
|
|
59077
|
+
const objectThreed = splitCity(jval3, province);
|
|
59078
|
+
if (objectThreed.list.length == 1) {
|
|
59079
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
59080
|
+
} else if (objectThreed.list.length > 1) {
|
|
59081
|
+
const jval42 = val.substr(0, 4);
|
|
59082
|
+
const objectFoure2 = splitCity(jval42, province);
|
|
59083
|
+
if (objectFoure2.list.length > 0) {
|
|
59084
|
+
return { p: objectFoure2.p, c: objectFoure2.c, jval: jval42 };
|
|
59085
|
+
} else if (objectFoure2.list.length == 0) {
|
|
59086
|
+
return { p: objectThreed.p, c: objectThreed.c, jval: jval3 };
|
|
59087
|
+
}
|
|
59088
|
+
}
|
|
59089
|
+
const jval4 = val.substr(0, 4);
|
|
59090
|
+
const objectFoure = splitCity(jval4, province);
|
|
59091
|
+
if (objectFoure.list.length == 1) {
|
|
59092
|
+
return { p: objectFoure.p, c: objectFoure.c, jval: jval4 };
|
|
59093
|
+
} else if (objectFoure.list.length > 1) {
|
|
59094
|
+
const jval5 = val.substr(0, 5);
|
|
59095
|
+
const objectFive = splitCity(jval5, province);
|
|
59096
|
+
if (objectFive.list.length > 0) {
|
|
59097
|
+
return { p: objectFive.p, c: objectFive.c, jval: jval5 };
|
|
59098
|
+
}
|
|
59099
|
+
}
|
|
59052
59100
|
return { p: "", c: "", jval: "" };
|
|
59053
59101
|
};
|
|
59054
59102
|
const splitCity = (val, province) => {
|
|
@@ -59183,7 +59231,7 @@
|
|
|
59183
59231
|
"\u6D77\u5357\u7701|\u6D77\u5357",
|
|
59184
59232
|
"\u6CB3\u5317\u7701|\u6CB3\u5317",
|
|
59185
59233
|
"\u6CB3\u5357\u7701|\u6CB3\u5357",
|
|
59186
|
-
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F",
|
|
59234
|
+
"\u9ED1\u9F99\u6C5F\u7701|\u9ED1\u9F99\u6C5F|\u9ED1\u9F99",
|
|
59187
59235
|
"\u6E56\u5317\u7701|\u6E56\u5317",
|
|
59188
59236
|
"\u6E56\u5357\u7701|\u6E56\u5357",
|
|
59189
59237
|
"\u5409\u6797\u7701|\u5409\u6797",
|