c-input-item.js.map
24.9 KB
{"version":3,"sources":["webpack:////Users/linon/work/workai/yxly-teacher/components/c-input-item/c-input-item.vue?0f6d","webpack:////Users/linon/work/workai/yxly-teacher/components/c-input-item/c-input-item.vue?57e1","webpack:////Users/linon/work/workai/yxly-teacher/components/c-input-item/c-input-item.vue?7423","webpack:////Users/linon/work/workai/yxly-teacher/components/c-input-item/c-input-item.vue?a742","uni-app:///components/c-input-item/c-input-item.vue","webpack:////Users/linon/work/workai/yxly-teacher/components/c-input-item/c-input-item.vue?d391"],"names":[],"mappings":"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","file":"components/c-input-item/c-input-item.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./c-input-item.vue?vue&type=template&id=47f60cf8&scoped=true&\"\nvar renderjs\nimport script from \"./c-input-item.vue?vue&type=script&lang=js&\"\nexport * from \"./c-input-item.vue?vue&type=script&lang=js&\"\nimport style0 from \"./c-input-item.vue?vue&type=style&index=0&id=47f60cf8&lang=scss&scoped=true&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"47f60cf8\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/c-input-item/c-input-item.vue\"\nexport default component.exports","export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--16-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./c-input-item.vue?vue&type=template&id=47f60cf8&scoped=true&\"","var components\ntry {\n components = {\n uFormItem: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-form-item/u-form-item\" */ \"@/uview-ui/components/u-form-item/u-form-item.vue\"\n )\n },\n uInput: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-input/u-input\" */ \"@/uview-ui/components/u-input/u-input.vue\"\n )\n },\n uRadioGroup: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-radio-group/u-radio-group\" */ \"@/uview-ui/components/u-radio-group/u-radio-group.vue\"\n )\n },\n uRadio: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-radio/u-radio\" */ \"@/uview-ui/components/u-radio/u-radio.vue\"\n )\n },\n uPicker: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-picker/u-picker\" */ \"@/uview-ui/components/u-picker/u-picker.vue\"\n )\n },\n uSelect: function() {\n return import(\n /* webpackChunkName: \"uview-ui/components/u-select/u-select\" */ \"@/uview-ui/components/u-select/u-select.vue\"\n )\n }\n }\n} catch (e) {\n if (\n e.message.indexOf(\"Cannot find module\") !== -1 &&\n e.message.indexOf(\".vue\") !== -1\n ) {\n console.error(e.message)\n console.error(\"1. 排查组件名称拼写是否正确\")\n console.error(\n \"2. 排查组件是否符合 easycom 规范,文档:https://uniapp.dcloud.net.cn/collocation/pages?id=easycom\"\n )\n console.error(\n \"3. 若组件不符合 easycom 规范,需手动引入,并在 components 中注册该组件\"\n )\n } else {\n throw e\n }\n}\nvar render = function() {\n var _vm = this\n var _h = _vm.$createElement\n var _c = _vm._self._c || _h\n if (!_vm._isMounted) {\n _vm.e0 = function($event) {\n _vm.time_visible = true\n }\n\n _vm.e1 = function($event) {\n _vm.select_visible = true\n }\n\n _vm.e2 = function($event) {\n _vm.select_visible = true\n }\n }\n}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./c-input-item.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--12-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./c-input-item.vue?vue&type=script&lang=js&\"","<template>\r\n\t<view class=\"c-input-item\">\r\n\t\t<!-- 文本、数字框 -->\r\n\t\t<u-form-item v-if=\"type == 'text'\" :label=\"label\" :labelWidth=\"200\" :label-position='\"top\"'\r\n\t\t\t:label-style=\"{whiteSpace:'nowrap',fontSize:'26rpx', color:'#121212'}\" :required=\"required\"\r\n\t\t\t:right-icon=\"rightIcon ? 'arrow-right' : ''\" :prop=\"name\">\r\n\t\t\t<u-input v-model=\"getValues\" :maxlength=\"maxlenth\" input-align=\"left\" :disabled=\"disabled\" :border=\"border\"\r\n\t\t\t\t:placeholder=\"placeholder ? placeholder : '请输入'\" :placeholderStyle=\"placeholderStyle\"\r\n\t\t\t\t:customStyle=\"{fontSize:'36rpx'}\" :clearable=\"clearable\" @focus=\"onFocus\"\r\n\t\t\t\t@click=\"handelClick('text')\" />\r\n\t\t</u-form-item>\r\n\t\t<u-form-item v-if=\"type == 'number'\" :label=\"label\" :labelWidth=\"200\" :label-position='\"top\"'\r\n\t\t\t:label-style=\"{whiteSpace:'nowrap',fontSize:'26rpx', color:'#121212'}\" :required=\"required\"\r\n\t\t\t:right-icon=\"rightIcon ? 'arrow-right' : ''\" :prop=\"name\">\r\n\t\t\t<u-input v-model=\"getValues\" :maxlength=\"maxlenth\" type=\"number\" input-align=\"left\" :disabled=\"disabled\"\r\n\t\t\t\t:border=\"border\" :placeholder=\"placeholder ? placeholder : '请输入'\" :placeholderStyle=\"placeholderStyle\"\r\n\t\t\t\t:clearable=\"clearable\" :customStyle=\"{fontSize:'36rpx'}\" />\r\n\t\t</u-form-item>\r\n\t\t<!-- 单选 -->\r\n\t\t<u-form-item v-if=\"type == 'radio'\" :label=\"label\" :labelWidth=\"200\" :label-position='\"top\"'\r\n\t\t\t:label-style=\"{whiteSpace:'nowrap',fontSize:'26rpx', color:'#121212' }\" :required=\"required\"\r\n\t\t\t:right-icon=\"rightIcon ? 'arrow-right' : ''\" :prop=\"name\">\r\n\t\t\t<u-radio-group v-model=\"getValues\">\r\n\t\t\t\t<u-radio v-for=\"(item, index) in options\" :key=\"index\" :name=\"item.value\" :disabled=\"item.disabled\"\r\n\t\t\t\t\tactive-color=\"#54B4F5\">\r\n\t\t\t\t\t{{ item.label }}\r\n\t\t\t\t</u-radio>\r\n\t\t\t</u-radio-group>\r\n\t\t</u-form-item>\r\n\t\t<!-- 时间选择器 -->\r\n\t\t<u-form-item v-if=\"type == 'date'\" :label=\"label\" :labelWidth=\"200\" :label-position='\"top\"'\r\n\t\t\t:label-style=\"{whiteSpace:'nowrap',fontSize:'26rpx', color:'#121212' }\" :required=\"required\"\r\n\t\t\t:right-icon=\"rightIcon ? 'arrow-right' : ''\" :prop=\"name\">\r\n\t\t\t<u-input v-model=\"getValues\" type=\"text\" input-align=\"left\" :disabled=\"true\" :border=\"border\"\r\n\t\t\t\t:clearable=\"clearable\" :placeholder=\"placeholder ? placeholder : '请选择时间'\"\r\n\t\t\t\t:placeholderStyle=\"placeholderStyle\" @click=\"time_visible = true\" :customStyle=\"{fontSize:'36rpx'}\" />\r\n\t\t\t<u-picker @confirm=\"onConfirmTime\" mode=\"time\" v-model=\"time_visible\" :params=\"{\r\n\t\t\t\t\t\tyear: true,\r\n\t\t\t\t\t\tmonth: true,\r\n\t\t\t\t\t\tday: true,}\"></u-picker>\r\n\t\t</u-form-item>\r\n\t\t<!-- 单列模式 -->\r\n\t\t<u-form-item v-if=\"type == 'select'\" :label=\"label\" :labelWidth=\"200\" :label-position='\"top\"'\r\n\t\t\t:label-style=\"{whiteSpace:'nowrap',fontSize:'26rpx', color:'#121212' }\" :required=\"required\"\r\n\t\t\t:right-icon=\"rightIcon ? 'arrow-right' : ''\" :prop=\"name\">\r\n\t\t\t<u-input v-model=\"getValues\" :maxlength=\"100\" input-align=\"left\" :disabled=\"true\" :border=\"border\"\r\n\t\t\t\t:clearable=\"clearable\" :placeholder=\"placeholder ? placeholder : '请选择'\"\r\n\t\t\t\t:placeholderStyle=\"placeholderStyle\" :customStyle=\"{fontSize:'36rpx'}\" @click=\"handelClick('select')\" />\r\n\t\t\t<u-select @confirm=\"onConfirmSingle\" v-model=\"select_visible\" mode=\"single-column\" :list=\"options\"\r\n\t\t\t\t:default-value=\"defs\">\r\n\t\t\t</u-select>\r\n\t\t</u-form-item>\r\n\t\t<!-- 多列联动模式 -->\r\n\t\t<u-form-item v-if=\"type == 'cascader'\" :label=\"label\" :labelWidth=\"200\" :label-position='\"top\"'\r\n\t\t\t:label-style=\"{whiteSpace:'nowrap',fontSize:'26rpx', color:'#121212' }\" :required=\"required\"\r\n\t\t\t:right-icon=\"rightIcon ? 'arrow-right' : ''\" :prop=\"name\">\r\n\t\t\t<u-input v-model=\"getValues\" input-align=\"left\" :disabled=\"true\" :border=\"border\" :clearable=\"clearable\"\r\n\t\t\t\t:placeholder=\"placeholder ? placeholder : '请选择'\" :placeholderStyle=\"placeholderStyle\"\r\n\t\t\t\t@click=\"select_visible = true\" />\r\n\t\t\t<u-select @confirm=\"onConfirmAutoMutil\" v-model=\"select_visible\" mode=\"mutil-column-auto\" :list=\"options\">\r\n\t\t\t</u-select>\r\n\t\t</u-form-item>\r\n\t\t<!-- 省市区选择 -->\r\n\t\t<u-form-item v-if=\"type == 'area'\" :label=\"label\" :labelWidth=\"200\" :label-position='\"top\"'\r\n\t\t\t:label-style=\"{whiteSpace:'nowrap',fontSize:'26rpx', color:'#121212' }\" :required=\"required\"\r\n\t\t\t:right-icon=\"rightIcon ? 'arrow-right' : ''\" :prop=\"name\">\r\n\t\t\t<u-input v-model=\"getValues\" input-align=\"left\" :disabled=\"true\" :border=\"border\" :clearable=\"clearable\"\r\n\t\t\t\t:placeholder=\"placeholder ? placeholder : '请选择'\" :placeholderStyle=\"placeholderStyle\"\r\n\t\t\t\t@click=\"select_visible = true\" :customStyle=\"{fontSize:'36rpx'}\" />\r\n\t\t\t<u-select @confirm=\"onConfirmArea\" v-model=\"select_visible\" mode=\"mutil-column-auto\" :list=\"options\">\r\n\t\t\t</u-select>\r\n\t\t</u-form-item>\r\n\t\t<!-- 文本输入框 -->\r\n\t\t<u-form-item v-if=\"type == 'textarea'\" :label=\"label\" :labelWidth=\"200\" :label-position='\"top\"'\r\n\t\t\t:label-style=\"{whiteSpace:'nowrap',fontSize:'26rpx', color:'#121212'}\" :border-bottom=\"borderBottom\" :required=\"required\"\r\n\t\t\t:right-icon=\"rightIcon ? 'arrow-right' : ''\" :prop=\"name\">\r\n\t\t\t<u-input v-model=\"getValues\" input-align=\"left\" :disabled=\"disabled\" :border=\"border\"\r\n\t\t\t\t:placeholder=\"placeholder ? placeholder : '请输入'\" :placeholderStyle=\"placeholderStyle\"\r\n\t\t\t\t:clearable=\"clearable\" :customStyle=\"{fontSize:'36rpx'}\" />\r\n\t\t</u-form-item>\r\n\t</view>\r\n\r\n</template>\r\n\r\n<script>\r\n\t// import miment from 'miment'\r\n\timport {\r\n\t\tgetLabel\r\n\t} from '../../common/util.js'\r\n\r\n\texport default {\r\n\t\tname: 'u-input-item',\r\n\t\tprops: {\r\n\t\t\t//title\r\n\t\t\tlabel: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\ttype: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'text'\r\n\t\t\t},\r\n\t\t\t// 是否显示左边的必填星号,只作显示用,具体校验必填的逻辑,请在rules中配置\r\n\t\t\trequired: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\trightIcon: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: true\r\n\t\t\t},\r\n\t\t\t//表单提交时的key\r\n\t\t\tname: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\t\t\tvalue: {\r\n\t\t\t\ttype: Object,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn {}\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\tclearable: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tdisabled: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\r\n\t\t\tborder: {\r\n\t\t\t\ttype: Boolean,\r\n\t\t\t\tdefault: false\r\n\t\t\t},\n\t\t\tborderBottom: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: true\n\t\t\t},\n\t\t\tplaceholder: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: ''\r\n\t\t\t},\r\n\r\n\t\t\tmaxlenth: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: '100'\r\n\t\t\t},\r\n\r\n\t\t\tplaceholderStyle: {\r\n\t\t\t\ttype: String,\r\n\t\t\t\tdefault: 'font-size:34rpx;color:rgba(0,0,0,0.5);'\r\n\t\t\t},\r\n\t\t\tcustomStyle: {\r\n\t\t\t\ttype: Object,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn {};\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//单选框数据列表\r\n\t\t\toptions: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn []\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t\t//\r\n\t\t\tdefs: {\r\n\t\t\t\ttype: Array,\r\n\t\t\t\tdefault () {\r\n\t\t\t\t\treturn [0]\r\n\t\t\t\t}\r\n\t\t\t},\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\ttime_visible: false,\r\n\t\t\t\tselect_visible: false,\r\n\t\t\t\tcurrentValue: '',\r\n\t\t\t}\r\n\t\t},\r\n\r\n\t\twatch: {\r\n\r\n\t\t},\r\n\t\tcomputed: {\r\n\t\t\tgetValues: {\r\n\t\t\t\t// getter\r\n\t\t\t\tget: function() {\r\n\t\t\t\t\tconst defaultValue = this.$parent.model[this.name];\r\n\t\t\t\t\tlet finalValue = ''\r\n\r\n\t\t\t\t\tif (!defaultValue || defaultValue.length <= 0 || JSON.stringify(defaultValue) == '{}') {\r\n\t\t\t\t\t\treturn ''\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t\tswitch (this.type) {\r\n\r\n\t\t\t\t\t\tcase 'date':\r\n\t\t\t\t\t\t\treturn defaultValue > 0 ? this.$u.timeFormat(defaultValue) : ''\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 'select':\r\n\t\t\t\t\t\t\tconst selectValue = this.options.filter((item, index) => {\r\n\t\t\t\t\t\t\t\treturn defaultValue == item.value\r\n\t\t\t\t\t\t\t})\r\n\t\t\t\t\t\t\treturn selectValue[0].label\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 'cascader':\r\n\t\t\t\t\t\t\tconst {\r\n\t\t\t\t\t\t\t\toptions = []\r\n\t\t\t\t\t\t\t} = this;\r\n\r\n\t\t\t\t\t\t\treturn defaultValue\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 'area':\r\n\t\t\t\t\t\t\tfinalValue = defaultValue.province + '/' + defaultValue.city + '/' + defaultValue\r\n\t\t\t\t\t\t\t\t.district\r\n\t\t\t\t\t\t\treturn finalValue\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tdefault:\r\n\t\t\t\t\t\t\treturn defaultValue\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t},\r\n\t\t\t\t// setter\r\n\t\t\t\tset: function(newValue) {\r\n\t\t\t\t\tconsole.log(newValue)\r\n\r\n\t\t\t\t\tswitch (this.type) {\r\n\r\n\t\t\t\t\t\tcase 'number':\r\n\t\t\t\t\t\t\tthis.$emit('input', newValue);\r\n\t\t\t\t\t\t\treturn newValue\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 'text':\r\n\t\t\t\t\t\tcase 'textarea':\r\n\t\t\t\t\t\tcase 'radio':\r\n\t\t\t\t\t\t\tthis.$emit('input', newValue);\r\n\t\t\t\t\t\t\treturn newValue\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t\tcase 'date':\r\n\t\t\t\t\t\tcase 'select':\r\n\t\t\t\t\t\tcase 'area':\r\n\t\t\t\t\t\t\treturn this.currentValue\r\n\t\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\t}\r\n\r\n\t\t\t\t}\r\n\t\t\t}\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\thandelClick(type) {\r\n\t\t\t\tswitch (type) {\r\n\t\t\t\t\tcase 'text':\r\n\t\t\t\t\t\tthis.$emit('click', '');\r\n\t\t\t\t\t\tbreak;\r\n\r\n\t\t\t\t\tcase 'select':\r\n\t\t\t\t\t\tthis.select_visible = true;\r\n\t\t\t\t\t\ttry {\r\n\t\t\t\t\t\t\t// 收起键盘\r\n\t\t\t\t\t\t\tuni.hideKeyboard();\r\n\t\t\t\t\t\t} catch (e) {}\r\n\t\t\t\t\t\tbreak;\r\n\t\t\t\t}\r\n\t\t\t},\r\n\r\n\t\t\tonFocus(value) {\r\n\t\t\t\tthis.$emit('focus', value);\r\n\t\t\t},\r\n\r\n\t\t\tonConfirmTime(value) {\r\n\t\t\t\tconst millisecond = new Date().setFullYear(value.year, Number(value.month) - 1, value.day);\r\n\t\t\t\tconst timestamp = Math.floor(millisecond / 1000);\r\n\r\n\t\t\t\tlet currentValue = this.$u.timeFormat(timestamp)\r\n\r\n\t\t\t\tconsole.log(timestamp, currentValue)\r\n\r\n\t\t\t\tthis.currentValue = currentValue;\r\n\t\t\t\tthis.$emit('input', timestamp);\r\n\r\n\t\t\t},\r\n\t\t\tonConfirmSingle(value) {\r\n\t\t\t\tthis.currentValue = value[0].label;\r\n\t\t\t\tthis.$emit('input', value[0].value);\r\n\r\n\t\t\t},\r\n\r\n\t\t\tonConfirmAutoMutil(value) {\r\n\t\t\t\tlet currentValue = '';\r\n\t\t\t\tlet newValue = [];\r\n\r\n\t\t\t\tif (value && value.length > 0) {\r\n\t\t\t\t\tvalue.map((item, index, array) => {\r\n\r\n\t\t\t\t\t\tif (index == array.length - 1) {\r\n\t\t\t\t\t\t\tcurrentValue += item.label\r\n\t\t\t\t\t\t} else {\r\n\t\t\t\t\t\t\tcurrentValue += (item.label + '/')\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tnewValue.push(item.label)\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\tthis.currentValue = currentValue;\r\n\t\t\t\tthis.$emit('input', newValue);\r\n\r\n\t\t\t},\r\n\t\t\tonConfirmArea(value) {\r\n\t\t\t\tconsole.log(value)\r\n\t\t\t\tlet currentValue = '';\r\n\t\t\t\tlet newValue = {};\r\n\r\n\t\t\t\tif (value && value.length > 0) {\r\n\t\t\t\t\tvalue.map((item, index, array) => {\r\n\r\n\t\t\t\t\t\tswitch (index) {\r\n\t\t\t\t\t\t\tcase 0:\r\n\t\t\t\t\t\t\t\tcurrentValue += (item.label + '/')\r\n\t\t\t\t\t\t\t\tnewValue.province = item.label;\r\n\t\t\t\t\t\t\t\tnewValue.province_code = item.value;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 1:\r\n\t\t\t\t\t\t\t\tcurrentValue += (item.label + '/')\r\n\t\t\t\t\t\t\t\tnewValue.city = item.label;\r\n\t\t\t\t\t\t\t\tnewValue.city_code = item.value;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t\tcase 2:\r\n\t\t\t\t\t\t\t\tcurrentValue += (item.label)\r\n\t\t\t\t\t\t\t\tnewValue.district = item.label;\r\n\t\t\t\t\t\t\t\tnewValue.district_code = item.value;\r\n\t\t\t\t\t\t\t\tbreak;\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t})\r\n\t\t\t\t}\r\n\t\t\t\tthis.currentValue = currentValue;\r\n\t\t\t\tthis.$emit('input', newValue);\r\n\r\n\t\t\t},\r\n\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n\t.c-input-item {\r\n\t\tu-radio-group {\r\n\t\t\ttext-align: right;\r\n\t\t\tdisplay: flex;\r\n\t\t\tflex-direction: row-reverse;\r\n\t\t}\r\n\t}\r\n</style>\n","import mod from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./c-input-item.vue?vue&type=style&index=0&id=47f60cf8&lang=scss&scoped=true&\"; export default mod; export * from \"-!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/stylePostLoader.js!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-2!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-3!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/sass-loader/dist/cjs.js??ref--8-oneOf-1-4!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--8-oneOf-1-5!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../../../../Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./c-input-item.vue?vue&type=style&index=0&id=47f60cf8&lang=scss&scoped=true&\""],"sourceRoot":""}