1 |
- {"remainingRequest":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\style-vw-loader\\index.js??ref--0-2!C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\components\\common\\select.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\src\\components\\common\\select.vue","mtime":1663828782926},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\babel.config.js","mtime":1663828782900},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000},{"path":"C:\\Users\\100zone\\Desktop\\baizong\\community\\SmartCommunity\\videoSurveillance\\node_modules\\style-vw-loader\\index.js","mtime":1540864632000}],"contextDependencies":[],"result":["//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nexport default {\n name: \"zz-select\",\n // eslint-disable-next-line vue/require-prop-types\n props: [\"options\", \"value\", \"disabled\", \"placeholder\"],\n data: function data() {\n return {\n model: \"\"\n };\n },\n computed: {\n option: function option() {\n var arr = [];\n\n for (var item in this.options) {\n arr.push({\n value: this.options[item].id,\n label: this.options[item].label\n });\n }\n\n return arr;\n }\n },\n watch: {\n value: function value(n) {\n this.model = n || 0 == n ? n + \"\" : \"\";\n }\n },\n methods: {\n change: function change() {\n this.$emit(\"input\", this.model);\n this.$emit(\"change\", this.model);\n }\n },\n mounted: function mounted() {\n console.log(this.value);\n this.model = this.value || 0 == this.value ? this.value + \"\" : \"\";\n }\n};",{"version":3,"mappings":";;;;;;;;;;;;;;;;;AAkBA;AACAA,mBADA;AAEA;AACAC,wDAHA;AAIAC,MAJA,kBAIA;AACA;AACAC;AADA;AAGA,GARA;AASAC;AACAC,UADA,oBACA;AACA;;AACA;AACAC;AACAC,sCADA;AAEAC;AAFA;AAIA;;AACA;AACA;AAVA,GATA;AAqBAC;AACAF,SADA,iBACAG,CADA,EACA;AACA;AACA;AAHA,GArBA;AA0BAC;AACAC,UADA,oBACA;AACA;AACA;AACA;AAJA,GA1BA;AAgCAC,SAhCA,qBAgCA;AACAC;AACA;AACA;AAnCA","names":["name","props","data","model","computed","option","arr","value","label","watch","n","methods","change","mounted","console"],"sourceRoot":"src/components/common","sources":["select.vue"],"sourcesContent":["<template>\r\n <el-select\r\n :disabled=\"disabled\"\r\n v-model=\"model\"\r\n :placeholder=\"placeholder\"\r\n @change=\"change\"\r\n value-key=\"id\"\r\n >\r\n <slot name=\"option\"></slot>\r\n <el-option\r\n v-for=\"(item, index) in option\"\r\n :key=\"index\"\r\n :label=\"item.label\"\r\n :value=\"item.value\"\r\n ></el-option>\r\n </el-select>\r\n</template>\r\n<script>\r\nexport default {\r\n name: \"zz-select\",\r\n // eslint-disable-next-line vue/require-prop-types\r\n props: [\"options\", \"value\", \"disabled\", \"placeholder\"],\r\n data() {\r\n return {\r\n model: \"\"\r\n };\r\n },\r\n computed: {\r\n option() {\r\n let arr = [];\r\n for (let item in this.options) {\r\n arr.push({\r\n value: this.options[item].id,\r\n label: this.options[item].label\r\n });\r\n }\r\n return arr;\r\n }\r\n },\r\n watch: {\r\n value(n) {\r\n this.model = n || 0 == n ? n + \"\" : \"\";\r\n }\r\n },\r\n methods: {\r\n change() {\r\n this.$emit(\"input\", this.model);\r\n this.$emit(\"change\", this.model);\r\n }\r\n },\r\n mounted() {\r\n console.log(this.value)\r\n this.model = this.value || 0 == this.value ? this.value + \"\" : \"\";\r\n }\r\n};\r\n</script>\r\n"]}]}
|