<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                合規國際互聯網加速 OSASE為企業客戶提供高速穩定SD-WAN國際加速解決方案。 廣告
                ## Tooltip 文字提示 文字提示氣泡框,在鼠標懸停時顯示,代替了系統的`title`提示。 ### 代碼示例 基礎用法 ![](https://img.kancloud.cn/d5/38/d5381bf6e68d49f5b06a27deeb23262e_1914x181.png) ```html <cvu-tooltip content="當鼠標經過這段文字時,會顯示一個氣泡框"> 當鼠標經過這段文字時,會顯示一個氣泡框 </cvu-tooltip> ``` 省略號顯示 ![](https://img.kancloud.cn/c1/b5/c1b5122ba3f44bbd422c0d2cfbbaee83_1911x303.png) >[info] 設置屬性`width`固定文本內容寬度,超出省略號顯示 ```html <cvu-tooltip :width="200" content="提示框內容"> 原始文本固定寬度,超出省略號顯示 </cvu-tooltip> ``` 位置 ![](https://img.kancloud.cn/27/f9/27f9edcd9d3b6461be15f6f06123a9d6_1903x473.png) >[info] 設置`placement`參數,具體可選值參考api ```html <cvu-tooltip placement="top-start" content="Top Left 文字提示"> <cvu-button>上左</cvu-button> </cvu-tooltip> ``` 自定義內容 ![](https://img.kancloud.cn/c6/65/c6650a842a2d8247ffdf09bbd600f01c_1906x198.png) >[info] 通過自定義 slot 顯示多行文本或更復雜的樣式。 ```html <cvu-tooltip> 自定義內容 <div slot="content"> <p>顯示多行信息</p> <p>可以自定義樣式</p> </div> </cvu-tooltip> ``` 禁用 >[info] 通過設置屬性`disabled`可以禁用文字提示。 ```html <cvu-tooltip :disabled="disabled" content="提示框內容"> 禁止彈出提示框 </cvu-tooltip> ``` 延時顯示 >[info] 通過設置屬性`delay`可以延時顯示文字提示,單位毫秒。 ```html <cvu-tooltip :delay="1000" content="提示框內容"> 延時顯示提示框 </cvu-tooltip> ``` 自動換行 ![](https://img.kancloud.cn/3e/cd/3ecda375f1572d13efccab4d3f21dc53_1907x290.png) >[info] 設置屬性`max-width`,當超出最大值后,文本將自動換行,并兩端對齊。 - 屬性`max-width`默認為空,文本固定一行顯示,自動撐開寬度。 ```html <cvu-tooltip :max-width="200" content="Steven Paul Jobs was an American entrepreneur and business magnate. He was the chairman, chief executive officer, and a co-founder of Apple Inc."> 文本換行提示框 </cvu-tooltip> ``` ### props | 屬性 | 說明 | 類型 | 默認值 | | --- | --- | --- | --- | | content | 顯示的內容 | String | Number | 空 | | placement | 提示框出現的位置,可選值為top / top-start / top-end / bottom / bottom-start / bottom-end / left / left-start / left-end / right / right-start / right-end | String | top | | width | 原始文字內容寬度 | String \| Number | \- | | disabled | 是否禁用提示框 | Boolean | false | | delay | 延遲顯示,單位毫秒 | Number | 0 | | always | 是否總是可見 | Boolean | false | | theme | 主題,可選值為 dark 或 light | String | dark | | max-width | 最大寬度,超出最大值后,文本將自動換行,并兩端對齊 | String | Number | \- | | offset | 出現位置的偏移量 | Number | 0 | | dis-arrow | 是否隱藏小三角 | Boolean | false | | transfer | 是否將彈層放置于 body 內,在 Tabs、帶有 fixed 的 Table 列內使用時,建議添加此屬性,它將不受父級樣式影響,從而達到更好的效果 | Boolean | false | | transfer-class-name | 開啟 transfer 時,給浮層添加額外的 class 名稱 | String | \- | | events-enabled | 是否開啟 Popper 的 eventsEnabled 屬性,開啟可能會犧牲一定的性能 | Boolean | false | ### events | 事件名 | 說明 | 返回值 | | --- | --- | --- | | on-popper-show | 在提示框顯示時觸發 | 無 | | on-popper-hide | 在提示框消失時觸發 | 無 | ### slots | 名稱 | 說明 | | --- | --- | | 無 | 主體內容 | | content | 提示框的內容,定義此 slot 時,會覆蓋 props`content`。 |
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看