diff --git a/build/plugins.ts b/build/plugins.ts index 3ef7498..3e93ad2 100644 --- a/build/plugins.ts +++ b/build/plugins.ts @@ -1,6 +1,7 @@ import UnoCSS from '@unocss/vite' import vue from '@vitejs/plugin-vue' import vueJsx from '@vitejs/plugin-vue-jsx' +import VueDevTools from 'vite-plugin-vue-devtools' import Components from 'unplugin-vue-components/vite' import AutoImport from 'unplugin-auto-import/vite' import { NaiveUiResolver } from 'unplugin-vue-components/resolvers' @@ -21,6 +22,7 @@ export function createVitePlugins(env: ImportMetaEnv) { // support vue vue(), vueJsx(), + VueDevTools(), // support unocss UnoCSS(), diff --git a/locales/en_US.json b/locales/en_US.json index bf02e42..2e055e5 100644 --- a/locales/en_US.json +++ b/locales/en_US.json @@ -3,7 +3,8 @@ "cancel": "Cancel", "confirm": "Confirm", "close": "Closure", - "reload": "Refresh" + "reload": "Refresh", + "choose": "Choose" }, "app": { "loginOut": "Login out", @@ -139,7 +140,9 @@ "components": { "iconSelector": { "inputPlaceholder": "Select target icon", - "searchPlaceholder": "Search icon" + "searchPlaceholder": "Search icon", + "clearIcon": "Clear icon", + "selectorTitle": "Icon selection" } } } diff --git a/locales/zh_CN.json b/locales/zh_CN.json index f108ee8..7320587 100644 --- a/locales/zh_CN.json +++ b/locales/zh_CN.json @@ -3,7 +3,8 @@ "confirm": "确认", "cancel": "取消", "reload": "刷新", - "close": "关闭" + "close": "关闭", + "choose": "选择" }, "app": { "loginOut": "退出登录", @@ -74,8 +75,10 @@ }, "components": { "iconSelector": { + "selectorTitle": "图标选择", "inputPlaceholder": "选择目标图标", - "searchPlaceholder": "搜索图标" + "searchPlaceholder": "搜索图标", + "clearIcon": "清除图标" } }, "login": { diff --git a/package.json b/package.json index 4f339f8..d1caa06 100644 --- a/package.json +++ b/package.json @@ -87,6 +87,7 @@ "vite": "^5.2.8", "vite-bundle-visualizer": "^1.1.0", "vite-plugin-compression": "^0.5.1", + "vite-plugin-vue-devtools": "7.1.2", "vue-tsc": "^2.0.12" }, "simple-git-hooks": { diff --git a/src/components/common/IconSelect.vue b/src/components/common/IconSelect.vue new file mode 100644 index 0000000..8629859 --- /dev/null +++ b/src/components/common/IconSelect.vue @@ -0,0 +1,164 @@ + + + diff --git a/src/components/common/IconSelect/icons.ts b/src/components/common/IconSelect/icons.ts deleted file mode 100644 index 546b1c8..0000000 --- a/src/components/common/IconSelect/icons.ts +++ /dev/null @@ -1,35 +0,0 @@ -export const icons: string[] = [ - 'icon-park-outline:ad-product', - 'icon-park-outline:all-application', - 'icon-park-outline:hamburger-button', - 'icon-park-outline:setting', - 'icon-park-outline:add-one', - 'icon-park-outline:reduce-one', - 'icon-park-outline:close-one', - 'icon-park-outline:help', - 'icon-park-outline:info', - 'icon-park-outline:grid-four', - 'icon-park-outline:key-two', - 'icon-park-outline:write', - 'icon-park-outline:fire', - 'icon-park-outline:memory-card-one', - 'icon-park-outline:coupon', - 'icon-park-outline:ticket-one', - 'icon-park-outline:pay-code-two', - 'icon-park-outline:wallet-one', - 'icon-park-outline:gift', - 'icon-park-outline:mail', - 'icon-park-outline:log', - 'icon-park-outline:people', - 'icon-park-outline:alarm-clock', - 'ic:baseline-filter-1', - 'ic:baseline-filter-2', - 'ic:baseline-filter-3', - 'ic:baseline-filter-4', - 'ic:baseline-filter-5', - 'ic:baseline-filter-6', - 'ic:baseline-filter-7', - 'ic:baseline-filter-8', - 'ic:baseline-filter-9', - 'ic:baseline-filter-9-plus', -] diff --git a/src/components/common/IconSelect/index.vue b/src/components/common/IconSelect/index.vue deleted file mode 100644 index 7ba2c2b..0000000 --- a/src/components/common/IconSelect/index.vue +++ /dev/null @@ -1,51 +0,0 @@ - - - - -