@rsmax/wechat 1.3.12 → 1.3.13
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/CHANGELOG.md +4 -0
- package/cjs/hostComponents/Ad/index.d.ts +2 -2
- package/cjs/hostComponents/AdCustom/index.d.ts +2 -2
- package/cjs/hostComponents/Audio/index.d.ts +1 -1
- package/cjs/hostComponents/Button/index.d.ts +2 -2
- package/cjs/hostComponents/Camera/index.d.ts +2 -2
- package/cjs/hostComponents/Canvas/index.d.ts +2 -2
- package/cjs/hostComponents/ChannelLive/index.d.ts +2 -2
- package/cjs/hostComponents/ChannelVideo/index.d.ts +2 -2
- package/cjs/hostComponents/Checkbox/index.d.ts +2 -2
- package/cjs/hostComponents/CheckboxGroup/index.d.ts +2 -2
- package/cjs/hostComponents/CoverImage/index.d.ts +2 -2
- package/cjs/hostComponents/CoverView/index.d.ts +2 -2
- package/cjs/hostComponents/Editor/index.d.ts +2 -2
- package/cjs/hostComponents/EditorPortal/index.d.ts +2 -2
- package/cjs/hostComponents/Form/index.d.ts +2 -2
- package/cjs/hostComponents/FunctionalPageNavigator/index.d.ts +2 -2
- package/cjs/hostComponents/Icon/index.d.ts +2 -2
- package/cjs/hostComponents/Image/index.d.ts +2 -2
- package/cjs/hostComponents/Input/index.d.ts +2 -2
- package/cjs/hostComponents/KeyboardAccessory/index.d.ts +2 -2
- package/cjs/hostComponents/Label/index.d.ts +2 -2
- package/cjs/hostComponents/LivePlayer/index.d.ts +2 -2
- package/cjs/hostComponents/LivePusher/index.d.ts +2 -2
- package/cjs/hostComponents/Map/index.d.ts +2 -2
- package/cjs/hostComponents/MatchMedia/index.d.ts +2 -2
- package/cjs/hostComponents/MovableArea/index.d.ts +2 -2
- package/cjs/hostComponents/MovableView/index.d.ts +2 -2
- package/cjs/hostComponents/NavigationBar/index.d.ts +2 -2
- package/cjs/hostComponents/Navigator/index.d.ts +2 -2
- package/cjs/hostComponents/OfficialAccount/index.d.ts +2 -2
- package/cjs/hostComponents/OpenData/index.d.ts +2 -2
- package/cjs/hostComponents/PageContainer/index.d.ts +2 -2
- package/cjs/hostComponents/PageMeta/index.d.ts +2 -2
- package/cjs/hostComponents/Picker/index.d.ts +2 -2
- package/cjs/hostComponents/PickerView/index.d.ts +2 -2
- package/cjs/hostComponents/PickerViewColumn/index.d.ts +2 -2
- package/cjs/hostComponents/Progress/index.d.ts +2 -2
- package/cjs/hostComponents/Radio/index.d.ts +2 -2
- package/cjs/hostComponents/RadioGroup/index.d.ts +2 -2
- package/cjs/hostComponents/RichText/index.d.ts +2 -2
- package/cjs/hostComponents/RootPortal/index.d.ts +2 -2
- package/cjs/hostComponents/ScrollView/index.d.ts +2 -2
- package/cjs/hostComponents/Selection/index.d.ts +2 -2
- package/cjs/hostComponents/ShareElement/index.d.ts +2 -2
- package/cjs/hostComponents/Slider/index.d.ts +2 -2
- package/cjs/hostComponents/Snapshot/index.d.ts +2 -2
- package/cjs/hostComponents/Swiper/index.d.ts +2 -2
- package/cjs/hostComponents/SwiperItem/index.d.ts +2 -2
- package/cjs/hostComponents/Switch/index.d.ts +2 -2
- package/cjs/hostComponents/Text/index.d.ts +2 -2
- package/cjs/hostComponents/Textarea/index.d.ts +2 -2
- package/cjs/hostComponents/Video/index.d.ts +1 -1
- package/cjs/hostComponents/Video/index.js +1 -1
- package/cjs/hostComponents/View/index.d.ts +2 -2
- package/cjs/hostComponents/VoipRoom/index.d.ts +2 -2
- package/cjs/hostComponents/WebView/index.d.ts +2 -2
- package/cjs/hostComponents/node.js +18 -18
- package/cjs/node/index.js +1 -1
- package/cjs/types/component.d.ts +1 -1
- package/esm/hostComponents/Ad/index.d.ts +2 -2
- package/esm/hostComponents/AdCustom/index.d.ts +2 -2
- package/esm/hostComponents/Audio/index.d.ts +1 -1
- package/esm/hostComponents/Button/index.d.ts +2 -2
- package/esm/hostComponents/Camera/index.d.ts +2 -2
- package/esm/hostComponents/Canvas/index.d.ts +2 -2
- package/esm/hostComponents/ChannelLive/index.d.ts +2 -2
- package/esm/hostComponents/ChannelVideo/index.d.ts +2 -2
- package/esm/hostComponents/Checkbox/index.d.ts +2 -2
- package/esm/hostComponents/CheckboxGroup/index.d.ts +2 -2
- package/esm/hostComponents/CoverImage/index.d.ts +2 -2
- package/esm/hostComponents/CoverView/index.d.ts +2 -2
- package/esm/hostComponents/Editor/index.d.ts +2 -2
- package/esm/hostComponents/EditorPortal/index.d.ts +2 -2
- package/esm/hostComponents/Form/index.d.ts +2 -2
- package/esm/hostComponents/FunctionalPageNavigator/index.d.ts +2 -2
- package/esm/hostComponents/Icon/index.d.ts +2 -2
- package/esm/hostComponents/Image/index.d.ts +2 -2
- package/esm/hostComponents/Input/index.d.ts +2 -2
- package/esm/hostComponents/KeyboardAccessory/index.d.ts +2 -2
- package/esm/hostComponents/Label/index.d.ts +2 -2
- package/esm/hostComponents/LivePlayer/index.d.ts +2 -2
- package/esm/hostComponents/LivePusher/index.d.ts +2 -2
- package/esm/hostComponents/Map/index.d.ts +2 -2
- package/esm/hostComponents/MatchMedia/index.d.ts +2 -2
- package/esm/hostComponents/MovableArea/index.d.ts +2 -2
- package/esm/hostComponents/MovableView/index.d.ts +2 -2
- package/esm/hostComponents/NavigationBar/index.d.ts +2 -2
- package/esm/hostComponents/Navigator/index.d.ts +2 -2
- package/esm/hostComponents/OfficialAccount/index.d.ts +2 -2
- package/esm/hostComponents/OpenData/index.d.ts +2 -2
- package/esm/hostComponents/PageContainer/index.d.ts +2 -2
- package/esm/hostComponents/PageMeta/index.d.ts +2 -2
- package/esm/hostComponents/Picker/index.d.ts +2 -2
- package/esm/hostComponents/PickerView/index.d.ts +2 -2
- package/esm/hostComponents/PickerViewColumn/index.d.ts +2 -2
- package/esm/hostComponents/Progress/index.d.ts +2 -2
- package/esm/hostComponents/Radio/index.d.ts +2 -2
- package/esm/hostComponents/RadioGroup/index.d.ts +2 -2
- package/esm/hostComponents/RichText/index.d.ts +2 -2
- package/esm/hostComponents/RootPortal/index.d.ts +2 -2
- package/esm/hostComponents/ScrollView/index.d.ts +2 -2
- package/esm/hostComponents/Selection/index.d.ts +2 -2
- package/esm/hostComponents/ShareElement/index.d.ts +2 -2
- package/esm/hostComponents/Slider/index.d.ts +2 -2
- package/esm/hostComponents/Snapshot/index.d.ts +2 -2
- package/esm/hostComponents/Swiper/index.d.ts +2 -2
- package/esm/hostComponents/SwiperItem/index.d.ts +2 -2
- package/esm/hostComponents/Switch/index.d.ts +2 -2
- package/esm/hostComponents/Text/index.d.ts +2 -2
- package/esm/hostComponents/Textarea/index.d.ts +2 -2
- package/esm/hostComponents/Video/index.d.ts +1 -1
- package/esm/hostComponents/Video/index.js +1 -1
- package/esm/hostComponents/View/index.d.ts +2 -2
- package/esm/hostComponents/VoipRoom/index.d.ts +2 -2
- package/esm/hostComponents/WebView/index.d.ts +2 -2
- package/esm/hostComponents/node.js +18 -18
- package/esm/node/index.js +1 -1
- package/esm/types/component.d.ts +1 -1
- package/package.json +11 -11
- package/vitest.config.js +1 -0
package/cjs/node/index.js
CHANGED
|
@@ -26,7 +26,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
26
26
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const path = __importStar(require("path"));
|
|
29
|
+
const path = __importStar(require("node:path"));
|
|
30
30
|
const node_1 = __importDefault(require("../hostComponents/node"));
|
|
31
31
|
const EJS_TPL_ROOT = path.join(__dirname, '../../templates');
|
|
32
32
|
const plugin = () => {
|
package/cjs/types/component.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface AdProps extends BaseProps {
|
|
4
4
|
/** 广告单元id,可在小程序管理后台的流量主模块新建 1.9.94; */
|
|
5
5
|
unitId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface AdCustomProps extends BaseProps {
|
|
4
4
|
/** 广告单元id,可在小程序管理后台的流量主模块新建 2.10.4; */
|
|
5
5
|
unitId: string;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import React from 'react';
|
|
1
|
+
import type React from 'react';
|
|
2
2
|
export declare const Audio: React.ComponentType;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface CameraProps extends BaseProps {
|
|
4
4
|
/** (default: normal) 应用模式,只在初始化时有效,不能动态变更 2.1.0 */
|
|
5
5
|
mode?: 'normal' | 'scanCode';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface CanvasProps extends BaseProps {
|
|
4
4
|
/** 指定 canvas 类型,当前仅支持 webgl 2.7.0 */
|
|
5
5
|
type?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface CheckboxProps extends BaseProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
/** checkbox标识,选中时触发checkbox-group的 change 事件,并携带 checkbox 的 value 1.0.0 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface CheckboxGroupProps extends BaseProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface CoverImageProps extends BaseProps {
|
|
4
4
|
/** 图标路径,支持临时路径、网络地址(1.6.0起支持)、云文件ID(2.2.3起支持)。暂不支持base64格式。 1.4.0 */
|
|
5
5
|
src?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface CoverViewProps extends BaseProps {
|
|
4
4
|
/** 设置顶部滚动偏移量,仅在设置了 overflow-y: scroll 成为滚动元素后生效 2.1.0 */
|
|
5
5
|
scrollTop?: number | string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface EditorProps extends BaseProps {
|
|
4
4
|
/** 设置编辑器为只读 2.7.0 */
|
|
5
5
|
readOnly?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface FormProps extends BaseProps {
|
|
4
4
|
/** 是否返回 formId 用于发送模板消息 1.0.0 */
|
|
5
5
|
reportSubmit?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface FunctionalPageNavigatorProps extends BaseProps {
|
|
4
4
|
/** (default: release) 跳转到的小程序版本,线上版本必须设置为 release 2.1.0 */
|
|
5
5
|
version?: 'develop' | 'trial' | 'release';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface IconProps extends BaseProps {
|
|
4
4
|
/** icon的类型 1.0.0 */
|
|
5
5
|
type: 'success' | 'success_no_circle' | 'info' | 'warn' | 'waiting' | 'cancel' | 'download' | 'search' | 'clear';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export type KeyboardAccessoryProps = BaseProps;
|
|
4
4
|
/**
|
|
5
5
|
* @see https://developers.weixin.qq.com/miniprogram/dev/component/keyboard-accessory.html
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface LivePlayerProps extends BaseProps {
|
|
4
4
|
/** 音视频地址。目前仅支持 flv, rtmp 格式 1.7.0 */
|
|
5
5
|
src?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
/**
|
|
4
4
|
* https://developers.weixin.qq.com/miniprogram/dev/component/live-player.html
|
|
5
5
|
* 基础库 1.7.0 开始支持,低版本需做兼容处理。
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface MapProps extends BaseProps {
|
|
4
4
|
/** 中心经度 1.0.0 */
|
|
5
5
|
longitude: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface MatchMediaProps extends BaseProps {
|
|
4
4
|
/** 页面最小宽度( px 为单位) 2.11.1 */
|
|
5
5
|
minWidth?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface MovableAreaProps extends BaseProps {
|
|
4
4
|
/** (default: false) 当里面的movable-view设置为支持双指缩放时,设置此值可将缩放手势生效区域修改为整个movable-area 1.9.90 */
|
|
5
5
|
scaleArea?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface MovableViewProps extends Omit<BaseProps, 'animation'> {
|
|
4
4
|
/** (default: none) movable-view的移动方向,属性值有all、vertical、horizontal、none 1.2.0 */
|
|
5
5
|
direction?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface NavigationBarProps extends BaseProps {
|
|
4
4
|
/** 导航条标题 2.9.0 */
|
|
5
5
|
title?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface NavigatorProps extends BaseProps {
|
|
4
4
|
/** (default: self) 在哪个目标上发生跳转,默认当前小程序 2.0.7 */
|
|
5
5
|
target?: 'self' | 'miniProgram';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface OfficialAccountProps extends BaseProps {
|
|
4
4
|
/** 组件加载成功时触发 */
|
|
5
5
|
onLoad?: (event: GenericEvent) => any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface OpenDataProps extends BaseProps {
|
|
4
4
|
/** 开放数据类型 1.4.0 */
|
|
5
5
|
type?: 'groupName' | 'userNickName' | 'userAvatarUrl' | 'userGender' | 'userCity' | 'userProvince' | 'userCountry' | 'userLanguage';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface PageContainerProps extends BaseProps {
|
|
4
4
|
/** 是否显示容器组件 2.16.0 */
|
|
5
5
|
show?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface PageMetaProps extends BaseProps {
|
|
4
4
|
/** 下拉背景字体、loading 图的样式,仅支持 dark 和 light 2.9.0 */
|
|
5
5
|
backgroundTextStyle?: 'dark' | 'light';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface PickerProps extends BaseProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface PickerViewProps extends BaseProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
/** 数组中的数字依次表示 picker-view 内的 picker-view-column 选择的第几项(下标从 0 开始),数字大于 picker-view-column 可选项长度时,选择最后一项。 1.0.0 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export type PickerViewColumnProps = BaseProps;
|
|
4
4
|
/**
|
|
5
5
|
* https://developers.weixin.qq.com/miniprogram/dev/component/picker-view-column.html
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface ProgressProps extends BaseProps {
|
|
4
4
|
/** 百分比0~100 1.0.0 */
|
|
5
5
|
percent?: number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface RadioProps extends BaseProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
/** radio 标识。当该radio 选中时,radio-group 的 change 事件会携带radio的value 1.0.0 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface RadioGroupProps extends BaseProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
/** checkbox-group中选中项发生改变时触发 change 事件,detail = {value:[选中的checkbox的value的数组]} 1.0.0 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface RichTextProps extends BaseProps {
|
|
4
4
|
/** 节点列表/HTML String 1.4.0 */
|
|
5
5
|
nodes?: any[] | string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface ScrollViewProps extends BaseProps {
|
|
4
4
|
/** (default: false) 允许横向滚动 1.0.0 */
|
|
5
5
|
scrollX?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
/**
|
|
4
4
|
* https://developers.weixin.qq.com/miniprogram/dev/component/slider.html
|
|
5
5
|
*/
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface SwiperProps extends BaseProps {
|
|
4
4
|
/** (default: false) 是否显示面板指示点 1.0.0 */
|
|
5
5
|
indicatorDots?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface SwiperItemProps extends BaseProps {
|
|
4
4
|
/** 该 swiper-item 的标识符 1.9.0 */
|
|
5
5
|
itemId?: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface SwitchProps extends BaseProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
/** (default: false) 是否选中 1.0.0 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps } from '../../types/component';
|
|
3
3
|
export interface TextProps extends BaseProps {
|
|
4
4
|
/** (default: false) 文本是否可选 文本是否可选 (已废弃) 1.1.0 */
|
|
5
5
|
selectable?: boolean;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface TextareaProps extends BaseProps {
|
|
4
4
|
name?: string;
|
|
5
5
|
value?: any;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface VideoProps extends BaseProps {
|
|
4
4
|
/** 要播放视频的资源地址,支持云文件ID(2.3.0) 1.0.0 */
|
|
5
5
|
src: string;
|
|
@@ -9,8 +9,8 @@ var __rest = (this && this.__rest) || function (s, e) {
|
|
|
9
9
|
}
|
|
10
10
|
return t;
|
|
11
11
|
};
|
|
12
|
-
import React from 'react';
|
|
13
12
|
import { createHostComponent } from '@rsmax/runtime';
|
|
13
|
+
import React from 'react';
|
|
14
14
|
const hostComponentName = 'video';
|
|
15
15
|
const VideoRender = (props, ref) => {
|
|
16
16
|
const { children } = props, restProps = __rest(props, ["children"]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, TouchEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, TouchEvent } from '../../types/component';
|
|
3
3
|
export interface ViewProps extends BaseProps {
|
|
4
4
|
slot?: string;
|
|
5
5
|
/** 指定按下去的样式类。当为 "none" 时,没有点击态效果 1.0.0 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface VoipRoomProps extends BaseProps {
|
|
4
4
|
/** 进入房间用户的 openid 2.11.0 */
|
|
5
5
|
openId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { BaseProps, GenericEvent } from '../../types/component';
|
|
1
|
+
import type React from 'react';
|
|
2
|
+
import type { BaseProps, GenericEvent } from '../../types/component';
|
|
3
3
|
export interface WebViewProps extends BaseProps {
|
|
4
4
|
/** webview 指向网页的链接。可打开关联的公众号的文章,其它网页需登录小程序管理后台配置业务域名。 1.6.4 */
|
|
5
5
|
src?: string;
|
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
import * as ad from './Ad/node';
|
|
2
|
+
import * as adCustom from './AdCustom/node';
|
|
2
3
|
import * as audio from './Audio/node';
|
|
3
4
|
import * as button from './Button/node';
|
|
4
5
|
import * as camera from './Camera/node';
|
|
5
6
|
import * as canvas from './Canvas/node';
|
|
6
|
-
import * as
|
|
7
|
+
import * as channelLive from './ChannelLive';
|
|
8
|
+
import * as channelVideo from './ChannelVideo';
|
|
7
9
|
import * as checkbox from './Checkbox/node';
|
|
10
|
+
import * as checkboxGroup from './CheckboxGroup/node';
|
|
8
11
|
import * as coverImage from './CoverImage/node';
|
|
9
12
|
import * as coverView from './CoverView/node';
|
|
10
13
|
import * as editor from './Editor/node';
|
|
@@ -14,45 +17,42 @@ import * as functionalPageNavigator from './FunctionalPageNavigator/node';
|
|
|
14
17
|
import * as icon from './Icon/node';
|
|
15
18
|
import * as image from './Image/node';
|
|
16
19
|
import * as input from './Input/node';
|
|
20
|
+
import * as keyboardAccessory from './KeyboardAccessory/node';
|
|
17
21
|
import * as label from './Label/node';
|
|
18
22
|
import * as livePlayer from './LivePlayer/node';
|
|
19
23
|
import * as livePusher from './LivePusher/node';
|
|
20
24
|
import * as map from './Map/node';
|
|
25
|
+
import * as matchMedia from './MatchMedia/node';
|
|
21
26
|
import * as movableArea from './MovableArea/node';
|
|
22
27
|
import * as movableView from './MovableView/node';
|
|
28
|
+
import * as navigationBar from './NavigationBar/node';
|
|
23
29
|
import * as navigator from './Navigator/node';
|
|
24
30
|
import * as officialAccount from './OfficialAccount/node';
|
|
25
31
|
import * as openData from './OpenData/node';
|
|
26
|
-
import * as
|
|
27
|
-
import * as
|
|
32
|
+
import * as pageContainer from './PageContainer/node';
|
|
33
|
+
import * as pageMeta from './PageMeta/node';
|
|
28
34
|
import * as picker from './Picker/node';
|
|
35
|
+
import * as pickerView from './PickerView/node';
|
|
36
|
+
import * as pickerViewColumn from './PickerViewColumn/node';
|
|
29
37
|
import * as progress from './Progress/node';
|
|
30
|
-
import * as radioGroup from './RadioGroup/node';
|
|
31
38
|
import * as radio from './Radio/node';
|
|
39
|
+
import * as radioGroup from './RadioGroup/node';
|
|
32
40
|
import * as richText from './RichText/node';
|
|
41
|
+
import * as rootPortal from './RootPortal/node';
|
|
33
42
|
import * as scrollView from './ScrollView/node';
|
|
43
|
+
import * as selection from './Selection';
|
|
44
|
+
import * as shareElement from './ShareElement/node';
|
|
34
45
|
import * as slider from './Slider/node';
|
|
35
|
-
import * as
|
|
46
|
+
import * as snapshot from './Snapshot';
|
|
36
47
|
import * as swiper from './Swiper/node';
|
|
48
|
+
import * as swiperItem from './SwiperItem/node';
|
|
37
49
|
import * as switchComponent from './Switch/node';
|
|
38
50
|
import * as text from './Text/node';
|
|
39
51
|
import * as textarea from './Textarea/node';
|
|
40
52
|
import * as video from './Video/node';
|
|
41
53
|
import * as view from './View/node';
|
|
42
|
-
import * as webView from './WebView/node';
|
|
43
|
-
import * as matchMedia from './MatchMedia/node';
|
|
44
|
-
import * as pageContainer from './PageContainer/node';
|
|
45
|
-
import * as shareElement from './ShareElement/node';
|
|
46
|
-
import * as keyboardAccessory from './KeyboardAccessory/node';
|
|
47
54
|
import * as voipRoom from './VoipRoom/node';
|
|
48
|
-
import * as
|
|
49
|
-
import * as pageMeta from './PageMeta/node';
|
|
50
|
-
import * as navigationBar from './NavigationBar/node';
|
|
51
|
-
import * as rootPortal from './RootPortal/node';
|
|
52
|
-
import * as channelLive from './ChannelLive';
|
|
53
|
-
import * as channelVideo from './ChannelVideo';
|
|
54
|
-
import * as snapshot from './Snapshot';
|
|
55
|
-
import * as selection from './Selection';
|
|
55
|
+
import * as webView from './WebView/node';
|
|
56
56
|
const hostComponents = new Map();
|
|
57
57
|
hostComponents.set('ad', ad);
|
|
58
58
|
hostComponents.set('audio', audio);
|