diff --git a/packages/theme/src/mind-map/index.less b/packages/theme/src/mind-map/index.less new file mode 100644 index 0000000000..0e3e62bb28 --- /dev/null +++ b/packages/theme/src/mind-map/index.less @@ -0,0 +1,33 @@ +.map-container { + .map-canvas { + span { + word-break: break-all; + } + + me-root { + me-tpc { + #input-box { + border-radius: var(--root-radius); + } + } + + .selected { + #input-box { + box-shadow: 0 0 0 4px var(--selected); + border: unset; + } + } + } + } + + me-main>me-wrapper>me-parent>me-tpc { + border: unset; + box-shadow: unset; + + #input-box { + border-radius: var(--main-radius); + box-shadow: 0 0 0 4px var(--selected); + border: unset; + } + } +} \ No newline at end of file diff --git a/packages/vue/src/mind-map/index.ts b/packages/vue/src/mind-map/index.ts index d90aedc775..3e3ba3d576 100644 --- a/packages/vue/src/mind-map/index.ts +++ b/packages/vue/src/mind-map/index.ts @@ -1,5 +1,6 @@ import MindMap from './src/index' import { version } from './package.json' +import '@opentiny/vue-theme/mind-map/index.less' MindMap.model = { prop: 'modelValue', diff --git a/packages/vue/src/mind-map/src/pc.vue b/packages/vue/src/mind-map/src/pc.vue index 422fbddd68..59f86f986c 100644 --- a/packages/vue/src/mind-map/src/pc.vue +++ b/packages/vue/src/mind-map/src/pc.vue @@ -27,35 +27,3 @@ export default defineComponent({ } }) - -