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

                **JDictSelectTag字典標簽** [TOC] > 針對字典的使用,目前提供了一個標簽實現下拉和radio組件。 > JDictSelectTag 標簽: 用于表單的標簽使用,比如通過性別字典編碼:sex,可以直接渲染出下拉組件。 > @Dict用法 > 字典翻譯注解@Dict,用于列表字段字典翻譯(比如字段sex存的值是1,會自動生成一個翻譯字段 sex_dictText 值是‘男’)。詳細文檔:http://jeecg-boot.mydoc.io/?t=345678 ## 組件參數 | 參數 | 類型 | 必填 |說明| |--------------|---------|----|---------| | dictCode |string|√|字典code配置,比如通過性別字典編碼:sex,可以直接渲染出組件 | | type|string||支持radio、radioButton 、select| | placeholder |string | | placeholder | | stringToNumber |boolean| | 是否將字典的選項value值由string轉成number,用于回顯數據| | getPopupContainer|function| | 菜單渲染父節點。默認渲染到 body 上,如果你遇到菜單滾動定位問題,試試修改為滾動的區域,并相對其定位。| | showChooseOption |string | | 是否顯示【請選擇】選項 | | disabled | Boolean | 否 | 是否禁用,默認值false | ## 使用示例 ### 1.字典用法 ``` <JDictSelectTag v-model="queryParam.sex" placeholder="請輸入用戶性別" dictCode="sex"/> ``` ![](https://img.kancloud.cn/d7/08/d708e79b31f4af021f9e490b6cbc3c64_540x209.png) ### 2.表字典類型 > 從數據庫表獲取字典數據,dictCode格式說明: 表名,文本字段,取值字段 ```html <JDictSelectTag v-model="queryParam.username" placeholder="請選擇用戶名稱" dictCode="sys_user,realname,id"/> ``` ![](https://img.kancloud.cn/c2/0c/c20c8256db06f56f477ab6092f731113_560x187.png) ### 3.表字典類型條件 > 當從數據庫表獲取字典數據的時候支持寫查詢條件進行過濾數據 > 下面dictCode = "sys_user,realname,id,sex = '2'"表示從sys_user表中查詢數據且只查詢sex='2'的數據 ```html <JDictSelectTag v-model="queryParam.username" placeholder="請選擇用戶名稱" dictCode="sys_user,realname,id,sex = '2'"/> ``` ![](https://img.kancloud.cn/1d/2c/1d2c543f7bb2783b386724439ba67ab9_542x245.png)
                  <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>

                              哎呀哎呀视频在线观看