Skip to content

Commit

Permalink
fix(msg): remove unused component & modify some styles
Browse files Browse the repository at this point in the history
  • Loading branch information
ysfscream committed Jun 5, 2021
1 parent 2b56be6 commit 2dfc91d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 18 deletions.
14 changes: 0 additions & 14 deletions src/assets/scss/element/element-reset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@
}
}

/* Cascader */
.el-cascader {
width: 100%;
}

/* Message */
.el-message-box {
border-radius: 8px;
Expand Down Expand Up @@ -248,15 +243,6 @@
background: var(--color-bg-item);
}

/* Cascader */
.el-cascader-menu {
border-right: 1px solid var(--color-border-default);
}
.el-cascader-node:not(.is-disabled):hover,
.el-cascader-node:not(.is-disabled):focus {
background: var(--color-bg-item);
}

/* Tootip */
.el-tooltip__popper.is-light {
color: #616161;
Expand Down
7 changes: 5 additions & 2 deletions src/components/MsgPublish.vue
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
:value="item"
>
<span style="float: left; width: 160px; overflow: hidden; text-overflow: ellipsis">{{ item.topic }}</span>
<span style="color: #8492a6; font-size: 12px; margin-left: 4px">QOS:{{ item.qos }}</span>
<span style="float: right; color: #8492a6; font-size: 13px; font-weight: 400; margin-left: 4px"
<span style="color: #8492a6; font-size: 12px; margin-left: 4px">QoS:{{ item.qos }}</span>
<span style="float: right; color: #8492a6; font-size: 13px; margin-left: 4px"
>retain:{{ item.retain ? '1' : '0' }}</span
>
</el-option>
Expand Down Expand Up @@ -392,5 +392,8 @@ export default class MsgPublish extends Vue {
}
.el-select-dropdown.el-popper.header-select--popper {
max-width: 300px;
.el-select-dropdown__empty {
width: 80px;
}
}
</style>
4 changes: 2 additions & 2 deletions src/utils/element.ts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ import {
// CarouselItem,
// Collapse,
// CollapseItem,
Cascader,
// Cascader,
ColorPicker,
// Transfer,
// Container,
Expand Down Expand Up @@ -130,7 +130,7 @@ export default (Vue: typeof _Vue) => {
// Vue.use(CarouselItem)
// Vue.use(Collapse)
// Vue.use(CollapseItem)
Vue.use(Cascader)
// Vue.use(Cascader)
Vue.use(ColorPicker)
// Vue.use(Transfer)
// Vue.use(Container)
Expand Down

0 comments on commit 2dfc91d

Please sign in to comment.