UNPKG

npm-cts-ui

Version:

UI KIT for Taro

51 lines (46 loc) 1.05 kB
import { ComponentClass } from "react"; import { CommonEventFunction } from "@tarojs/components/types/common"; import CtsComponent from "./base"; export interface CtsTakePhotoProps extends CtsComponent { /** * 必填,是否显示拍照功能 * @default false */ show: boolean; /** * 显示信息1,使用rich-text渲染,可添加富文本 */ note1: string; /** * 显示信息2,使用rich-text渲染,可添加富文本 */ note2: string; /** * 上传文件返回url的参数bizCode */ bizCode: string; /** * 拍照触发事件 */ onTakePhoto: CommonEventFunction; /** * 点击取消触发事件 */ onCancel: CommonEventFunction; } export interface CtsTakePhotoState { /** * canvas宽度 */ cWidth: number; /** * canvas高度 */ cHeight: number; /** * 拍照边框范围的高度 */ bHeight: number; } declare const CtsTakePhoto: ComponentClass<CtsTakePhotoProps>; export default CtsTakePhoto;