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,EAAE;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 /** 微信开放能力。<br />具体释义:<br />`contact` 打开客服会话,如果用户在会话中点击消息卡片后返回小程序,可以从 bindcontact 回调中获得具体信息,<a href=\"https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/customer-message/customer-message.html\">具体说明</a> (*小程序插件中不能使用*);<br />`share` 触发用户转发,使用前建议先阅读<a href=\"https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/share.html#使用指引\">使用指引</a>;<br />`getPhoneNumber` 获取用户手机号,可以从bindgetphonenumber回调中获取到用户信息,<a href=\"https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/getPhoneNumber.html\">具体说明</a> (*小程序插件中不能使用*);<br />`getUserInfo` 获取用户信息,可以从bindgetuserinfo回调中获取到用户信息 (*小程序插件中不能使用*);<br />`launchApp` 打开APP,可以通过app-parameter属性设定向APP传的参数<a href=\"https://developers.weixin.qq.com/miniprogram/dev/framework/open-ability/launchApp.html\">具体说明</a>;<br />`openSetting` 打开授权设置页;<br />`feedback` 打开“意见反馈”页面,用户可提交反馈内容并上传<a href=\"https://developers.weixin.qq.com/miniprogram/dev/api/base/debug/wx.getLogManager.html\">日志</a>,开发者可以登录<a href=\"https://mp.weixin.qq.com/\">小程序管理后台</a>后进入左侧菜单“客服反馈”页面获取到反馈内容;<br />`chooseAvatar` 获取用户头像,可以从bindchooseavatar回调中获取到头像信息。<br />[小程序官方文档](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 英文。。<br />具体释义:<br />`en` 英文;<br />`zh_CN` 简体中文;<br />`zh_TW` 繁体中文。<br />[小程序官方文档](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"]}
|