@uni-helper/pages-json-schema 0.2.6 → 0.2.7

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.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/schema.json +33 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@uni-helper/pages-json-schema",
3
- "version": "0.2.6",
3
+ "version": "0.2.7",
4
4
  "description": "Schema for uni-app pages.json",
5
5
  "author": "KeJun",
6
6
  "license": "MIT",
@@ -14,7 +14,7 @@
14
14
  "jsonschema"
15
15
  ],
16
16
  "devDependencies": {
17
- "ts-json-schema-generator": "^1.2.0"
17
+ "ts-json-schema-generator": "^1.3.0"
18
18
  },
19
19
  "scripts": {
20
20
  "generate": "ts-json-schema-generator -p \"../core/src/config/types/index.ts\" -t \"PagesConfig\" -o \"schema.json\" --no-type-check"
package/schema.json CHANGED
@@ -563,7 +563,14 @@
563
563
  "TabBar": {
564
564
  "properties": {
565
565
  "backgroundColor": {
566
- "$ref": "#/definitions/Color",
566
+ "anyOf": [
567
+ {
568
+ "$ref": "#/definitions/Color"
569
+ },
570
+ {
571
+ "$ref": "#/definitions/ThemeColor"
572
+ }
573
+ ],
567
574
  "description": "tab 的背景色"
568
575
  },
569
576
  "blurEffect": {
@@ -572,12 +579,26 @@
572
579
  "type": "string"
573
580
  },
574
581
  "borderStyle": {
582
+ "anyOf": [
583
+ {
584
+ "type": "string"
585
+ },
586
+ {
587
+ "$ref": "#/definitions/ThemeColor"
588
+ }
589
+ ],
575
590
  "default": "black",
576
- "description": "tabbar 上边框的颜色,可选值 black/white,也支持其他颜色值",
577
- "type": "string"
591
+ "description": "tabbar 上边框的颜色,可选值 black/white,也支持其他颜色值"
578
592
  },
579
593
  "color": {
580
- "$ref": "#/definitions/Color",
594
+ "anyOf": [
595
+ {
596
+ "$ref": "#/definitions/Color"
597
+ },
598
+ {
599
+ "$ref": "#/definitions/ThemeColor"
600
+ }
601
+ ],
581
602
  "description": "tab 上的文字默认颜色"
582
603
  },
583
604
  "fontSize": {
@@ -616,7 +637,14 @@
616
637
  "type": "string"
617
638
  },
618
639
  "selectedColor": {
619
- "$ref": "#/definitions/Color",
640
+ "anyOf": [
641
+ {
642
+ "$ref": "#/definitions/Color"
643
+ },
644
+ {
645
+ "$ref": "#/definitions/ThemeColor"
646
+ }
647
+ ],
620
648
  "description": "tab 上的文字选中时的颜色"
621
649
  },
622
650
  "spacing": {