Skip to content

Commit d89148f

Browse files
committed
纠正文档
1 parent c75ebd8 commit d89148f

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

docs/config.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,8 +74,8 @@ ios-scriptable-tsx
7474
npm run watch #development开发环境
7575
npm run dev #development开发环境
7676
npm run dev:all#development开发环境
77-
npm run build#production开发环境
78-
npm run build:all#production开发环境
77+
npm run build#production生产环境
78+
npm run build:all#production生产环境
7979
```
8080

8181
<br/>

docs/widget-element.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -33,10 +33,10 @@
3333
| [borderRadius](https://docs.scriptable.app/widgetstack/#cornerradius) | number | 0 || 边框四个角的圆角程度 |
3434
| [borderWidth](https://docs.scriptable.app/widgetstack/#borderwidth) | number | 0 || 边框宽度 |
3535
| [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/>**当小部件为小尺寸时,此属性不生效** |
3737
| [verticalAlign](#wstack-verticalAlign) | string | top || 内容垂直方向对齐方式 |
3838
| [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/>**当小部件为小尺寸时,此属性不生效** |
4040
<br/>
4141

4242
##### <span id="wstack-verticalAlign">verticalAlign 的合法值</span>
@@ -66,7 +66,7 @@
6666
| 属性 | 类型 | 默认值 | 必填 | 说明 |
6767
| ------------------------------------------------------------ | ---------------- | ------- | ---- | ------------------------------------------------------------ |
6868
| [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/>**当小部件为小尺寸时,此属性不生效** |
7070
| [resizable](https://docs.scriptable.app/widgetimage/#resizable) | boolean | true || 图片是否可以调整大小 |
7171
| [width](https://docs.scriptable.app/widgetimage/#imagesize) | number | || 图片宽,**当宽高都为空时,图片将显示原尺寸。** |
7272
| [height](https://docs.scriptable.app/widgetimage/#imagesize) | number | || 图片高,**当宽高都为空时,图片将显示原尺寸。** |
@@ -78,7 +78,7 @@
7878
| [filter](https://docs.scriptable.app/widgetimage/#tintcolor) | string \| object | || 加滤镜<br />可以为hex 字符串,例子:#ffffff<br/>可以为 [Color](https://docs.scriptable.app/color/) 对象 |
7979
| [imageAlign](#wimage-imageAlign) | string | left | | 图片横向对齐方式 |
8080
| [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/>**当小部件为小尺寸时,此属性不生效** |
8282

8383
<br/>
8484

@@ -129,9 +129,9 @@
129129
| [shadowColor](https://docs.scriptable.app/widgettext/#shadowcolor) | string \| object | #000000 || 阴影颜色, `shadowRadius` 属性的值必须大于零,此属性才能生效。<br />可以为hex 字符串,例子:#ffffff<br/>可以为 [Color](https://docs.scriptable.app/color/) 对象 |
130130
| [shadowRadius](https://docs.scriptable.app/widgettext/#shadowradius) | number | 0 || 阴影模糊距离 |
131131
| [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/>**当小部件为小尺寸时,此属性不生效** |
133133
| [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/>**当小部件为小尺寸时,此属性不生效** |
135135

136136
<br/>
137137

@@ -163,9 +163,9 @@
163163
| [shadowColor](https://docs.scriptable.app/widgetdate/#shadowcolor) | string \| object | #000000 || 阴影颜色, `shadowRadius` 属性的值必须大于零,此属性才能生效。<br />可以为hex 字符串,例子:#ffffff<br/>可以为 [Color](https://docs.scriptable.app/color/) 对象 |
164164
| [shadowRadius](https://docs.scriptable.app/widgetdate/#shadowradius) | number | 0 || 阴影模糊距离 |
165165
| [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/>**当小部件为小尺寸时,此属性不生效** |
167167
| [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/>**当小部件为小尺寸时,此属性不生效** |
169169

170170
<br/>
171171

0 commit comments

Comments
 (0)