@doubao-dev/framework 0.2.0 → 0.2.1

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.
@@ -644,6 +644,12 @@ export declare interface Circle {
644
644
 
645
645
  export { ContentSizeChangedEvent }
646
646
 
647
+ /**
648
+ * 自定义地图样式 ID。
649
+ * @since 0.2.1
650
+ */
651
+ export declare type CustomMapStyleId = string;
652
+
647
653
  export declare const DoubaoPaymentButton: typeof DoubaoPaymentButton_2;
648
654
 
649
655
  declare const DoubaoPaymentButton_2: DoubaoPaymentButton_3;
@@ -1749,10 +1755,10 @@ export declare interface MapProps {
1749
1755
  */
1750
1756
  children?: ReactNode;
1751
1757
  /**
1752
- * 地图主题样式。
1758
+ * 地图主题样式,支持内置主题;自 0.2.1 起支持自定义样式 ID。
1753
1759
  * @defaultValue "normal-light"
1754
1760
  */
1755
- mapStyle?: 'normal-light' | 'normal-dark' | 'simple-light' | 'simple-dark';
1761
+ mapStyle?: 'normal-light' | 'normal-dark' | 'simple-light' | 'simple-dark' | CustomMapStyleId;
1756
1762
  /**
1757
1763
  * 地图中心位置。
1758
1764
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@doubao-dev/framework",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "type": "module",
5
5
  "types": "./dist/index.d.ts",
6
6
  "exports": {