x-app-sdk 1.1.2 → 1.1.3
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/README.md +4 -2
- package/dist/index.d.ts +2 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -20,12 +20,14 @@ yarn add x-app-sdk
|
|
|
20
20
|
#### `configUIApp(config)`
|
|
21
21
|
Cấu hình giao diện ứng dụng trong SuperApp.
|
|
22
22
|
```js
|
|
23
|
-
import { configUIApp } from 'x-app-sdk';
|
|
23
|
+
import { configUIApp, IViewUiConfig } from 'x-app-sdk';
|
|
24
24
|
|
|
25
|
-
const config = {
|
|
25
|
+
const config: IViewUiConfig = {
|
|
26
26
|
headerTitle: 'Tên ứng dụng',
|
|
27
27
|
headerColor: '#ffffff',
|
|
28
28
|
headerTextColor: '#000000'
|
|
29
|
+
headerSubTitle: 'Mô tả ngắn ứng dụng'; // optional
|
|
30
|
+
headerIcon: 'Link icon trên header'; // optional
|
|
29
31
|
};
|
|
30
32
|
|
|
31
33
|
configUIApp(config).then(response => {
|
package/dist/index.d.ts
CHANGED
|
@@ -143,6 +143,8 @@ export declare interface IViewUiConfig {
|
|
|
143
143
|
headerColor?: string;
|
|
144
144
|
headerTitle?: string;
|
|
145
145
|
headerTextColor?: string;
|
|
146
|
+
headerSubTitle?: string;
|
|
147
|
+
headerIcon?: string;
|
|
146
148
|
}
|
|
147
149
|
|
|
148
150
|
export declare const listenNotifiactionEvent: (callback: (data: FlutterMessageResponse) => void, customSdk?: typeof fltSDK) => (() => void);
|