@uni-helper/uni-pages-types 0.4.4 → 0.4.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.
package/dist/index.d.cts CHANGED
@@ -127,7 +127,7 @@ interface Condition {
127
127
  /**
128
128
  * 启动模式列表
129
129
  */
130
- list: Partial<ConditionItem>[];
130
+ list: ConditionItem[];
131
131
  }
132
132
  //#endregion
133
133
  //#region src/easycom.d.ts
@@ -147,8 +147,6 @@ interface EasyCom {
147
147
  * "custom": {
148
148
  * "^uni-(.*)": "@/components/uni-$1.vue", // 匹配 components 目录内的 vue 文件
149
149
  * "^vue-file-(.*)": "packageName/path/to/vue-file-$1.vue" // 匹配 node_modules 内的 vue 文件
150
- * }
151
- }
152
150
  */
153
151
  custom?: Record<string, string>;
154
152
  }
@@ -1666,6 +1664,12 @@ interface MpJd {
1666
1664
  * @default false
1667
1665
  */
1668
1666
  enablePullDownRefresh?: boolean;
1667
+ /**
1668
+ * 页面上拉触底事件触发时距页面底部距离,单位为 px
1669
+ *
1670
+ * @default 50
1671
+ */
1672
+ onReachBottomDistance?: number;
1669
1673
  [x: string]: any;
1670
1674
  }
1671
1675
  //#endregion
@@ -1950,6 +1954,12 @@ interface MpQq {
1950
1954
  * @default "portrait"
1951
1955
  */
1952
1956
  pageOrientation?: 'auto' | 'portrait' | 'landscape';
1957
+ /**
1958
+ * 页面上拉触底事件触发时距页面底部距离,单位为 px
1959
+ *
1960
+ * @default 50
1961
+ */
1962
+ onReachBottomDistance?: number;
1953
1963
  [x: string]: any;
1954
1964
  }
1955
1965
  //#endregion
@@ -2338,6 +2348,24 @@ interface MpXhs {
2338
2348
  * @default 50
2339
2349
  */
2340
2350
  onReachBottomDistance?: number;
2351
+ /**
2352
+ * 下拉 loading 的样式,仅支持 "dark" / "light"
2353
+ *
2354
+ * @default "dark"
2355
+ */
2356
+ backgroundTextStyle?: 'dark' | 'light' | ThemeVar;
2357
+ /**
2358
+ * 屏幕旋转设置,支持 auto / portrait / landscape
2359
+ *
2360
+ * "auto" 自动
2361
+ *
2362
+ * "portrait" 竖屏
2363
+ *
2364
+ * "landscape" 横屏
2365
+ *
2366
+ * @default "portrait"
2367
+ */
2368
+ pageOrientation?: 'auto' | 'portrait' | 'landscape';
2341
2369
  [x: string]: any;
2342
2370
  }
2343
2371
  //#endregion
@@ -2379,7 +2407,7 @@ interface GlobalStyle {
2379
2407
  *
2380
2408
  * @default "default"
2381
2409
  *
2382
- * @desc 微信小程序 7.0+、百度小程序、H5、App(2.0.3+)
2410
+ * @desc 微信小程序 7.0+、百度小程序、H5、App(2.0.3+)、小红书小程序
2383
2411
  */
2384
2412
  'navigationStyle'?: 'default' | 'custom';
2385
2413
  /**
@@ -2387,7 +2415,7 @@ interface GlobalStyle {
2387
2415
  *
2388
2416
  * @default "#ffffff"
2389
2417
  *
2390
- * @desc 微信小程序
2418
+ * @desc 微信小程序、小红书小程序
2391
2419
  *
2392
2420
  * @format color
2393
2421
  */
@@ -2483,7 +2511,7 @@ interface GlobalStyle {
2483
2511
  *
2484
2512
  * @desc App 2.4.7+、微信小程序、QQ小程序
2485
2513
  */
2486
- 'pageOrientation'?: string;
2514
+ 'pageOrientation'?: 'auto' | 'portrait' | 'landscape';
2487
2515
  /**
2488
2516
  * 窗口显示的动画效果,详见 [窗口动画](https://uniapp.dcloud.net.cn/api/router#animation)
2489
2517
  *
package/dist/index.d.mts CHANGED
@@ -127,7 +127,7 @@ interface Condition {
127
127
  /**
128
128
  * 启动模式列表
129
129
  */
130
- list: Partial<ConditionItem>[];
130
+ list: ConditionItem[];
131
131
  }
132
132
  //#endregion
133
133
  //#region src/easycom.d.ts
@@ -147,8 +147,6 @@ interface EasyCom {
147
147
  * "custom": {
148
148
  * "^uni-(.*)": "@/components/uni-$1.vue", // 匹配 components 目录内的 vue 文件
149
149
  * "^vue-file-(.*)": "packageName/path/to/vue-file-$1.vue" // 匹配 node_modules 内的 vue 文件
150
- * }
151
- }
152
150
  */
153
151
  custom?: Record<string, string>;
154
152
  }
