vxe-table 4.2.6-beta.3 → 4.2.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (113) hide show
  1. package/README.md +1 -1
  2. package/README.zh-TW.md +0 -4
  3. package/es/edit/src/hook.js +2 -2
  4. package/es/export/src/export-panel.js +19 -19
  5. package/es/export/src/import-panel.js +9 -9
  6. package/es/filter/src/hook.js +5 -5
  7. package/es/form/src/form-item.js +1 -1
  8. package/es/form/src/render.js +1 -1
  9. package/es/grid/src/grid.js +12 -8
  10. package/es/input/src/input.js +19 -16
  11. package/es/locale/lang/en-US.js +2 -0
  12. package/es/locale/lang/ja-JP.js +2 -0
  13. package/es/locale/lang/zh-CN.js +2 -0
  14. package/es/locale/lang/zh-TC.js +2 -0
  15. package/es/menu/src/hooks.js +0 -6
  16. package/es/select/src/select.js +145 -15
  17. package/es/select/style.css +17 -3
  18. package/es/style.css +1 -1
  19. package/es/style.min.css +1 -1
  20. package/es/table/src/body.js +1 -1
  21. package/es/table/src/cell.js +3 -3
  22. package/es/table/src/columnInfo.js +1 -1
  23. package/es/table/src/table.js +59 -47
  24. package/es/table/src/util.js +2 -2
  25. package/es/toolbar/style.css +11 -9
  26. package/es/tools/log.js +1 -1
  27. package/es/v-x-e-table/index.js +1 -1
  28. package/es/v-x-e-table/src/conf.js +2 -2
  29. package/lib/edit/src/hook.js +2 -2
  30. package/lib/filter/src/hook.js +8 -5
  31. package/lib/filter/src/hook.min.js +1 -1
  32. package/lib/form/src/form-item.js +1 -0
  33. package/lib/form/src/form-item.min.js +1 -1
  34. package/lib/form/src/render.js +1 -0
  35. package/lib/form/src/render.min.js +1 -1
  36. package/lib/grid/src/grid.js +16 -11
  37. package/lib/grid/src/grid.min.js +1 -1
  38. package/lib/index.umd.js +327 -123
  39. package/lib/index.umd.min.js +1 -1
  40. package/lib/input/src/input.js +21 -18
  41. package/lib/input/src/input.min.js +1 -1
  42. package/lib/locale/lang/en-US.js +2 -0
  43. package/lib/locale/lang/en-US.min.js +1 -1
  44. package/lib/locale/lang/en-US.umd.js +2 -0
  45. package/lib/locale/lang/ja-JP.js +2 -0
  46. package/lib/locale/lang/ja-JP.min.js +1 -1
  47. package/lib/locale/lang/ja-JP.umd.js +2 -0
  48. package/lib/locale/lang/zh-CN.js +2 -0
  49. package/lib/locale/lang/zh-CN.min.js +1 -1
  50. package/lib/locale/lang/zh-CN.umd.js +2 -0
  51. package/lib/locale/lang/zh-HK.min.js +1 -1
  52. package/lib/locale/lang/zh-HK.umd.js +2 -0
  53. package/lib/locale/lang/zh-MO.min.js +1 -1
  54. package/lib/locale/lang/zh-MO.umd.js +2 -0
  55. package/lib/locale/lang/zh-TC.js +2 -0
  56. package/lib/locale/lang/zh-TC.min.js +1 -1
  57. package/lib/locale/lang/zh-TC.umd.js +2 -0
  58. package/lib/locale/lang/zh-TW.min.js +1 -1
  59. package/lib/locale/lang/zh-TW.umd.js +2 -0
  60. package/lib/menu/src/hooks.js +0 -6
  61. package/lib/select/src/select.js +194 -16
  62. package/lib/select/src/select.min.js +1 -1
  63. package/lib/select/style/style.css +17 -3
  64. package/lib/select/style/style.min.css +1 -1
  65. package/lib/style.css +1 -1
  66. package/lib/style.min.css +1 -1
  67. package/lib/table/src/body.js +1 -1
  68. package/lib/table/src/body.min.js +1 -1
  69. package/lib/table/src/cell.js +3 -3
  70. package/lib/table/src/cell.min.js +1 -1
  71. package/lib/table/src/columnInfo.js +1 -1
  72. package/lib/table/src/columnInfo.min.js +1 -1
  73. package/lib/table/src/table.js +66 -51
  74. package/lib/table/src/table.min.js +1 -1
  75. package/lib/table/src/util.js +2 -2
  76. package/lib/table/src/util.min.js +1 -1
  77. package/lib/toolbar/style/style.css +11 -9
  78. package/lib/toolbar/style/style.min.css +1 -1
  79. package/lib/tools/log.js +1 -1
  80. package/lib/tools/log.min.js +1 -1
  81. package/lib/v-x-e-table/index.js +1 -1
  82. package/lib/v-x-e-table/index.min.js +1 -1
  83. package/lib/v-x-e-table/src/conf.js +2 -2
  84. package/lib/v-x-e-table/src/conf.min.js +1 -1
  85. package/package.json +1 -1
  86. package/packages/edit/src/hook.ts +2 -2
  87. package/packages/export/src/export-panel.ts +19 -19
  88. package/packages/export/src/import-panel.ts +9 -9
  89. package/packages/filter/src/hook.ts +7 -7
  90. package/packages/form/src/form-item.ts +1 -1
  91. package/packages/form/src/render.ts +1 -1
  92. package/packages/grid/src/grid.ts +15 -9
  93. package/packages/input/src/input.ts +19 -16
  94. package/packages/locale/lang/en-US.ts +2 -0
  95. package/packages/locale/lang/ja-JP.ts +2 -0
  96. package/packages/locale/lang/zh-CN.ts +2 -0
  97. package/packages/locale/lang/zh-TC.ts +2 -0
  98. package/packages/menu/src/hooks.ts +0 -6
  99. package/packages/select/src/select.ts +146 -16
  100. package/packages/table/src/body.ts +1 -1
  101. package/packages/table/src/cell.ts +3 -3
  102. package/packages/table/src/columnInfo.ts +1 -1
  103. package/packages/table/src/table.ts +61 -49
  104. package/packages/table/src/util.ts +4 -4
  105. package/packages/v-x-e-table/src/conf.ts +2 -2
  106. package/styles/select.scss +24 -5
  107. package/styles/toolbar.scss +9 -5
  108. package/styles/variable.scss +0 -4
  109. package/types/form-item.d.ts +16 -1
  110. package/types/form.d.ts +1 -1
  111. package/types/input.d.ts +4 -0
  112. package/types/select.d.ts +19 -4
  113. package/types/table.d.ts +2 -0
