diff --git a/src/components.d.ts b/src/components.d.ts index 39e5112..d58ef46 100644 --- a/src/components.d.ts +++ b/src/components.d.ts @@ -12,7 +12,9 @@ declare module 'vue' { ElConfigProvider: typeof import('element-plus/es')['ElConfigProvider'] ElInput: typeof import('element-plus/es')['ElInput'] ElOption: typeof import('element-plus/es')['ElOption'] + ElPopover: typeof import('element-plus/es')['ElPopover'] ElSelect: typeof import('element-plus/es')['ElSelect'] + ElTag: typeof import('element-plus/es')['ElTag'] ElTooltip: typeof import('element-plus/es')['ElTooltip'] ElTree: typeof import('element-plus/es')['ElTree'] ElTreeSelect: typeof import('element-plus/es')['ElTreeSelect'] diff --git a/src/theme/index.scss b/src/theme/index.scss index 60d23a6..a121b8b 100644 --- a/src/theme/index.scss +++ b/src/theme/index.scss @@ -13,6 +13,7 @@ @use "./tabs.scss" as *; @use "./step.scss" as *; @use "./upload.scss" as *; +@use "./popover.scss" as *; body { font-family: 思源黑体; @@ -53,7 +54,11 @@ code { align-items: center; padding: 3px 0px 3px 16px; border-left: 4px solid #59b295; - background: linear-gradient(90deg, rgba(134, 191, 105, 0.8) 0%, rgba(57, 147, 191, 0.1) 100%); + background: linear-gradient( + 90deg, + rgba(134, 191, 105, 0.8) 0%, + rgba(57, 147, 191, 0.1) 100% + ); font-family: PingFang SC; font-size: 16px; diff --git a/src/theme/popover.scss b/src/theme/popover.scss new file mode 100644 index 0000000..ffb60ec --- /dev/null +++ b/src/theme/popover.scss @@ -0,0 +1,122 @@ +.sy-popover.sy-popper.map-search-popper { + padding: 0px; + .map-search-result { + .map-search-result-title { + display: flex; + flex-direction: row; + align-items: center; + padding: 12px 16px; + border-width: 0px 0px 1px 0px; + border-style: solid; + border-color: rgba(0, 0, 0, 0.1); + + font-family: Source Han Sans; + font-size: 14px; + font-weight: normal; + line-height: 22px; + letter-spacing: 0em; + + font-variation-settings: "opsz" auto; + font-feature-settings: "kern" on; + /* 文字&图标/Font Gy2 */ + color: rgba(0, 0, 0, 0.6); + span { + padding: 0px 4px; + font-family: Source Han Sans; + font-size: 14px; + font-weight: 500; + line-height: 22px; + letter-spacing: 0em; + + font-variation-settings: "opsz" auto; + font-feature-settings: "kern" on; + /* ShuYuan/SY_6 Normal */ + color: #3a89fe; + } + } + .map-search-result-list { + height: 426px; + padding: 16px; + overflow-y: auto; + display: flex; + flex-direction: column; + gap: 16px; + + .map-search-result-list-item { + display: flex; + flex-direction: column; + gap: 4px; + padding-bottom: 16px; + .title { + display: flex; + justify-content: space-between; + align-items: center; + margin-bottom: 4px; + .name { + font-family: Source Han Sans; + font-size: 14px; + font-weight: 500; + line-height: 22px; + letter-spacing: 0em; + + font-variation-settings: "opsz" auto; + font-feature-settings: "kern" on; + /* 文字&图标/Font Gy1 */ + color: rgba(0, 0, 0, 0.9); + } + .tag { + display: flex; + flex-direction: row; + justify-content: center; + align-items: center; + padding: 1px 12px; + width: 48px; + height: 20px; + border-radius: 2px; + + box-sizing: border-box; + /* ShuYuan/SY_6 Normal */ + border: 1px solid #3a89fe; + + font-family: Source Han Sans; + font-size: 12px; + font-weight: 500; + line-height: 18px; + letter-spacing: 0em; + + font-variation-settings: "opsz" auto; + font-feature-settings: "kern" on; + /* ShuYuan/SY_6 Normal */ + color: #3a89fe; + } + } + .item { + display: flex; + flex-direction: row; + align-items: center; + justify-content: flex-start; + gap: 4px; + font-family: Source Han Sans; + font-size: 12px; + font-weight: normal; + line-height: 18px; + letter-spacing: 0em; + + font-variation-settings: "opsz" auto; + font-feature-settings: "kern" on; + /* 文字&图标/Font Gy2 */ + color: rgba(0, 0, 0, 0.6); + i { + background: #36b29e; + width: 8px; + height: 8px; + border-radius: 50%; + } + } + &:not(:last-child) { + border-bottom: 1px solid rgba(0, 0, 0, 0.1); + } + } + } + } +} diff --git a/src/views/Main/MapSearch/index.vue b/src/views/Main/MapSearch/index.vue index bade74b..06b2791 100644 --- a/src/views/Main/MapSearch/index.vue +++ b/src/views/Main/MapSearch/index.vue @@ -3,18 +3,63 @@ - + + + +