Skip to content

Conversation

lilei946
Copy link
Contributor

@lilei946 lilei946 commented Jan 22, 2025

  1. 将JS卡的template和css抽取成单独的[index].template.json和[index].css.json文件
  2. template.json中,表达式的key增加$,function改为"function"字符串,如:
    "$value": "function () {return '' + '显示: ' + (this.starNum) + '星'}"。
    引擎对应的修改已提交:feat: read template and style json for jscard hapjs#677

@lilei946 lilei946 force-pushed the jscard-modify branch 2 times, most recently from 5311422 to 5f7319f Compare February 19, 2025 09:40
@xiaomin1397 xiaomin1397 merged commit 1093fca into hapjs-platform:main Feb 20, 2025
0 of 2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants