diff --git a/package-lock.json b/package-lock.json index 8721a30..6c2bc6e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "rdt-editor", "version": "5.0", "dependencies": { + "@vicons/ionicons5": "^0.12.0", "ace-code": "^1.32.8", "md5": "^2.3.0", "naive-ui": "^2.38.1", @@ -1041,6 +1042,11 @@ "integrity": "sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ==", "dev": true }, + "node_modules/@vicons/ionicons5": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/@vicons/ionicons5/-/ionicons5-0.12.0.tgz", + "integrity": "sha512-Iy1EUVRpX0WWxeu1VIReR1zsZLMc4fqpt223czR+Rpnrwu7pt46nbnC2ycO7ItI/uqDLJxnbcMC7FujKs9IfFA==" + }, "node_modules/@vitejs/plugin-vue": { "version": "5.0.4", "resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-5.0.4.tgz", diff --git a/package.json b/package.json index c2272bc..f357141 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "lint": "eslint --ext .ts,.vue src" }, "dependencies": { + "@vicons/ionicons5": "^0.12.0", "ace-code": "^1.32.8", "md5": "^2.3.0", "naive-ui": "^2.38.1", diff --git a/src/components/BSMap/BSCell.vue b/src/components/BSMap/BSCell.vue index 5582073..3849b3c 100644 --- a/src/components/BSMap/BSCell.vue +++ b/src/components/BSMap/BSCell.vue @@ -1,25 +1,38 @@ - - - updateRatio(index, ratio)" /> - + + + + updateRatio(index, ratio)" /> + + diff --git a/src/components/BSMap/BSSelectable.vue b/src/components/BSMap/BSSelectable.vue index 31ffa98..3e371ea 100644 --- a/src/components/BSMap/BSSelectable.vue +++ b/src/components/BSMap/BSSelectable.vue @@ -2,6 +2,7 @@ @@ -14,6 +15,7 @@ const props = defineProps<{ row: number; offset: number; length: number; + hovered?: boolean; }>(); const editorStore = useEditorStore(); @@ -50,7 +52,8 @@ const focused = computed(() => { transition: opacity 200ms; } - &:hover::after { + &:hover::after, + &.hovered::after { opacity: 0.2; }