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"],{6081:function(t,e,a){"use strict";var n=a("4ea4");Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=n(a("fd44")),u={name:"u-radio-group",emits:["update:modelValue","input","change"],mixins:[i.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:{parentData:function(){return[this.value,this.disabled,this.activeColor,this.size,this.labelDisabled,this.shape,this.iconSize,this.width,this.wrap]}},methods:{getValue:function(){return this.value},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 n=a("6081"),i=a.n(n);for(var u in n)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return n[t]}))}(u);e["default"]=i.a},"8d7a":function(t,e,a){"use strict";a.d(e,"b",(function(){return n})),a.d(e,"c",(function(){return i})),a.d(e,"a",(function(){}));var n=function(){var t=this.$createElement;this._self._c},i=[]},d05f:function(t,e,a){},eabd:function(t,e,a){"use strict";var n=a("d05f"),i=a.n(n);i.a},f0c0:function(t,e,a){"use strict";a.r(e);var n=a("8d7a"),i=a("76d3");for(var u in i)["default"].indexOf(u)<0&&function(t){a.d(e,t,(function(){return i[t]}))}(u);a("eabd");var r=a("f0c5"),o=Object(r["a"])(i["default"],n["b"],n["c"],!1,null,"5ed5ea3b",null,!1,n["a"],void 0);e["default"]=o.exports}}]);
  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. ]);