+
@@ -205,6 +205,17 @@ export default class UiProp extends Vue {
created() {
}
+ isShowTooltip() {
+ const el: HTMLDivElement = this.$refs.propText;
+ if (el) {
+ if (el.scrollWidth > el.offsetWidth) {
+ // 出现了省略号
+ return true;
+ }
+ }
+ return false;
+ }
+
getEngineTypeIcon() {
const value = this.value as EngineData;
switch (value.engineType) {
{{ name }}
{{ name }}