yz3456
2024-04-29 fd8a16e3f8c1b731a9840be1fc63f88e4c7ebb24
1
{"remainingRequest":"C:\\Users\\feige\\Desktop\\RuoYi-Vue-master\\RuoYi-Vue-master\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!C:\\Users\\feige\\Desktop\\RuoYi-Vue-master\\RuoYi-Vue-master\\ruoyi-ui\\src\\components\\IconSelect\\index.vue?vue&type=script&lang=js&","dependencies":[{"path":"C:\\Users\\feige\\Desktop\\RuoYi-Vue-master\\RuoYi-Vue-master\\ruoyi-ui\\src\\components\\IconSelect\\index.vue","mtime":1676881540000},{"path":"C:\\Users\\feige\\Desktop\\RuoYi-Vue-master\\RuoYi-Vue-master\\ruoyi-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\feige\\Desktop\\RuoYi-Vue-master\\RuoYi-Vue-master\\ruoyi-ui\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"C:\\Users\\feige\\Desktop\\RuoYi-Vue-master\\RuoYi-Vue-master\\ruoyi-ui\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"C:\\Users\\feige\\Desktop\\RuoYi-Vue-master\\RuoYi-Vue-master\\ruoyi-ui\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":[{"type":"Buffer","data":"base64:Ly8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KLy8KDQppbXBvcnQgaWNvbnMgZnJvbSAnLi9yZXF1aXJlSWNvbnMnDQpleHBvcnQgZGVmYXVsdCB7DQogIG5hbWU6ICdJY29uU2VsZWN0JywNCiAgZGF0YSgpIHsNCiAgICByZXR1cm4gew0KICAgICAgbmFtZTogJycsDQogICAgICBpY29uTGlzdDogaWNvbnMNCiAgICB9DQogIH0sDQogIG1ldGhvZHM6IHsNCiAgICBmaWx0ZXJJY29ucygpIHsNCiAgICAgIHRoaXMuaWNvbkxpc3QgPSBpY29ucw0KICAgICAgaWYgKHRoaXMubmFtZSkgew0KICAgICAgICB0aGlzLmljb25MaXN0ID0gdGhpcy5pY29uTGlzdC5maWx0ZXIoaXRlbSA9PiBpdGVtLmluY2x1ZGVzKHRoaXMubmFtZSkpDQogICAgICB9DQogICAgfSwNCiAgICBzZWxlY3RlZEljb24obmFtZSkgew0KICAgICAgdGhpcy4kZW1pdCgnc2VsZWN0ZWQnLCBuYW1lKQ0KICAgICAgZG9jdW1lbnQuYm9keS5jbGljaygpDQogICAgfSwNCiAgICByZXNldCgpIHsNCiAgICAgIHRoaXMubmFtZSA9ICcnDQogICAgICB0aGlzLmljb25MaXN0ID0gaWNvbnMNCiAgICB9DQogIH0NCn0NCg=="},{"version":3,"sources":["index.vue"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAgBA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA","file":"index.vue","sourceRoot":"src/components/IconSelect","sourcesContent":["<!-- @author zhengjie -->\r\n<template>\r\n  <div class=\"icon-body\">\r\n    <el-input v-model=\"name\" style=\"position: relative;\" clearable placeholder=\"请输入图标名称\" @clear=\"filterIcons\" @input.native=\"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 v-for=\"(item, index) in iconList\" :key=\"index\" @click=\"selectedIcon(item)\">\r\n        <svg-icon :icon-class=\"item\" style=\"height: 30px;width: 16px;\" />\r\n        <span>{{ item }}</span>\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  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-list {\r\n      height: 200px;\r\n      overflow-y: scroll;\r\n      div {\r\n        height: 30px;\r\n        line-height: 30px;\r\n        margin-bottom: -5px;\r\n        cursor: pointer;\r\n        width: 33%;\r\n        float: left;\r\n      }\r\n      span {\r\n        display: inline-block;\r\n        vertical-align: -0.15em;\r\n        fill: currentColor;\r\n        overflow: hidden;\r\n      }\r\n    }\r\n  }\r\n</style>\r\n"]}]}