Skip to content

Commit 7a07f5d

Browse files
committed
调整基金小部件涨跌颜色,更正部分文档
1 parent f7d5273 commit 7a07f5d

File tree

5 files changed

+26
-478
lines changed

5 files changed

+26
-478
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
<!-- 最后一次提交时间 -->
1515
<a href="https://github.com/2214962083/ios-scriptable-tsx"><img src="https://img.shields.io/github/last-commit/2214962083/ios-scriptable-tsx" alt="Last commit date"></a>
1616
<!-- 证书 -->
17-
<a href="https://github.com/2214962083/ios-scriptable-tsx/blob/dev/LICENSE"><img src="https://img.shields.io/github/license/2214962083/ios-scriptable-tsx" alt="License"></a>
17+
<a href="https://github.com/2214962083/ios-scriptable-tsx/blob/master/LICENSE"><img src="https://img.shields.io/github/license/2214962083/ios-scriptable-tsx" alt="License"></a>
1818
<!-- package.json 关键词 -->
1919
<a href="https://github.com/2214962083/ios-scriptable-tsx"><img src="https://img.shields.io/github/package-json/keywords/2214962083/ios-scriptable-tsx" alt="Keywords"></a>
2020
</p>

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
"author": "xiaomingyang",
55
"description": "",
66
"main": "index.js",
7+
"keywords": [
8+
"scriptable",
9+
"ios",
10+
"widget"
11+
],
712
"scripts": {
813
"watch": "cross-env watching=true nodemon --config nodemon.json",
914
"dev": "cross-env NODE_ENV=development compileType=one ts-node ./src/lib/compile.ts",

scriptable.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const header = `
2626
* 作者: 小明
2727
* 版本: 1.0.0
2828
* 更新时间:${new Date().toLocaleDateString()}
29-
* github: https://github.com/2214962083/scriptable.git
29+
* github: https://github.com/2214962083/ios-scriptable-tsx
3030
*/
3131
`
3232

src/scripts/funds.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ function getFundColumn(fundsInfo: FundInfo[], title: string, keyName: keyof Fund
7373
return {
7474
// 涨跌幅文字特别处理(涨绿,跌红)
7575
GSZZL: (
76-
<wtext font={Font.lightSystemFont(14)} textColor={Number(value) >= 0 ? '#4eff4e' : '#ff4e4e'}>
76+
<wtext font={Font.lightSystemFont(14)} textColor={Number(value) < 0 ? '#4eff4e' : '#ff4e4e'}>
7777
{value + '%'}
7878
</wtext>
7979
),

0 commit comments

Comments
 (0)