Skip to content

Commit

Permalink
[fix]点选增加title,属性面板样式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
luoxiao-supermap committed Nov 19, 2024
1 parent fbdd2c2 commit 465cb75
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions docs/zh/api/control/identify.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@

| 参数 | 说明 | 类型 | 可选值 | 默认值 |
| :------------- | :--------------------------------------------------------------------- | :------------------------------------------------------------ | :----- | :----- |
| title | 标题 | string | - | - |
| showPopup | 是否显示弹窗 | boolean | - | true |
| multiSelect | 是否开启多选 | boolean | - | false |
| layers | 查询的图层 Id | string[ ] | - | - |
Expand Down
7 changes: 5 additions & 2 deletions src/common/attribute-panel/style/attribute-panel.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@
border-radius: 4px;
border: 1px solid $border-color-split;
@include e(header) {
display: inline-flex;
align-items: center;
justify-content: space-between;
width: 100%;
border-bottom: 1px solid $border-color-split;
.title {
margin: 8px 14px;
padding: 8px 16px;
}
.ellipsis {
max-width: calc(100% - 80px);
width: calc(100% - 80px);
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
Expand Down
4 changes: 4 additions & 0 deletions src/mapboxgl/web-map/control/identify/Identify.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
:textColor="textColor"
:mapTarget="mapTarget"
:showPopup="showPopup"
:title="title"
@mapselectionchanged="handleMapSelectionChanged"
/>
</template>
Expand All @@ -29,6 +30,9 @@ export default {
mixins: [MapGetter, Theme],
components: { SmLayerHighlight },
props: {
title: {
type: String
},
showPopup: {
type: Boolean,
default: true
Expand Down

0 comments on commit 465cb75

Please sign in to comment.