@fugood/bricks-project 2.22.9 → 2.22.10

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fugood/bricks-project",
3
- "version": "2.22.9",
3
+ "version": "2.22.10",
4
4
  "main": "index.ts",
5
5
  "scripts": {
6
6
  "build": "node scripts/build.js"
@@ -18,6 +18,7 @@ interface BrickImageDef {
18
18
  Default property:
19
19
  {
20
20
  "path": "",
21
+ "templateType": "${}",
21
22
  "fadeDuration": 0,
22
23
  "blurBackgroundRadius": 8,
23
24
  "loadSystemIos": "auto",
@@ -29,6 +30,10 @@ Default property:
29
30
  resizeMode?: 'contain' | 'cover' | 'stretch' | 'center' | 'repeat' | DataLink
30
31
  /* The image file path (File, URL) */
31
32
  path?: string | DataLink
33
+ /* Data to be used in the path template (e.g. `https://example.com/${id}.png`). Supports nested data, such as `${user.avatar}`. */
34
+ templateData?: {} | DataLink
35
+ /* The path template type */
36
+ templateType?: '${}' | '{{}}' | DataLink
32
37
  /* The checksum of file */
33
38
  md5?: string | DataLink
34
39
  /* The image fade duration */