@jctrans-materials/comps-vue3 1.0.41-beta.7 → 1.0.41-beta.9

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.d.ts CHANGED
@@ -6,7 +6,7 @@ export { createRequest, getAppId, initSharedConfig };
6
6
  export * from './plugin';
7
7
  export * from './gio';
8
8
  export type { SharedConfig };
9
- export declare const ApplyDataDialog: any, JcSearch: any, GlobalModal: any, JcMSearch: any, ChineseCompanySearch: any, JcLoginDialog: any, CodeInput: any, GoogleInput: any, JcFloatInput: any, JcFloatWrapper: any, JcVerifySlide: any, JcCarrierSearch: any, AirCarrierSearch: any, SeaCarrierSearch: any, AirLineSearch: any, SeaLineSearch: any, LineCascader: any;
9
+ export declare const ApplyDataDialog: any, JcSearch: any, GlobalModal: any, JcMSearch: any, ChineseCompanySearch: any, JcLoginDialog: any, CodeInput: any, GoogleInput: any, JcFloatInput: any, JcFloatWrapper: any, JcVerifySlide: any, JcCarrierSearch: any, AirCarrierSearch: any, SeaCarrierSearch: any, AirLineSearch: any, SeaLineSearch: any, LineCascader: any, JcImg: any;
10
10
  interface JcUIPluginOptions {
11
11
  sharedConfig?: Partial<SharedConfig>;
12
12
  tracking?: TrackConfig;
package/dist/index.esm.js CHANGED
@@ -1746,7 +1746,7 @@ const icon_search_country = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAA
1746
1746
  const icon_search_city = "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAABFUlEQVR4AaRQO07DQBCdWe8B4B5IFFyAK9ARkIVNhIQEEiVtJLgABRVRvIBCJBquwBVyDgoaSnuHeZY3MlYcNsnIb8fze6M3hra0XoKJm95N3Nv3EnyhFvb2EgjRJbOMKqmO2tDcvQ5fK+qvl4CJbOn9/CJPP9tArp5sHtP4lc652VXxPL1Z1hRFIOytF1NuTJCfnT4Ms8HjSgJctn1xIt6hxqIkdK+u8U8zT1ESmP5enUkWmqMkhG2FmxXOvR+EGD5KAhoDqsQvtiMXJQGNQJ4N8mF6PMd/wL8SxuOXPSG21pj9p+L1EOjGyAHoQQ0zWGDqx9pbPWIpwqOEkw+gGyMHoAc1ozOkVhOcZyepYndNpDpPvwAAAP//BVQJHAAAAAZJREFUAwDZWL4hub5xHQAAAABJRU5ErkJggg==";
1747
1747
  const SearchIcon = "data:image/svg+xml,%3csvg%20t='1695277594902'%20fill='%23fff'%20class='icon'%20viewBox='0%200%201024%201024'%20version='1.1'%20xmlns='http://www.w3.org/2000/svg'%20p-id='2534'%20width='200'%20height='200'%3e%3cpath%20d='M448%2085.333333a362.666667%20362.666667%200%201%200%20224.512%20647.509334l155.818667%20155.818666a42.666667%2042.666667%200%200%200%2060.330666-60.330666l-155.818666-155.818667A362.666667%20362.666667%200%200%200%20448%2085.333333zM170.666667%20448a277.333333%20277.333333%200%201%201%20554.666666%200%20277.333333%20277.333333%200%200%201-554.666666%200z'%20p-id='2535'%3e%3c/path%3e%3c/svg%3e";
1748
1748
  const ICON_MORE = "data:image/svg+xml,%3csvg%20width='16'%20height='16'%20viewBox='0%200%2016%2016'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='icon/more'%3e%3cg%20id='&%23231;&%23188;&%23150;&%23231;&%23187;&%23132;'%3e%3cpath%20id='Stroke%201'%20d='M1.56628%207.79421H14.0959'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%203'%20d='M14.0667%207.79292C11.5075%207.79292%209.43396%205.71938%209.43396%203.16016'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3cpath%20id='Stroke%205'%20d='M14.0667%207.79297C11.5075%207.79297%209.43396%209.86651%209.43396%2012.4257'%20stroke='%23FF6A00'%20stroke-width='1.5'%20stroke-linejoin='round'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e";
1749
- const _hoisted_1$n = { class: "selection-wrapper" };
1749
+ const _hoisted_1$o = { class: "selection-wrapper" };
1750
1750
  const _hoisted_2$l = { class: "tag-text" };
1751
1751
  const _hoisted_3$j = ["onClick"];
1752
1752
  const _hoisted_4$h = {
@@ -1796,7 +1796,7 @@ const _hoisted_24$1 = {
1796
1796
  };
1797
1797
  const _hoisted_25$1 = { class: "jc:flex jc:justify-center jc:items-center jc:gap-1" };
1798
1798
  const _hoisted_26$1 = ["src"];
1799
- const _sfc_main$r = /* @__PURE__ */ defineComponent({
1799
+ const _sfc_main$s = /* @__PURE__ */ defineComponent({
1800
1800
  __name: "index",
1801
1801
  props: {
1802
1802
  modelValue: { default: null },
@@ -2145,7 +2145,7 @@ const _sfc_main$r = /* @__PURE__ */ defineComponent({
2145
2145
  ref: referenceRef,
2146
2146
  onClick: focusInput
2147
2147
  }, [
2148
- createElementVNode("div", _hoisted_1$n, [
2148
+ createElementVNode("div", _hoisted_1$o, [
2149
2149
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true),
2150
2150
  __props.multiple && selectedItems.value.length > 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
2151
2151
  (openBlock(true), createElementBlock(Fragment, null, renderList(displayedTags.value, (item, index2) => {
@@ -2315,8 +2315,8 @@ const _export_sfc = (sfc, props) => {
2315
2315
  }
2316
2316
  return target;
2317
2317
  };
2318
- const JcSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-176a8f0f"]]);
2319
- const __vite_glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2318
+ const JcSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["__scopeId", "data-v-176a8f0f"]]);
2319
+ const __vite_glob_0_15 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
2320
2320
  __proto__: null,
2321
2321
  default: JcSearch$1
2322
2322
  }, Symbol.toStringTag, { value: "Module" }));
@@ -3150,7 +3150,7 @@ function debounce(func, wait, options) {
3150
3150
  function isEqual(value, other) {
3151
3151
  return baseIsEqual(value, other);
3152
3152
  }
3153
- const _hoisted_1$m = {
3153
+ const _hoisted_1$n = {
3154
3154
  key: 0,
3155
3155
  class: "modal-container"
3156
3156
  };
@@ -3187,7 +3187,7 @@ const _hoisted_19$4 = {
3187
3187
  const _hoisted_20$2 = { class: "apply-success-container__content" };
3188
3188
  const _hoisted_21$2 = { class: "desc" };
3189
3189
  const _hoisted_22$1 = { class: "apply-success-container__btns" };
3190
- const _sfc_main$q = {
3190
+ const _sfc_main$r = {
3191
3191
  __name: "ApplyDataDialog",
3192
3192
  props: {
3193
3193
  // v-model 绑定,默认 false
@@ -3334,7 +3334,7 @@ const _sfc_main$q = {
3334
3334
  class: "modal-mask",
3335
3335
  onClick: withModifiers(handleClose, ["self"])
3336
3336
  }, [
3337
- !submitSuccess.value ? (openBlock(), createElementBlock("div", _hoisted_1$m, [
3337
+ !submitSuccess.value ? (openBlock(), createElementBlock("div", _hoisted_1$n, [
3338
3338
  createElementVNode("div", _hoisted_2$k, [
3339
3339
  createElementVNode("span", _hoisted_3$i, toDisplayString(isEn.value ? `Apply for data addition` : `申请补充数据`), 1),
3340
3340
  createElementVNode("div", {
@@ -3421,7 +3421,7 @@ const _sfc_main$q = {
3421
3421
  };
3422
3422
  }
3423
3423
  };
3424
- const ApplyDataDialog$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-98fe6169"]]);
3424
+ const ApplyDataDialog$1 = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["__scopeId", "data-v-98fe6169"]]);
3425
3425
  const __vite_glob_0_0 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3426
3426
  __proto__: null,
3427
3427
  default: ApplyDataDialog$1
@@ -3459,10 +3459,10 @@ const useIsEn = (lang = "") => {
3459
3459
  isEn
3460
3460
  };
3461
3461
  };
3462
- const _hoisted_1$l = { class: "global-company-input" };
3462
+ const _hoisted_1$m = { class: "global-company-input" };
3463
3463
  const _hoisted_2$j = { class: "company-option-item" };
3464
3464
  const CHINA_COUNTRY_ID = 1;
3465
- const _sfc_main$p = /* @__PURE__ */ defineComponent({
3465
+ const _sfc_main$q = /* @__PURE__ */ defineComponent({
3466
3466
  __name: "index",
3467
3467
  props: {
3468
3468
  lang: { default: "" },
@@ -3578,7 +3578,7 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
3578
3578
  }
3579
3579
  });
3580
3580
  return (_ctx, _cache) => {
3581
- return openBlock(), createElementBlock("div", _hoisted_1$l, [
3581
+ return openBlock(), createElementBlock("div", _hoisted_1$m, [
3582
3582
  isChina.value ? (openBlock(), createBlock(unref(ElSelect), {
3583
3583
  key: 0,
3584
3584
  modelValue: companyNameValue.value,
@@ -3634,12 +3634,12 @@ const _sfc_main$p = /* @__PURE__ */ defineComponent({
3634
3634
  };
3635
3635
  }
3636
3636
  });
3637
- const ChineseCompanySearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["__scopeId", "data-v-1c4f606a"]]);
3637
+ const ChineseCompanySearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["__scopeId", "data-v-1c4f606a"]]);
3638
3638
  const __vite_glob_0_1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3639
3639
  __proto__: null,
3640
3640
  default: ChineseCompanySearch$1
3641
3641
  }, Symbol.toStringTag, { value: "Module" }));
3642
- const _sfc_main$o = {
3642
+ const _sfc_main$p = {
3643
3643
  name: "GoogleInput",
3644
3644
  components: {
3645
3645
  ElInput
@@ -3724,7 +3724,7 @@ const _sfc_main$o = {
3724
3724
  }
3725
3725
  }
3726
3726
  };
3727
- const _hoisted_1$k = {
3727
+ const _hoisted_1$l = {
3728
3728
  type: "text",
3729
3729
  name: "fakeUsername",
3730
3730
  autocomplete: "on"
@@ -3745,7 +3745,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
3745
3745
  return openBlock(), createElementBlock("div", {
3746
3746
  class: normalizeClass(["google-input", { "is-focus": $options.shouldFloat, "is-have-prepend": $options.isHavePrepend }])
3747
3747
  }, [
3748
- withDirectives(createElementVNode("input", _hoisted_1$k, null, 512), [
3748
+ withDirectives(createElementVNode("input", _hoisted_1$l, null, 512), [
3749
3749
  [vShow, false]
3750
3750
  ]),
3751
3751
  withDirectives(createElementVNode("input", _hoisted_2$i, null, 512), [
@@ -3774,12 +3774,12 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
3774
3774
  ])
3775
3775
  ], 2);
3776
3776
  }
3777
- const GoogleInput$1 = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$9], ["__scopeId", "data-v-27eaff9d"]]);
3777
+ const GoogleInput$1 = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$9], ["__scopeId", "data-v-27eaff9d"]]);
3778
3778
  const __vite_glob_0_4 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3779
3779
  __proto__: null,
3780
3780
  default: GoogleInput$1
3781
3781
  }, Symbol.toStringTag, { value: "Module" }));
3782
- const _sfc_main$n = {
3782
+ const _sfc_main$o = {
3783
3783
  name: "JcFloatInput",
3784
3784
  components: {
3785
3785
  ElInput
@@ -3871,7 +3871,7 @@ const _sfc_main$n = {
3871
3871
  }
3872
3872
  }
3873
3873
  };
3874
- const _hoisted_1$j = {
3874
+ const _hoisted_1$k = {
3875
3875
  type: "text",
3876
3876
  name: "fakeUsername",
3877
3877
  autocomplete: "on"
@@ -3892,7 +3892,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
3892
3892
  return openBlock(), createElementBlock("div", {
3893
3893
  class: normalizeClass(["google-input", { "is-focus": $options.shouldFloat, "is-have-prepend": $options.isHavePrepend }])
3894
3894
  }, [
3895
- withDirectives(createElementVNode("input", _hoisted_1$j, null, 512), [
3895
+ withDirectives(createElementVNode("input", _hoisted_1$k, null, 512), [
3896
3896
  [vShow, false]
3897
3897
  ]),
3898
3898
  withDirectives(createElementVNode("input", _hoisted_2$h, null, 512), [
@@ -3924,7 +3924,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
3924
3924
  ])
3925
3925
  ], 2);
3926
3926
  }
3927
- const JcFloatInput$1 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$8], ["__scopeId", "data-v-b4df44b2"]]);
3927
+ const JcFloatInput$1 = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$8], ["__scopeId", "data-v-b4df44b2"]]);
3928
3928
  const __vite_glob_0_10 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
3929
3929
  __proto__: null,
3930
3930
  default: JcFloatInput$1
@@ -10543,7 +10543,7 @@ let nanoid = (size2 = 21) => {
10543
10543
  }
10544
10544
  return id;
10545
10545
  };
10546
- const _sfc_main$m = {
10546
+ const _sfc_main$n = {
10547
10547
  name: "JcVerifySlide",
10548
10548
  props: {
10549
10549
  visible: { type: Boolean, default: false },
@@ -10819,7 +10819,7 @@ const _sfc_main$m = {
10819
10819
  }
10820
10820
  }
10821
10821
  };
10822
- const _hoisted_1$i = {
10822
+ const _hoisted_1$j = {
10823
10823
  key: 0,
10824
10824
  class: "auth-captcha-box-top"
10825
10825
  };
@@ -10848,7 +10848,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
10848
10848
  "max-width": "100%"
10849
10849
  })
10850
10850
  }, [
10851
- $props.mode === "pop" ? (openBlock(), createElementBlock("div", _hoisted_1$i, [
10851
+ $props.mode === "pop" ? (openBlock(), createElementBlock("div", _hoisted_1$j, [
10852
10852
  createElementVNode("span", _hoisted_2$g, toDisplayString($options.isEn ? "please finish the security verification" : "请完成安全验证"), 1),
10853
10853
  createElementVNode("span", {
10854
10854
  class: "auth-captcha-box-close",
@@ -10973,12 +10973,12 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
10973
10973
  [vShow, $options.showBox]
10974
10974
  ]);
10975
10975
  }
10976
- const JcVerifySlide$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$7], ["__scopeId", "data-v-00650cc3"]]);
10977
- const __vite_glob_0_15 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10976
+ const JcVerifySlide$1 = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$7], ["__scopeId", "data-v-00650cc3"]]);
10977
+ const __vite_glob_0_16 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
10978
10978
  __proto__: null,
10979
10979
  default: JcVerifySlide$1
10980
10980
  }, Symbol.toStringTag, { value: "Module" }));
10981
- const _sfc_main$l = {
10981
+ const _sfc_main$m = {
10982
10982
  name: "CodeInput",
10983
10983
  components: { GoogleInput: GoogleInput$1, JcFloatInput: JcFloatInput$1, JcVerifySlide: JcVerifySlide$1 },
10984
10984
  props: {
@@ -11078,10 +11078,10 @@ const _sfc_main$l = {
11078
11078
  (_b = (_a = this.handleSend).cancel) == null ? void 0 : _b.call(_a);
11079
11079
  }
11080
11080
  };
11081
- const _hoisted_1$h = { class: "code-input-container" };
11081
+ const _hoisted_1$i = { class: "code-input-container" };
11082
11082
  function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
11083
11083
  const _component_JcVerifySlide = resolveComponent("JcVerifySlide");
11084
- return openBlock(), createElementBlock("div", _hoisted_1$h, [
11084
+ return openBlock(), createElementBlock("div", _hoisted_1$i, [
11085
11085
  (openBlock(), createBlock(resolveDynamicComponent($props.showIcon ? "JcFloatInput" : "GoogleInput"), {
11086
11086
  "model-value": $props.modelValue,
11087
11087
  "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:modelValue", $event)),
@@ -11122,15 +11122,15 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
11122
11122
  }, null, 8, ["visible", "is-en", "onSuccess"])
11123
11123
  ]);
11124
11124
  }
11125
- const CodeInput$1 = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$6], ["__scopeId", "data-v-9d6cb765"]]);
11125
+ const CodeInput$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$6], ["__scopeId", "data-v-9d6cb765"]]);
11126
11126
  const __vite_glob_0_2 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11127
11127
  __proto__: null,
11128
11128
  default: CodeInput$1
11129
11129
  }, Symbol.toStringTag, { value: "Module" }));
11130
- const _hoisted_1$g = { class: "global-modal-header-custom" };
11130
+ const _hoisted_1$h = { class: "global-modal-header-custom" };
11131
11131
  const _hoisted_2$f = { class: "global-modal-body-custom" };
11132
11132
  const _hoisted_3$e = { class: "global-modal-footer-custom" };
11133
- const _sfc_main$k = /* @__PURE__ */ defineComponent({
11133
+ const _sfc_main$l = /* @__PURE__ */ defineComponent({
11134
11134
  __name: "GlobalModal",
11135
11135
  props: {
11136
11136
  "modelValue": { type: Boolean, ...{
@@ -11211,7 +11211,7 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
11211
11211
  class: "global-modal-custom"
11212
11212
  }, {
11213
11213
  header: withCtx(() => [
11214
- createElementVNode("div", _hoisted_1$g, [
11214
+ createElementVNode("div", _hoisted_1$h, [
11215
11215
  _cache[9] || (_cache[9] = createElementVNode("h2", null, "即刻链接全球货代", -1)),
11216
11216
  createVNode(unref(ElButton), {
11217
11217
  link: "",
@@ -11386,9 +11386,9 @@ const _sfc_main$k = /* @__PURE__ */ defineComponent({
11386
11386
  });
11387
11387
  const __vite_glob_0_3 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11388
11388
  __proto__: null,
11389
- default: _sfc_main$k
11389
+ default: _sfc_main$l
11390
11390
  }, Symbol.toStringTag, { value: "Module" }));
11391
- const _hoisted_1$f = { class: "jc:flex jc:items-center jc:justify-between" };
11391
+ const _hoisted_1$g = { class: "jc:flex jc:items-center jc:justify-between" };
11392
11392
  const _hoisted_2$e = {
11393
11393
  key: 0,
11394
11394
  class: "jc:ml-2 jc:text-xs jc:text-gray-400"
@@ -11403,7 +11403,7 @@ const _hoisted_6$9 = { class: "jc:flex jc:justify-center jc:items-center jc:gap-
11403
11403
  const _hoisted_7$8 = ["src"];
11404
11404
  const _hoisted_8$8 = { key: 1 };
11405
11405
  const pageSize = 50;
11406
- const _sfc_main$j = /* @__PURE__ */ defineComponent({
11406
+ const _sfc_main$k = /* @__PURE__ */ defineComponent({
11407
11407
  __name: "index",
11408
11408
  props: {
11409
11409
  modelValue: {
@@ -11742,7 +11742,7 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
11742
11742
  }, {
11743
11743
  option: withCtx(() => [
11744
11744
  renderSlot(_ctx.$slots, "option", { item }, () => [
11745
- createElementVNode("div", _hoisted_1$f, [
11745
+ createElementVNode("div", _hoisted_1$g, [
11746
11746
  createElementVNode("span", null, toDisplayString(unref(isEn) ? item.displayEn || item.display : item.displayCn || item.display), 1),
11747
11747
  item.code ? (openBlock(), createElementBlock("span", _hoisted_2$e, toDisplayString(item.code), 1)) : createCommentVNode("", true)
11748
11748
  ])
@@ -11765,12 +11765,12 @@ const _sfc_main$j = /* @__PURE__ */ defineComponent({
11765
11765
  };
11766
11766
  }
11767
11767
  });
11768
- const JcCarrierSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["__scopeId", "data-v-c621b886"]]);
11768
+ const JcCarrierSearch$1 = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["__scopeId", "data-v-c621b886"]]);
11769
11769
  const __vite_glob_0_9 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11770
11770
  __proto__: null,
11771
11771
  default: JcCarrierSearch$1
11772
11772
  }, Symbol.toStringTag, { value: "Module" }));
11773
- const _sfc_main$i = /* @__PURE__ */ defineComponent({
11773
+ const _sfc_main$j = /* @__PURE__ */ defineComponent({
11774
11774
  __name: "AirCarrierSearch",
11775
11775
  setup(__props) {
11776
11776
  return (_ctx, _cache) => {
@@ -11789,9 +11789,9 @@ const _sfc_main$i = /* @__PURE__ */ defineComponent({
11789
11789
  });
11790
11790
  const __vite_glob_0_5 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11791
11791
  __proto__: null,
11792
- default: _sfc_main$i
11792
+ default: _sfc_main$j
11793
11793
  }, Symbol.toStringTag, { value: "Module" }));
11794
- const _sfc_main$h = /* @__PURE__ */ defineComponent({
11794
+ const _sfc_main$i = /* @__PURE__ */ defineComponent({
11795
11795
  __name: "AirLineSearch",
11796
11796
  setup(__props) {
11797
11797
  return (_ctx, _cache) => {
@@ -11810,9 +11810,9 @@ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11810
11810
  });
11811
11811
  const __vite_glob_0_6 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11812
11812
  __proto__: null,
11813
- default: _sfc_main$h
11813
+ default: _sfc_main$i
11814
11814
  }, Symbol.toStringTag, { value: "Module" }));
11815
- const _sfc_main$g = /* @__PURE__ */ defineComponent({
11815
+ const _sfc_main$h = /* @__PURE__ */ defineComponent({
11816
11816
  __name: "SeaCarrierSearch",
11817
11817
  setup(__props) {
11818
11818
  return (_ctx, _cache) => {
@@ -11831,9 +11831,9 @@ const _sfc_main$g = /* @__PURE__ */ defineComponent({
11831
11831
  });
11832
11832
  const __vite_glob_0_7 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11833
11833
  __proto__: null,
11834
- default: _sfc_main$g
11834
+ default: _sfc_main$h
11835
11835
  }, Symbol.toStringTag, { value: "Module" }));
11836
- const _sfc_main$f = /* @__PURE__ */ defineComponent({
11836
+ const _sfc_main$g = /* @__PURE__ */ defineComponent({
11837
11837
  __name: "SeaLineSearch",
11838
11838
  setup(__props) {
11839
11839
  return (_ctx, _cache) => {
@@ -11852,9 +11852,9 @@ const _sfc_main$f = /* @__PURE__ */ defineComponent({
11852
11852
  });
11853
11853
  const __vite_glob_0_8 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11854
11854
  __proto__: null,
11855
- default: _sfc_main$f
11855
+ default: _sfc_main$g
11856
11856
  }, Symbol.toStringTag, { value: "Module" }));
11857
- const _sfc_main$e = {
11857
+ const _sfc_main$f = {
11858
11858
  name: "JcFloatWrapper",
11859
11859
  emits: ["focus", "blur"],
11860
11860
  props: {
@@ -11890,7 +11890,7 @@ const _sfc_main$e = {
11890
11890
  }
11891
11891
  }
11892
11892
  };
11893
- const _hoisted_1$e = { class: "wrapper-container" };
11893
+ const _hoisted_1$f = { class: "wrapper-container" };
11894
11894
  const _hoisted_2$d = {
11895
11895
  key: 0,
11896
11896
  class: "wrapper-prepend"
@@ -11910,7 +11910,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
11910
11910
  onFocusin: _cache[0] || (_cache[0] = (...args) => $options.handleFocusIn && $options.handleFocusIn(...args)),
11911
11911
  onFocusout: _cache[1] || (_cache[1] = (...args) => $options.handleFocusOut && $options.handleFocusOut(...args))
11912
11912
  }, [
11913
- createElementVNode("div", _hoisted_1$e, [
11913
+ createElementVNode("div", _hoisted_1$f, [
11914
11914
  $options.isHavePrepend ? (openBlock(), createElementBlock("div", _hoisted_2$d, [
11915
11915
  renderSlot(_ctx.$slots, "prefix", {}, void 0, true)
11916
11916
  ])) : createCommentVNode("", true),
@@ -11924,11 +11924,99 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
11924
11924
  ])
11925
11925
  ], 34);
11926
11926
  }
11927
- const JcFloatWrapper$1 = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$5], ["__scopeId", "data-v-4e8a7fce"]]);
11927
+ const JcFloatWrapper$1 = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$5], ["__scopeId", "data-v-4e8a7fce"]]);
11928
11928
  const __vite_glob_0_11 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
11929
11929
  __proto__: null,
11930
11930
  default: JcFloatWrapper$1
11931
11931
  }, Symbol.toStringTag, { value: "Module" }));
11932
+ const _hoisted_1$e = ["src", "alt"];
11933
+ const _sfc_main$e = /* @__PURE__ */ defineComponent({
11934
+ ...{
11935
+ inheritAttrs: false
11936
+ },
11937
+ __name: "index",
11938
+ props: {
11939
+ src: {},
11940
+ level: { default: 1 },
11941
+ transform: { type: Boolean, default: true },
11942
+ domains: { default: () => ({
11943
+ origin: "resources.jctrans.com",
11944
+ thumbnail: "thumbnail.jctrans.com",
11945
+ webp: "webp.jctrans.com"
11946
+ }) },
11947
+ alt: {}
11948
+ },
11949
+ setup(__props) {
11950
+ const props = __props;
11951
+ const currentIndex = ref(0);
11952
+ const computedAlt = computed(() => {
11953
+ if (props.alt) return props.alt;
11954
+ const filename = props.src.split("/").pop() || "";
11955
+ return filename.replace(/\.[^.]+$/, "");
11956
+ });
11957
+ function replaceHost(url, host) {
11958
+ const clone = new URL(url.toString());
11959
+ clone.hostname = host;
11960
+ return clone;
11961
+ }
11962
+ const sourceList = computed(() => {
11963
+ if (!props.transform) {
11964
+ return [props.src];
11965
+ }
11966
+ let url;
11967
+ try {
11968
+ url = new URL(props.src);
11969
+ } catch {
11970
+ return [props.src];
11971
+ }
11972
+ const pathname = url.pathname;
11973
+ const extIndex = pathname.lastIndexOf(".");
11974
+ const webpPath = `${pathname.slice(0, extIndex)}.webp`;
11975
+ const origin = props.src;
11976
+ const thumbnail = replaceHost(
11977
+ url,
11978
+ props.domains.thumbnail
11979
+ ).toString();
11980
+ const webp = replaceHost(
11981
+ new URL(webpPath, url.origin),
11982
+ props.domains.webp
11983
+ ).toString();
11984
+ switch (props.level) {
11985
+ case 3:
11986
+ return [webp, thumbnail, origin];
11987
+ case 2:
11988
+ return [thumbnail, origin];
11989
+ default:
11990
+ return [origin];
11991
+ }
11992
+ });
11993
+ const currentSrc = computed(() => {
11994
+ return sourceList.value[currentIndex.value];
11995
+ });
11996
+ watch(
11997
+ () => [props.src, props.level, props.transform],
11998
+ () => {
11999
+ currentIndex.value = 0;
12000
+ }
12001
+ );
12002
+ function handleError() {
12003
+ if (currentIndex.value < sourceList.value.length - 1) {
12004
+ currentIndex.value++;
12005
+ }
12006
+ }
12007
+ return (_ctx, _cache) => {
12008
+ return openBlock(), createElementBlock("img", mergeProps(_ctx.$attrs, {
12009
+ src: currentSrc.value,
12010
+ alt: computedAlt.value,
12011
+ onError: handleError
12012
+ }), null, 16, _hoisted_1$e);
12013
+ };
12014
+ }
12015
+ });
12016
+ const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12017
+ __proto__: null,
12018
+ default: _sfc_main$e
12019
+ }, Symbol.toStringTag, { value: "Module" }));
11932
12020
  /*! js-cookie v3.0.5 | MIT */
11933
12021
  function assign(target) {
11934
12022
  for (var i = 1; i < arguments.length; i++) {
@@ -20487,7 +20575,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
20487
20575
  }, 8, ["modelValue", "width", "onClose", "onOpen"]);
20488
20576
  }
20489
20577
  const index$2 = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render], ["__scopeId", "data-v-8734ed08"]]);
20490
- const __vite_glob_0_12 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20578
+ const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
20491
20579
  __proto__: null,
20492
20580
  default: index$2
20493
20581
  }, Symbol.toStringTag, { value: "Module" }));
@@ -21015,7 +21103,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
21015
21103
  }
21016
21104
  });
21017
21105
  const index$1 = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ae746c64"]]);
21018
- const __vite_glob_0_13 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21106
+ const __vite_glob_0_14 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21019
21107
  __proto__: null,
21020
21108
  default: index$1
21021
21109
  }, Symbol.toStringTag, { value: "Module" }));
@@ -21289,7 +21377,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21289
21377
  };
21290
21378
  }
21291
21379
  });
21292
- const __vite_glob_0_16 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21380
+ const __vite_glob_0_17 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
21293
21381
  __proto__: null,
21294
21382
  default: _sfc_main
21295
21383
  }, Symbol.toStringTag, { value: "Module" }));
