|
33 | 33 | | [borderRadius](https://docs.scriptable.app/widgetstack/#cornerradius) | number | 0 | 否 | 边框四个角的圆角程度 | |
34 | 34 | | [borderWidth](https://docs.scriptable.app/widgetstack/#borderwidth) | number | 0 | 否 | 边框宽度 | |
35 | 35 | | [borderColor](https://docs.scriptable.app/widgetstack/#bordercolor) | string \| object | #000000 | 否 | 边框颜色<br/>可以为hex 字符串,例子:#ffffff<br/>可以为 [Color](https://docs.scriptable.app/color/) 对象 | |
36 | | -| [href](https://docs.scriptable.app/widgetstack/#url) | string | | 否 | 点击时打开的url <br/>不与 `onClick` 共存,当 `onClick` 存在时,只执行 `onClick` | |
| 36 | +| [href](https://docs.scriptable.app/widgetstack/#url) | string | | 否 | 点击时打开的url <br/>不与 `onClick` 共存,当 `onClick` 存在时,只执行 `onClick`<br/>**当小部件为小尺寸时,此属性不生效** | |
37 | 37 | | [verticalAlign](#wstack-verticalAlign) | string | top | 否 | 内容垂直方向对齐方式 | |
38 | 38 | | [flexDirection](#wstack-flexDirection) | string | row | 否 | 排版方向 | |
39 | | -| onClick | function | | 否 | 用 [URLScheme](https://docs.scriptable.app/urlscheme/) 实现的点击事件<br/>不与 `href` 共存,当 `href` 存在时,只执行 `onClick` | |
| 39 | +| onClick | function | | 否 | 用 [URLScheme](https://docs.scriptable.app/urlscheme/) 实现的点击事件<br/>不与 `href` 共存,当 `href` 存在时,只执行 `onClick`<br/>**当小部件为小尺寸时,此属性不生效** | |
40 | 40 | <br/> |
41 | 41 |
|
42 | 42 | ##### <span id="wstack-verticalAlign">verticalAlign 的合法值</span> |
|
66 | 66 | | 属性 | 类型 | 默认值 | 必填 | 说明 | |
67 | 67 | | ------------------------------------------------------------ | ---------------- | ------- | ---- | ------------------------------------------------------------ | |
68 | 68 | | [src](https://docs.scriptable.app/widgetimage/#image) | string \| object | | 是 | 图片资源地址<br/>可以为网络连接,例子:http://example.com/a.jpg<br/>可以为 [Image](https://docs.scriptable.app/image/) 对象<br/>可以为 [SFSymbol 的 icon名字](https://docs.scriptable.app/sfsymbol/) ,就是 [ios 自带图标库里](https://apps.apple.com/us/app/sf-symbols-browser/id1491161336) 某图标的iconName,例子:tv.circle.fill<br/> | |
69 | | -| [href](https://docs.scriptable.app/widgetimage/#url) | string | | 否 | 点击时打开的url <br/>不与 `onClick` 共存,当 `onClick` 存在时,只执行 `onClick` | |
| 69 | +| [href](https://docs.scriptable.app/widgetimage/#url) | string | | 否 | 点击时打开的url <br/>不与 `onClick` 共存,当 `onClick` 存在时,只执行 `onClick`<br/>**当小部件为小尺寸时,此属性不生效** | |
70 | 70 | | [resizable](https://docs.scriptable.app/widgetimage/#resizable) | boolean | true | 否 | 图片是否可以调整大小 | |
71 | 71 | | [width](https://docs.scriptable.app/widgetimage/#imagesize) | number | | 否 | 图片宽,**当宽高都为空时,图片将显示原尺寸。** | |
72 | 72 | | [height](https://docs.scriptable.app/widgetimage/#imagesize) | number | | 否 | 图片高,**当宽高都为空时,图片将显示原尺寸。** | |
|
78 | 78 | | [filter](https://docs.scriptable.app/widgetimage/#tintcolor) | string \| object | | 否 | 加滤镜<br />可以为hex 字符串,例子:#ffffff<br/>可以为 [Color](https://docs.scriptable.app/color/) 对象 | |
79 | 79 | | [imageAlign](#wimage-imageAlign) | string | left | | 图片横向对齐方式 | |
80 | 80 | | [mode](#wimage-mode) | string | fit | 否 | 图片显示模式 | |
81 | | -| onClick | function | | 否 | 用 [URLScheme](https://docs.scriptable.app/urlscheme/) 实现的点击事件<br/>不与 `href` 共存,当 `href` 存在时,只执行 `onClick` | |
| 81 | +| onClick | function | | 否 | 用 [URLScheme](https://docs.scriptable.app/urlscheme/) 实现的点击事件<br/>不与 `href` 共存,当 `href` 存在时,只执行 `onClick`<br/>**当小部件为小尺寸时,此属性不生效** | |
82 | 82 |
|
83 | 83 | <br/> |
84 | 84 |
|
|
129 | 129 | | [shadowColor](https://docs.scriptable.app/widgettext/#shadowcolor) | string \| object | #000000 | 否 | 阴影颜色, `shadowRadius` 属性的值必须大于零,此属性才能生效。<br />可以为hex 字符串,例子:#ffffff<br/>可以为 [Color](https://docs.scriptable.app/color/) 对象 | |
130 | 130 | | [shadowRadius](https://docs.scriptable.app/widgettext/#shadowradius) | number | 0 | 否 | 阴影模糊距离 | |
131 | 131 | | [shadowOffset](https://docs.scriptable.app/widgettext/#shadowoffset) | object | new Point(0, 0) | 否 | 阴影的偏移位置。 `shadowRadius` 属性的值必须大于零,此属性才能生效。<br />传入 [Point](https://docs.scriptable.app/point/#point) 位置对象 | |
132 | | -| [href](https://docs.scriptable.app/widgettext/#url) | string | | 否 | 点击时打开的url <br/>不与 `onClick` 共存,当 `onClick` 存在时,只执行 `onClick` | |
| 132 | +| [href](https://docs.scriptable.app/widgettext/#url) | string | | 否 | 点击时打开的url <br/>不与 `onClick` 共存,当 `onClick` 存在时,只执行 `onClick`<br/>**当小部件为小尺寸时,此属性不生效** | |
133 | 133 | | [textAlign](#wtext-textAlign) | string | left | 否 | | |
134 | | -| onClick | function | | 否 | 用 [URLScheme](https://docs.scriptable.app/urlscheme/) 实现的点击事件<br/>不与 `href` 共存,当 `href` 存在时,只执行 `onClick` | |
| 134 | +| onClick | function | | 否 | 用 [URLScheme](https://docs.scriptable.app/urlscheme/) 实现的点击事件<br/>不与 `href` 共存,当 `href` 存在时,只执行 `onClick`<br/>**当小部件为小尺寸时,此属性不生效** | |
135 | 135 |
|
136 | 136 | <br/> |
137 | 137 |
|
|
163 | 163 | | [shadowColor](https://docs.scriptable.app/widgetdate/#shadowcolor) | string \| object | #000000 | 否 | 阴影颜色, `shadowRadius` 属性的值必须大于零,此属性才能生效。<br />可以为hex 字符串,例子:#ffffff<br/>可以为 [Color](https://docs.scriptable.app/color/) 对象 | |
164 | 164 | | [shadowRadius](https://docs.scriptable.app/widgetdate/#shadowradius) | number | 0 | 否 | 阴影模糊距离 | |
165 | 165 | | [shadowOffset](https://docs.scriptable.app/widgetdate/#shadowoffset) | object | new Point(0, 0) | 否 | 阴影的偏移位置。 `shadowRadius` 属性的值必须大于零,此属性才能生效。<br />传入 [Point](https://docs.scriptable.app/point/#point) 位置对象 | |
166 | | -| [href](https://docs.scriptable.app/widgetdate/#url) | string | | 否 | 点击时打开的url <br/>不与 `onClick` 共存,当 `onClick` 存在时,只执行 `onClick` | |
| 166 | +| [href](https://docs.scriptable.app/widgetdate/#url) | string | | 否 | 点击时打开的url <br/>不与 `onClick` 共存,当 `onClick` 存在时,只执行 `onClick`<br/>**当小部件为小尺寸时,此属性不生效** | |
167 | 167 | | [textAlign](#wtext-textAlign) | string | left | 否 | | |
168 | | -| onClick | function | | 否 | 用 [URLScheme](https://docs.scriptable.app/urlscheme/) 实现的点击事件<br/>不与 `href` 共存,当 `href` 存在时,只执行 `onClick` | |
| 168 | +| onClick | function | | 否 | 用 [URLScheme](https://docs.scriptable.app/urlscheme/) 实现的点击事件<br/>不与 `href` 共存,当 `href` 存在时,只执行 `onClick`<br/>**当小部件为小尺寸时,此属性不生效** | |
169 | 169 |
|
170 | 170 | <br/> |
171 | 171 |
|
|
0 commit comments