Files
education/frontend/node_modules/.cache/babel-loader/ca3aedbb25a59b2c8a045140433506ad.json
T

1 line
7.3 KiB
JSON

{"remainingRequest":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\babel-loader\\lib\\index.js!C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\Admin\\Desktop\\education\\frontend\\src\\components\\IconSelect\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\src\\components\\IconSelect\\index.vue","mtime":1787567871504},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1787309791955},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\babel-loader\\lib\\index.js","mtime":1787309793142},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1787309791955},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\vue-loader\\lib\\index.js","mtime":1787309793790},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\babel.config.js","mtime":1787567871334},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1787309791955},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\babel-loader\\lib\\index.js","mtime":1787309793142},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\cache-loader\\dist\\cjs.js","mtime":1787309791955},{"path":"C:\\Users\\Admin\\Desktop\\education\\frontend\\node_modules\\vue-loader\\lib\\index.js","mtime":1787309793790}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:InVzZSBzdHJpY3QiOwoKdmFyIF9pbnRlcm9wUmVxdWlyZURlZmF1bHQgPSByZXF1aXJlKCJDOi9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dGE6IGZ1bmN0aW9uIGRhdGEoKSB7CiAgICByZXR1cm4gewogICAgICBuYW1lOiAnJywKICAgICAgaWNvbkxpc3Q6IF9yZXF1aXJlSWNvbnMuZGVmYXVsdAogICAgfTsKICB9LAogIG1ldGhvZHM6IHsKICAgIGZpbHRlckljb25zOiBmdW5jdGlvbiBmaWx0ZXJJY29ucygpIHsKICAgICAgdmFyIF90aGlzID0gdGhpczsKICAgICAgdGhpcy5pY29uTGlzdCA9IF9yZXF1aXJlSWNvbnMuZGVmYXVsdDsKICAgICAgaWYgKHRoaXMubmFtZSkgewogICAgICAgIHRoaXMuaWNvbkxpc3QgPSB0aGlzLmljb25MaXN0LmZpbHRlcihmdW5jdGlvbiAoaXRlbSkgewogICAgICAgICAgcmV0dXJuIGl0ZW0uaW5jbHVkZXMoX3RoaXMubmFtZSk7CiAgICAgICAgfSk7CiAgICAgIH0KICAgIH0sCiAgICBzZWxlY3RlZEljb246IGZ1bmN0aW9uIHNlbGVjdGVkSWNvbihuYW1lKSB7CiAgICAgIHRoaXMuJGVtaXQoJ3NlbGVjdGVkJywgbmFtZSk7CiAgICAgIGRvY3VtZW50LmJvZHkuY2xpY2soKTsKICAgIH0sCiAgICByZXNldDogZnVuY3Rpb24gcmVzZXQoKSB7CiAgICAgIHRoaXMubmFtZSA9ICcnOwogICAgICB0aGlzLmljb25MaXN0ID0gX3JlcXVpcmVJY29ucy5kZWZhdWx0OwogICAgfQogIH0KfTs="},{"version":3,"names":["_requireIcons","_interopRequireDefault","require","name","props","activeIcon","type","String","data","iconList","icons","methods","filterIcons","_this","filter","item","includes","selectedIcon","$emit","document","body","click","reset"],"sources":["src/components/IconSelect/index.vue"],"sourcesContent":["<!-- @author zhengjie -->\r\n<template>\r\n <div class=\"icon-body\">\r\n <el-input v-model=\"name\" class=\"icon-search\" clearable placeholder=\"请输入图标名称\" @clear=\"filterIcons\" @input=\"filterIcons\">\r\n <i slot=\"suffix\" class=\"el-icon-search el-input__icon\" />\r\n </el-input>\r\n <div class=\"icon-list\">\r\n <div class=\"list-container\">\r\n <div v-for=\"(item, index) in iconList\" class=\"icon-item-wrapper\" :key=\"index\" @click=\"selectedIcon(item)\">\r\n <div :class=\"['icon-item', { active: activeIcon === item }]\">\r\n <svg-icon :icon-class=\"item\" class-name=\"icon\" style=\"height: 25px;width: 16px;\"/>\r\n <span>{{ item }}</span>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n<script>\r\nimport icons from './requireIcons'\r\nexport default {\r\n name: 'IconSelect',\r\n props: {\r\n activeIcon: {\r\n type: String\r\n }\r\n },\r\n data() {\r\n return {\r\n name: '',\r\n iconList: icons\r\n }\r\n },\r\n methods: {\r\n filterIcons() {\r\n this.iconList = icons\r\n if (this.name) {\r\n this.iconList = this.iconList.filter(item => item.includes(this.name))\r\n }\r\n },\r\n selectedIcon(name) {\r\n this.$emit('selected', name)\r\n document.body.click()\r\n },\r\n reset() {\r\n this.name = ''\r\n this.iconList = icons\r\n }\r\n }\r\n}\r\n</script>\r\n\r\n<style rel=\"stylesheet/scss\" lang=\"scss\" scoped>\r\n .icon-body {\r\n width: 100%;\r\n padding: 10px;\r\n .icon-search {\r\n position: relative;\r\n margin-bottom: 5px;\r\n }\r\n .icon-list {\r\n height: 200px;\r\n overflow: auto;\r\n .list-container {\r\n display: flex;\r\n flex-wrap: wrap;\r\n .icon-item-wrapper {\r\n width: calc(100% / 3);\r\n height: 25px;\r\n line-height: 25px;\r\n cursor: pointer;\r\n display: flex;\r\n .icon-item {\r\n display: flex;\r\n max-width: 100%;\r\n height: 100%;\r\n padding: 0 5px;\r\n &:hover {\r\n background: #ececec;\r\n border-radius: 5px;\r\n }\r\n .icon {\r\n flex-shrink: 0;\r\n }\r\n span {\r\n display: inline-block;\r\n vertical-align: -0.15em;\r\n fill: currentColor;\r\n padding-left: 2px;\r\n overflow: hidden;\r\n text-overflow: ellipsis;\r\n white-space: nowrap;\r\n }\r\n }\r\n .icon-item.active {\r\n background: #ececec;\r\n border-radius: 5px;\r\n }\r\n }\r\n }\r\n }\r\n }\r\n</style>\r\n"],"mappings":";;;;;;;;;;;;;;AAoBA,IAAAA,aAAA,GAAAC,sBAAA,CAAAC,OAAA;;;;;;;;;;;;;;;;;;;;iCACA;EACAC,IAAA;EACAC,KAAA;IACAC,UAAA;MACAC,IAAA,EAAAC;IACA;EACA;EACAC,IAAA,WAAAA,KAAA;IACA;MACAL,IAAA;MACAM,QAAA,EAAAC;IACA;EACA;EACAC,OAAA;IACAC,WAAA,WAAAA,YAAA;MAAA,IAAAC,KAAA;MACA,KAAAJ,QAAA,GAAAC,qBAAA;MACA,SAAAP,IAAA;QACA,KAAAM,QAAA,QAAAA,QAAA,CAAAK,MAAA,WAAAC,IAAA;UAAA,OAAAA,IAAA,CAAAC,QAAA,CAAAH,KAAA,CAAAV,IAAA;QAAA;MACA;IACA;IACAc,YAAA,WAAAA,aAAAd,IAAA;MACA,KAAAe,KAAA,aAAAf,IAAA;MACAgB,QAAA,CAAAC,IAAA,CAAAC,KAAA;IACA;IACAC,KAAA,WAAAA,MAAA;MACA,KAAAnB,IAAA;MACA,KAAAM,QAAA,GAAAC,qBAAA;IACA;EACA;AACA","ignoreList":[]}]}