\n 选项一(默认选中)\n \n \n \n \n \n \n \n 禁用展示\n disabled\n \n \n \n \n \n \n \n \n \n \n \n \n \n\n\n";
var JS_CODE = "import { versionCompare } from '../../utils';\n\nPage({\n onShareAppMessage() {\n return {\n title: 'radio',\n path: 'page/component/radio/index'\n }\n },\n data: {\n hobby: [\n {value: 'sing', name: '唱歌'},\n {value: 'dance', name: '跳舞', },\n {value: 'basketball', name: '打篮球'},\n {value: 'book', name: '看书'},\n {value: 'code', name: '码代码'},\n {value: 'game', name: '玩游戏',checked: 'true'}\n ],\n supportNewStyle: false,\n },\n onShow() {\n ks.getSystemInfo().then((res) => {\n const { SDKVersion } = res;\n // 比较当前版本是否大于等于1.32.1\n const flag = versionCompare(SDKVersion, '1.32.1');\n if (flag >= 0) {\n this.setData({\n supportNewStyle: true,\n })\n }\n });\n },\n onReset(e){\n console.log('reset',e)\n },\n onSubmit(e){\n console.log('submit',e)\n ks.showToast({\n title:`您的爱好是${e.detail.value.hobby}`,\n icon:'none'\n })\n }\n})";
var STYLE_CODE = ".dis-title{\n display: flex;\n justify-content:space-between;\n align-content: center;\n}\n.content{\n display: flex;\n justify-content: space-between;\n align-content: center;\n margin-top: 20px;\n}\n.hobby-content{\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-content: center;\n margin-top: 10px;\n}\n.hobby-content .con-top{\n margin-top: 10px;\n}\n.btn{\n display: flex;\n justify-content: space-around;\n align-content: center;\n}\n.pub-btn{\n width: 80%;\n margin-top: 20px;\n}\n.blue{\n background-color: #87cefa;\n color: #fff;\n}\n.section-style {\n flex-wrap: wrap;\n}\n.section-style label {\n width: 50%;\n margin-bottom: 10px;\n}";
var COMPONENT = "radio";