u-checkbox-group.js.map 13.6 KB
{"version":3,"sources":["webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-checkbox-group/u-checkbox-group.vue?cb18","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-checkbox-group/u-checkbox-group.vue?4497","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-checkbox-group/u-checkbox-group.vue?2327","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-checkbox-group/u-checkbox-group.vue?1f99","uni-app:///uview-ui/components/u-checkbox-group/u-checkbox-group.vue","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-checkbox-group/u-checkbox-group.vue?1d3b","webpack:////Users/juvenile/Documents/web/xiaoai/excellent-working/uview-ui/components/u-checkbox-group/u-checkbox-group.vue?7258"],"names":[],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAyI;AACzI;AACoE;AACL;AACsC;;;AAGrG;AACsN;AACtN,gBAAgB,iNAAU;AAC1B,EAAE,sFAAM;AACR,EAAE,uGAAM;AACR,EAAE,gHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,2GAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACvBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACRA;AAAA;AAAA;AAAA;AAA42B,CAAgB,8yBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;ACOh4B,mG;;;;;;AACA;;;;;;;;;;;;;;;;kBAiBA,EACA,wBADA,EAEA,0BAFA,EAGA,SACA;AACA;AACA,4BADA;AAEA,kBAFA,EAFA;;AAMA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,mBADA;AAEA,oBAFA,EAdA;;AAkBA;AACA;AACA,6BADA;AAEA,iBAFA,EAnBA;;AAuBA;AACA;AACA,mBADA;AAEA,oBAFA,EAxBA;;AA4BA;AACA;AACA,kBADA;AAEA,uBAFA,EA7BA;;AAiCA;AACA;AACA,kBADA;AAEA,wBAFA,EAlCA;;AAsCA;AACA;AACA,4BADA;AAEA,iBAFA,EAvCA;;AA2CA;AACA;AACA,kBADA;AAEA,qBAFA,EA5CA;;AAgDA;AACA;AACA,mBADA;AAEA,oBAFA,EAjDA;;AAqDA;AACA;AACA,4BADA;AAEA,iBAFA,EAtDA,EAHA;;;AA8DA,MA9DA,kBA8DA;AACA;;AAEA,GAjEA;AAkEA,SAlEA,qBAkEA;AACA;AACA;AACA,GArEA;AAsEA;AACA,aADA,uBACA;AACA;AACA;AACA;AACA,OAFA;AAGA;AACA;AACA;AACA;AACA;AACA;AACA,OAHA,EAGA,EAHA;AAIA,KAbA,EAtEA,E;;;;;;;;;;;;ACzBA;AAAA;AAAA;AAAA;AAAqlD,CAAgB,g6CAAG,EAAC,C;;;;;;;;;;;ACAzmD;AACA,OAAO,KAAU,EAAE,kBAKd","file":"uview-ui/components/u-checkbox-group/u-checkbox-group.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./u-checkbox-group.vue?vue&type=template&id=703eade0&scoped=true&\"\nvar renderjs\nimport script from \"./u-checkbox-group.vue?vue&type=script&lang=js&\"\nexport * from \"./u-checkbox-group.vue?vue&type=script&lang=js&\"\nimport style0 from \"./u-checkbox-group.vue?vue&type=style&index=0&id=703eade0&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  \"703eade0\",\n  null,\n  false,\n  components,\n  renderjs\n)\n\ncomponent.options.__file = \"uview-ui/components/u-checkbox-group/u-checkbox-group.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!./u-checkbox-group.vue?vue&type=template&id=703eade0&scoped=true&\"","var components\nvar render = function() {\n  var _vm = this\n  var _h = _vm.$createElement\n  var _c = _vm._self._c || _h\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!./u-checkbox-group.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!./u-checkbox-group.vue?vue&type=script&lang=js&\"","<template>\n\t<view class=\"u-checkbox-group u-clearfix\">\n\t\t<slot></slot>\n\t</view>\n</template>\n\n<script>\n\timport Emitter from '../../libs/util/emitter.js';\n\t/**\n\t * checkboxGroup 开关选择器父组件Group\n\t * @description 复选框组件一般用于需要多个选择的场景,该组件功能完整,使用方便\n\t * @tutorial https://www.uviewui.com/components/checkbox.html\n\t * @property {String Number} max 最多能选中多少个checkbox(默认999)\n\t * @property {String Number} size 组件整体的大小,单位rpx(默认40)\n\t * @property {Boolean} disabled 是否禁用所有checkbox(默认false)\n\t * @property {String Number} icon-size 图标大小,单位rpx(默认20)\n\t * @property {Boolean} label-disabled 是否禁止点击文本操作checkbox(默认false)\n\t * @property {String} width 宽度,需带单位\n\t * @property {String} width 宽度,需带单位\n\t * @property {String} shape 外观形状,shape-方形,circle-圆形(默认circle)\n\t * @property {Boolean} wrap 是否每个checkbox都换行(默认false)\n\t * @property {String} active-color 选中时的颜色,应用到所有子Checkbox组件(默认#2979ff)\n\t * @event {Function} change 任一个checkbox状态发生变化时触发,回调为一个对象\n\t * @example <u-checkbox-group></u-checkbox-group>\n\t */\n\texport default {\n\t\tname: 'u-checkbox-group',\n\t\tmixins: [Emitter],\n\t\tprops: {\n\t\t\t// 最多能选中多少个checkbox\n\t\t\tmax: {\n\t\t\t\ttype: [Number, String],\n\t\t\t\tdefault: 999\n\t\t\t},\n\t\t\t// 所有选中项的 name\n\t\t\t// value: {\n\t\t\t// \tdefault: Array,\n\t\t\t// \tdefault() {\n\t\t\t// \t\treturn []\n\t\t\t// \t}\n\t\t\t// },\n\t\t\t// 是否禁用所有复选框\n\t\t\tdisabled: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: false\n\t\t\t},\n\t\t\t// 在表单内提交时的标识符\n\t\t\tname: {\n\t\t\t\ttype: [Boolean, String],\n\t\t\t\tdefault: ''\n\t\t\t},\n\t\t\t// 是否禁止点击提示语选中复选框\n\t\t\tlabelDisabled: {\n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: false\n\t\t\t},\n\t\t\t// 形状,square为方形,circle为原型\n\t\t\tshape: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: 'square'\n\t\t\t},\n\t\t\t// 选中状态下的颜色\n\t\t\tactiveColor: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: '#2979ff'\n\t\t\t},\n\t\t\t// 组件的整体大小\n\t\t\tsize: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: 34\n\t\t\t},\n\t\t\t// 每个checkbox占u-checkbox-group的宽度\n\t\t\twidth: {\n\t\t\t\ttype: String,\n\t\t\t\tdefault: 'auto'\n\t\t\t},\n\t\t\t// 是否每个checkbox都换行\n\t\t\twrap: { \n\t\t\t\ttype: Boolean,\n\t\t\t\tdefault: false\n\t\t\t},\n\t\t\t// 图标的大小,单位rpx\n\t\t\ticonSize: {\n\t\t\t\ttype: [String, Number],\n\t\t\t\tdefault: 20\n\t\t\t},\n\t\t},\n\t\tdata() {\n\t\t\treturn {\n\t\t\t}\n\t\t},\n\t\tcreated() {\n\t\t\t// 如果将children定义在data中,在微信小程序会造成循环引用而报错\n\t\t\tthis.children = [];\n\t\t},\n\t\tmethods: {\n\t\t\temitEvent() {\n\t\t\t\tlet values = [];\n\t\t\t\tthis.children.map(val => {\n\t\t\t\t\tif(val.value) values.push(val.name);\n\t\t\t\t})\n\t\t\t\tthis.$emit('change', values);\n\t\t\t\t// 发出事件,用于在表单组件中嵌入checkbox的情况,进行验证\n\t\t\t\t// 由于头条小程序执行迟钝,故需要用几十毫秒的延时\n\t\t\t\tsetTimeout(() => {\n\t\t\t\t\t// 将当前的值发送到 u-form-item 进行校验\n\t\t\t\t\tthis.dispatch('u-form-item', 'on-form-change', values);\n\t\t\t\t}, 60)\n\t\t\t}\n\t\t}\n\t}\n</script>\n\n<style lang=\"scss\" scoped>\n\t@import \"../../libs/css/style.components.scss\";\n\n\t.u-checkbox-group {\n\t\t/* #ifndef MP || APP-NVUE */\n\t\tdisplay: inline-flex;\n\t\tflex-wrap: wrap;\n\t\t/* #endif */\n\t}\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/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!./u-checkbox-group.vue?vue&type=style&index=0&id=703eade0&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/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!./u-checkbox-group.vue?vue&type=style&index=0&id=703eade0&lang=scss&scoped=true&\"","// extracted by mini-css-extract-plugin\n    if(module.hot) {\n      // 1700461805019\n      var cssReload = require(\"/Applications/HBuilderX.app/Contents/HBuilderX/plugins/uniapp-cli/node_modules/mini-css-extract-plugin/dist/hmr/hotModuleReplacement.js\")(module.id, {\"hmr\":true,\"publicPath\":\"../../\",\"locals\":false});\n      module.hot.dispose(cssReload);\n      module.hot.accept(undefined, cssReload);\n    }\n  "],"sourceRoot":""}