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;QACd,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACV;IACD,wBAAwB;IACxB,aAAa,EAAE;QACb,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACV;IACD,sMAAsM;IACtM,IAAI,EAAE;QACJ,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,IAAI;KACZ;IACD,kCAAkC;IAClC,WAAW,EAAE;QACX,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACV;IACD,uCAAuC;IACvC,gBAAgB,EAAE;QAChB,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACV;IACD,8CAA8C;IAC9C,eAAe,EAAE;QACf,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACV;IACD,uCAAuC;IACvC,cAAc,EAAE;QACd,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACV;IACD,kDAAkD;IAClD,YAAY,EAAE;QACZ,IAAI,EAAE,MAAM;QACZ,KAAK,EAAE,EAAE;KACV;IACD,mGAAmG;IACnG,eAAe,EAAE;QACf,IAAI,EAAE,OAAO;QACb,KAAK,EAAE,KAAK;KACb;CACF,CAAC;AAEF,eAAe,KAAK,CAAC","file":"props.js","sourcesContent":["/* eslint-disable */\n\n/**\n * 该文件为脚本自动生成文件,请勿随意修改。如需修改请联系 PMC\n * */\n\nimport { TdButtonProps } from './type';\nconst props: TdButtonProps = {\n /** 是否为块级元素 */\n block: {\n type: Boolean,\n value: false,\n },\n /** 按钮内容 */\n content: {\n type: String,\n },\n /** 自定义 dataset,可通过 event.currentTarget.dataset.custom 获取 */\n customDataset: {\n type: null,\n },\n /** 是否禁用按钮 */\n disabled: {\n type: Boolean,\n value: false,\n },\n /** 组件类名 */\n externalClasses: {\n type: Array,\n },\n /** 是否为幽灵按钮(镂空按钮) */\n ghost: {\n type: Boolean,\n value: false,\n },\n /** 图标名称 */\n icon: {\n type: String,\n value: '',\n },\n /** 是否显示为加载状态 */\n loading: {\n type: Boolean,\n value: false,\n },\n /** 按钮形状,有 4 种:长方形、正方形、圆角长方形、圆形 */\n shape: {\n type: String,\n value: 'rectangle',\n },\n /** 组件尺寸 */\n size: {\n type: String,\n value: 'medium',\n },\n /** 组件风格,依次为品牌色、危险色 */\n theme: {\n type: String,\n value: 'default',\n },\n /** 同小程序的 formType */\n type: {\n type: String,\n },\n /** 按钮形式,基础、线框、文字 */\n variant: {\n type: String,\n value: 'base',\n },\n /** 微信开放能力。
具体释义:
`contact` 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从 bindcontact 回调中获得具体信息,具体说明 (*小程序插件中不能使用*);
`share` 触发用户转发,使用前建议先阅读使用指引
`getPhoneNumber` 获取用户手机号,可以从bindgetphonenumber回调中获取到用户信息,具体说明 (*小程序插件中不能使用*);
`getUserInfo` 获取用户信息,可以从bindgetuserinfo回调中获取到用户信息 (*小程序插件中不能使用*);
`launchApp` 打开APP,可以通过app-parameter属性设定向APP传的参数具体说明
`openSetting` 打开授权设置页;
`feedback` 打开“意见反馈”页面,用户可提交反馈内容并上传日志,开发者可以登录小程序管理后台后进入左侧菜单“客服反馈”页面获取到反馈内容;
`chooseAvatar` 获取用户头像,可以从bindchooseavatar回调中获取到头像信息。
[小程序官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/button.html) */\n openType: {\n type: String,\n },\n /** 指定是否阻止本节点的祖先节点出现点击态 */\n hoverStopPropagation: {\n type: Boolean,\n value: false,\n },\n /** 按住后多久出现点击态,单位毫秒 */\n hoverStartTime: {\n type: Number,\n value: 20,\n },\n /** 手指松开后点击态保留时间,单位毫秒 */\n hoverStayTime: {\n type: Number,\n value: 70,\n },\n /** 指定返回用户信息的语言,zh_CN 简体中文,zh_TW 繁体中文,en 英文。。
具体释义:
`en` 英文;
`zh_CN` 简体中文;
`zh_TW` 繁体中文。
[小程序官方文档](https://developers.weixin.qq.com/miniprogram/dev/component/button.html) */\n lang: {\n type: String,\n value: 'en',\n },\n /** 会话来源,open-type=\"contact\"时有效 */\n sessionFrom: {\n type: String,\n value: '',\n },\n /** 会话内消息卡片标题,open-type=\"contact\"时有效 */\n sendMessageTitle: {\n type: String,\n value: '',\n },\n /** 会话内消息卡片点击跳转小程序路径,open-type=\"contact\"时有效 */\n sendMessagePath: {\n type: String,\n value: '',\n },\n /** 会话内消息卡片图片,open-type=\"contact\"时有效 */\n sendMessageImg: {\n type: String,\n value: '',\n },\n /** 打开 APP 时,向 APP 传递的参数,open-type=launchApp时有效 */\n appParameter: {\n type: String,\n value: '',\n },\n /** 是否显示会话内消息卡片,设置此参数为 true,用户进入客服会话会在右下角显示\"可能要发送的小程序\"提示,用户点击后可以快速发送小程序消息,open-type=\"contact\"时有效 */\n showMessageCard: {\n type: Boolean,\n value: false,\n },\n};\n\nexport default props;\n"]}