@@ -1666,6 +1664,12 @@ interface MpJd {
1666
1664
  * @default false
1667
1665
  */
1668
1666
  enablePullDownRefresh?: boolean;
1667
+ /**
1668
+ * 页面上拉触底事件触发时距页面底部距离,单位为 px
1669
+ *
1670
+ * @default 50
1671
+ */
1672
+ onReachBottomDistance?: number;
1669
1673
  [x: string]: any;
1670
1674
  }
1671
1675
  //#endregion
@@ -1950,6 +1954,12 @@ interface MpQq {
1950
1954
  * @default "portrait"
1951
1955
  */
1952
1956
  pageOrientation?: 'auto' | 'portrait' | 'landscape';
1957
+ /**
1958
+ * 页面上拉触底事件触发时距页面底部距离,单位为 px
1959
+ *
1960
+ * @default 50
1961
+ */
1962
+ onReachBottomDistance?: number;
1953
1963
  [x: string]: any;
1954
1964
  }
1955
1965
  //#endregion
@@ -2338,6 +2348,24 @@ interface MpXhs {
2338
2348
  * @default 50
2339
2349
  */
2340
2350
  onReachBottomDistance?: number;
2351
+ /**
2352
+ * 下拉 loading 的样式,仅支持 "dark" / "light"
2353
+ *
2354
+ * @default "dark"
2355
+ */
2356
+ backgroundTextStyle?: 'dark' | 'light' | ThemeVar;
2357
+ /**
2358
+ * 屏幕旋转设置,支持 auto / portrait / landscape
2359
+ *
2360
+ * "auto" 自动
2361
+ *
2362
+ * "portrait" 竖屏
2363
+ *
2364
+ * "landscape" 横屏
2365
+ *
2366
+ * @default "portrait"
2367
+ */
2368
+ pageOrientation?: 'auto' | 'portrait' | 'landscape';
2341
2369
  [x: string]: any;
2342
2370
  }
2343
2371
  //#endregion
@@ -2379,7 +2407,7 @@ interface GlobalStyle {
2379
2407
  *
2380
2408
  * @default "default"
2381
2409
  *
2382
- * @desc 微信小程序 7.0+、百度小程序、H5、App(2.0.3+)
2410
+ * @desc 微信小程序 7.0+、百度小程序、H5、App(2.0.3+)、小红书小程序
2383
2411
  */
2384
2412
  'navigationStyle'?: 'default' | 'custom';
2385
2413
  /**
@@ -2387,7 +2415,7 @@ interface GlobalStyle {
2387
2415
  *
2388
2416
  * @default "#ffffff"
2389
2417
  *
2390
- * @desc 微信小程序
2418
+ * @desc 微信小程序、小红书小程序
2391
2419
  *
2392
2420
  * @format color
2393
2421
  */
@@ -2483,7 +2511,7 @@ interface GlobalStyle {
2483
2511
  *
2484
2512
  * @desc App 2.4.7+、微信小程序、QQ小程序
2485
2513
  */
2486
- 'pageOrientation'?: string;
2514
+ 'pageOrientation'?: 'auto' | 'portrait' | 'landscape';
2487
2515
  /**
2488
2516
  * 窗口显示的动画效果,详见 [窗口动画](https://uniapp.dcloud.net.cn/api/router#animation)
2489
2517
  *
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@uni-helper/uni-pages-types",
3
3
  "type": "module",
4
- "version": "0.4.4",
4
+ "version": "0.4.7",
5
5
  "description": "Type definitions for uni-app pages.json",
6
6
  "author": "KeJun",
7
7
  "maintainers": [
@@ -43,7 +43,7 @@
43
43
  "dist"
44
44
  ],
45
45
  "devDependencies": {
46
- "tsdown": "^0.22.2",
46
+ "tsdown": "^0.22.3",
47
47
  "typescript": "^6.0.3"
48
48
  },
49
49
  "scripts": {