You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 lines
8.6 KiB
1 lines
8.6 KiB
{"version":3,"sources":["webpack:///C:/Users/Administrator/Desktop/sports/components/fui-checkbox-group/fui-checkbox-group.vue?d7c2","webpack:///C:/Users/Administrator/Desktop/sports/components/fui-checkbox-group/fui-checkbox-group.vue?b696","webpack:///C:/Users/Administrator/Desktop/sports/components/fui-checkbox-group/fui-checkbox-group.vue?aabb","webpack:///C:/Users/Administrator/Desktop/sports/components/fui-checkbox-group/fui-checkbox-group.vue?6c5a","uni-app:///components/fui-checkbox-group/fui-checkbox-group.vue"],"names":["name","emits","behaviors","props","type","default","value","data","vals","watch","created","methods","checkboxChange","changeValue","detail","modelChange","item"],"mappings":";;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAA2I;AAC3I;AACsE;AACL;;;AAGjE;AACuM;AACvM,gBAAgB,iNAAU;AAC1B,EAAE,wFAAM;AACR,EAAE,yGAAM;AACR,EAAE,kHAAe;AACjB;AACA;AACA;AACA;AACA;AACA,EAAE,6GAAU;AACZ;AACA;;AAEA;AACe,gF;;;;;;;;;;;;ACtBf;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;;;;;;;;;;;;;ACAA;AAAA;AAAA;AAAA;AAAA;AAAA;AACA;AACA;AACA;AACA,aAAa,4NAEN;AACP,KAAK;AACL;AACA,CAAC;AACD;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,GAAG;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;;;;;;;;;;;ACjCA;AAAA;AAAA;AAAA;AAAmyB,CAAgB,gzBAAG,EAAC,C;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gBCevzB;EACAA;EACAC;EAEAC;EAKAC;IACAH;MACAI;MACAC;IACA;IAUAC;MACAF;MACAC;QACA;MACA;IACA;EAEA;EACAE;IACA;MACAC;IACA;EACA;EACAC;IAOAH;MACA;IACA;EAEA;EACAI;IACA;EACA;EACAC;IACAC;MACA;MACA;MACA;MACA;IAIA;IACAC;MACA;MACA;QACA;UACAL;QACA;MACA;MACA;MACA;QACAM;UACAR;QACA;MACA;MACA;IACA;IACAS;MACA;QACA;UACAC;QACA;UACAA;QACA;MACA;IACA;EACA;AACA;AAAA,4B","file":"components/fui-checkbox-group/fui-checkbox-group.js","sourcesContent":["import { render, staticRenderFns, recyclableRender, components } from \"./fui-checkbox-group.vue?vue&type=template&id=3d2b29c4&scoped=true&\"\nvar renderjs\nimport script from \"./fui-checkbox-group.vue?vue&type=script&lang=js&\"\nexport * from \"./fui-checkbox-group.vue?vue&type=script&lang=js&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../../Downloads/HBuilderX.3.99.2023122611/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 \"3d2b29c4\",\n null,\n false,\n components,\n renderjs\n)\n\ncomponent.options.__file = \"components/fui-checkbox-group/fui-checkbox-group.vue\"\nexport default component.exports","export * from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--17-0!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/template.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-uni-app-loader/page-meta.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./fui-checkbox-group.vue?vue&type=template&id=3d2b29c4&scoped=true&\"","var components\ntry {\n components = {\n fuiFormField: function () {\n return import(\n /* webpackChunkName: \"components/fui-form-field/fui-form-field\" */ \"@/components/fui-form-field/fui-form-field.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}\nvar recyclableRender = false\nvar staticRenderFns = []\nrender._withStripped = true\n\nexport { render, staticRenderFns, recyclableRender, components }","import mod from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./fui-checkbox-group.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/babel-loader/lib/index.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/webpack-preprocess-loader/index.js??ref--13-1!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/script.js!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/vue-cli-plugin-uni/packages/vue-loader/lib/index.js??vue-loader-options!../../../../Downloads/HBuilderX.3.99.2023122611/HBuilderX/plugins/uniapp-cli/node_modules/@dcloudio/webpack-uni-mp-loader/lib/style.js!./fui-checkbox-group.vue?vue&type=script&lang=js&\"","<template>\r\n\t<!-- #ifdef APP-PLUS || H5 || MP-ALIPAY || MP-TOUTIAO|| MP-KUAISHOU || MP-JD || MP-360 || MP-LARK -->\r\n\t<checkbox-group :name=\"name\">\r\n\t\t<slot></slot>\r\n\t</checkbox-group>\r\n\t<!-- #endif -->\r\n\r\n\t<!-- #ifdef MP-WEIXIN || MP-BAIDU || MP-QQ -->\r\n\t<fui-form-field :name=\"name\" v-model=\"vals\">\r\n\t\t<slot></slot>\r\n\t</fui-form-field>\r\n\t<!-- #endif -->\r\n</template>\r\n\r\n<script>\r\n\texport default {\r\n\t\tname: \"fui-checkbox-group\",\r\n\t\temits: ['change', 'input', 'update:modelValue'],\r\n\t\t// #ifdef MP-WEIXIN\r\n\t\tbehaviors: ['wx://form-field-group'],\r\n\t\t// #endif\r\n\t\t// #ifdef MP-BAIDU || MP-QQ || H5\r\n\t\tbehaviors: ['uni://form-field'],\r\n\t\t// #endif\r\n\t\tprops: {\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\t// #ifdef VUE3\r\n\t\t\tmodelValue: {\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// #endif\r\n\t\t\t// #ifdef VUE2\r\n\t\t\tvalue: {\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// #endif\r\n\t\t},\r\n\t\tdata() {\r\n\t\t\treturn {\r\n\t\t\t\tvals: ''\r\n\t\t\t};\r\n\t\t},\r\n\t\twatch: {\r\n\t\t\t// #ifdef VUE3\r\n\t\t\tmodelValue(vals) {\r\n\t\t\t\tthis.modelChange(vals)\r\n\t\t\t},\r\n\t\t\t// #endif\r\n\t\t\t// #ifdef VUE2\r\n\t\t\tvalue(vals) {\r\n\t\t\t\tthis.modelChange(vals)\r\n\t\t\t}\r\n\t\t\t// #endif\r\n\t\t},\r\n\t\tcreated() {\r\n\t\t\tthis.childrens = []\r\n\t\t},\r\n\t\tmethods: {\r\n\t\t\tcheckboxChange(e) {\r\n\t\t\t\tthis.$emit('change', e)\r\n\t\t\t\t// TODO vue2 兼容 \r\n\t\t\t\tthis.$emit('input', e.detail.value)\r\n\t\t\t\t// TODO vue3 兼容\r\n\t\t\t\t// #ifdef VUE3\r\n\t\t\t\tthis.$emit(\"update:modelValue\", e.detail.value);\r\n\t\t\t\t// #endif\r\n\t\t\t},\r\n\t\t\tchangeValue(checked, target) {\r\n\t\t\t\tconst vals = []\r\n\t\t\t\tthis.childrens.forEach(item => {\r\n\t\t\t\t\tif (item.val) {\r\n\t\t\t\t\t\tvals.push(item.value);\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tthis.vals = vals;\r\n\t\t\t\tlet e = {\r\n\t\t\t\t\tdetail: {\r\n\t\t\t\t\t\tvalue: vals\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t\tthis.checkboxChange(e)\r\n\t\t\t},\r\n\t\t\tmodelChange(vals) {\r\n\t\t\t\tthis.childrens.forEach(item => {\r\n\t\t\t\t\tif (vals.includes(item.value)) {\r\n\t\t\t\t\t\titem.val = true;\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\titem.val = false\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t}\r\n\t}\r\n</script>\r\n\r\n<style scoped></style>"],"sourceRoot":""} |