@@ -21521,7 +21609,7 @@ function createGlobalModalPlugin() {
21521
21609
  const container = document.createElement("div");
21522
21610
  container.setAttribute("id", "global-modal-root");
21523
21611
  document.body.appendChild(container);
21524
- createApp(_sfc_main$k).mount(container);
21612
+ createApp(_sfc_main$l).mount(container);
21525
21613
  mounted = true;
21526
21614
  }
21527
21615
  app.config.globalProperties.$globalModal = api;
@@ -21541,11 +21629,12 @@ const componentFiles = /* @__PURE__ */ Object.assign({
21541
21629
  "./components/JcCarrierSearch/index.vue": __vite_glob_0_9,
21542
21630
  "./components/JcFloatInput.vue": __vite_glob_0_10,
21543
21631
  "./components/JcFloatWrapper.vue": __vite_glob_0_11,
21544
- "./components/JcLoginDialog/index.vue": __vite_glob_0_12,
21545
- "./components/JcMSearch/index.vue": __vite_glob_0_13,
21546
- "./components/JcSearch/index.vue": __vite_glob_0_14,
21547
- "./components/JcVerifySlide/index.vue": __vite_glob_0_15,
21548
- "./components/LineCascader/index.vue": __vite_glob_0_16
21632
+ "./components/JcImg/index.vue": __vite_glob_0_12,
21633
+ "./components/JcLoginDialog/index.vue": __vite_glob_0_13,
21634
+ "./components/JcMSearch/index.vue": __vite_glob_0_14,
21635
+ "./components/JcSearch/index.vue": __vite_glob_0_15,
21636
+ "./components/JcVerifySlide/index.vue": __vite_glob_0_16,
21637
+ "./components/LineCascader/index.vue": __vite_glob_0_17
21549
21638
  });
21550
21639
  const components = {};
21551
21640
  Object.entries(componentFiles).forEach(([path, module2]) => {
@@ -21580,7 +21669,8 @@ const {
21580
21669
  SeaCarrierSearch,
21581
21670
  AirLineSearch,
21582
21671
  SeaLineSearch,
21583
- LineCascader
21672
+ LineCascader,
21673
+ JcImg
21584
21674
  } = components;
21585
21675
  let installed = false;
21586
21676
  const index = {
@@ -21610,6 +21700,7 @@ export {
21610
21700
  JcCarrierSearch,
21611
21701
  JcFloatInput,
21612
21702
  JcFloatWrapper,
21703
+ JcImg,
21613
21704
  JcLoginDialog,
21614
21705
  JcMSearch,
21615
21706
  JcSearch,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jctrans-materials/comps-vue3",
3
- "version": "1.0.41-beta.7",
3
+ "version": "1.0.41-beta.9",
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.41-beta.7"
41
+ "@jctrans-materials/shared": "1.0.41-beta.9"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@tailwindcss/postcss": "4.1.18",