1.0.0 • Published 9 months ago

h-title v1.0.0

Weekly downloads
-
License
ISC
Repository
-
Last release
9 months ago

组件初始化模版

demo演示

:::demo

  <template>
    <div :style="sty" v-hTitle>我是溢出的文字我是溢出的文字我是溢出的文字我是溢出的文字我是溢出的文字我是溢出的文字我是溢出的文字我是溢出的文字我是溢出的文字我是溢出的文字我是溢出的文字我是溢出的文字</div>
  </template>
  <script>
  export default {
    data() {
      return {
         sty:{
          'display': 'inline-block',
          'width': '300px',
          'white-space': 'nowrap',
          'overflow': 'hidden',
          'text-overflow': 'ellipsis',
         },
      }
    },
    methods: {
    },
    mounted () {
    }
  };
  </script>

:::

参数说明

 * childSelector : 判断子元素的溢出 并显示子元素的内容
 * isShow : 不判断溢出 直接显示
 * location = 'el'   已当前元素左下角显示  'el'
 * eTop : location = 'el' 时 控制显示的 Y 轴位置 number
 * time : 显示的延迟时间   number
 * enterShow: 控制鼠标移入 是否显示 默认不显示 Boolean
1.0.0

9 months ago

0.0.5

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago