u-radio-group.js 2.8 KB

12345678910
  1. (global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group"],{"26c6":function(t,e,a){"use strict";a.d(e,"b",(function(){return i})),a.d(e,"c",(function(){return n})),a.d(e,"a",(function(){}));var i=function(){var t=this.$createElement;this._self._c},n=[]},6081:function(t,e,a){"use strict";var i=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=i(a("fd44")),u={name:"u-radio-group",emits:["update:modelValue","input","change"],mixins:[n.default],props:{value:{type:[String,Number],default:""},modelValue:{type:[String,Number],default:""},disabled:{type:Boolean,default:!1},activeColor:{type:String,default:"#2979ff"},size:{type:[String,Number],default:34},labelDisabled:{type:Boolean,default:!1},shape:{type:String,default:"circle"},iconSize:{type:[String,Number],default:20},width:{type:[String,Number],default:"auto"},wrap:{type:Boolean,default:!1}},data:function(){return{uFromData:{inputAlign:"left"}}},created:function(){this.children=[]},mounted:function(){var t=this,e=this.$u.$parent.call(this,"u-form");e&&Object.keys(this.uFromData).map((function(a){t.uFromData[a]=e[a]}))},watch:{parentData:function(){this.children.length&&this.children.map((function(t){"function"==typeof t.updateParentData&&t.updateParentData()}))}},computed:{valueCom:function(){return this.value},parentData:function(){return[this.value,this.disabled,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.width,this.wrap,this.modelValue]}},methods:{setValue:function(t){var e=this;this.children.map((function(e){e.parentData.value!=t&&(e.parentData.value="")})),this.$emit("input",t),this.$emit("update:modelValue",t),this.$emit("change",t),setTimeout((function(){e.dispatch("u-form-item","onFieldChange",t)}),60)}}};e.default=u},"76d3":function(t,e,a){"use strict";a.r(e);var i=a("6081"),n=a.n(i);for(var u in i)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(u);e["default"]=n.a},ae83:function(t,e,a){},f0c0:function(t,e,a){"use strict";a.r(e);var i=a("26c6"),n=a("76d3");for(var u in n)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(u);a("f7ea");var r=a("f0c5"),o=Object(r["a"])(n["default"],i["b"],i["c"],!1,null,"6b451d29",null,!1,i["a"],void 0);e["default"]=o.exports},f7ea:function(t,e,a){"use strict";var i=a("ae83"),n=a.n(i);n.a}}]);
  2. ;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
  3. 'uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group-create-component',
  4. {
  5. 'uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group-create-component':(function(module, exports, __webpack_require__){
  6. __webpack_require__('543d')['createComponent'](__webpack_require__("f0c0"))
  7. })
  8. },
  9. [['uni_modules/vk-uview-ui/components/u-radio-group/u-radio-group-create-component']]
  10. ]);