@jctrans-materials/comps-vue3 1.0.42-beta.4 → 1.0.42-beta.5

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/index.esm.js CHANGED
@@ -1809,7 +1809,7 @@ const _hoisted_23$2 = {
1809
1809
  key: 0,
1810
1810
  class: "no-result-label"
1811
1811
  };
1812
- const _hoisted_24$2 = {
1812
+ const _hoisted_24$1 = {
1813
1813
  key: 1,
1814
1814
  class: "no-result-label"
1815
1815
  };
@@ -2293,7 +2293,7 @@ const _sfc_main$H = /* @__PURE__ */ defineComponent({
2293
2293
  unref(isFetchingMore) ? (openBlock(), createElementBlock("div", _hoisted_21$4, toDisplayString(isEn.value ? "Loading more..." : "正在加载更多..."), 1)) : createCommentVNode("", true)
2294
2294
  ], 64)) : query.value && !unref(loading) ? (openBlock(), createElementBlock("div", _hoisted_22$3, [
2295
2295
  renderSlot(_ctx.$slots, "noData", {}, () => [
2296
- !__props.showApplyData ? (openBlock(), createElementBlock("p", _hoisted_23$2, toDisplayString(isEn.value ? `No results found related to "${query.value}".` : `未找到与 "${query.value}" 相关的结果`), 1)) : (openBlock(), createElementBlock("div", _hoisted_24$2, [
2296
+ !__props.showApplyData ? (openBlock(), createElementBlock("p", _hoisted_23$2, toDisplayString(isEn.value ? `No results found related to "${query.value}".` : `未找到与 "${query.value}" 相关的结果`), 1)) : (openBlock(), createElementBlock("div", _hoisted_24$1, [
2297
2297
  createTextVNode(toDisplayString(isEn.value ? `No results found. ` : `暂无结果,`) + " ", 1),
2298
2298
  createElementVNode("div", _hoisted_25$1, [
2299
2299
  createElementVNode("span", {
@@ -22491,6 +22491,8 @@ const _sfc_main$d = {
22491
22491
  companyResistCn: false,
22492
22492
  // 滑块验证通过后保存的验证数据(uuid + code),用于获取验证码和提交注册
22493
22493
  verifyData: {},
22494
+ // 动态表单项强制重新渲染的 key,切换国家/登录方式时递增
22495
+ formKey: 0,
22494
22496
  // 注册分步状态:1(城市+联系方式) 或 2(验证码+行业+公司+协议)
22495
22497
  registerStep: 1,
22496
22498
  // Step 1 进入 Step 2 时快照当前联系方式,返回 Step 1 时用于判断是否需重置验证码
@@ -22872,6 +22874,7 @@ const _sfc_main$d = {
22872
22874
  this.form.nameEn = "";
22873
22875
  this.form.firstName = "";
22874
22876
  this.form.lastName = "";
22877
+ this.formKey++;
22875
22878
  }
22876
22879
  this.$nextTick(() => {
22877
22880
  if (this.form.companyName) {
@@ -23199,11 +23202,7 @@ const _hoisted_19$2 = { class: "card-header" };
23199
23202
  const _hoisted_20$1 = { class: "title-group" };
23200
23203
  const _hoisted_21$1 = { class: "tip-text" };
23201
23204
  const _hoisted_22$1 = { class: "location-info" };
23202
- const _hoisted_23$1 = {
23203
- key: 1,
23204
- class: "name-row"
23205
- };
23206
- const _hoisted_24$1 = { class: "agree-text" };
23205
+ const _hoisted_23$1 = { class: "agree-text" };
23207
23206
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23208
23207
  const _component_JcSearch = resolveComponent("JcSearch");
23209
23208
  const _component_JcFloatWrapper = resolveComponent("JcFloatWrapper");
@@ -23273,14 +23272,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23273
23272
  _: 1
23274
23273
  }),
23275
23274
  $options.currentCountryIsChina ? (openBlock(), createBlock(_component_el_form_item, {
23276
- key: 0,
23277
- class: "phone-form-item"
23275
+ class: "phone-form-item",
23276
+ key: "phone-wrap-" + $data.formKey
23278
23277
  }, {
23279
23278
  default: withCtx(() => [
23280
23279
  (openBlock(), createBlock(_component_el_form_item, {
23281
23280
  prop: "phone",
23282
23281
  ref: "phone",
23283
- key: 8,
23282
+ key: "phone-" + $data.formKey,
23284
23283
  class: "tel-mobile",
23285
23284
  "inline-message": true
23286
23285
  }, {
@@ -23341,9 +23340,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23341
23340
  _: 1
23342
23341
  })) : createCommentVNode("", true),
23343
23342
  !$options.currentCountryIsChina ? (openBlock(), createBlock(_component_el_form_item, {
23344
- key: 1,
23345
23343
  prop: "email",
23346
- class: "email-form-item"
23344
+ class: "email-form-item",
23345
+ key: "email-" + $data.formKey
23347
23346
  }, {
23348
23347
  default: withCtx(() => [
23349
23348
  createVNode(_component_JcFloatInput, {
@@ -23503,9 +23502,9 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23503
23502
  createElementVNode("div", _hoisted_22$1, toDisplayString($props.isEn ? $data.resistCompanyInfo.countryNameEn : $data.resistCompanyInfo.countryNameCn) + " / " + toDisplayString($props.isEn ? $data.resistCompanyInfo.cityNameEn : $data.resistCompanyInfo.cityNameCn), 1)
23504
23503
  ]),
23505
23504
  $options.currentCountryIsChina ? (openBlock(), createBlock(_component_el_form_item, {
23506
- key: 0,
23507
23505
  prop: "nameCn",
23508
- class: "name-input-item"
23506
+ class: "name-input-item",
23507
+ key: "nameCn-" + $data.formKey
23509
23508
  }, {
23510
23509
  default: withCtx(() => [
23511
23510
  createVNode(_component_JcFloatInput, {
@@ -23521,7 +23520,10 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23521
23520
  }, 8, ["modelValue", "label", "placeholder"])
23522
23521
  ]),
23523
23522
  _: 1
23524
- })) : (openBlock(), createElementBlock("div", _hoisted_23$1, [
23523
+ })) : (openBlock(), createElementBlock("div", {
23524
+ class: "name-row",
23525
+ key: "nameEn-" + $data.formKey
23526
+ }, [
23525
23527
  createVNode(_component_el_form_item, {
23526
23528
  prop: "firstName",
23527
23529
  class: "name-input-item name-part"
@@ -23572,7 +23574,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23572
23574
  "onUpdate:modelValue": _cache[24] || (_cache[24] = ($event) => $data.form.agree = $event)
23573
23575
  }, {
23574
23576
  default: withCtx(() => [
23575
- createElementVNode("span", _hoisted_24$1, [
23577
+ createElementVNode("span", _hoisted_23$1, [
23576
23578
  $props.isEn ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
23577
23579
  _cache[37] || (_cache[37] = createTextVNode(" I agree ", -1)),
23578
23580
  createElementVNode("span", {
@@ -23626,7 +23628,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
23626
23628
  }, 8, ["model", "rules"])
23627
23629
  ]);
23628
23630
  }
23629
- const RegisterForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$3], ["__scopeId", "data-v-4ae4e4b8"]]);
23631
+ const RegisterForm = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$3], ["__scopeId", "data-v-42b3691f"]]);
23630
23632
  const _imports_0$3 = "data:image/webp;base64,UklGRs4CAABXRUJQVlA4WAoAAAAQAAAAJwAAJwAAQUxQSFoBAAABN6KgbRtmp+3Gn/RDEBEEkzTVdowBQKcP3554FoBl23ba5llJyswNJ2VumGWofOY/p8qSit8R/Z8A+a8elYOpw8ta7XyzQK0aYSpXkxxr+l5TIvLMOMTaaw75atjrjVMg6apzYNuvnZH3q2Wxbl7NYR4Ddz6qB+/b4lxd8llHbmrIR018WxYu3QboXfHdMLae0xXZtvhGY+x52WHLcCHeNxRfOfR5Fu/tpdZaJ1mWZeOiA0zFL+w9j/I9NSffY5NUvmeVwTfp8PxNbrn9HRbs2zo8fU3Muq3K6EtK5JFtkzT6ilPmUrji+CvueSh64OULVMJJ0TamEq7JXBx7vAZTCVWXbcNlqBdm4nxFthPmGrPrJj2SvRBXUBdPNcTUvdQTXIu3eoP+gVt1hWlKyLaBQaNs275awvJIwlYeDaBH/f40BXQnkuCVq7HBmr5VI/naaP+iWj1bl98fVlA4IE4BAAAQBwCdASooACgAPi0ShkKhoQ42SgAMAWJZWxKQyHAkNc+PADbI89n6J94A3jAJQK0xA6Tk60mYtNspcySSE/tFIADM///yqf//Kgv//ywQt7g1bu7h+xw3tKfdFW3YSP2h0iF6VIn4CTXLv//vM//94Jv//ee+S0E0m6xnEgxdBDf7ewX/lL4BgZWe2EfgOrK0pMN4Qy5uWqWBS4KWWUfrCz0nMK/H/I4/+XhdD+65pGbyiKvih/6tn//ciDb/uimjajMDV4Q/Xe6/5j9xYKcn08xURQpu0wODf/+3SuKUFZLR0yHKFUmWQGuB/RhP/o3UFQW2JYdAdLNwvjre+S6H5X//i0Kc3jhiy9mLmUsuJ+4/5++fwdGZUbaTBUfk9QB9rjsVLVNwQW2lzccI98O08eePpfHRQKN1FzjT/cMehMc50hgx//o3l7EokAAA";
23631
23633
  const _imports_1$2 = "data:image/webp;base64,UklGRhACAABXRUJQVlA4WAoAAAAQAAAAGAAAFwAAQUxQSOcAAAABgINt27HlzZxs1+i945+yudmaXJMm27btmmzbtm094f2+L88RMQHoH0ivGDZ+dTufRGOhwhmw/QIfT5NlyDEEHdz1zdzA5sDmTZ4EKeWJp2may+JdpEray5o7HRnnPYCzy2e43uvNSQvW5CfhcwDY1eKWK4CX3WgRAt0NzG7T6At8vGkUw3FXXX8YGLkf9c+8rLBeOI2gxyD51juA6+5ZuFjaej6YvL3vEsEhxb5nuOicA8KHHlECg1QHMzfnukeCszhGAgY6hBCT+RTuvkMWUWQz7XsGgPs2OUSdS9Uv2N0tWOIT/l4AVlA4IAIBAACwBwCdASoZABgAPjESh0KiIQ39VgAQAYJbACdM5JkB+meFg2gDaAN0l4AD9QPSA/wHuJ/sl6KYX31WXITTIqQjhEf+VVEAAP0cZ9TkuKczs9Y1za4WaelqmDJ+pg5xRI8RGqa0Xf/vA/xc/Jt7352wODrO+GBNH/+k0H/0IZkEP/+9kflw8xfZOvuJnYDve0V1+ez//9tEgIWxjEjRen4x7s8w+Gha3PQxumTkBwxFTp+YlQXvZzWdZW3wRP0nsu895denVK5N8FE8Zg23a9118GTARL99uq+SY4/E8PeGs/GKL4ufe2EdSmq0ixJ9pxRZOAX/4XkoyRtaDa35BrgAAAA=";
23632
23634
  const _hoisted_1$c = { class: "login-wx" };
@@ -24779,6 +24781,8 @@ const _sfc_main$8 = {
24779
24781
  verifyData: {},
24780
24782
  codeReady: false,
24781
24783
  codeSent: false,
24784
+ // 动态表单项强制重新渲染的 key,切换国家时递增
24785
+ formKey: 0,
24782
24786
  mobileCodeReady: false,
24783
24787
  emailCodeReady: false,
24784
24788
  mobileCodeSent: false,
@@ -24987,8 +24991,12 @@ const _sfc_main$8 = {
24987
24991
  },
24988
24992
  handleSelectCity(e) {
24989
24993
  var _a, _b, _c, _d;
24994
+ const prevCountryId = this.form.countryId;
24990
24995
  this.form.cityId = e.id;
24991
24996
  this.form.countryId = ((_b = (_a = e.raw) == null ? void 0 : _a.country) == null ? void 0 : _b.id) || ((_d = (_c = e.raw) == null ? void 0 : _c.city) == null ? void 0 : _d.countryId) || "";
24997
+ if (prevCountryId && Number(prevCountryId) !== Number(this.form.countryId)) {
24998
+ this.formKey++;
24999
+ }
24992
25000
  this.$nextTick(() => {
24993
25001
  if (!this.hasResistCompany && this.form.companyName) {
24994
25002
  this.$refs.formRef.validateField("companyName");
@@ -25212,7 +25220,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25212
25220
  createElementVNode("div", _hoisted_2$6, [
25213
25221
  createElementVNode("div", _hoisted_3$6, toDisplayString($props.isEn ? "Complete Your Information" : "完善企业信息"), 1),
25214
25222
  createElementVNode("div", _hoisted_4$6, [
25215
- _cache[17] || (_cache[17] = createElementVNode("img", {
25223
+ _cache[18] || (_cache[18] = createElementVNode("img", {
25216
25224
  src: "https://resources.jctrans.com/res/era/pc/img/icon_gantan.png",
25217
25225
  alt: ""
25218
25226
  }, null, -1)),
@@ -25245,7 +25253,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25245
25253
  placeholder: $props.isEn ? "Location(City)" : "请输入公司所在城市",
25246
25254
  onSelect: $options.handleSelectCity
25247
25255
  }, {
25248
- prefix: withCtx(() => [..._cache[18] || (_cache[18] = [
25256
+ prefix: withCtx(() => [..._cache[19] || (_cache[19] = [
25249
25257
  createElementVNode("i", { class: "icon-auth-location" }, null, -1)
25250
25258
  ])]),
25251
25259
  _: 1
@@ -25276,7 +25284,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25276
25284
  "onUpdate:existStatus": $options.handleCompanyExistStatus,
25277
25285
  onChange: $options.handleChangeCompany
25278
25286
  }, {
25279
- prefix: withCtx(() => [..._cache[19] || (_cache[19] = [
25287
+ prefix: withCtx(() => [..._cache[20] || (_cache[20] = [
25280
25288
  createElementVNode("i", { class: "icon-auth-company" }, null, -1)
25281
25289
  ])]),
25282
25290
  _: 1
@@ -25327,25 +25335,45 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25327
25335
  ]),
25328
25336
  createElementVNode("div", _hoisted_19$1, toDisplayString($props.isEn ? $data.resistCompanyInfo.countryNameEn : $data.resistCompanyInfo.countryNameCn) + " / " + toDisplayString($props.isEn ? $data.resistCompanyInfo.cityNameEn : $data.resistCompanyInfo.cityNameCn), 1)
25329
25337
  ]),
25330
- createVNode(_component_el_form_item, {
25331
- prop: $options.currentCountryIsChina ? "nameCn" : "nameEn",
25332
- class: "name-input-item"
25338
+ $options.currentCountryIsChina ? (openBlock(), createBlock(_component_el_form_item, {
25339
+ prop: "nameCn",
25340
+ class: "name-input-item",
25341
+ key: "nameCn-" + $data.formKey
25333
25342
  }, {
25334
25343
  default: withCtx(() => [
25335
25344
  createVNode(_component_JcFloatInput, {
25336
- modelValue: $data.form[$options.currentCountryIsChina ? "nameCn" : "nameEn"],
25337
- "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.form[$options.currentCountryIsChina ? "nameCn" : "nameEn"] = $event),
25338
- label: $options.currentCountryIsChina ? $props.isEn ? "Your Full Name in Chinese" : "您的中文名称" : $props.isEn ? "Your Full Name in English" : "您的名称",
25345
+ modelValue: $data.form.nameCn,
25346
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.form.nameCn = $event),
25347
+ label: $props.isEn ? "Your Full Name in Chinese" : "您的中文名称",
25339
25348
  placeholder: $props.isEn ? "Please enter your name to prove your identity" : "请输入您的姓名,以证明您的身份"
25340
25349
  }, {
25341
- prefix: withCtx(() => [..._cache[20] || (_cache[20] = [
25350
+ prefix: withCtx(() => [..._cache[21] || (_cache[21] = [
25342
25351
  createElementVNode("i", { class: "icon-auth-user" }, null, -1)
25343
25352
  ])]),
25344
25353
  _: 1
25345
25354
  }, 8, ["modelValue", "label", "placeholder"])
25346
25355
  ]),
25347
25356
  _: 1
25348
- }, 8, ["prop"])
25357
+ })) : (openBlock(), createBlock(_component_el_form_item, {
25358
+ prop: "nameEn",
25359
+ class: "name-input-item",
25360
+ key: "nameEn-" + $data.formKey
25361
+ }, {
25362
+ default: withCtx(() => [
25363
+ createVNode(_component_JcFloatInput, {
25364
+ modelValue: $data.form.nameEn,
25365
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.form.nameEn = $event),
25366
+ label: $props.isEn ? "Your Full Name in English" : "您的名称",
25367
+ placeholder: $props.isEn ? "Please enter your name to prove your identity" : "请输入您的姓名,以证明您的身份"
25368
+ }, {
25369
+ prefix: withCtx(() => [..._cache[22] || (_cache[22] = [
25370
+ createElementVNode("i", { class: "icon-auth-user" }, null, -1)
25371
+ ])]),
25372
+ _: 1
25373
+ }, 8, ["modelValue", "label", "placeholder"])
25374
+ ]),
25375
+ _: 1
25376
+ }))
25349
25377
  ], 64)),
25350
25378
  $options.isShowMobileCode ? (openBlock(), createElementBlock(Fragment, { key: 2 }, [
25351
25379
  createVNode(_component_el_form_item, {
@@ -25362,16 +25390,16 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25362
25390
  default: withCtx(() => [
25363
25391
  createVNode(_component_GoogleInput, {
25364
25392
  modelValue: $data.form.phone,
25365
- "onUpdate:modelValue": _cache[9] || (_cache[9] = ($event) => $data.form.phone = $event),
25393
+ "onUpdate:modelValue": _cache[10] || (_cache[10] = ($event) => $data.form.phone = $event),
25366
25394
  placeholder: $props.isEn ? "Cell Phone Number" : "手机号码",
25367
25395
  label: $props.isEn ? "Cell Phone Number" : "手机号码",
25368
25396
  clearable: "",
25369
25397
  autocomplete: "off",
25370
- onBlur: _cache[10] || (_cache[10] = ($event) => $options.validateField("phone")),
25398
+ onBlur: _cache[11] || (_cache[11] = ($event) => $options.validateField("phone")),
25371
25399
  maxlength: "15"
25372
25400
  }, {
25373
25401
  prefix: withCtx(() => [
25374
- _cache[21] || (_cache[21] = createElementVNode("i", { class: "icon-auth-phone" }, null, -1)),
25402
+ _cache[23] || (_cache[23] = createElementVNode("i", { class: "icon-auth-phone" }, null, -1)),
25375
25403
  createVNode(_component_el_form_item, {
25376
25404
  prop: "areaCode",
25377
25405
  class: "tel-areacode",
@@ -25380,9 +25408,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25380
25408
  default: withCtx(() => [
25381
25409
  createVNode(_component_el_select, {
25382
25410
  modelValue: $data.form.areaCode,
25383
- "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => $data.form.areaCode = $event),
25411
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => $data.form.areaCode = $event),
25384
25412
  placeholder: $props.isEn ? "Code" : "区号",
25385
- onChange: _cache[8] || (_cache[8] = ($event) => $options.validateField("areaCode")),
25413
+ onChange: _cache[9] || (_cache[9] = ($event) => $options.validateField("areaCode")),
25386
25414
  "popper-class": `jc-area-code-select-wrapper`
25387
25415
  }, {
25388
25416
  default: withCtx(() => [
@@ -25412,16 +25440,16 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25412
25440
  default: withCtx(() => [
25413
25441
  createVNode(_component_CodeInput, {
25414
25442
  modelValue: $data.form.mobileCode,
25415
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.form.mobileCode = $event),
25443
+ "onUpdate:modelValue": _cache[12] || (_cache[12] = ($event) => $data.form.mobileCode = $event),
25416
25444
  label: $options.codeInputLabel,
25417
25445
  placeholder: $props.isEn ? "Enter 4 Verification Code" : "请输入4位数字验证码",
25418
25446
  ready: $data.mobileCodeReady,
25419
25447
  "is-en": $props.isEn,
25420
25448
  "show-icon": "",
25421
25449
  "form-type-color": "4",
25422
- onSend: _cache[12] || (_cache[12] = (data) => $options.handleGetCode(data, "mobile"))
25450
+ onSend: _cache[13] || (_cache[13] = (data) => $options.handleGetCode(data, "mobile"))
25423
25451
  }, {
25424
- prefix: withCtx(() => [..._cache[22] || (_cache[22] = [
25452
+ prefix: withCtx(() => [..._cache[24] || (_cache[24] = [
25425
25453
  createElementVNode("i", { class: "icon-verify" }, null, -1)
25426
25454
  ])]),
25427
25455
  _: 1
@@ -25438,12 +25466,12 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25438
25466
  default: withCtx(() => [
25439
25467
  createVNode(_component_JcFloatInput, {
25440
25468
  modelValue: $data.form.email,
25441
- "onUpdate:modelValue": _cache[13] || (_cache[13] = ($event) => $data.form.email = $event),
25469
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.form.email = $event),
25442
25470
  label: $props.isEn ? "Business Email Address" : "企业邮箱",
25443
25471
  placeholder: $props.isEn ? "Business Email Address, QQ Mail is not available" : "请输入您的企业邮箱,暂不支持QQ邮箱",
25444
- onBlur: _cache[14] || (_cache[14] = ($event) => $options.validateField("email"))
25472
+ onBlur: _cache[15] || (_cache[15] = ($event) => $options.validateField("email"))
25445
25473
  }, {
25446
- prefix: withCtx(() => [..._cache[23] || (_cache[23] = [
25474
+ prefix: withCtx(() => [..._cache[25] || (_cache[25] = [
25447
25475
  createElementVNode("i", { class: "icon-auth-email" }, null, -1)
25448
25476
  ])]),
25449
25477
  _: 1
@@ -25455,16 +25483,16 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25455
25483
  default: withCtx(() => [
25456
25484
  createVNode(_component_CodeInput, {
25457
25485
  modelValue: $data.form.emailCode,
25458
- "onUpdate:modelValue": _cache[15] || (_cache[15] = ($event) => $data.form.emailCode = $event),
25486
+ "onUpdate:modelValue": _cache[16] || (_cache[16] = ($event) => $data.form.emailCode = $event),
25459
25487
  label: $options.codeInputLabel,
25460
25488
  placeholder: $props.isEn ? "Enter 4 Verification Code" : "请输入4位数字验证码",
25461
25489
  ready: $data.emailCodeReady,
25462
25490
  "is-en": $props.isEn,
25463
25491
  "show-icon": "",
25464
25492
  "form-type-color": "4",
25465
- onSend: _cache[16] || (_cache[16] = (data) => $options.handleGetCode(data, "email"))
25493
+ onSend: _cache[17] || (_cache[17] = (data) => $options.handleGetCode(data, "email"))
25466
25494
  }, {
25467
- prefix: withCtx(() => [..._cache[24] || (_cache[24] = [
25495
+ prefix: withCtx(() => [..._cache[26] || (_cache[26] = [
25468
25496
  createElementVNode("i", { class: "icon-verify" }, null, -1)
25469
25497
  ])]),
25470
25498
  _: 1
@@ -25489,7 +25517,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
25489
25517
  }, 8, ["model", "rules"])
25490
25518
  ]);
25491
25519
  }
25492
- const CompleteInfoForm = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1], ["__scopeId", "data-v-8d245598"]]);
25520
+ const CompleteInfoForm = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$1], ["__scopeId", "data-v-388cd5f0"]]);
25493
25521
  const _hoisted_1$7 = { class: "auth-footer-box" };
25494
25522
  const _sfc_main$7 = /* @__PURE__ */ defineComponent({
25495
25523
  __name: "FooterBox",
@@ -26546,6 +26574,8 @@ const _sfc_main$3 = {
26546
26574
  companyResistEn: false,
26547
26575
  companyResistCn: false,
26548
26576
  verifyData: {},
26577
+ // 动态表单项强制重新渲染的 key,切换国家时递增
26578
+ formKey: 0,
26549
26579
  registerStep: 1,
26550
26580
  step1AccountSnapshot: "",
26551
26581
  form: {
@@ -26860,6 +26890,7 @@ const _sfc_main$3 = {
26860
26890
  this.form.nameEn = "";
26861
26891
  this.form.firstName = "";
26862
26892
  this.form.lastName = "";
26893
+ this.formKey++;
26863
26894
  }
26864
26895
  this.$nextTick(() => {
26865
26896
  if (this.form.companyName) {
@@ -27212,14 +27243,14 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
27212
27243
  _: 1
27213
27244
  }),
27214
27245
  $options.currentCountryIsChina ? (openBlock(), createBlock(_component_el_form_item, {
27215
- key: 0,
27216
- class: "phone-form-item"
27246
+ class: "phone-form-item",
27247
+ key: "phone-wrap-" + $data.formKey
27217
27248
  }, {
27218
27249
  default: withCtx(() => [
27219
27250
  (openBlock(), createBlock(_component_el_form_item, {
27220
27251
  prop: "phone",
27221
27252
  ref: "phone",
27222
- key: 8,
27253
+ key: "phone-" + $data.formKey,
27223
27254
  class: "tel-mobile",
27224
27255
  "inline-message": true
27225
27256
  }, {
@@ -27280,9 +27311,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
27280
27311
  _: 1
27281
27312
  })) : createCommentVNode("", true),
27282
27313
  !$options.currentCountryIsChina ? (openBlock(), createBlock(_component_el_form_item, {
27283
- key: 1,
27284
27314
  prop: "email",
27285
- class: "email-form-item"
27315
+ class: "email-form-item",
27316
+ key: "email-" + $data.formKey
27286
27317
  }, {
27287
27318
  default: withCtx(() => [
27288
27319
  createVNode(_component_JcFloatInput, {
@@ -27556,7 +27587,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
27556
27587
  }, 8, ["model", "rules"])
27557
27588
  ]);
27558
27589
  }
27559
- const ThirdRegisterForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-fda6eabc"]]);
27590
+ const ThirdRegisterForm = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render], ["__scopeId", "data-v-0922f7b6"]]);
27560
27591
  function useLoginForm(options) {
27561
27592
  const { isEn, loginType } = options;
27562
27593
  const loginFormRef = ref();
@@ -27576,6 +27607,7 @@ function useLoginForm(options) {
27576
27607
  const codeReady = ref(false);
27577
27608
  const loginMethod = ref("email");
27578
27609
  const verifyData = ref({});
27610
+ const formKey = ref(0);
27579
27611
  const captchaVisible = ref(false);
27580
27612
  const mobileUid = ref("");
27581
27613
  const emailUid = ref("");
@@ -27637,6 +27669,7 @@ function useLoginForm(options) {
27637
27669
  function switchLoginTab(type) {
27638
27670
  if (loginType.value === type) return;
27639
27671
  loginType.value = type;
27672
+ formKey.value++;
27640
27673
  nextTick(() => {
27641
27674
  if (!loginFormRef.value) return;
27642
27675
  loginFormRef.value.clearValidate();
@@ -27727,6 +27760,7 @@ function useLoginForm(options) {
27727
27760
  }
27728
27761
  async function handleChangeSubType(type) {
27729
27762
  loginMethod.value = type;
27763
+ formKey.value++;
27730
27764
  if (type == "mobile") {
27731
27765
  if (areaCodeData.value.length === 0) {
27732
27766
  await getLocalIpData();
@@ -27765,6 +27799,7 @@ function useLoginForm(options) {
27765
27799
  verifyData,
27766
27800
  captchaVisible,
27767
27801
  loginMethod,
27802
+ formKey,
27768
27803
  // 计算属性
27769
27804
  computedRules,
27770
27805
  // 方法
@@ -27910,6 +27945,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
27910
27945
  verifyData,
27911
27946
  captchaVisible,
27912
27947
  computedRules,
27948
+ formKey,
27913
27949
  switchLoginTab,
27914
27950
  validateField,
27915
27951
  handleGetCode,
@@ -28315,7 +28351,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
28315
28351
  (openBlock(), createBlock(unref(ElFormItem), {
28316
28352
  prop: "phone",
28317
28353
  ref: "phone",
28318
- key: 8,
28354
+ key: "phone-" + unref(formKey),
28319
28355
  class: "tel-mobile",
28320
28356
  "inline-message": true
28321
28357
  }, {
@@ -28543,7 +28579,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
28543
28579
  };
28544
28580
  }
28545
28581
  });
28546
- const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-80de1603"]]);
28582
+ const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["__scopeId", "data-v-32d7a7e9"]]);
28547
28583
  const __vite_glob_0_16 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
28548
28584
  __proto__: null,
28549
28585
  default: index$2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jctrans-materials/comps-vue3",
3
- "version": "1.0.42-beta.4",
3
+ "version": "1.0.42-beta.5",
4
4
  "private": false,
5
5
  "description": "",
6
6
  "type": "module",
@@ -38,7 +38,7 @@
38
38
  "nanoid": "^5.1.6",
39
39
  "qrcode": "^1.5.4",
40
40
  "tailwindcss": "4.1.18",
41
- "@jctrans-materials/shared": "1.0.42-beta.4"
41
+ "@jctrans-materials/shared": "1.0.42-beta.5"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@tailwindcss/postcss": "4.1.18",