diff --git a/yudao-ui-admin/src/icons/svg/rich-text.svg b/yudao-ui-admin/src/assets/icons/svg/rich-text.svg similarity index 100% rename from yudao-ui-admin/src/icons/svg/rich-text.svg rename to yudao-ui-admin/src/assets/icons/svg/rich-text.svg diff --git a/yudao-ui-admin/src/icons/index.js b/yudao-ui-admin/src/icons/index.js deleted file mode 100644 index 2c6b309c9..000000000 --- a/yudao-ui-admin/src/icons/index.js +++ /dev/null @@ -1,9 +0,0 @@ -import Vue from 'vue' -import SvgIcon from '@/components/SvgIcon'// svg component - -// register globally -Vue.component('svg-icon', SvgIcon) - -const req = require.context('./svg', false, /\.svg$/) -const requireAll = requireContext => requireContext.keys().map(requireContext) -requireAll(req) diff --git a/yudao-ui-admin/src/icons/svg/button.svg b/yudao-ui-admin/src/icons/svg/button.svg deleted file mode 100644 index 904fddc85..000000000 --- a/yudao-ui-admin/src/icons/svg/button.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/cascader.svg b/yudao-ui-admin/src/icons/svg/cascader.svg deleted file mode 100644 index e256024f9..000000000 --- a/yudao-ui-admin/src/icons/svg/cascader.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/checkbox.svg b/yudao-ui-admin/src/icons/svg/checkbox.svg deleted file mode 100644 index 013fd3a27..000000000 --- a/yudao-ui-admin/src/icons/svg/checkbox.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/color.svg b/yudao-ui-admin/src/icons/svg/color.svg deleted file mode 100644 index 44a81aab1..000000000 --- a/yudao-ui-admin/src/icons/svg/color.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/component.svg b/yudao-ui-admin/src/icons/svg/component.svg deleted file mode 100644 index 29c345809..000000000 --- a/yudao-ui-admin/src/icons/svg/component.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/date-range.svg b/yudao-ui-admin/src/icons/svg/date-range.svg deleted file mode 100644 index fda571e70..000000000 --- a/yudao-ui-admin/src/icons/svg/date-range.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/date.svg b/yudao-ui-admin/src/icons/svg/date.svg deleted file mode 100644 index 52dc73eec..000000000 --- a/yudao-ui-admin/src/icons/svg/date.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/input.svg b/yudao-ui-admin/src/icons/svg/input.svg deleted file mode 100644 index ab91381e6..000000000 --- a/yudao-ui-admin/src/icons/svg/input.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/number.svg b/yudao-ui-admin/src/icons/svg/number.svg deleted file mode 100644 index ad5ce9af2..000000000 --- a/yudao-ui-admin/src/icons/svg/number.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/password.svg b/yudao-ui-admin/src/icons/svg/password.svg deleted file mode 100644 index 6c64defe3..000000000 --- a/yudao-ui-admin/src/icons/svg/password.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/radio.svg b/yudao-ui-admin/src/icons/svg/radio.svg deleted file mode 100644 index 0cde34521..000000000 --- a/yudao-ui-admin/src/icons/svg/radio.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/rate.svg b/yudao-ui-admin/src/icons/svg/rate.svg deleted file mode 100644 index aa3b14d7d..000000000 --- a/yudao-ui-admin/src/icons/svg/rate.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/row.svg b/yudao-ui-admin/src/icons/svg/row.svg deleted file mode 100644 index 078099222..000000000 --- a/yudao-ui-admin/src/icons/svg/row.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/select.svg b/yudao-ui-admin/src/icons/svg/select.svg deleted file mode 100644 index d6283828b..000000000 --- a/yudao-ui-admin/src/icons/svg/select.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/slider.svg b/yudao-ui-admin/src/icons/svg/slider.svg deleted file mode 100644 index fbe4f39f0..000000000 --- a/yudao-ui-admin/src/icons/svg/slider.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/switch.svg b/yudao-ui-admin/src/icons/svg/switch.svg deleted file mode 100644 index 0ba61e38d..000000000 --- a/yudao-ui-admin/src/icons/svg/switch.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/table.svg b/yudao-ui-admin/src/icons/svg/table.svg deleted file mode 100644 index e8068454f..000000000 --- a/yudao-ui-admin/src/icons/svg/table.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/textarea.svg b/yudao-ui-admin/src/icons/svg/textarea.svg deleted file mode 100644 index 2709f292e..000000000 --- a/yudao-ui-admin/src/icons/svg/textarea.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/time-range.svg b/yudao-ui-admin/src/icons/svg/time-range.svg deleted file mode 100644 index 13c1202bd..000000000 --- a/yudao-ui-admin/src/icons/svg/time-range.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/time.svg b/yudao-ui-admin/src/icons/svg/time.svg deleted file mode 100644 index b376e32a6..000000000 --- a/yudao-ui-admin/src/icons/svg/time.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/icons/svg/upload.svg b/yudao-ui-admin/src/icons/svg/upload.svg deleted file mode 100644 index bae49c0a5..000000000 --- a/yudao-ui-admin/src/icons/svg/upload.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/yudao-ui-admin/src/main.js b/yudao-ui-admin/src/main.js index 622f88976..20617571a 100644 --- a/yudao-ui-admin/src/main.js +++ b/yudao-ui-admin/src/main.js @@ -66,7 +66,7 @@ import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css"; // Form Generator 组件需要使用到 tinymce import Tinymce from '@/components/tinymce/index.vue' Vue.component('tinymce', Tinymce) -import '@/icons' +import '@/assets/icons' import request from "@/utils/request" // 实现 form generator 使用自己定义的 axios request 对象 console.log(request) Vue.prototype.$axios = request diff --git a/yudao-ui-admin/src/views/infra/build/main.js b/yudao-ui-admin/src/views/infra/build/main.js index e9cc3931e..9ced7172b 100644 --- a/yudao-ui-admin/src/views/infra/build/main.js +++ b/yudao-ui-admin/src/views/infra/build/main.js @@ -2,7 +2,7 @@ import Vue from 'vue' import App from './App.vue' import router from '@/router' import '@/styles/index.scss' -import '@/icons' +import '@/assets/icons' import axios from 'axios' import Tinymce from '@/components/tinymce/index.vue'