zartui 3.1.73 → 3.1.75

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/lib/zartui.cjs.js CHANGED
@@ -12312,7 +12312,6 @@ var stdin_default$R = vue.defineComponent({
12312
12312
  slots
12313
12313
  }) {
12314
12314
  const swipeRef = vue.ref();
12315
- const hasDownloadSupport = vue.ref(false);
12316
12315
  const state = vue.reactive({
12317
12316
  active: 0,
12318
12317
  rootWidth: 0,
@@ -12397,7 +12396,7 @@ var stdin_default$R = vue.defineComponent({
12397
12396
  });
12398
12397
  const renderIndex = () => {
12399
12398
  const image = props.images[state.active];
12400
- const showDownload = props.showDownload && hasDownloadSupport.value && !image.url.startsWith("data:");
12399
+ const showDownload = props.showDownload && !image.url.startsWith("data:");
12401
12400
  if (props.showIndex || showDownload) {
12402
12401
  if (props.showIndex && slots.index) {
12403
12402
  return vue.createVNode("div", {
@@ -12480,20 +12479,9 @@ var stdin_default$R = vue.defineComponent({
12480
12479
  useExpose({
12481
12480
  swipeTo
12482
12481
  });
12483
- vue.onMounted(() => __async$3(this, null, function* () {
12484
- var _a;
12482
+ vue.onMounted(() => {
12485
12483
  resize();
12486
- try {
12487
- const universalJsSdk = yield Promise.resolve().then(() => require("./index-bb5638a0.js"));
12488
- if (universalJsSdk && universalJsSdk.getJSI) {
12489
- const fileJsi = (_a = universalJsSdk.getJSI()) == null ? void 0 : _a.file;
12490
- hasDownloadSupport.value = !!(fileJsi && fileJsi.download);
12491
- }
12492
- } catch (e) {
12493
- console.warn("Failed to check download support:", e);
12494
- hasDownloadSupport.value = false;
12495
- }
12496
- }));
12484
+ });
12497
12485
  vue.watch([windowWidth, windowHeight], resize);
12498
12486
  vue.watch(() => props.startPosition, (value) => setActive(+value));
12499
12487
  vue.watch(() => props.show, (value) => {
@@ -16093,6 +16081,7 @@ const mediaPickerProps = {
16093
16081
  disabled: Boolean,
16094
16082
  showTitle: Boolean,
16095
16083
  showDownload: Boolean,
16084
+ downloadAction: Function,
16096
16085
  useFileNameAsLabel: Boolean,
16097
16086
  title: makeStringProp("添加附件"),
16098
16087
  mediaList: makeArrayProp(),
@@ -16784,6 +16773,7 @@ var stdin_default$C = vue.defineComponent({
16784
16773
  url: image.url || image.showSrc || ""
16785
16774
  })),
16786
16775
  showDownload: props.showDownload,
16776
+ downloadAction: props.downloadAction,
16787
16777
  startPosition: imageIndex,
16788
16778
  closeable: true
16789
16779
  });
@@ -23509,7 +23499,7 @@ const Lazyload = {
23509
23499
  });
23510
23500
  }
23511
23501
  };
23512
- const version = "3.1.73";
23502
+ const version = "3.1.75";
23513
23503
  function install(app) {
23514
23504
  const components = [
23515
23505
  ActionSheet,
package/lib/zartui.es.js CHANGED
@@ -12310,7 +12310,6 @@ var stdin_default$R = defineComponent({
12310
12310
  slots
12311
12311
  }) {
12312
12312
  const swipeRef = ref();
12313
- const hasDownloadSupport = ref(false);
12314
12313
  const state = reactive({
12315
12314
  active: 0,
12316
12315
  rootWidth: 0,
@@ -12395,7 +12394,7 @@ var stdin_default$R = defineComponent({
12395
12394
  });
12396
12395
  const renderIndex = () => {
12397
12396
  const image = props.images[state.active];
12398
- const showDownload = props.showDownload && hasDownloadSupport.value && !image.url.startsWith("data:");
12397
+ const showDownload = props.showDownload && !image.url.startsWith("data:");
12399
12398
  if (props.showIndex || showDownload) {
12400
12399
  if (props.showIndex && slots.index) {
12401
12400
  return createVNode("div", {
@@ -12478,20 +12477,9 @@ var stdin_default$R = defineComponent({
12478
12477
  useExpose({
12479
12478
  swipeTo
12480
12479
  });
12481
- onMounted(() => __async$3(this, null, function* () {
12482
- var _a;
12480
+ onMounted(() => {
12483
12481
  resize();
12484
- try {
12485
- const universalJsSdk = yield import("./index-096e2873.mjs");
12486
- if (universalJsSdk && universalJsSdk.getJSI) {
12487
- const fileJsi = (_a = universalJsSdk.getJSI()) == null ? void 0 : _a.file;
12488
- hasDownloadSupport.value = !!(fileJsi && fileJsi.download);
12489
- }
12490
- } catch (e) {
12491
- console.warn("Failed to check download support:", e);
12492
- hasDownloadSupport.value = false;
12493
- }
12494
- }));
12482
+ });
12495
12483
  watch([windowWidth, windowHeight], resize);
12496
12484
  watch(() => props.startPosition, (value) => setActive(+value));
12497
12485
  watch(() => props.show, (value) => {
@@ -16091,6 +16079,7 @@ const mediaPickerProps = {
16091
16079
  disabled: Boolean,
16092
16080
  showTitle: Boolean,
16093
16081
  showDownload: Boolean,
16082
+ downloadAction: Function,
16094
16083
  useFileNameAsLabel: Boolean,
16095
16084
  title: makeStringProp("添加附件"),
16096
16085
  mediaList: makeArrayProp(),
@@ -16782,6 +16771,7 @@ var stdin_default$C = defineComponent({
16782
16771
  url: image.url || image.showSrc || ""
16783
16772
  })),
16784
16773
  showDownload: props.showDownload,
16774
+ downloadAction: props.downloadAction,
16785
16775
  startPosition: imageIndex,
16786
16776
  closeable: true
16787
16777
  });
@@ -23507,7 +23497,7 @@ const Lazyload = {
23507
23497
  });
23508
23498
  }
23509
23499
  };
23510
- const version = "3.1.73";
23500
+ const version = "3.1.75";
23511
23501
  function install(app) {
23512
23502
  const components = [
23513
23503
  ActionSheet,
package/lib/zartui.js CHANGED
@@ -12550,7 +12550,6 @@
12550
12550
  slots
12551
12551
  }) {
12552
12552
  const swipeRef = vue.ref();
12553
- const hasDownloadSupport = vue.ref(false);
12554
12553
  const state = vue.reactive({
12555
12554
  active: 0,
12556
12555
  rootWidth: 0,
@@ -12635,7 +12634,7 @@
12635
12634
  });
12636
12635
  const renderIndex = () => {
12637
12636
  const image2 = props.images[state.active];
12638
- const showDownload = props.showDownload && hasDownloadSupport.value && !image2.url.startsWith("data:");
12637
+ const showDownload = props.showDownload && !image2.url.startsWith("data:");
12639
12638
  if (props.showIndex || showDownload) {
12640
12639
  if (props.showIndex && slots.index) {
12641
12640
  return vue.createVNode("div", {
@@ -12718,20 +12717,9 @@
12718
12717
  useExpose({
12719
12718
  swipeTo
12720
12719
  });
12721
- vue.onMounted(() => __async$4(this, null, function* () {
12722
- var _a;
12720
+ vue.onMounted(() => {
12723
12721
  resize2();
12724
- try {
12725
- const universalJsSdk = yield Promise.resolve().then(() => index);
12726
- if (universalJsSdk && universalJsSdk.getJSI) {
12727
- const fileJsi = (_a = universalJsSdk.getJSI()) == null ? void 0 : _a.file;
12728
- hasDownloadSupport.value = !!(fileJsi && fileJsi.download);
12729
- }
12730
- } catch (e) {
12731
- console.warn("Failed to check download support:", e);
12732
- hasDownloadSupport.value = false;
12733
- }
12734
- }));
12722
+ });
12735
12723
  vue.watch([windowWidth, windowHeight], resize2);
12736
12724
  vue.watch(() => props.startPosition, (value) => setActive(+value));
12737
12725
  vue.watch(() => props.show, (value) => {
@@ -17869,6 +17857,7 @@
17869
17857
  disabled: Boolean,
17870
17858
  showTitle: Boolean,
17871
17859
  showDownload: Boolean,
17860
+ downloadAction: Function,
17872
17861
  useFileNameAsLabel: Boolean,
17873
17862
  title: makeStringProp("添加附件"),
17874
17863
  mediaList: makeArrayProp(),
@@ -18560,6 +18549,7 @@
18560
18549
  url: image2.url || image2.showSrc || ""
18561
18550
  })),
18562
18551
  showDownload: props.showDownload,
18552
+ downloadAction: props.downloadAction,
18563
18553
  startPosition: imageIndex,
18564
18554
  closeable: true
18565
18555
  });
@@ -27569,7 +27559,7 @@
27569
27559
  });
27570
27560
  }
27571
27561
  };
27572
- const version = "3.1.73";
27562
+ const version = "3.1.75";
27573
27563
  function install(app) {
27574
27564
  const components = [
27575
27565
  ActionSheet,