<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>

                # 自定義組件增強 [TOC=2,9] 這里只介紹幾個常用的增強 其他增強詳見:`src/components/jeecg/JVxeTable/mixins/JVxeCellMixins.js` ![](https://img.kancloud.cn/9c/82/9c827b6436e96b12246ad00edd61c8b4_725x152.png) ## setValue(value) 向組件內傳值時調用的增強。 一般用于特殊處理數據,例如多選下拉組件,需要一個數組,但是用戶傳遞了一個用逗號分割的字符串,導致組件無法正常識別,這時候就可以在該增強了寫適配代碼了,將字符串split處理成數組,再返回即可。 ![](https://img.kancloud.cn/68/84/68848be82f8b05486f7c6690063dd436_576x321.png) ## getValue(value) 組件向外傳值時調用的增強。 當用戶通過 `getTableData()`方法獲取數據時,對數據做處理。例如多選下拉組件,實際數據是一個數組,但是數據庫里保存的是逗號分割的字符串,所以就需要在該方法內處理一下。 ![](https://img.kancloud.cn/59/3f/593fe2e4361feaacb0ee32a436a8cb2e_318x151.png) ## createValue({row, column, $table, renderOptions, params}) 參數介紹: ![](https://img.kancloud.cn/63/3b/633b8bafa23293ad3c316cea5b8aeff2_607x299.png) 在用戶點擊新增時觸發,返回的值就是新行的默認值,默認行為是返回`defaultValue`字段,可以重寫處理。
                  <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>

                              哎呀哎呀视频在线观看