@tarojs/components 4.1.6-beta.0 → 4.1.6-beta.1

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.
@@ -5,6 +5,39 @@ const index$1 = require('./index-b873e40f.js');
5
5
 
6
6
  const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%;position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{position:absolute;left:50%;transform:translate(-50%)}.taro-img__mode-bottom{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.taro-img__mode-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-left{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{position:absolute;top:50%;right:0;transform:translateY(-50%)}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}";
7
7
 
8
+ // CDN脚本URL
9
+ const LEGO_CDN_URL = 'http://ossin.jd.com/swm-plus/h5Tag/tag.js';
10
+ // 检查CDN脚本是否已加载
11
+ const isLegoScriptLoaded = () => {
12
+ return document.querySelector(`script[src="${LEGO_CDN_URL}"]`) !== null;
13
+ };
14
+ // 插入CDN脚本
15
+ const insertLegoScript = () => {
16
+ if (isLegoScriptLoaded())
17
+ return;
18
+ const script = document.createElement('script');
19
+ script.type = 'module';
20
+ script.src = LEGO_CDN_URL;
21
+ document.head.appendChild(script);
22
+ };
23
+ // 解析lego协议URL
24
+ const parseLegoUrl = (src) => {
25
+ if (!src.startsWith('lego://'))
26
+ return null;
27
+ try {
28
+ // 移除 'lego://' 前缀
29
+ const urlWithoutProtocol = src.substring(7);
30
+ // 分割tagId和参数
31
+ const [tagId, params] = urlWithoutProtocol.split('?');
32
+ // 解析参数
33
+ const text = params ? new URLSearchParams(params).get('text') || '' : '';
34
+ return { tagId, text };
35
+ }
36
+ catch (error) {
37
+ console.warn('Failed to parse lego URL:', src, error);
38
+ return null;
39
+ }
40
+ };
8
41
  const Image = class {
9
42
  constructor(hostRef) {
10
43
  index.registerInstance(this, hostRef);
@@ -18,6 +51,11 @@ const Image = class {
18
51
  this.didLoad = false;
19
52
  }
20
53
  componentDidLoad() {
54
+ // 检查是否为lego模式,如果是则确保CDN脚本已加载
55
+ const legoData = parseLegoUrl(this.src);
56
+ if (legoData !== null) {
57
+ insertLegoScript();
58
+ }
21
59
  if (!this.lazyLoad)
22
60
  return;
23
61
  const lazyImg = new IntersectionObserver(entries => {
@@ -46,12 +84,20 @@ const Image = class {
46
84
  const { src, lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps, didLoad } = this;
47
85
  // mode="" 按默认值处理
48
86
  const mode = this.mode || 'scaleToFill';
87
+ // 检查是否为lego模式
88
+ const legoData = parseLegoUrl(src);
89
+ const isLegoMode = legoData !== null;
49
90
  const cls = index$1.classnames({
50
91
  'taro-img__widthfix': mode === 'widthFix'
51
92
  });
52
93
  const imgCls = index$1.classnames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
53
94
  [`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
54
95
  });
96
+ // 如果是lego模式,渲染canvas-tag
97
+ if (isLegoMode && legoData) {
98
+ return (index.h(index.Host, { class: cls }, index.h("canvas-tag", Object.assign({ tagId: legoData.tagId, text: legoData.text }, nativeProps))));
99
+ }
100
+ // 普通图片模式
55
101
  return (index.h(index.Host, { class: cls }, src ? (index.h("img", Object.assign({ ref: (img) => (this.imgRef = img), class: imgCls, src: lazyLoad && !didLoad ? undefined : src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : ''));
56
102
  }
57
103
  };
@@ -33,7 +33,7 @@ const gridBuilder = require('./grid-builder-0757691d.js');
33
33
  const gridView = require('./grid-view-b77da424.js');
34
34
  const script$2 = require('./script-d39c17ed.js');
35
35
  const icon = require('./icon-93e7c472.js');
36
- const image = require('./image-4303ed3a.js');
36
+ const image = require('./image-4a828d57.js');
37
37
  const inlinePaymentPanel = require('./inline-payment-panel-0068d0e4.js');
38
38
  const input = require('./input-f39a63db.js');
39
39
  const keyboardAccessory = require('./keyboard-accessory-d7d227b7.js');
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const image = require('./image-4303ed3a.js');
5
+ const image = require('./image-4a828d57.js');
6
6
  require('./index-ae99cbcc.js');
7
7
  require('./index-b873e40f.js');
8
8
 
@@ -1,5 +1,38 @@
1
1
  import { h, Host } from '@stencil/core';
2
2
  import classNames from 'classnames';
3
+ // CDN脚本URL
4
+ const LEGO_CDN_URL = 'http://ossin.jd.com/swm-plus/h5Tag/tag.js';
5
+ // 检查CDN脚本是否已加载
6
+ const isLegoScriptLoaded = () => {
7
+ return document.querySelector(`script[src="${LEGO_CDN_URL}"]`) !== null;
8
+ };
9
+ // 插入CDN脚本
10
+ const insertLegoScript = () => {
11
+ if (isLegoScriptLoaded())
12
+ return;
13
+ const script = document.createElement('script');
14
+ script.type = 'module';
15
+ script.src = LEGO_CDN_URL;
16
+ document.head.appendChild(script);
17
+ };
18
+ // 解析lego协议URL
19
+ const parseLegoUrl = (src) => {
20
+ if (!src.startsWith('lego://'))
21
+ return null;
22
+ try {
23
+ // 移除 'lego://' 前缀
24
+ const urlWithoutProtocol = src.substring(7);
25
+ // 分割tagId和参数
26
+ const [tagId, params] = urlWithoutProtocol.split('?');
27
+ // 解析参数
28
+ const text = params ? new URLSearchParams(params).get('text') || '' : '';
29
+ return { tagId, text };
30
+ }
31
+ catch (error) {
32
+ console.warn('Failed to parse lego URL:', src, error);
33
+ return null;
34
+ }
35
+ };
3
36
  export class Image {
4
37
  constructor() {
5
38
  this.src = undefined;
@@ -10,6 +43,11 @@ export class Image {
10
43
  this.didLoad = false;
11
44
  }
12
45
  componentDidLoad() {
46
+ // 检查是否为lego模式,如果是则确保CDN脚本已加载
47
+ const legoData = parseLegoUrl(this.src);
48
+ if (legoData !== null) {
49
+ insertLegoScript();
50
+ }
13
51
  if (!this.lazyLoad)
14
52
  return;
15
53
  const lazyImg = new IntersectionObserver(entries => {
@@ -38,12 +76,20 @@ export class Image {
38
76
  const { src, lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps, didLoad } = this;
39
77
  // mode="" 按默认值处理
40
78
  const mode = this.mode || 'scaleToFill';
79
+ // 检查是否为lego模式
80
+ const legoData = parseLegoUrl(src);
81
+ const isLegoMode = legoData !== null;
41
82
  const cls = classNames({
42
83
  'taro-img__widthfix': mode === 'widthFix'
43
84
  });
44
85
  const imgCls = classNames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
45
86
  [`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
46
87
  });
88
+ // 如果是lego模式,渲染canvas-tag
89
+ if (isLegoMode && legoData) {
90
+ return (h(Host, { class: cls }, h("canvas-tag", Object.assign({ tagId: legoData.tagId, text: legoData.text }, nativeProps))));
91
+ }
92
+ // 普通图片模式
47
93
  return (h(Host, { class: cls }, src ? (h("img", Object.assign({ ref: (img) => (this.imgRef = img), class: imgCls, src: lazyLoad && !didLoad ? undefined : src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : ''));
48
94
  }
49
95
  static get is() { return "taro-image-core"; }
@@ -3,6 +3,39 @@ import { c as classnames } from './index2.js';
3
3
 
4
4
  const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%;position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{position:absolute;left:50%;transform:translate(-50%)}.taro-img__mode-bottom{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.taro-img__mode-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-left{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{position:absolute;top:50%;right:0;transform:translateY(-50%)}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}";
5
5
 
6
+ // CDN脚本URL
7
+ const LEGO_CDN_URL = 'http://ossin.jd.com/swm-plus/h5Tag/tag.js';
8
+ // 检查CDN脚本是否已加载
9
+ const isLegoScriptLoaded = () => {
10
+ return document.querySelector(`script[src="${LEGO_CDN_URL}"]`) !== null;
11
+ };
12
+ // 插入CDN脚本
13
+ const insertLegoScript = () => {
14
+ if (isLegoScriptLoaded())
15
+ return;
16
+ const script = document.createElement('script');
17
+ script.type = 'module';
18
+ script.src = LEGO_CDN_URL;
19
+ document.head.appendChild(script);
20
+ };
21
+ // 解析lego协议URL
22
+ const parseLegoUrl = (src) => {
23
+ if (!src.startsWith('lego://'))
24
+ return null;
25
+ try {
26
+ // 移除 'lego://' 前缀
27
+ const urlWithoutProtocol = src.substring(7);
28
+ // 分割tagId和参数
29
+ const [tagId, params] = urlWithoutProtocol.split('?');
30
+ // 解析参数
31
+ const text = params ? new URLSearchParams(params).get('text') || '' : '';
32
+ return { tagId, text };
33
+ }
34
+ catch (error) {
35
+ console.warn('Failed to parse lego URL:', src, error);
36
+ return null;
37
+ }
38
+ };
6
39
  const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
7
40
  constructor() {
8
41
  super();
@@ -17,6 +50,11 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
17
50
  this.didLoad = false;
18
51
  }
19
52
  componentDidLoad() {
53
+ // 检查是否为lego模式,如果是则确保CDN脚本已加载
54
+ const legoData = parseLegoUrl(this.src);
55
+ if (legoData !== null) {
56
+ insertLegoScript();
57
+ }
20
58
  if (!this.lazyLoad)
21
59
  return;
22
60
  const lazyImg = new IntersectionObserver(entries => {
@@ -45,12 +83,20 @@ const Image = /*@__PURE__*/ proxyCustomElement(class extends HTMLElement {
45
83
  const { src, lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps, didLoad } = this;
46
84
  // mode="" 按默认值处理
47
85
  const mode = this.mode || 'scaleToFill';
86
+ // 检查是否为lego模式
87
+ const legoData = parseLegoUrl(src);
88
+ const isLegoMode = legoData !== null;
48
89
  const cls = classnames({
49
90
  'taro-img__widthfix': mode === 'widthFix'
50
91
  });
51
92
  const imgCls = classnames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
52
93
  [`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
53
94
  });
95
+ // 如果是lego模式,渲染canvas-tag
96
+ if (isLegoMode && legoData) {
97
+ return (h(Host, { class: cls }, h("canvas-tag", Object.assign({ tagId: legoData.tagId, text: legoData.text }, nativeProps))));
98
+ }
99
+ // 普通图片模式
54
100
  return (h(Host, { class: cls }, src ? (h("img", Object.assign({ ref: (img) => (this.imgRef = img), class: imgCls, src: lazyLoad && !didLoad ? undefined : src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : ''));
55
101
  }
56
102
  static get style() { return indexCss; }
@@ -3,6 +3,39 @@ import { c as classnames } from './index-b9522531.js';
3
3
 
4
4
  const indexCss = "img[src=\"\"]{opacity:0}taro-image-core{width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%;position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{position:absolute;left:50%;transform:translate(-50%)}.taro-img__mode-bottom{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.taro-img__mode-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-left{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{position:absolute;top:50%;right:0;transform:translateY(-50%)}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}";
5
5
 
6
+ // CDN脚本URL
7
+ const LEGO_CDN_URL = 'http://ossin.jd.com/swm-plus/h5Tag/tag.js';
8
+ // 检查CDN脚本是否已加载
9
+ const isLegoScriptLoaded = () => {
10
+ return document.querySelector(`script[src="${LEGO_CDN_URL}"]`) !== null;
11
+ };
12
+ // 插入CDN脚本
13
+ const insertLegoScript = () => {
14
+ if (isLegoScriptLoaded())
15
+ return;
16
+ const script = document.createElement('script');
17
+ script.type = 'module';
18
+ script.src = LEGO_CDN_URL;
19
+ document.head.appendChild(script);
20
+ };
21
+ // 解析lego协议URL
22
+ const parseLegoUrl = (src) => {
23
+ if (!src.startsWith('lego://'))
24
+ return null;
25
+ try {
26
+ // 移除 'lego://' 前缀
27
+ const urlWithoutProtocol = src.substring(7);
28
+ // 分割tagId和参数
29
+ const [tagId, params] = urlWithoutProtocol.split('?');
30
+ // 解析参数
31
+ const text = params ? new URLSearchParams(params).get('text') || '' : '';
32
+ return { tagId, text };
33
+ }
34
+ catch (error) {
35
+ console.warn('Failed to parse lego URL:', src, error);
36
+ return null;
37
+ }
38
+ };
6
39
  const Image = class {
7
40
  constructor(hostRef) {
8
41
  registerInstance(this, hostRef);
@@ -16,6 +49,11 @@ const Image = class {
16
49
  this.didLoad = false;
17
50
  }
18
51
  componentDidLoad() {
52
+ // 检查是否为lego模式,如果是则确保CDN脚本已加载
53
+ const legoData = parseLegoUrl(this.src);
54
+ if (legoData !== null) {
55
+ insertLegoScript();
56
+ }
19
57
  if (!this.lazyLoad)
20
58
  return;
21
59
  const lazyImg = new IntersectionObserver(entries => {
@@ -44,12 +82,20 @@ const Image = class {
44
82
  const { src, lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps, didLoad } = this;
45
83
  // mode="" 按默认值处理
46
84
  const mode = this.mode || 'scaleToFill';
85
+ // 检查是否为lego模式
86
+ const legoData = parseLegoUrl(src);
87
+ const isLegoMode = legoData !== null;
47
88
  const cls = classnames({
48
89
  'taro-img__widthfix': mode === 'widthFix'
49
90
  });
50
91
  const imgCls = classnames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
51
92
  [`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
52
93
  });
94
+ // 如果是lego模式,渲染canvas-tag
95
+ if (isLegoMode && legoData) {
96
+ return (h(Host, { class: cls }, h("canvas-tag", Object.assign({ tagId: legoData.tagId, text: legoData.text }, nativeProps))));
97
+ }
98
+ // 普通图片模式
53
99
  return (h(Host, { class: cls }, src ? (h("img", Object.assign({ ref: (img) => (this.imgRef = img), class: imgCls, src: lazyLoad && !didLoad ? undefined : src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : ''));
54
100
  }
55
101
  };
package/dist/esm/index.js CHANGED
@@ -29,7 +29,7 @@ export { G as GridBuilder } from './grid-builder-cf0aa856.js';
29
29
  export { G as GridView } from './grid-view-353586e4.js';
30
30
  export { H as HorizontalDragGestureHandler } from './script-661db6af.js';
31
31
  export { I as Icon } from './icon-88383f2c.js';
32
- export { I as Image } from './image-b0b222bc.js';
32
+ export { I as Image } from './image-d9d8ed01.js';
33
33
  export { I as InlinePaymentPanel } from './inline-payment-panel-73925dd2.js';
34
34
  export { I as Input } from './input-4104e3ea.js';
35
35
  export { K as KeyboardAccessory } from './keyboard-accessory-fd485a31.js';
@@ -1,3 +1,3 @@
1
- export { I as taro_image_core } from './image-b0b222bc.js';
1
+ export { I as taro_image_core } from './image-d9d8ed01.js';
2
2
  import './index-0004ce39.js';
3
3
  import './index-b9522531.js';
@@ -7060,6 +7060,39 @@ class Icon {
7060
7060
 
7061
7061
  const indexCss$h = "img[src=\"\"]{opacity:0}taro-image-core{width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%;position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{position:absolute;left:50%;transform:translate(-50%)}.taro-img__mode-bottom{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.taro-img__mode-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-left{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{position:absolute;top:50%;right:0;transform:translateY(-50%)}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}";
7062
7062
 
7063
+ // CDN脚本URL
7064
+ const LEGO_CDN_URL = 'http://ossin.jd.com/swm-plus/h5Tag/tag.js';
7065
+ // 检查CDN脚本是否已加载
7066
+ const isLegoScriptLoaded = () => {
7067
+ return document.querySelector(`script[src="${LEGO_CDN_URL}"]`) !== null;
7068
+ };
7069
+ // 插入CDN脚本
7070
+ const insertLegoScript = () => {
7071
+ if (isLegoScriptLoaded())
7072
+ return;
7073
+ const script = document.createElement('script');
7074
+ script.type = 'module';
7075
+ script.src = LEGO_CDN_URL;
7076
+ document.head.appendChild(script);
7077
+ };
7078
+ // 解析lego协议URL
7079
+ const parseLegoUrl = (src) => {
7080
+ if (!src.startsWith('lego://'))
7081
+ return null;
7082
+ try {
7083
+ // 移除 'lego://' 前缀
7084
+ const urlWithoutProtocol = src.substring(7);
7085
+ // 分割tagId和参数
7086
+ const [tagId, params] = urlWithoutProtocol.split('?');
7087
+ // 解析参数
7088
+ const text = params ? new URLSearchParams(params).get('text') || '' : '';
7089
+ return { tagId, text };
7090
+ }
7091
+ catch (error) {
7092
+ console.warn('Failed to parse lego URL:', src, error);
7093
+ return null;
7094
+ }
7095
+ };
7063
7096
  class Image$1 {
7064
7097
  constructor(hostRef) {
7065
7098
  registerInstance(this, hostRef);
@@ -7073,6 +7106,11 @@ class Image$1 {
7073
7106
  this.didLoad = false;
7074
7107
  }
7075
7108
  componentDidLoad() {
7109
+ // 检查是否为lego模式,如果是则确保CDN脚本已加载
7110
+ const legoData = parseLegoUrl(this.src);
7111
+ if (legoData !== null) {
7112
+ insertLegoScript();
7113
+ }
7076
7114
  if (!this.lazyLoad)
7077
7115
  return;
7078
7116
  const lazyImg = new IntersectionObserver(entries => {
@@ -7101,12 +7139,20 @@ class Image$1 {
7101
7139
  const { src, lazyLoad = false, aspectFillMode = 'width', imageOnLoad, imageOnError, nativeProps, didLoad } = this;
7102
7140
  // mode="" 按默认值处理
7103
7141
  const mode = this.mode || 'scaleToFill';
7142
+ // 检查是否为lego模式
7143
+ const legoData = parseLegoUrl(src);
7144
+ const isLegoMode = legoData !== null;
7104
7145
  const cls = classnames({
7105
7146
  'taro-img__widthfix': mode === 'widthFix'
7106
7147
  });
7107
7148
  const imgCls = classnames(`taro-img__mode-${mode.toLowerCase().replace(/\s/g, '')}`, {
7108
7149
  [`taro-img__mode-aspectfill--${aspectFillMode}`]: mode === 'aspectFill'
7109
7150
  });
7151
+ // 如果是lego模式,渲染canvas-tag
7152
+ if (isLegoMode && legoData) {
7153
+ return (hAsync(Host, { class: cls }, hAsync("canvas-tag", Object.assign({ tagId: legoData.tagId, text: legoData.text }, nativeProps))));
7154
+ }
7155
+ // 普通图片模式
7110
7156
  return (hAsync(Host, { class: cls }, src ? (hAsync("img", Object.assign({ ref: (img) => (this.imgRef = img), class: imgCls, src: lazyLoad && !didLoad ? undefined : src, onLoad: imageOnLoad.bind(this), onError: imageOnError.bind(this) }, nativeProps))) : ''));
7111
7157
  }
7112
7158
  static get style() { return indexCss$h; }
@@ -1 +1 @@
1
- export{A as Ad}from"./p-9d4a6732.js";export{A as AdCustom}from"./p-915aa78c.js";export{A as AnimationVideo}from"./p-f6e5beeb.js";export{A as AnimationView}from"./p-a5798672.js";export{A as ArCamera}from"./p-c3a8af99.js";export{A as Audio}from"./p-cae824d1.js";export{A as AwemeData}from"./p-2f7b8388.js";export{B as Block}from"./p-e3de8581.js";export{B as Button}from"./p-1f517ad8.js";export{C as Camera}from"./p-245fcd36.js";export{C as Canvas}from"./p-24ef5f8c.js";export{C as ChannelLive}from"./p-27622761.js";export{C as ChannelVideo}from"./p-150a55a3.js";export{a as Checkbox,C as CheckboxGroup}from"./p-046319d8.js";export{C as CommentDetail}from"./p-fff1a810.js";export{C as CommentList}from"./p-febc484e.js";export{C as ContactButton}from"./p-36e83be9.js";export{C as CoverImage}from"./p-d5773721.js";export{C as CoverView}from"./p-c7f9e228.js";export{C as CustomWrapper}from"./p-a293fa24.js";export{D as DoubleTapGestureHandler}from"./p-4bb83c7d.js";export{D as DraggableSheet}from"./p-6c93b540.js";export{E as Editor}from"./p-31c75fd5.js";export{F as FollowSwan}from"./p-b9446784.js";export{F as ForcePressGestureHandler}from"./p-64a5e7a7.js";export{F as Form}from"./p-a6c178f3.js";export{F as FunctionalPageNavigator}from"./p-3a6ec908.js";export{G as GridBuilder}from"./p-c3cf4884.js";export{G as GridView}from"./p-d5f0d48c.js";export{H as HorizontalDragGestureHandler}from"./p-8e3bac82.js";export{I as Icon}from"./p-53b69659.js";export{I as Image}from"./p-1f81d4f4.js";export{I as InlinePaymentPanel}from"./p-99863698.js";export{I as Input}from"./p-2b1afb2c.js";export{K as KeyboardAccessory}from"./p-137eb06b.js";export{L as Label}from"./p-8b1b513a.js";export{L as Lifestyle}from"./p-af5e0304.js";export{L as Like}from"./p-a17695f9.js";export{L as ListBuilder}from"./p-4cf49968.js";export{L as ListView}from"./p-52c6b16d.js";export{L as LivePlayer}from"./p-2884aec2.js";export{L as LivePusher}from"./p-582cbc31.js";export{L as Login}from"./p-b74ad8e4.js";export{L as LongPressGestureHandler}from"./p-1d3cfd13.js";export{L as Lottie}from"./p-5fe2d7cb.js";export{M as Map}from"./p-b2979101.js";export{M as MatchMedia}from"./p-2e5daff6.js";export{M as MovableArea,a as MovableView}from"./p-45c3b3bf.js";export{N as NavigationBar}from"./p-d11af89d.js";export{N as Navigator}from"./p-3d450082.js";export{N as NestedScrollBody}from"./p-ee9bae70.js";export{N as NestedScrollHeader}from"./p-f441b5e7.js";export{O as OfficialAccount}from"./p-50ffadb4.js";export{O as OpenContainer}from"./p-96f65f1d.js";export{O as OpenData}from"./p-c872ed50.js";export{P as PageContainer}from"./p-1c19d1dd.js";export{P as PageMeta}from"./p-c9a01a1f.js";export{P as PanGestureHandler}from"./p-7ea32cac.js";export{P as Picker,T as TaroPickerGroup}from"./p-13d455f5.js";export{a as PickerView,P as PickerViewColumn}from"./p-d1a1274a.js";export{P as Progress}from"./p-bd7613d0.js";export{P as PullToRefresh}from"./p-67c4cf7e.js";export{a as Radio,R as RadioGroup}from"./p-4818a4aa.js";export{R as RichText}from"./p-553b9dc1.js";export{R as RootPortal}from"./p-08cfc9f4.js";export{R as RtcRoomItem}from"./p-c48b7222.js";export{R as RtcRoom}from"./p-79d3e109.js";export{S as ScaleGestureHandler}from"./p-956bc9d5.js";export{S as Script}from"./p-baed3510.js";export{S as ScrollView}from"./p-58a709ad.js";export{S as ShareElement}from"./p-7bb097de.js";export{S as Slider}from"./p-35aac6e0.js";export{N as NativeSlot}from"./p-49e4d6ae.js";export{S as Slot}from"./p-680d07ac.js";export{S as Snapshot}from"./p-99383bc2.js";export{S as Span}from"./p-a2cb2d73.js";export{S as StickyHeader}from"./p-2e841a1d.js";export{S as StickySection}from"./p-da4fcba5.js";export{a as Swiper,S as SwiperItem}from"./p-8d26b600.js";export{S as Switch}from"./p-4d79a974.js";export{a as Tabbar,T as TabbarItem}from"./p-8d996705.js";export{T as TabItem}from"./p-2bf24716.js";export{T as Tabs}from"./p-93e3cefb.js";export{T as TapGestureHandler}from"./p-5bd1aed9.js";export{T as Text}from"./p-1c317d71.js";export{T as Textarea}from"./p-6e2f460d.js";export{V as VerticalDragGestureHandler}from"./p-2f9a4db4.js";export{b as Video,V as VideoControl,a as VideoDanmu}from"./p-dd0d7e20.js";export{V as View}from"./p-c5666cb2.js";export{V as VoipRoom}from"./p-c0687b94.js";export{W as WebView}from"./p-beae3fe0.js";import"./p-f72fcd8c.js";import"./p-dbdb9de9.js";import"@tarojs/taro";import"./p-160d710a.js";import"hammerjs";import"./p-5893c3ed.js";import"swiper/bundle";import"@tarojs/runtime";import"resolve-pathname";
1
+ export{A as Ad}from"./p-9d4a6732.js";export{A as AdCustom}from"./p-915aa78c.js";export{A as AnimationVideo}from"./p-f6e5beeb.js";export{A as AnimationView}from"./p-a5798672.js";export{A as ArCamera}from"./p-c3a8af99.js";export{A as Audio}from"./p-cae824d1.js";export{A as AwemeData}from"./p-2f7b8388.js";export{B as Block}from"./p-e3de8581.js";export{B as Button}from"./p-1f517ad8.js";export{C as Camera}from"./p-245fcd36.js";export{C as Canvas}from"./p-24ef5f8c.js";export{C as ChannelLive}from"./p-27622761.js";export{C as ChannelVideo}from"./p-150a55a3.js";export{a as Checkbox,C as CheckboxGroup}from"./p-046319d8.js";export{C as CommentDetail}from"./p-fff1a810.js";export{C as CommentList}from"./p-febc484e.js";export{C as ContactButton}from"./p-36e83be9.js";export{C as CoverImage}from"./p-d5773721.js";export{C as CoverView}from"./p-c7f9e228.js";export{C as CustomWrapper}from"./p-a293fa24.js";export{D as DoubleTapGestureHandler}from"./p-4bb83c7d.js";export{D as DraggableSheet}from"./p-6c93b540.js";export{E as Editor}from"./p-31c75fd5.js";export{F as FollowSwan}from"./p-b9446784.js";export{F as ForcePressGestureHandler}from"./p-64a5e7a7.js";export{F as Form}from"./p-a6c178f3.js";export{F as FunctionalPageNavigator}from"./p-3a6ec908.js";export{G as GridBuilder}from"./p-c3cf4884.js";export{G as GridView}from"./p-d5f0d48c.js";export{H as HorizontalDragGestureHandler}from"./p-8e3bac82.js";export{I as Icon}from"./p-53b69659.js";export{I as Image}from"./p-24079388.js";export{I as InlinePaymentPanel}from"./p-99863698.js";export{I as Input}from"./p-2b1afb2c.js";export{K as KeyboardAccessory}from"./p-137eb06b.js";export{L as Label}from"./p-8b1b513a.js";export{L as Lifestyle}from"./p-af5e0304.js";export{L as Like}from"./p-a17695f9.js";export{L as ListBuilder}from"./p-4cf49968.js";export{L as ListView}from"./p-52c6b16d.js";export{L as LivePlayer}from"./p-2884aec2.js";export{L as LivePusher}from"./p-582cbc31.js";export{L as Login}from"./p-b74ad8e4.js";export{L as LongPressGestureHandler}from"./p-1d3cfd13.js";export{L as Lottie}from"./p-5fe2d7cb.js";export{M as Map}from"./p-b2979101.js";export{M as MatchMedia}from"./p-2e5daff6.js";export{M as MovableArea,a as MovableView}from"./p-45c3b3bf.js";export{N as NavigationBar}from"./p-d11af89d.js";export{N as Navigator}from"./p-3d450082.js";export{N as NestedScrollBody}from"./p-ee9bae70.js";export{N as NestedScrollHeader}from"./p-f441b5e7.js";export{O as OfficialAccount}from"./p-50ffadb4.js";export{O as OpenContainer}from"./p-96f65f1d.js";export{O as OpenData}from"./p-c872ed50.js";export{P as PageContainer}from"./p-1c19d1dd.js";export{P as PageMeta}from"./p-c9a01a1f.js";export{P as PanGestureHandler}from"./p-7ea32cac.js";export{P as Picker,T as TaroPickerGroup}from"./p-13d455f5.js";export{a as PickerView,P as PickerViewColumn}from"./p-d1a1274a.js";export{P as Progress}from"./p-bd7613d0.js";export{P as PullToRefresh}from"./p-67c4cf7e.js";export{a as Radio,R as RadioGroup}from"./p-4818a4aa.js";export{R as RichText}from"./p-553b9dc1.js";export{R as RootPortal}from"./p-08cfc9f4.js";export{R as RtcRoomItem}from"./p-c48b7222.js";export{R as RtcRoom}from"./p-79d3e109.js";export{S as ScaleGestureHandler}from"./p-956bc9d5.js";export{S as Script}from"./p-baed3510.js";export{S as ScrollView}from"./p-58a709ad.js";export{S as ShareElement}from"./p-7bb097de.js";export{S as Slider}from"./p-35aac6e0.js";export{N as NativeSlot}from"./p-49e4d6ae.js";export{S as Slot}from"./p-680d07ac.js";export{S as Snapshot}from"./p-99383bc2.js";export{S as Span}from"./p-a2cb2d73.js";export{S as StickyHeader}from"./p-2e841a1d.js";export{S as StickySection}from"./p-da4fcba5.js";export{a as Swiper,S as SwiperItem}from"./p-8d26b600.js";export{S as Switch}from"./p-4d79a974.js";export{a as Tabbar,T as TabbarItem}from"./p-8d996705.js";export{T as TabItem}from"./p-2bf24716.js";export{T as Tabs}from"./p-93e3cefb.js";export{T as TapGestureHandler}from"./p-5bd1aed9.js";export{T as Text}from"./p-1c317d71.js";export{T as Textarea}from"./p-6e2f460d.js";export{V as VerticalDragGestureHandler}from"./p-2f9a4db4.js";export{b as Video,V as VideoControl,a as VideoDanmu}from"./p-dd0d7e20.js";export{V as View}from"./p-c5666cb2.js";export{V as VoipRoom}from"./p-c0687b94.js";export{W as WebView}from"./p-beae3fe0.js";import"./p-f72fcd8c.js";import"./p-dbdb9de9.js";import"@tarojs/taro";import"./p-160d710a.js";import"hammerjs";import"./p-5893c3ed.js";import"swiper/bundle";import"@tarojs/runtime";import"resolve-pathname";
@@ -0,0 +1 @@
1
+ import{r as t,c as o,h as i,H as e}from"./p-f72fcd8c.js";import{c as s}from"./p-160d710a.js";const a="http://ossin.jd.com/swm-plus/h5Tag/tag.js",r=t=>{if(!t.startsWith("lego://"))return null;try{const o=t.substring(7),[i,e]=o.split("?");return{tagId:i,text:e&&new URLSearchParams(e).get("text")||""}}catch(o){return console.warn("Failed to parse lego URL:",t,o),null}},h=class{constructor(i){t(this,i),this.onLoad=o(this,"load",7),this.onError=o(this,"error",7),this.src=void 0,this.mode="scaleToFill",this.lazyLoad=!1,this.nativeProps={},this.aspectFillMode="width",this.didLoad=!1}componentDidLoad(){if(null!==r(this.src)&&(()=>{if(null!==document.querySelector(`script[src="${a}"]`))return;const t=document.createElement("script");t.type="module",t.src=a,document.head.appendChild(t)})(),!this.lazyLoad)return;const t=new IntersectionObserver((o=>{o[o.length-1].isIntersecting&&(t.unobserve(this.imgRef),this.didLoad=!0)}),{rootMargin:"300px 0px"});t.observe(this.imgRef)}imageOnLoad(){const{width:t,height:o,naturalWidth:i,naturalHeight:e}=this.imgRef;this.onLoad.emit({width:t,height:o}),this.aspectFillMode=i>e?"width":"height"}imageOnError(t){this.onError.emit(t)}render(){const{src:t,lazyLoad:o=!1,aspectFillMode:a="width",imageOnLoad:h,imageOnError:m,nativeProps:n,didLoad:l}=this,d=this.mode||"scaleToFill",g=r(t),c=null!==g,p=s({"taro-img__widthfix":"widthFix"===d}),_=s(`taro-img__mode-${d.toLowerCase().replace(/\s/g,"")}`,{[`taro-img__mode-aspectfill--${a}`]:"aspectFill"===d});return i(e,{class:p},c&&g?i("canvas-tag",Object.assign({tagId:g.tagId,text:g.text},n)):t?i("img",Object.assign({ref:t=>this.imgRef=t,class:_,src:o&&!l?void 0:t,onLoad:h.bind(this),onError:m.bind(this)},n)):"")}};h.style='img[src=""]{opacity:0}taro-image-core{width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%;position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{position:absolute;left:50%;transform:translate(-50%)}.taro-img__mode-bottom{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.taro-img__mode-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-left{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{position:absolute;top:50%;right:0;transform:translateY(-50%)}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}';export{h as I}
@@ -0,0 +1 @@
1
+ export{I as taro_image_core}from"./p-24079388.js";import"./p-f72fcd8c.js";import"./p-160d710a.js";
@@ -1 +1 @@
1
- import{p as e,b as o}from"./p-f72fcd8c.js";export{s as setNonce}from"./p-f72fcd8c.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o(JSON.parse('[["p-aca7aea1",[[4,"taro-checkbox-core",{"name":[1],"value":[1032],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-14795db7",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-127391cb",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-df86c576",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-b70027b2",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"currentItemId":[1,"current-item-id"],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"effectsProps":[16],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32]}],[4,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-7c455a65",[[0,"taro-ad-core"]]],["p-38598f5b",[[0,"taro-ad-custom-core"]]],["p-0f829f27",[[0,"taro-animation-video-core"]]],["p-92a39ad9",[[0,"taro-animation-view-core"]]],["p-b19ea38d",[[0,"taro-ar-camera-core"]]],["p-6223811d",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-922047dd",[[0,"taro-aweme-data-core"]]],["p-4f4b08df",[[0,"taro-block-core"]]],["p-0795a339",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-773bed49",[[0,"taro-camera-core"]]],["p-1ad94bf6",[[0,"taro-canvas-core",{"canvasId":[1,"id"],"height":[1537],"width":[1537],"nativeProps":[16]}]]],["p-e0de8e35",[[0,"taro-channel-live-core"]]],["p-094ba888",[[0,"taro-channel-video-core"]]],["p-c66f2363",[[0,"taro-comment-detail-core"]]],["p-a0ff43d9",[[0,"taro-comment-list-core"]]],["p-74ac6c91",[[0,"taro-contact-button-core"]]],["p-5ea030de",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-80fa0c7c",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-eac9f475",[[0,"taro-custom-wrapper-core"]]],["p-806e3c4f",[[0,"taro-double-tap-gesture-handler-core"]]],["p-65c51f07",[[0,"taro-draggable-sheet-core"]]],["p-03b54b0b",[[0,"taro-editor-core"]]],["p-3f650751",[[0,"taro-follow-swan-core"]]],["p-145ba514",[[0,"taro-force-press-gesture-handler-core"]]],["p-69147844",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-0741aa7f",[[0,"taro-functional-page-navigator-core"]]],["p-f57bed55",[[0,"taro-grid-builder-core"]]],["p-61b23b53",[[0,"taro-grid-view-core"]]],["p-c5c71b89",[[0,"taro-horizontal-drag-gesture-handler-core"]]],["p-d45a75d9",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-cb7e1d6e",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32],"didLoad":[32]}]]],["p-0a92117d",[[0,"taro-inline-payment-panel-core"]]],["p-9a0251c5",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"readonly":[4],"nativeProps":[16],"focus":[64]}]]],["p-168a6355",[[0,"taro-keyboard-accessory-core"]]],["p-2602cd28",[[4,"taro-label-core",{"for":[1]}]]],["p-1d2b2125",[[0,"taro-lifestyle-core"]]],["p-e87d4a75",[[0,"taro-like-core"]]],["p-e6565988",[[0,"taro-list-builder-core"]]],["p-ae203a0b",[[0,"taro-list-view-core"]]],["p-975f1b0c",[[0,"taro-live-player-core"]]],["p-3f4449b0",[[0,"taro-live-pusher-core"]]],["p-8837c166",[[0,"taro-login-core"]]],["p-eee2d2f9",[[0,"taro-long-press-gesture-handler-core"]]],["p-2ff21d39",[[0,"taro-lottie-core"]]],["p-5bd11f73",[[0,"taro-map-core",{"latitude":[2],"longitude":[2],"scale":[2],"minScale":[2,"min-scale"],"maxScale":[2,"max-scale"],"markers":[16],"polyline":[16],"circles":[16],"polygons":[16],"subkey":[1],"layerStyle":[2,"layer-style"],"rotate":[2],"skew":[2],"showCompass":[4,"show-compass"],"showScale":[4,"show-scale"],"enableOverlooking":[4,"enable-overlooking"],"enableZoom":[4,"enable-zoom"],"enableScroll":[4,"enable-scroll"],"enableRotate":[4,"enable-rotate"],"enableSatellite":[4,"enable-satellite"],"enableTraffic":[4,"enable-traffic"],"enableBuilding":[4,"enable-building"],"enableAutoMaxOverlooking":[4,"enable-auto-max-overlooking"],"enable3D":[4,"enable-3-d"],"width":[1],"height":[1]}]]],["p-9581e63b",[[0,"taro-match-media-core"]]],["p-b89414d7",[[0,"taro-native-slot-core"]]],["p-5b216b21",[[0,"taro-navigation-bar-core"]]],["p-ab09cecf",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-ad865966",[[0,"taro-nested-scroll-body-core"]]],["p-e6643dc0",[[0,"taro-nested-scroll-header-core"]]],["p-fe1c20a9",[[0,"taro-official-account-core"]]],["p-edab4852",[[0,"taro-open-container-core"]]],["p-bcceaa84",[[0,"taro-open-data-core"]]],["p-582a0e0f",[[0,"taro-page-container-core"]]],["p-c09eb36f",[[0,"taro-page-meta-core"]]],["p-496a9932",[[0,"taro-pan-gesture-handler-core"]]],["p-f52b25aa",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-931bba41",[[4,"taro-pull-to-refresh-core",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-9f953e69",[[0,"taro-rich-text-core",{"nodes":[1],"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1]}]]],["p-e298a2c3",[[0,"taro-root-portal-core"]]],["p-cdeebf36",[[0,"taro-rtc-room-core"]]],["p-8f2a4c66",[[0,"taro-rtc-room-item-core"]]],["p-c3d39813",[[0,"taro-scale-gesture-handler-core"]]],["p-2c48f6cb",[[0,"taro-script-core"]]],["p-00e72620",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"mpScrollIntoViewAlignment":[1,"scroll-into-view-alignment"],"animated":[4,"scroll-with-animation"],"enhanced":[4],"showScrollbar":[4,"show-scrollbar"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[1,"scroll","handleScroll"],[1,"touchmove","handleTouchMove"]]]]],["p-a3b266d5",[[0,"taro-share-element-core"]]],["p-d6be1ceb",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-fa398c76",[[0,"taro-slot-core"]]],["p-8c520f1e",[[0,"taro-snapshot-core"]]],["p-06b4ba14",[[0,"taro-span-core"]]],["p-3837f853",[[0,"taro-sticky-header-core"]]],["p-ea5d6d41",[[0,"taro-sticky-section-core"]]],["p-5cbc249f",[[0,"taro-switch-core",{"type":[1],"checked":[1028],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}]]],["p-31f2f332",[[0,"taro-tab-item-core"]]],["p-2b8fae1c",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-c84153ae",[[0,"taro-tabs-core"]]],["p-8bc13e66",[[0,"taro-tap-gesture-handler-core"]]],["p-73aae58b",[[4,"taro-text-core",{"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1025],"numberOfLines":[2,"number-of-lines"]}]]],["p-052dbbd9",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-0ecccbb4",[[0,"taro-vertical-drag-gesture-handler-core"]]],["p-88048df9",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-ffcacf9a",[[0,"taro-voip-room-core"]]],["p-5570a53e",[[0,"taro-web-view-core",{"src":[1]}]]],["p-b90499e4",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"textProps":[16],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[3,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[3,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-0543d7fe",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
1
+ import{p as e,b as o}from"./p-f72fcd8c.js";export{s as setNonce}from"./p-f72fcd8c.js";(()=>{const o=import.meta.url,a={};return""!==o&&(a.resourcesUrl=new URL(".",o).href),e(a)})().then((e=>o(JSON.parse('[["p-aca7aea1",[[4,"taro-checkbox-core",{"name":[1],"value":[1032],"color":[1],"id":[1025],"checked":[4],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-checkbox-group-core",{"name":[8]},[[0,"checkboxchange","function"]]]]],["p-14795db7",[[0,"taro-movable-area-core",{"scaleArea":[4,"scale-area"]}],[0,"taro-movable-view-core",{"x":[8],"y":[8],"direction":[1],"outOfBounds":[4,"out-of-bounds"],"inertia":[4],"friction":[2],"damping":[2],"disabled":[4],"scale":[4],"scaleMin":[2,"scale-min"],"scaleMax":[2,"scale-max"],"scaleValue":[2,"scale-value"],"animation":[4],"setParent":[64],"endScale":[64],"setScale":[64]}]]],["p-127391cb",[[0,"taro-picker-view-column-core",{"col":[1],"initialPosition":[1,"initial-position"],"paddingVertical":[2,"padding-vertical"],"isInit":[32]},[[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]],[4,"taro-picker-view-core",{"indicatorStyle":[1,"indicator-style"],"indicatorClass":[1,"indicator-class"],"value":[16],"maskStyle":[1,"mask-style"],"maskClass":[1,"mask-class"]},[[0,"onselect","onSelect"],[0,"onselectstart","onSelectStart"],[0,"onselectend","onPickerColEnd"]]]]],["p-df86c576",[[4,"taro-radio-core",{"name":[1],"value":[1],"id":[1025],"checked":[1540],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}],[0,"taro-radio-group-core",{"name":[8]},[[0,"radiochange","function"]]]]],["p-b70027b2",[[4,"taro-swiper-core",{"indicatorDots":[4,"indicator-dots"],"indicatorColor":[1,"indicator-color"],"indicatorActiveColor":[1,"indicator-active-color"],"autoplay":[4],"current":[2],"currentItemId":[1,"current-item-id"],"interval":[2],"duration":[2],"circular":[4],"vertical":[4],"previousMargin":[1,"previous-margin"],"nextMargin":[1,"next-margin"],"displayMultipleItems":[2,"display-multiple-items"],"full":[4],"zoom":[4],"effectsProps":[16],"swiperWrapper":[32],"swiper":[32],"isWillLoadCalled":[32],"observer":[32]}],[4,"taro-swiper-item-core",{"itemId":[1,"item-id"]}]]],["p-7c455a65",[[0,"taro-ad-core"]]],["p-38598f5b",[[0,"taro-ad-custom-core"]]],["p-0f829f27",[[0,"taro-animation-video-core"]]],["p-92a39ad9",[[0,"taro-animation-view-core"]]],["p-b19ea38d",[[0,"taro-ar-camera-core"]]],["p-6223811d",[[0,"taro-audio-core",{"src":[1],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"nativeProps":[16]}]]],["p-922047dd",[[0,"taro-aweme-data-core"]]],["p-4f4b08df",[[0,"taro-block-core"]]],["p-0795a339",[[4,"taro-button-core",{"disabled":[4],"hoverClass":[1,"hover-class"],"type":[1],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"size":[1],"plain":[4],"loading":[4],"formType":[513,"form-type"],"hover":[32],"touch":[32]},[[0,"click","onClick"],[1,"touchstart","onTouchStart"],[1,"touchend","onTouchEnd"]]]]],["p-773bed49",[[0,"taro-camera-core"]]],["p-1ad94bf6",[[0,"taro-canvas-core",{"canvasId":[1,"id"],"height":[1537],"width":[1537],"nativeProps":[16]}]]],["p-e0de8e35",[[0,"taro-channel-live-core"]]],["p-094ba888",[[0,"taro-channel-video-core"]]],["p-c66f2363",[[0,"taro-comment-detail-core"]]],["p-a0ff43d9",[[0,"taro-comment-list-core"]]],["p-74ac6c91",[[0,"taro-contact-button-core"]]],["p-5ea030de",[[0,"taro-cover-image-core",{"src":[1],"nativeProps":[16]}]]],["p-80fa0c7c",[[4,"taro-cover-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-eac9f475",[[0,"taro-custom-wrapper-core"]]],["p-806e3c4f",[[0,"taro-double-tap-gesture-handler-core"]]],["p-65c51f07",[[0,"taro-draggable-sheet-core"]]],["p-03b54b0b",[[0,"taro-editor-core"]]],["p-3f650751",[[0,"taro-follow-swan-core"]]],["p-145ba514",[[0,"taro-force-press-gesture-handler-core"]]],["p-69147844",[[4,"taro-form-core",null,[[0,"tarobuttonsubmit","onButtonSubmit"],[0,"tarobuttonreset","onButtonReset"]]]]],["p-0741aa7f",[[0,"taro-functional-page-navigator-core"]]],["p-f57bed55",[[0,"taro-grid-builder-core"]]],["p-61b23b53",[[0,"taro-grid-view-core"]]],["p-c5c71b89",[[0,"taro-horizontal-drag-gesture-handler-core"]]],["p-d45a75d9",[[0,"taro-icon-core",{"type":[1],"size":[8],"color":[1]}]]],["p-81abb053",[[0,"taro-image-core",{"src":[1],"mode":[1],"lazyLoad":[4,"lazy-load"],"nativeProps":[16],"aspectFillMode":[32],"didLoad":[32]}]]],["p-0a92117d",[[0,"taro-inline-payment-panel-core"]]],["p-9a0251c5",[[0,"taro-input-core",{"value":[1025],"type":[1],"password":[4],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"confirmType":[1,"confirm-type"],"name":[1],"readonly":[4],"nativeProps":[16],"focus":[64]}]]],["p-168a6355",[[0,"taro-keyboard-accessory-core"]]],["p-2602cd28",[[4,"taro-label-core",{"for":[1]}]]],["p-1d2b2125",[[0,"taro-lifestyle-core"]]],["p-e87d4a75",[[0,"taro-like-core"]]],["p-e6565988",[[0,"taro-list-builder-core"]]],["p-ae203a0b",[[0,"taro-list-view-core"]]],["p-975f1b0c",[[0,"taro-live-player-core"]]],["p-3f4449b0",[[0,"taro-live-pusher-core"]]],["p-8837c166",[[0,"taro-login-core"]]],["p-eee2d2f9",[[0,"taro-long-press-gesture-handler-core"]]],["p-2ff21d39",[[0,"taro-lottie-core"]]],["p-5bd11f73",[[0,"taro-map-core",{"latitude":[2],"longitude":[2],"scale":[2],"minScale":[2,"min-scale"],"maxScale":[2,"max-scale"],"markers":[16],"polyline":[16],"circles":[16],"polygons":[16],"subkey":[1],"layerStyle":[2,"layer-style"],"rotate":[2],"skew":[2],"showCompass":[4,"show-compass"],"showScale":[4,"show-scale"],"enableOverlooking":[4,"enable-overlooking"],"enableZoom":[4,"enable-zoom"],"enableScroll":[4,"enable-scroll"],"enableRotate":[4,"enable-rotate"],"enableSatellite":[4,"enable-satellite"],"enableTraffic":[4,"enable-traffic"],"enableBuilding":[4,"enable-building"],"enableAutoMaxOverlooking":[4,"enable-auto-max-overlooking"],"enable3D":[4,"enable-3-d"],"width":[1],"height":[1]}]]],["p-9581e63b",[[0,"taro-match-media-core"]]],["p-b89414d7",[[0,"taro-native-slot-core"]]],["p-5b216b21",[[0,"taro-navigation-bar-core"]]],["p-ab09cecf",[[0,"taro-navigator-core",{"hoverClass":[1,"hover-class"],"url":[1],"openType":[1,"open-type"],"isHover":[4,"is-hover"],"delta":[2]},[[0,"click","onClick"]]]]],["p-ad865966",[[0,"taro-nested-scroll-body-core"]]],["p-e6643dc0",[[0,"taro-nested-scroll-header-core"]]],["p-fe1c20a9",[[0,"taro-official-account-core"]]],["p-edab4852",[[0,"taro-open-container-core"]]],["p-bcceaa84",[[0,"taro-open-data-core"]]],["p-582a0e0f",[[0,"taro-page-container-core"]]],["p-c09eb36f",[[0,"taro-page-meta-core"]]],["p-496a9932",[[0,"taro-pan-gesture-handler-core"]]],["p-f52b25aa",[[0,"taro-progress-core",{"percent":[2],"showInfo":[4,"show-info"],"borderRadius":[8,"border-radius"],"fontSize":[8,"font-size"],"strokeWidth":[8,"stroke-width"],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"active":[4]}]]],["p-931bba41",[[4,"taro-pull-to-refresh-core",{"prefixCls":[1,"prefix-cls"],"distanceToRefresh":[2,"distance-to-refresh"],"damping":[2],"indicator":[16],"currSt":[32],"dragOnEdge":[32]}]]],["p-9f953e69",[[0,"taro-rich-text-core",{"nodes":[1],"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1]}]]],["p-e298a2c3",[[0,"taro-root-portal-core"]]],["p-cdeebf36",[[0,"taro-rtc-room-core"]]],["p-8f2a4c66",[[0,"taro-rtc-room-item-core"]]],["p-c3d39813",[[0,"taro-scale-gesture-handler-core"]]],["p-2c48f6cb",[[0,"taro-script-core"]]],["p-00e72620",[[4,"taro-scroll-view-core",{"scrollX":[4,"scroll-x"],"scrollY":[4,"scroll-y"],"upperThreshold":[8,"upper-threshold"],"lowerThreshold":[8,"lower-threshold"],"mpScrollTop":[520,"scroll-top"],"mpScrollLeft":[520,"scroll-left"],"mpScrollIntoView":[513,"scroll-into-view"],"mpScrollIntoViewAlignment":[1,"scroll-into-view-alignment"],"animated":[4,"scroll-with-animation"],"enhanced":[4],"showScrollbar":[4,"show-scrollbar"],"mpScrollToMethod":[64],"mpScrollIntoViewMethod":[64]},[[1,"scroll","handleScroll"],[1,"touchmove","handleTouchMove"]]]]],["p-a3b266d5",[[0,"taro-share-element-core"]]],["p-d6be1ceb",[[0,"taro-slider-core",{"min":[2],"max":[2],"step":[2],"disabled":[4],"value":[1538],"activeColor":[1,"active-color"],"backgroundColor":[1,"background-color"],"blockSize":[2,"block-size"],"blockColor":[1,"block-color"],"showValue":[4,"show-value"],"name":[1],"totalWidth":[32],"touching":[32],"ogX":[32],"touchId":[32],"percent":[32],"ogPercent":[32],"isWillLoadCalled":[32]}]]],["p-fa398c76",[[0,"taro-slot-core"]]],["p-8c520f1e",[[0,"taro-snapshot-core"]]],["p-06b4ba14",[[0,"taro-span-core"]]],["p-3837f853",[[0,"taro-sticky-header-core"]]],["p-ea5d6d41",[[0,"taro-sticky-section-core"]]],["p-5cbc249f",[[0,"taro-switch-core",{"type":[1],"checked":[1028],"color":[1],"name":[1],"disabled":[4],"nativeProps":[16],"isWillLoadCalled":[32]}]]],["p-31f2f332",[[0,"taro-tab-item-core"]]],["p-2b8fae1c",[[0,"taro-tabbar",{"conf":[16],"list":[32],"borderStyle":[32],"backgroundColor":[32],"color":[32],"selectedColor":[32],"selectedIndex":[32],"status":[32]}]]],["p-c84153ae",[[0,"taro-tabs-core"]]],["p-8bc13e66",[[0,"taro-tap-gesture-handler-core"]]],["p-73aae58b",[[4,"taro-text-core",{"selectable":[1028],"userSelect":[1028,"user-select"],"space":[1025],"numberOfLines":[2,"number-of-lines"]}]]],["p-052dbbd9",[[0,"taro-textarea-core",{"value":[1025],"placeholder":[1],"disabled":[4],"maxlength":[2],"autoFocus":[4,"focus"],"autoHeight":[4,"auto-height"],"name":[1],"nativeProps":[16],"line":[32],"focus":[64]}]]],["p-0ecccbb4",[[0,"taro-vertical-drag-gesture-handler-core"]]],["p-88048df9",[[4,"taro-view-core",{"animation":[1],"hoverClass":[1,"hover-class"],"hoverStartTime":[2,"hover-start-time"],"hoverStayTime":[2,"hover-stay-time"],"hover":[32],"touch":[32]},[[1,"touchstart","onTouchStart"],[1,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-ffcacf9a",[[0,"taro-voip-room-core"]]],["p-5570a53e",[[0,"taro-web-view-core",{"src":[1]}]]],["p-b90499e4",[[4,"taro-picker-core",{"mode":[1],"disabled":[4],"range":[16],"rangeKey":[1,"range-key"],"value":[1032],"start":[1],"end":[1],"fields":[1],"name":[1],"textProps":[16],"pickerValue":[32],"height":[32],"hidden":[32],"fadeOut":[32],"isWillLoadCalled":[32]}],[0,"taro-picker-group",{"mode":[1],"range":[16],"rangeKey":[1,"range-key"],"height":[2],"columnId":[1,"column-id"],"updateHeight":[16],"updateDay":[16],"startY":[32],"preY":[32],"hadMove":[32],"touchEnd":[32],"isMove":[32],"handleMoveStart":[64],"handleMoving":[64],"handleMoveEnd":[64]},[[1,"mousedown","onMouseDown"],[3,"mousemove","onMouseMove"],[1,"mouseup","onMouseMoveEnd"],[1,"mouseleave","onMouseMoveEnd"],[1,"touchstart","onTouchStart"],[3,"touchmove","onTouchMove"],[1,"touchend","onTouchEnd"]]]]],["p-0543d7fe",[[0,"taro-video-core",{"src":[1],"duration":[2],"controls":[4],"autoplay":[4],"loop":[4],"muted":[4],"initialTime":[2,"initial-time"],"poster":[1],"objectFit":[1,"object-fit"],"showProgress":[4,"show-progress"],"showFullscreenBtn":[4,"show-fullscreen-btn"],"showPlayBtn":[4,"show-play-btn"],"showCenterPlayBtn":[4,"show-center-play-btn"],"showMuteBtn":[4,"show-mute-btn"],"danmuList":[16],"danmuBtn":[4,"danmu-btn"],"enableDanmu":[4,"enable-danmu"],"enablePlayGesture":[4,"enable-play-gesture"],"enableProgressGesture":[4,"enable-progress-gesture"],"vslideGesture":[4,"vslide-gesture"],"vslideGestureInFullscreen":[4,"vslide-gesture-in-fullscreen"],"nativeProps":[16],"_duration":[32],"_enableDanmu":[32],"isPlaying":[32],"isFirst":[32],"isFullScreen":[32],"fullScreenTimestamp":[32],"isMute":[32],"getHlsObject":[64],"play":[64],"pause":[64],"stop":[64],"seek":[64],"requestFullScreen":[64],"exitFullScreen":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[4,"taro-video-control",{"controls":[4],"currentTime":[2,"current-time"],"duration":[2],"isPlaying":[4,"is-playing"],"pauseFunc":[16],"playFunc":[16],"seekFunc":[16],"showPlayBtn":[4,"show-play-btn"],"showProgress":[4,"show-progress"],"setProgressBall":[64],"toggleVisibility":[64],"getIsDraggingProgressBall":[64],"setCurrentTime":[64]},[[5,"touchmove","onDocumentTouchMove"],[5,"touchend","onDocumentTouchEnd"],[5,"touchcancel","onDocumentTouchEnd"]]],[0,"taro-video-danmu",{"enable":[4],"danmuList":[32],"sendDanmu":[64],"tick":[64]}]]]]'),e)));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tarojs/components",
3
- "version": "4.1.6-beta.0",
3
+ "version": "4.1.6-beta.1",
4
4
  "description": "Taro 组件库",
5
5
  "browser": "dist/index.js",
6
6
  "main:h5": "dist/index.js",
@@ -40,9 +40,9 @@
40
40
  "resolve-pathname": "^3.0.0",
41
41
  "swiper": "11.1.15",
42
42
  "tslib": "^2.6.2",
43
- "@tarojs/runtime": "4.1.6-beta.0",
44
- "@tarojs/shared": "4.1.6-beta.0",
45
- "@tarojs/taro": "4.1.6-beta.0"
43
+ "@tarojs/runtime": "4.1.6-beta.1",
44
+ "@tarojs/shared": "4.1.6-beta.1",
45
+ "@tarojs/taro": "4.1.6-beta.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "@babel/generator": "^7.21.4",
@@ -68,7 +68,7 @@
68
68
  "jest-cli": "27.5.1",
69
69
  "jest-runner": "27.5.1",
70
70
  "jest-environment-node": "27.5.1",
71
- "@tarojs/helper": "4.1.6-beta.0"
71
+ "@tarojs/helper": "4.1.6-beta.1"
72
72
  },
73
73
  "peerDependenciesMeta": {
74
74
  "@types/react": {
@@ -1 +0,0 @@
1
- import{r as t,c as i,h as o,H as s}from"./p-f72fcd8c.js";import{c as a}from"./p-160d710a.js";const e=class{constructor(o){t(this,o),this.onLoad=i(this,"load",7),this.onError=i(this,"error",7),this.src=void 0,this.mode="scaleToFill",this.lazyLoad=!1,this.nativeProps={},this.aspectFillMode="width",this.didLoad=!1}componentDidLoad(){if(!this.lazyLoad)return;const t=new IntersectionObserver((i=>{i[i.length-1].isIntersecting&&(t.unobserve(this.imgRef),this.didLoad=!0)}),{rootMargin:"300px 0px"});t.observe(this.imgRef)}imageOnLoad(){const{width:t,height:i,naturalWidth:o,naturalHeight:s}=this.imgRef;this.onLoad.emit({width:t,height:i}),this.aspectFillMode=o>s?"width":"height"}imageOnError(t){this.onError.emit(t)}render(){const{src:t,lazyLoad:i=!1,aspectFillMode:e="width",imageOnLoad:r,imageOnError:h,nativeProps:m,didLoad:l}=this,n=this.mode||"scaleToFill",d=a({"taro-img__widthfix":"widthFix"===n}),g=a(`taro-img__mode-${n.toLowerCase().replace(/\s/g,"")}`,{[`taro-img__mode-aspectfill--${e}`]:"aspectFill"===n});return o(s,{class:d},t?o("img",Object.assign({ref:t=>this.imgRef=t,class:g,src:i&&!l?void 0:t,onLoad:r.bind(this),onError:h.bind(this)},m)):"")}};e.style='img[src=""]{opacity:0}taro-image-core{width:320px;height:240px;font-size:0;display:inline-block;position:relative;overflow:hidden}.taro-img.taro-img__widthfix{height:100%}.taro-img__mode-scaletofill{width:100%;height:100%}.taro-img__mode-aspectfit{max-width:100%;max-height:100%;position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-aspectfill{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-aspectfill--width{min-width:100%;height:100%}.taro-img__mode-aspectfill--height{width:100%;min-height:100%}.taro-img__mode-widthfix{width:100%}.taro-img__mode-heightfix{height:100%}.taro-img__mode-top{position:absolute;left:50%;transform:translate(-50%)}.taro-img__mode-bottom{position:absolute;bottom:0;left:50%;transform:translate(-50%)}.taro-img__mode-center{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}.taro-img__mode-left{position:absolute;top:50%;transform:translateY(-50%)}.taro-img__mode-right{position:absolute;top:50%;right:0;transform:translateY(-50%)}.taro-img__mode-topright{position:absolute;right:0}.taro-img__mode-bottomleft{position:absolute;bottom:0}.taro-img__mode-bottomright{position:absolute;bottom:0;right:0}';export{e as I}
@@ -1 +0,0 @@
1
- export{I as taro_image_core}from"./p-1f81d4f4.js";import"./p-f72fcd8c.js";import"./p-160d710a.js";