@@ -1 +1 @@
1
- !function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-MO",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhMO=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
1
+ !function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-MO",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhMO=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{search:"蒐索",loadingText:"加載中",emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
@@ -168,6 +168,8 @@
168
168
  operError: '發生錯誤,操作失敗!'
169
169
  },
170
170
  select: {
171
+ search: '蒐索',
172
+ loadingText: '加載中',
171
173
  emptyText: '暫無資料'
172
174
  },
173
175
  pager: {
@@ -155,6 +155,8 @@ var _default = {
155
155
  operError: '發生錯誤,操作失敗!'
156
156
  },
157
157
  select: {
158
+ search: '蒐索',
159
+ loadingText: '加載中',
158
160
  emptyText: '暫無資料'
159
161
  },
160
162
  pager: {
@@ -1 +1 @@
1
- !function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-TC",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhTC=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
1
+ !function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-TC",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhTC=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{search:"蒐索",loadingText:"加載中",emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
@@ -168,6 +168,8 @@
168
168
  operError: '發生錯誤,操作失敗!'
169
169
  },
170
170
  select: {
171
+ search: '蒐索',
172
+ loadingText: '加載中',
171
173
  emptyText: '暫無資料'
172
174
  },
173
175
  pager: {
@@ -1 +1 @@
1
- !function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-TW",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhTW=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
1
+ !function(e,t){"function"==typeof define&&define.amd?define("vxe-table-lang.zh-TW",["exports"],t):"undefined"!=typeof exports?t(exports):(t(t={}),e.vxeTableLangZhTW=t)}("undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:this,function(e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;e.default={vxe:{loading:{text:"加載中"},error:{groupFixed:"如果使用分組表頭,固定列必須按組設定",groupMouseRange:'分组表頭與 "{0}" 不能同時使用,這可能會出現錯誤',groupTag:'分組列頭應該使用 "{0}" 而不是 "{1}",這可能會出現錯誤',scrollErrProp:'啟用虛擬滾動後不支持該參數 "{0}"',scrollXNotGroup:'橫向虛擬滾動不支持分組表頭,需要設定 "scroll-x.enabled=false" 參數,否則可能會導致出現錯誤',errConflicts:'參數 "{0}" 與 "{1}" 有衝突',unableInsert:"無法插入到指定位置,請檢查參數是否正確",useErr:'安裝 "{0}" 模組時發生錯誤,可能順序不正確,依賴的模組需要在Table之前安裝',barUnableLink:"工具欄無法關聯表格",expandContent:"展開行的插槽應該是 “content”,請檢查是否正確",reqModule:'缺少 "{0}" 模組',reqProp:'缺少必要的 "{0}" 參數,可能會導致出現錯誤',emptyProp:'參數 "{0}" 不允許為空',errProp:'不支持的參數 "{0}",可能為 "{1}"',colRepet:'column.{0}="{1}" 重複了,這可能會導致某些功能無法使用',notFunc:'方法 "{0}" 不存在',notSlot:'插槽 "{0}" 不存在',noTree:"樹狀結構不支援 {0}",notProp:'不支持的參數 "{0}"',coverProp:'"{0}" 的參數 "{1}" 被覆蓋,這可能會出現錯誤',delFunc:'方法 "{0}" 已停用,請使用 "{1}"',delProp:'參數 "{0}" 已停用,請使用 "{1}"',delEvent:'事件 "{0}" 已停用,請使用 "{1}"',removeProp:'參數 "{0}" 已停用,不建議使用,這可能會導致出現錯誤',errFormat:'全域的格式化內容應該使用 "VXETable.formats" 定義,掛載 "formatter={0}" 的管道已不建議使用',notType:'不支持的檔案類型 "{0}"',notExp:"該瀏覽器不支持導入/匯出功能",impFields:"導入失敗,請檢查欄位名和數據格式是否正確",treeNotImp:"樹狀表格不支持導入"},renderer:{search:"蒐索",cases:{equal:"等於",unequal:"不等於",gt:"大於",ge:"大於或等於",lt:"小於",le:"小於或等於",begin:"開頭是",notbegin:"開頭不是",endin:"結尾是",notendin:"結尾不是",include:"包含",exclude:"不包含",between:"介於",custom:"自定義篩選",insensitive:"不區分大小寫",isSensitive:"區分大小寫"},combination:{menus:{sortAsc:"昇冪",sortDesc:"降序",fixedColumn:"鎖定列",fixedGroup:"鎖定組",cancelFixed:"取消鎖定",fixedLeft:"鎖定左側",fixedRight:"鎖定右側",clearFilter:"清除篩選",textOption:"文字篩選",numberOption:"數值篩選"},popup:{title:"自定義篩選的管道",currColumnTitle:"當前列:",and:"與",or:"或",describeHtml:"用 ? 代表單個字元<br/>用 * 代表任意多個字元"},empty:"(空白)",notData:"無匹配項"}},pro:{area:{mergeErr:"無法對合併儲存格進行該操作",multiErr:"無法對多重選擇區域進行該操作",extendErr:"如果延伸的區域包含被合併的儲存格,所有合併的儲存格需大小相同",pasteMultiErr:"无法粘贴,需要相同大小的复制的区域和粘贴的区域才能执行此操作"},fnr:{title:"查找和替換",findLabel:"查找",replaceLabel:"替換",findTitle:"查找內容:",replaceTitle:"替換為:",tabs:{find:"查找",replace:"替換"},filter:{re:"規則運算式",whole:"全詞匹配",sensitive:"區分大小寫"},btns:{findNext:"查找下一個",findAll:"查找全部",replace:"替换",replaceAll:"替换全部",cancel:"取消"},header:{seq:"#",cell:"儲存格",value:"值"},empty:"(空值)",reError:"無效的規則運算式",recordCount:"已找到 {0} 個儲存格",notCell:"找不到匹配的儲存格",replaceSuccess:"成功替換 {0} 個儲存格"}},table:{emptyText:"暫無資料",allTitle:"全選/取消",seqTitle:"#",confirmFilter:"篩選",resetFilter:"重置",allFilter:"全部",sortAsc:"按低到高排序",sortDesc:"按高到低排序",filter:"對所選的列啟用篩選",impSuccess:"成功導入 {0} 條記錄",expLoading:"正在匯出中",expSuccess:"匯出成功",expOriginFilename:"匯出_{0}",expSrcFilename:"匯出_從_{0}",customTitle:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},grid:{selectOneRecord:"請至少選擇一條記錄!",deleteSelectRecord:"您確定要刪除所選記錄嗎?",removeSelectRecord:"您確定要移除所選記錄嗎?",dataUnchanged:"資料未更改! ",delSuccess:"成功删除所選記錄!",saveSuccess:"保存成功!",operError:"發生錯誤,操作失敗!"},select:{search:"蒐索",loadingText:"加載中",emptyText:"暫無資料"},pager:{goto:"前往",pagesize:"{0}項/頁",total:"共 {0} 項記錄",pageClassifier:"頁",prevPage:"上一頁",nextPage:"下一頁",prevJump:"向上跳頁",nextJump:"向下跳頁"},alert:{title:"訊息提示"},button:{confirm:"確認",cancel:"取消"},import:{modes:{covering:"覆盖",insert:"新增"},impTitle:"導入數據",impFile:"檔名",impSelect:"選擇檔案",impType:"檔案類型",impOpts:"參數設置",impConfirm:"導入",impCancel:"取消"},export:{types:{csv:"CSV (逗号分隔)(*.csv)",html:"網頁(*.html)",xml:"XML 文件(*.xml)",txt:"文本文件(制表符分隔)(*.txt)",xls:"Excel 97-2003 工作簿(*.xls)",xlsx:"Excel 工作簿(*.xlsx)",pdf:"PDF (*.pdf)"},modes:{current:"當前數據(當前頁的數據)",selected:"選中數據(當前頁選中的數據)",all:"全量數據(包括所有分頁的數據)"},printTitle:"列印數據",expTitle:"匯出數據",expName:"檔名",expNamePlaceholder:"請輸入檔名",expSheetName:"標題",expSheetNamePlaceholder:"請輸入標題",expType:"保存類型",expMode:"選擇數據",expCurrentColumn:"全部欄位",expColumn:"選擇欄位",expOpts:"參數設置",expOptHeader:"表頭",expHeaderTitle:"是否需要表頭",expOptFooter:"表尾",expFooterTitle:"是否需要表尾",expOptColgroup:"分组表头",expColgroupTitle:"如果存在,則支持帶有分組結構的表頭",expOptMerge:"合併",expMergeTitle:"如果存在,則支持帶有合併結構的儲存格",expOptAllExpand:"展開層級",expAllExpandTitle:"如果存在,則支持將帶有樹結構的數據全部展開",expOptUseStyle:"樣式",expUseStyleTitle:"如果存在,則支持帶樣式的儲存格",expOptOriginal:"源數據",expOriginalTitle:"如果為源數據,則支持導入到表格中",expPrint:"列印",expConfirm:"匯出",expCancel:"取消"},modal:{zoomIn:"最大化",zoomOut:"還原",close:"關閉"},form:{folding:"收起",unfolding:"展開"},toolbar:{import:"導入",export:"匯出",print:"列印",refresh:"刷新",zoomIn:"全螢幕",zoomOut:"還原",custom:"列設定",customAll:"全部",customConfirm:"確認",customRestore:"還原"},input:{date:{m1:"01 月",m2:"02 月",m3:"03 月",m4:"04 月",m5:"05 月",m6:"06 月",m7:"07 月",m8:"08 月",m9:"09 月",m10:"10 月",m11:"11 月",m12:"12 月",quarterLabel:"{0} 年",monthLabel:"{0} 年",dayLabel:"{0} 年 {1}",labelFormat:{date:"yyyy-MM-dd",time:"HH:mm:ss",datetime:"yyyy-MM-dd HH:mm:ss",week:"yyyy 年第 WW 周",month:"yyyy-MM",quarter:"yyyy 年第 q 季度",year:"yyyy"},weeks:{w:"周",w0:"周日",w1:"周一",w2:"周二",w3:"周三",w4:"周四",w5:"周五",w6:"周六"},months:{m0:"一月",m1:"二月",m2:"三月",m3:"四月",m4:"五月",m5:"六月",m6:"七月",m7:"八月",m8:"九月",m9:"十月",m10:"十一月",m11:"十二月"},quarters:{q1:"第一季度",q2:"第二季度",q3:"第三季度",q4:"第四季度"}}}}}});
@@ -168,6 +168,8 @@
168
168
  operError: '發生錯誤,操作失敗!'
169
169
  },
170
170
  select: {
171
+ search: '蒐索',
172
+ loadingText: '加載中',
171
173
  emptyText: '暫無資料'
172
174
  },
173
175
  pager: {
@@ -174,12 +174,6 @@ var tableMenuHook = {
174
174
  menuPrivateMethods = {
175
175
  /**
176
176
  * 处理菜单的移动
177
- * @param evnt
178
- * @param ctxMenuStore
179
- * @param property
180
- * @param hasOper
181
- * @param operRest
182
- * @param menuList
183
177
  */
184
178
  moveCtxMenu: function moveCtxMenu(evnt, ctxMenuStore, property, hasOper, operRest, menuList) {
185
179
  var selectItem;
@@ -19,6 +19,8 @@ var _utils = require("../../tools/utils");
19
19
 
20
20
  var _event = require("../../tools/event");
21
21
 
22
+ var _input = _interopRequireDefault(require("../../input/src/input"));
23
+
22
24
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
23
25
 
24
26
  function isOptionVisible(option) {
@@ -58,6 +60,10 @@ var _default2 = (0, _vue.defineComponent)({
58
60
  return _conf.default.select.size || _conf.default.size;
59
61
  }
60
62
  },
63
+ filterable: Boolean,
64
+ filterMethod: Function,
65
+ remote: Boolean,
66
+ remoteMethod: Function,
61
67
  emptyText: String,
62
68
  // 已废弃,被 option-config.keyField 替换
63
69
  optionId: {
@@ -92,16 +98,21 @@ var _default2 = (0, _vue.defineComponent)({
92
98
  fullOptionList: [],
93
99
  visibleGroupList: [],
94
100
  visibleOptionList: [],
101
+ remoteValueList: [],
95
102
  panelIndex: 0,
96
103
  panelStyle: {},
97
104
  panelPlacement: null,
105
+ currentOption: null,
98
106
  currentValue: null,
99
107
  visiblePanel: false,
100
108
  animatVisible: false,
101
- isActivated: false
109
+ isActivated: false,
110
+ searchValue: '',
111
+ searchLoading: false
102
112
  });
103
113
  var refElem = (0, _vue.ref)();
104
114
  var refInput = (0, _vue.ref)();
115
+ var refInpSearch = (0, _vue.ref)();
105
116
  var refOptionWrapper = (0, _vue.ref)();
106
117
  var refOptionPanel = (0, _vue.ref)();
107
118
  var refMaps = {
@@ -192,6 +203,16 @@ var _default2 = (0, _vue.defineComponent)({
192
203
  });
193
204
  };
194
205
 
206
+ var getRemoteSelectLabel = function getRemoteSelectLabel(value) {
207
+ var remoteValueList = reactData.remoteValueList;
208
+ var labelField = computeLabelField.value;
209
+ var remoteItem = remoteValueList.find(function (item) {
210
+ return value === item.key;
211
+ });
212
+ var item = remoteItem ? remoteItem.result : null;
213
+ return _xeUtils.default.toValueString(item ? item[labelField] : value);
214
+ };
215
+
195
216
  var getSelectLabel = function getSelectLabel(value) {
196
217
  var labelField = computeLabelField.value;
197
218
  var item = findOption(value);
@@ -200,11 +221,20 @@ var _default2 = (0, _vue.defineComponent)({
200
221
 
201
222
  var computeSelectLabel = (0, _vue.computed)(function () {
202
223
  var modelValue = props.modelValue,
203
- multiple = props.multiple;
224
+ multiple = props.multiple,
225
+ remote = props.remote;
204
226
  var multiMaxCharNum = computeMultiMaxCharNum.value;
205
227
 
206
228
  if (modelValue && multiple) {
207
- return (_xeUtils.default.isArray(modelValue) ? modelValue : [modelValue]).map(function (val) {
229
+ var vals = _xeUtils.default.isArray(modelValue) ? modelValue : [modelValue];
230
+
231
+ if (remote) {
232
+ return vals.map(function (val) {
233
+ return getRemoteSelectLabel(val);
234
+ }).join(', ');
235
+ }
236
+
237
+ return vals.map(function (val) {
208
238
  var label = getSelectLabel(val);
209
239
 
210
240
  if (multiMaxCharNum > 0 && label.length > multiMaxCharNum) {
@@ -215,6 +245,10 @@ var _default2 = (0, _vue.defineComponent)({
215
245
  }).join(', ');
216
246
  }
217
247
 
248
+ if (remote) {
249
+ return getRemoteSelectLabel(modelValue);
250
+ }
251
+
218
252
  return getSelectLabel(modelValue);
219
253
  });
220
254
 
@@ -233,14 +267,47 @@ var _default2 = (0, _vue.defineComponent)({
233
267
 
234
268
 
235
269
  var refreshOption = function refreshOption() {
270
+ var filterable = props.filterable,
271
+ filterMethod = props.filterMethod;
236
272
  var fullOptionList = reactData.fullOptionList,
237
- fullGroupList = reactData.fullGroupList;
273
+ fullGroupList = reactData.fullGroupList,
274
+ searchValue = reactData.searchValue;
238
275
  var isGroup = computeIsGroup.value;
276
+ var groupLabelField = computeGroupLabelField.value;
277
+ var labelField = computeLabelField.value;
239
278
 
240
279
  if (isGroup) {
241
- reactData.visibleGroupList = fullGroupList.filter(isOptionVisible);
280
+ if (filterable && filterMethod) {
281
+ reactData.visibleGroupList = fullGroupList.filter(function (group) {
282
+ return isOptionVisible(group) && filterMethod({
283
+ group: group,
284
+ option: null,
285
+ searchValue: searchValue
286
+ });
287
+ });
288
+ } else if (filterable) {
289
+ reactData.visibleGroupList = fullGroupList.filter(function (group) {
290
+ return isOptionVisible(group) && (!searchValue || ("" + group[groupLabelField]).indexOf(searchValue) > -1);
291
+ });
292
+ } else {
293
+ reactData.visibleGroupList = fullGroupList.filter(isOptionVisible);
294
+ }
242
295
  } else {
243
- reactData.visibleOptionList = fullOptionList.filter(isOptionVisible);
296
+ if (filterable && filterMethod) {
297
+ reactData.visibleOptionList = fullOptionList.filter(function (option) {
298
+ return isOptionVisible(option) && filterMethod({
299
+ group: null,
300
+ option: option,
301
+ searchValue: searchValue
302
+ });
303
+ });
304
+ } else if (filterable) {
305
+ reactData.visibleOptionList = fullOptionList.filter(function (option) {
306
+ return isOptionVisible(option) && (!searchValue || ("" + option[labelField]).indexOf(searchValue) > -1);
307
+ });
308
+ } else {
309
+ reactData.visibleOptionList = fullOptionList.filter(isOptionVisible);
310
+ }
244
311
  }
245
312
 
246
313
  return (0, _vue.nextTick)();
@@ -277,6 +344,7 @@ var _default2 = (0, _vue.defineComponent)({
277
344
  var valueField = computeValueField.value;
278
345
 
279
346
  if (option) {
347
+ reactData.currentOption = option;
280
348
  reactData.currentValue = option[valueField];
281
349
  }
282
350
  };
@@ -401,7 +469,8 @@ var _default2 = (0, _vue.defineComponent)({
401
469
 
402
470
  var showOptionPanel = function showOptionPanel() {
403
471
  var loading = props.loading,
404
- disabled = props.disabled;
472
+ disabled = props.disabled,
473
+ filterable = props.filterable;
405
474
 
406
475
  if (!loading && !disabled) {
407
476
  clearTimeout(hidePanelTimeout);
@@ -412,6 +481,11 @@ var _default2 = (0, _vue.defineComponent)({
412
481
 
413
482
  reactData.isActivated = true;
414
483
  reactData.animatVisible = true;
484
+
485
+ if (filterable) {
486
+ refreshOption();
487
+ }
488
+
415
489
  setTimeout(function () {
416
490
  var modelValue = props.modelValue,
417
491
  multiple = props.multiple;
@@ -422,6 +496,8 @@ var _default2 = (0, _vue.defineComponent)({
422
496
  setCurrentOption(currOption);
423
497
  scrollToOption(currOption);
424
498
  }
499
+
500
+ handleFocusSearch();
425
501
  }, 10);
426
502
  updateZindex();
427
503
  updatePlacement();
@@ -429,6 +505,8 @@ var _default2 = (0, _vue.defineComponent)({
429
505
  };
430
506
 
431
507
  var hideOptionPanel = function hideOptionPanel() {
508
+ reactData.searchValue = '';
509
+ reactData.searchLoading = false;
432
510
  reactData.visiblePanel = false;
433
511
  hidePanelTimeout = window.setTimeout(function () {
434
512
  reactData.animatVisible = false;
@@ -449,6 +527,7 @@ var _default2 = (0, _vue.defineComponent)({
449
527
  };
450
528
 
451
529
  var clearValueEvent = function clearValueEvent(evnt, selectValue) {
530
+ reactData.remoteValueList = [];
452
531
  changeEvent(evnt, selectValue);
453
532
  selectMethods.dispatchEvent('clear', {
454
533
  value: selectValue
@@ -460,9 +539,10 @@ var _default2 = (0, _vue.defineComponent)({
460
539
  hideOptionPanel();
461
540
  };
462
541
 
463
- var changeOptionEvent = function changeOptionEvent(evnt, selectValue) {
542
+ var changeOptionEvent = function changeOptionEvent(evnt, selectValue, option) {
464
543
  var modelValue = props.modelValue,
465
544
  multiple = props.multiple;
545
+ var remoteValueList = reactData.remoteValueList;
466
546
 
467
547
  if (multiple) {
468
548
  var multipleValue = void 0;
@@ -479,8 +559,25 @@ var _default2 = (0, _vue.defineComponent)({
479
559
  multipleValue = [selectValue];
480
560
  }
481
561
 
562
+ var remoteItem = remoteValueList.find(function (item) {
563
+ return item.key === selectValue;
564
+ });
565
+
566
+ if (remoteItem) {
567
+ remoteItem.result = option;
568
+ } else {
569
+ remoteValueList.push({
570
+ key: selectValue,
571
+ result: option
572
+ });
573
+ }
574
+
482
575
  changeEvent(evnt, multipleValue);
483
576
  } else {
577
+ reactData.remoteValueList = [{
578
+ key: selectValue,
579
+ result: option
580
+ }];
484
581
  changeEvent(evnt, selectValue);
485
582
  hideOptionPanel();
486
583
  }
@@ -619,7 +716,8 @@ var _default2 = (0, _vue.defineComponent)({
619
716
  var clearable = props.clearable,
620
717
  disabled = props.disabled;
621
718
  var visiblePanel = reactData.visiblePanel,
622
- currentValue = reactData.currentValue;
719
+ currentValue = reactData.currentValue,
720
+ currentOption = reactData.currentOption;
623
721
 
624
722
  if (!disabled) {
625
723
  var isTab = (0, _event.hasEventKey)(evnt, _event.EVENT_KEYS.TAB);
@@ -640,7 +738,7 @@ var _default2 = (0, _vue.defineComponent)({
640
738
  } else if (isEnter) {
641
739
  evnt.preventDefault();
642
740
  evnt.stopPropagation();
643
- changeOptionEvent(evnt, currentValue);
741
+ changeOptionEvent(evnt, currentValue, currentOption);
644
742
  } else if (isUpArrow || isDwArrow) {
645
743
  evnt.preventDefault();
646
744
 
@@ -674,6 +772,18 @@ var _default2 = (0, _vue.defineComponent)({
674
772
  hideOptionPanel();
675
773
  };
676
774
 
775
+ var handleFocusSearch = function handleFocusSearch() {
776
+ if (props.filterable) {
777
+ (0, _vue.nextTick)(function () {
778
+ var inpSearch = refInpSearch.value;
779
+
780
+ if (inpSearch) {
781
+ inpSearch.focus();
782
+ }
783
+ });
784
+ }
785
+ };
786
+
677
787
  var focusEvent = function focusEvent() {
678
788
  if (!props.disabled) {
679
789
  reactData.isActivated = true;
@@ -684,6 +794,48 @@ var _default2 = (0, _vue.defineComponent)({
684
794
  reactData.isActivated = false;
685
795
  };
686
796
 
797
+ var modelSearchEvent = function modelSearchEvent(value) {
798
+ reactData.searchValue = value;
799
+ };
800
+
801
+ var focusSearchEvent = function focusSearchEvent() {
802
+ reactData.isActivated = true;
803
+ };
804
+
805
+ var keydownSearchEvent = function keydownSearchEvent(params) {
806
+ var $event = params.$event;
807
+ var isEnter = (0, _event.hasEventKey)($event, _event.EVENT_KEYS.ENTER);
808
+
809
+ if (isEnter) {
810
+ $event.preventDefault();
811
+ $event.stopPropagation();
812
+ }
813
+ };
814
+
815
+ var triggerSearchEvent = _xeUtils.default.debounce(function () {
816
+ var remote = props.remote,
817
+ remoteMethod = props.remoteMethod;
818
+ var searchValue = reactData.searchValue;
819
+
820
+ if (remote && remoteMethod) {
821
+ reactData.searchLoading = true;
822
+ Promise.resolve(remoteMethod({
823
+ searchValue: searchValue
824
+ })).then(function () {
825
+ return (0, _vue.nextTick)();
826
+ }).catch(function () {
827
+ return (0, _vue.nextTick)();
828
+ }).finally(function () {
829
+ reactData.searchLoading = false;
830
+ refreshOption();
831
+ });
832
+ } else {
833
+ refreshOption();
834
+ }
835
+ }, 350, {
836
+ trailing: true
837
+ });
838
+
687
839
  var togglePanelEvent = function togglePanelEvent(params) {
688
840
  var $event = params.$event;
689
841
  $event.preventDefault();
@@ -735,7 +887,7 @@ var _default2 = (0, _vue.defineComponent)({
735
887
  },
736
888
  onClick: function onClick(evnt) {
737
889
  if (!isDisabled) {
738
- changeOptionEvent(evnt, optionValue);
890
+ changeOptionEvent(evnt, optionValue, option);
739
891
  }
740
892
  },
741
893
  onMouseenter: function onMouseenter() {
@@ -786,9 +938,20 @@ var _default2 = (0, _vue.defineComponent)({
786
938
 
787
939
  var renderOpts = function renderOpts() {
788
940
  var visibleGroupList = reactData.visibleGroupList,
789
- visibleOptionList = reactData.visibleOptionList;
941
+ visibleOptionList = reactData.visibleOptionList,
942
+ searchLoading = reactData.searchLoading;
790
943
  var isGroup = computeIsGroup.value;
791
944
 
945
+ if (searchLoading) {
946
+ return [(0, _vue.h)('div', {
947
+ class: 'vxe-select--search-loading'
948
+ }, [(0, _vue.h)('i', {
949
+ class: ['vxe-select--search-icon', _conf.default.icon.SELECT_LOADED]
950
+ }), (0, _vue.h)('span', {
951
+ class: 'vxe-select--search-text'
952
+ }, _conf.default.i18n('vxe.select.loadingText'))])];
953
+ }
954
+
792
955
  if (isGroup) {
793
956
  if (visibleGroupList.length) {
794
957
  return renderOptgroup();
@@ -919,7 +1082,8 @@ var _default2 = (0, _vue.defineComponent)({
919
1082
  var className = props.className,
920
1083
  transfer = props.transfer,
921
1084
  disabled = props.disabled,
922
- loading = props.loading;
1085
+ loading = props.loading,
1086
+ filterable = props.filterable;
923
1087
  var inited = reactData.inited,
924
1088
  isActivated = reactData.isActivated,
925
1089
  visiblePanel = reactData.visiblePanel;
@@ -930,11 +1094,11 @@ var _default2 = (0, _vue.defineComponent)({
930
1094
  ref: refElem,
931
1095
  class: ['vxe-select', className ? _xeUtils.default.isFunction(className) ? className({
932
1096
  $select: $xeselect
933
- }) : className : '', (_a = {}, _a["size--" + vSize] = vSize, _a['is--visivle'] = visiblePanel, _a['is--disabled'] = disabled, _a['is--loading'] = loading, _a['is--active'] = isActivated, _a)]
1097
+ }) : className : '', (_a = {}, _a["size--" + vSize] = vSize, _a['is--visivle'] = visiblePanel, _a['is--disabled'] = disabled, _a['is--filter'] = filterable, _a['is--loading'] = loading, _a['is--active'] = isActivated, _a)]
934
1098
  }, [(0, _vue.h)('div', {
935
1099
  class: 'vxe-select-slots',
936
1100
  ref: 'hideOption'
937
- }, slots.default ? slots.default({}) : []), (0, _vue.h)((0, _vue.resolveComponent)('vxe-input'), {
1101
+ }, slots.default ? slots.default({}) : []), (0, _vue.h)(_input.default, {
938
1102
  ref: refInput,
939
1103
  clearable: props.clearable,
940
1104
  placeholder: props.placeholder,
@@ -961,7 +1125,21 @@ var _default2 = (0, _vue.defineComponent)({
961
1125
  class: ['vxe-table--ignore-clear vxe-select--panel', (_b = {}, _b["size--" + vSize] = vSize, _b['is--transfer'] = transfer, _b['animat--leave'] = !loading && reactData.animatVisible, _b['animat--enter'] = !loading && visiblePanel, _b)],
962
1126
  placement: reactData.panelPlacement,
963
1127
  style: reactData.panelStyle
964
- }, inited ? [(0, _vue.h)('div', {
1128
+ }, inited ? [filterable ? (0, _vue.h)('div', {
1129
+ class: 'vxe-select-filter--wrapper'
1130
+ }, [(0, _vue.h)(_input.default, {
1131
+ ref: refInpSearch,
1132
+ class: 'vxe-select-filter--input',
1133
+ modelValue: reactData.searchValue,
1134
+ clearable: true,
1135
+ placeholder: _conf.default.i18n('vxe.select.search'),
1136
+ prefixIcon: _conf.default.icon.INPUT_SEARCH,
1137
+ 'onUpdate:modelValue': modelSearchEvent,
1138
+ onFocus: focusSearchEvent,
1139
+ onKeydown: keydownSearchEvent,
1140
+ onChange: triggerSearchEvent,
1141
+ onSearch: triggerSearchEvent
1142
+ })]) : (0, _vue.createCommentVNode)(), (0, _vue.h)('div', {
965
1143
  ref: refOptionWrapper,
966
1144
  class: 'vxe-select-option--wrapper'
967
1145
  }, renderOpts())] : [])])]);