vxe-table 3.8.24 → 3.9.0-rc.0
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.
- package/README.md +47 -77
- package/es/colgroup/index.js +17 -0
- package/es/column/index.js +17 -0
- package/es/components.js +33 -0
- package/es/grid/index.js +13 -0
- package/es/grid/src/grid.js +1100 -0
- package/es/grid/style.css +61 -0
- package/es/grid/style.min.css +1 -0
- package/es/iconfont.1725953896189.ttf +0 -0
- package/es/iconfont.1725953896189.woff +0 -0
- package/es/iconfont.1725953896189.woff2 +0 -0
- package/es/index.esm.js +3 -0
- package/es/locale/lang/en-US.d.ts +2 -0
- package/es/locale/lang/en-US.js +673 -0
- package/es/locale/lang/es-ES.d.ts +2 -0
- package/es/locale/lang/es-ES.js +673 -0
- package/es/locale/lang/hu-HU.js +671 -0
- package/es/locale/lang/ja-JP.d.ts +2 -0
- package/es/locale/lang/ja-JP.js +673 -0
- package/es/locale/lang/ko-KR.js +673 -0
- package/es/locale/lang/pt-BR.d.ts +2 -0
- package/es/locale/lang/pt-BR.js +673 -0
- package/es/locale/lang/ru-RU.js +673 -0
- package/es/locale/lang/vi-VN.js +673 -0
- package/es/locale/lang/zh-CN.d.ts +2 -0
- package/es/locale/lang/zh-CN.js +673 -0
- package/es/locale/lang/zh-HK.d.ts +2 -0
- package/es/locale/lang/zh-HK.js +2 -0
- package/es/locale/lang/zh-MO.d.ts +2 -0
- package/es/locale/lang/zh-MO.js +2 -0
- package/es/locale/lang/zh-TC.d.ts +2 -0
- package/es/locale/lang/zh-TC.js +673 -0
- package/es/locale/lang/zh-TW.d.ts +2 -0
- package/es/locale/lang/zh-TW.js +2 -0
- package/es/style.css +1 -0
- package/es/style.min.css +1 -0
- package/es/table/index.js +14 -0
- package/es/table/module/custom/mixin.js +87 -0
- package/es/table/module/custom/panel.js +974 -0
- package/es/table/module/edit/mixin.js +810 -0
- package/es/table/module/export/export-panel.js +448 -0
- package/es/table/module/export/import-panel.js +185 -0
- package/es/table/module/export/mixin.js +1463 -0
- package/es/table/module/export/util.js +20 -0
- package/es/table/module/filter/mixin.js +276 -0
- package/es/table/module/filter/panel.js +219 -0
- package/es/table/module/keyboard/mixin.js +376 -0
- package/es/table/module/menu/mixin.js +282 -0
- package/es/table/module/menu/panel.js +138 -0
- package/es/table/module/validator/mixin.js +487 -0
- package/es/table/render/index.js +796 -0
- package/es/table/src/body.js +771 -0
- package/es/table/src/cell.js +846 -0
- package/es/table/src/column.js +139 -0
- package/es/table/src/columnInfo.js +158 -0
- package/es/table/src/footer.js +279 -0
- package/es/table/src/group.js +11 -0
- package/es/table/src/header.js +302 -0
- package/es/table/src/methods.js +5640 -0
- package/es/table/src/props.js +170 -0
- package/es/table/src/table.js +1132 -0
- package/es/table/src/util.js +384 -0
- package/es/table/style.css +2805 -0
- package/es/table/style.min.css +1 -0
- package/es/toolbar/index.js +13 -0
- package/es/toolbar/src/toolbar.js +675 -0
- package/es/toolbar/style.css +91 -0
- package/es/toolbar/style.min.css +1 -0
- package/es/ui/index.js +377 -0
- package/es/ui/src/comp.js +1 -0
- package/es/ui/src/dom.js +141 -0
- package/es/ui/src/log.js +5 -0
- package/es/ui/src/utils.js +44 -0
- package/es/ui/src/vn.js +10 -0
- package/es/v-x-e-table/index.js +3 -0
- package/es/vxe-colgroup/index.js +3 -0
- package/es/vxe-column/index.js +3 -0
- package/es/vxe-grid/index.js +3 -0
- package/es/vxe-grid/style.css +61 -0
- package/es/vxe-grid/style.min.css +1 -0
- package/es/vxe-table/index.js +3 -0
- package/es/vxe-table/style.css +2805 -0
- package/es/vxe-table/style.min.css +1 -0
- package/es/vxe-toolbar/index.js +3 -0
- package/es/vxe-toolbar/style.css +91 -0
- package/es/vxe-toolbar/style.min.css +1 -0
- package/es/vxe-ui/index.js +3 -0
- package/es/vxe-v-x-e-table/index.js +3 -0
- package/helper/vetur/attributes.json +1 -1
- package/helper/vetur/tags.json +1 -1
- package/lib/colgroup/index.js +12 -7
- package/lib/colgroup/index.min.js +1 -1
- package/lib/colgroup/style/style.css +0 -26
- package/lib/column/index.js +12 -7
- package/lib/column/index.min.js +1 -1
- package/lib/column/style/style.css +0 -26
- package/lib/components.js +101 -0
- package/lib/components.min.js +1 -0
- package/lib/grid/index.js +9 -8
- package/lib/grid/index.min.js +1 -1
- package/lib/grid/src/grid.js +114 -121
- package/lib/grid/src/grid.min.js +1 -1
- package/lib/grid/style/style.css +6 -32
- package/lib/grid/style/style.min.css +1 -1
- package/lib/iconfont.1725953896189.ttf +0 -0
- package/lib/iconfont.1725953896189.woff +0 -0
- package/lib/iconfont.1725953896189.woff2 +0 -0
- package/lib/index.common.js +5 -5
- package/lib/index.umd.js +19896 -30313
- package/lib/index.umd.min.js +1 -1
- package/lib/locale/lang/en-US.d.ts +2 -8
- package/lib/locale/lang/en-US.js +11 -6
- package/lib/locale/lang/en-US.min.js +1 -1
- package/lib/locale/lang/en-US.umd.js +11 -6
- package/lib/locale/lang/es-ES.d.ts +2 -8
- package/lib/locale/lang/es-ES.js +11 -6
- package/lib/locale/lang/es-ES.min.js +1 -1
- package/lib/locale/lang/es-ES.umd.js +11 -6
- package/lib/locale/lang/hu-HU.js +677 -0
- package/lib/locale/lang/hu-HU.min.js +1 -0
- package/lib/locale/lang/ja-JP.d.ts +2 -8
- package/lib/locale/lang/ja-JP.js +11 -6
- package/lib/locale/lang/ja-JP.min.js +1 -1
- package/lib/locale/lang/ja-JP.umd.js +11 -6
- package/lib/locale/lang/ko-KR.js +679 -0
- package/lib/locale/lang/ko-KR.min.js +1 -0
- package/lib/locale/lang/pt-BR.d.ts +2 -8
- package/lib/locale/lang/pt-BR.js +11 -6
- package/lib/locale/lang/pt-BR.min.js +1 -1
- package/lib/locale/lang/pt-BR.umd.js +11 -6
- package/lib/locale/lang/ru-RU.js +679 -0
- package/lib/locale/lang/ru-RU.min.js +1 -0
- package/lib/locale/lang/vi-VN.js +679 -0
- package/lib/locale/lang/vi-VN.min.js +1 -0
- package/lib/locale/lang/zh-CN.d.ts +2 -8
- package/lib/locale/lang/zh-CN.js +11 -6
- package/lib/locale/lang/zh-CN.min.js +1 -1
- package/lib/locale/lang/zh-CN.umd.js +11 -6
- package/lib/locale/lang/zh-HK.d.ts +2 -8
- package/lib/locale/lang/zh-HK.js +1 -1
- package/lib/locale/lang/zh-HK.min.js +1 -1
- package/lib/locale/lang/zh-HK.umd.js +11 -6
- package/lib/locale/lang/zh-MO.d.ts +2 -8
- package/lib/locale/lang/zh-MO.js +1 -1
- package/lib/locale/lang/zh-MO.min.js +1 -1
- package/lib/locale/lang/zh-MO.umd.js +11 -6
- package/lib/locale/lang/zh-TC.d.ts +2 -8
- package/lib/locale/lang/zh-TC.js +11 -6
- package/lib/locale/lang/zh-TC.min.js +1 -1
- package/lib/locale/lang/zh-TC.umd.js +11 -6
- package/lib/locale/lang/zh-TW.d.ts +2 -8
- package/lib/locale/lang/zh-TW.js +1 -1
- package/lib/locale/lang/zh-TW.min.js +1 -1
- package/lib/locale/lang/zh-TW.umd.js +11 -6
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/table/index.js +10 -31
- package/lib/table/index.min.js +1 -1
- package/lib/table/module/custom/mixin.js +117 -0
- package/lib/table/module/custom/mixin.min.js +1 -0
- package/lib/table/module/custom/panel.js +910 -0
- package/lib/table/module/custom/panel.min.js +1 -0
- package/lib/table/module/edit/mixin.js +975 -0
- package/lib/table/module/edit/mixin.min.js +1 -0
- package/lib/table/module/export/export-panel.js +412 -0
- package/lib/table/module/export/export-panel.min.js +1 -0
- package/lib/table/module/export/import-panel.js +177 -0
- package/lib/table/module/export/import-panel.min.js +1 -0
- package/lib/table/module/export/mixin.js +1735 -0
- package/lib/table/module/export/mixin.min.js +1 -0
- package/lib/table/module/export/util.js +18 -0
- package/lib/table/module/export/util.min.js +1 -0
- package/lib/table/module/filter/mixin.js +329 -0
- package/lib/table/module/filter/mixin.min.js +1 -0
- package/lib/table/module/filter/panel.js +213 -0
- package/lib/table/module/filter/panel.min.js +1 -0
- package/lib/table/module/keyboard/mixin.js +410 -0
- package/lib/table/module/keyboard/mixin.min.js +1 -0
- package/lib/table/module/menu/mixin.js +329 -0
- package/lib/table/module/menu/mixin.min.js +1 -0
- package/lib/table/module/menu/panel.js +117 -0
- package/lib/table/module/menu/panel.min.js +1 -0
- package/lib/table/module/validator/mixin.js +550 -0
- package/lib/table/module/validator/mixin.min.js +1 -0
- package/lib/table/render/index.js +895 -0
- package/lib/table/render/index.min.js +1 -0
- package/lib/table/src/body.js +37 -44
- package/lib/table/src/body.min.js +1 -1
- package/lib/table/src/cell.js +74 -80
- package/lib/table/src/cell.min.js +1 -1
- package/lib/table/src/column.js +5 -5
- package/lib/table/src/column.min.js +1 -1
- package/lib/table/src/columnInfo.js +13 -21
- package/lib/table/src/columnInfo.min.js +1 -1
- package/lib/table/src/footer.js +14 -14
- package/lib/table/src/footer.min.js +1 -1
- package/lib/table/src/group.js +1 -1
- package/lib/table/src/group.min.js +1 -1
- package/lib/table/src/header.js +19 -23
- package/lib/table/src/header.min.js +1 -1
- package/lib/table/src/methods.js +600 -591
- package/lib/table/src/methods.min.js +1 -1
- package/lib/table/src/props.js +296 -0
- package/lib/table/src/props.min.js +1 -0
- package/lib/table/src/table.js +150 -419
- package/lib/table/src/table.min.js +1 -1
- package/lib/table/src/util.js +73 -23
- package/lib/table/src/util.min.js +1 -1
- package/lib/table/style/style.css +1715 -362
- package/lib/table/style/style.min.css +1 -1
- package/lib/toolbar/index.js +9 -6
- package/lib/toolbar/index.min.js +1 -1
- package/lib/toolbar/src/toolbar.js +579 -413
- package/lib/toolbar/src/toolbar.min.js +1 -1
- package/lib/toolbar/style/style.css +11 -37
- package/lib/toolbar/style/style.min.css +1 -1
- package/lib/ui/index.js +382 -16
- package/lib/ui/index.min.js +1 -1
- package/lib/ui/src/comp.js +9 -0
- package/lib/ui/src/comp.min.js +1 -0
- package/lib/ui/src/dom.js +184 -0
- package/lib/ui/src/dom.min.js +1 -0
- package/lib/ui/src/log.js +11 -0
- package/lib/ui/src/log.min.js +1 -0
- package/lib/ui/src/utils.js +63 -0
- package/lib/ui/src/utils.min.js +1 -0
- package/lib/ui/src/vn.js +18 -0
- package/lib/ui/src/vn.min.js +1 -0
- package/lib/v-x-e-table/index.js +10 -283
- package/lib/v-x-e-table/index.min.js +1 -1
- package/lib/v-x-e-table/style/style.css +0 -1630
- package/lib/v-x-e-table/style/style.min.css +0 -1
- package/lib/vxe-colgroup/index.min.js +1 -1
- package/lib/vxe-colgroup/style/style.css +0 -26
- package/lib/vxe-column/index.min.js +1 -1
- package/lib/vxe-column/style/style.css +0 -26
- package/lib/vxe-grid/index.min.js +1 -1
- package/lib/vxe-grid/style/style.css +6 -32
- package/lib/vxe-grid/style/style.min.css +1 -1
- package/lib/vxe-table/index.min.js +1 -1
- package/lib/vxe-table/style/style.css +1715 -362
- package/lib/vxe-table/style/style.min.css +1 -1
- package/lib/vxe-toolbar/index.min.js +1 -1
- package/lib/vxe-toolbar/style/style.css +11 -37
- package/lib/vxe-toolbar/style/style.min.css +1 -1
- package/lib/vxe-ui/index.js +23 -0
- package/lib/vxe-ui/index.min.js +1 -0
- package/lib/vxe-v-x-e-table/index.js +23 -0
- package/lib/vxe-v-x-e-table/index.min.js +1 -0
- package/lib/vxe-v-x-e-table/style/style.css +0 -0
- package/lib/vxe-v-x-e-table/style/style.min.css +0 -0
- package/package.json +18 -25
- package/packages/colgroup/index.ts +22 -0
- package/packages/column/index.ts +22 -0
- package/packages/components.ts +43 -0
- package/packages/grid/index.ts +18 -0
- package/packages/grid/src/grid.ts +1129 -0
- package/packages/index.ts +4 -0
- package/packages/locale/lang/en-US.ts +675 -0
- package/packages/locale/lang/es-ES.ts +675 -0
- package/packages/locale/lang/hu-HU.ts +673 -0
- package/packages/locale/lang/ja-JP.ts +675 -0
- package/packages/locale/lang/ko-KR.ts +675 -0
- package/packages/locale/lang/pt-BR.ts +675 -0
- package/packages/locale/lang/ru-RU.ts +675 -0
- package/packages/locale/lang/vi-VN.ts +675 -0
- package/packages/locale/lang/zh-CN.ts +675 -0
- package/packages/locale/lang/zh-TC.ts +675 -0
- package/packages/table/index.ts +19 -0
- package/packages/table/module/custom/mixin.ts +87 -0
- package/packages/table/module/custom/panel.ts +984 -0
- package/packages/table/module/edit/mixin.ts +797 -0
- package/packages/table/module/export/export-panel.ts +452 -0
- package/packages/table/module/export/import-panel.ts +188 -0
- package/packages/table/module/export/mixin.ts +1504 -0
- package/packages/table/module/export/util.ts +24 -0
- package/packages/table/module/filter/mixin.ts +273 -0
- package/packages/table/module/filter/panel.ts +220 -0
- package/packages/table/module/keyboard/mixin.ts +355 -0
- package/packages/table/module/menu/mixin.ts +272 -0
- package/packages/table/module/menu/panel.ts +141 -0
- package/packages/table/module/validator/mixin.ts +475 -0
- package/packages/table/render/index.ts +863 -0
- package/packages/table/src/body.ts +842 -0
- package/packages/table/src/cell.ts +872 -0
- package/packages/table/src/column.ts +141 -0
- package/packages/table/src/columnInfo.ts +169 -0
- package/packages/table/src/footer.ts +300 -0
- package/packages/table/src/header.ts +304 -0
- package/packages/table/src/methods.ts +5559 -0
- package/packages/table/src/props.ts +173 -0
- package/packages/table/src/table.ts +1186 -0
- package/packages/table/src/util.ts +410 -0
- package/packages/toolbar/index.ts +18 -0
- package/packages/toolbar/src/toolbar.ts +733 -0
- package/packages/ui/index.ts +397 -0
- package/packages/ui/src/comp.ts +3 -0
- package/packages/ui/src/dom.ts +163 -0
- package/packages/ui/src/log.ts +8 -0
- package/packages/ui/src/utils.ts +54 -0
- package/packages/ui/src/vn.ts +14 -0
- package/packages/v-x-e-table/index.ts +4 -0
- package/styles/all.scss +6 -32
- package/styles/base.scss +16 -0
- package/styles/components/colgroup.scss +0 -0
- package/styles/components/column.scss +0 -0
- package/styles/components/grid.scss +62 -0
- package/styles/components/icon.scss +187 -0
- package/styles/components/old-icon.scss +717 -0
- package/styles/components/table-module/all.scss +7 -0
- package/styles/components/table-module/custom.scss +381 -0
- package/styles/components/table-module/edit.scss +0 -0
- package/styles/components/table-module/export.scss +127 -0
- package/styles/components/table-module/filter.scss +112 -0
- package/styles/components/table-module/keyboard.scss +0 -0
- package/styles/components/table-module/menu.scss +86 -0
- package/styles/components/table-module/validator.scss +0 -0
- package/styles/components/table.scss +1492 -0
- package/styles/components/toolbar.scss +102 -0
- package/styles/components/ui.scss +0 -0
- package/styles/components/v-x-e-table.scss +0 -0
- package/styles/cssvar.scss +3 -2
- package/styles/default.scss +2 -0
- package/styles/helpers/mixin.scss +16 -13
- package/styles/icon/iconfont.ttf +0 -0
- package/styles/icon/iconfont.woff +0 -0
- package/styles/icon/iconfont.woff2 +0 -0
- package/styles/modules.scss +6 -33
- package/styles/theme/base.scss +89 -0
- package/styles/theme/dark.scss +41 -0
- package/styles/theme/light.scss +39 -0
- package/styles/variable.scss +2 -275
- package/types/all.d.ts +45 -70
- package/types/index.d.ts +2 -7
- package/lib/all.js +0 -459
- package/lib/all.min.js +0 -1
- package/lib/button/index.d.ts +0 -4
- package/lib/button/index.js +0 -17
- package/lib/button/index.min.js +0 -1
- package/lib/button/src/button.js +0 -512
- package/lib/button/src/button.min.js +0 -1
- package/lib/button/src/group.js +0 -71
- package/lib/button/src/group.min.js +0 -1
- package/lib/button/style/style.css +0 -571
- package/lib/button/style/style.min.css +0 -1
- package/lib/button-group/index.d.ts +0 -4
- package/lib/button-group/index.js +0 -17
- package/lib/button-group/index.min.js +0 -1
- package/lib/button-group/style/style.css +0 -29
- package/lib/button-group/style/style.min.css +0 -1
- package/lib/checkbox/index.d.ts +0 -4
- package/lib/checkbox/index.js +0 -17
- package/lib/checkbox/index.min.js +0 -1
- package/lib/checkbox/src/checkbox.js +0 -138
- package/lib/checkbox/src/checkbox.min.js +0 -1
- package/lib/checkbox/src/group.js +0 -105
- package/lib/checkbox/src/group.min.js +0 -1
- package/lib/checkbox/style/index.js +0 -1
- package/lib/checkbox/style/style.css +0 -292
- package/lib/checkbox/style/style.min.css +0 -1
- package/lib/checkbox-group/index.d.ts +0 -4
- package/lib/checkbox-group/index.js +0 -17
- package/lib/checkbox-group/index.min.js +0 -1
- package/lib/checkbox-group/style/style.css +0 -26
- package/lib/colgroup/index.d.ts +0 -4
- package/lib/column/index.d.ts +0 -4
- package/lib/custom/index.d.ts +0 -4
- package/lib/custom/index.js +0 -21
- package/lib/custom/index.min.js +0 -1
- package/lib/custom/src/mixin.js +0 -117
- package/lib/custom/src/mixin.min.js +0 -1
- package/lib/custom/src/panel.js +0 -876
- package/lib/custom/src/panel.min.js +0 -1
- package/lib/custom/style/index.js +0 -1
- package/lib/custom/style/style.css +0 -629
- package/lib/custom/style/style.min.css +0 -1
- package/lib/edit/index.d.ts +0 -4
- package/lib/edit/index.js +0 -18
- package/lib/edit/index.min.js +0 -1
- package/lib/edit/src/mixin.js +0 -979
- package/lib/edit/src/mixin.min.js +0 -1
- package/lib/edit/style/index.js +0 -1
- package/lib/edit/style/style.css +0 -26
- package/lib/export/index.d.ts +0 -4
- package/lib/export/index.js +0 -59
- package/lib/export/index.min.js +0 -1
- package/lib/export/src/export-panel.js +0 -413
- package/lib/export/src/export-panel.min.js +0 -1
- package/lib/export/src/import-panel.js +0 -176
- package/lib/export/src/import-panel.min.js +0 -1
- package/lib/export/src/mixin.js +0 -1762
- package/lib/export/src/mixin.min.js +0 -1
- package/lib/export/style/index.js +0 -1
- package/lib/export/style/style.css +0 -219
- package/lib/export/style/style.min.css +0 -1
- package/lib/filter/index.d.ts +0 -4
- package/lib/filter/index.js +0 -21
- package/lib/filter/index.min.js +0 -1
- package/lib/filter/src/mixin.js +0 -328
- package/lib/filter/src/mixin.min.js +0 -1
- package/lib/filter/src/panel.js +0 -215
- package/lib/filter/src/panel.min.js +0 -1
- package/lib/filter/style/index.js +0 -1
- package/lib/filter/style/style.css +0 -166
- package/lib/filter/style/style.min.css +0 -1
- package/lib/form/index.d.ts +0 -4
- package/lib/form/index.js +0 -17
- package/lib/form/index.min.js +0 -1
- package/lib/form/src/form-config-item.js +0 -194
- package/lib/form/src/form-config-item.min.js +0 -1
- package/lib/form/src/form-gather.js +0 -36
- package/lib/form/src/form-gather.min.js +0 -1
- package/lib/form/src/form-item.js +0 -259
- package/lib/form/src/form-item.min.js +0 -1
- package/lib/form/src/form.js +0 -764
- package/lib/form/src/form.min.js +0 -1
- package/lib/form/src/render.js +0 -81
- package/lib/form/src/render.min.js +0 -1
- package/lib/form/src/util.js +0 -148
- package/lib/form/src/util.min.js +0 -1
- package/lib/form/style/index.js +0 -1
- package/lib/form/style/style.css +0 -444
- package/lib/form/style/style.min.css +0 -1
- package/lib/form-gather/index.d.ts +0 -4
- package/lib/form-gather/index.js +0 -17
- package/lib/form-gather/index.min.js +0 -1
- package/lib/form-gather/style/index.js +0 -1
- package/lib/form-gather/style/style.css +0 -26
- package/lib/form-item/index.d.ts +0 -4
- package/lib/form-item/index.js +0 -17
- package/lib/form-item/index.min.js +0 -1
- package/lib/form-item/style/index.js +0 -1
- package/lib/form-item/style/style.css +0 -26
- package/lib/grid/index.d.ts +0 -4
- package/lib/icon/index.d.ts +0 -4
- package/lib/icon/index.js +0 -17
- package/lib/icon/index.min.js +0 -1
- package/lib/icon/src/icon.js +0 -32
- package/lib/icon/src/icon.min.js +0 -1
- package/lib/icon/style/iconfont.1725243866550.ttf +0 -0
- package/lib/icon/style/iconfont.1725243866550.woff +0 -0
- package/lib/icon/style/iconfont.1725243866550.woff2 +0 -0
- package/lib/icon/style/index.js +0 -1
- package/lib/icon/style/style.css +0 -1550
- package/lib/icon/style/style.min.css +0 -1550
- package/lib/iconfont.1725243866550.ttf +0 -0
- package/lib/iconfont.1725243866550.woff +0 -0
- package/lib/iconfont.1725243866550.woff2 +0 -0
- package/lib/index.common.min.js +0 -1
- package/lib/index.css +0 -1
- package/lib/input/index.d.ts +0 -4
- package/lib/input/index.js +0 -17
- package/lib/input/index.min.js +0 -1
- package/lib/input/src/date.js +0 -44
- package/lib/input/src/date.min.js +0 -1
- package/lib/input/src/input.js +0 -2481
- package/lib/input/src/input.min.js +0 -1
- package/lib/input/src/number.js +0 -18
- package/lib/input/src/number.min.js +0 -1
- package/lib/input/style/index.js +0 -1
- package/lib/input/style/style.css +0 -1039
- package/lib/input/style/style.min.css +0 -1
- package/lib/keyboard/index.d.ts +0 -4
- package/lib/keyboard/index.js +0 -18
- package/lib/keyboard/index.min.js +0 -1
- package/lib/keyboard/src/mixin.js +0 -413
- package/lib/keyboard/src/mixin.min.js +0 -1
- package/lib/keyboard/style/index.js +0 -1
- package/lib/keyboard/style/style.css +0 -26
- package/lib/list/index.d.ts +0 -4
- package/lib/list/index.js +0 -17
- package/lib/list/index.min.js +0 -1
- package/lib/list/src/list.js +0 -356
- package/lib/list/src/list.min.js +0 -1
- package/lib/list/style/index.js +0 -1
- package/lib/list/style/style.css +0 -52
- package/lib/list/style/style.min.css +0 -1
- package/lib/loading/index.d.ts +0 -4
- package/lib/loading/index.js +0 -17
- package/lib/loading/index.min.js +0 -1
- package/lib/loading/src/loading.js +0 -46
- package/lib/loading/src/loading.min.js +0 -1
- package/lib/loading/style/index.js +0 -1
- package/lib/loading/style/style.css +0 -104
- package/lib/loading/style/style.min.css +0 -1
- package/lib/locale/lang/language.d.ts +0 -5
- package/lib/menu/index.d.ts +0 -4
- package/lib/menu/index.js +0 -21
- package/lib/menu/index.min.js +0 -1
- package/lib/menu/src/mixin.js +0 -331
- package/lib/menu/src/mixin.min.js +0 -1
- package/lib/menu/src/panel.js +0 -117
- package/lib/menu/src/panel.min.js +0 -1
- package/lib/menu/style/index.js +0 -1
- package/lib/menu/style/style.css +0 -126
- package/lib/menu/style/style.min.css +0 -1
- package/lib/mixins/size.js +0 -15
- package/lib/mixins/size.min.js +0 -1
- package/lib/modal/index.d.ts +0 -4
- package/lib/modal/index.js +0 -131
- package/lib/modal/index.min.js +0 -1
- package/lib/modal/src/modal.js +0 -1114
- package/lib/modal/src/modal.min.js +0 -1
- package/lib/modal/style/index.js +0 -1
- package/lib/modal/style/style.css +0 -354
- package/lib/modal/style/style.min.css +0 -1
- package/lib/optgroup/index.d.ts +0 -4
- package/lib/optgroup/index.js +0 -17
- package/lib/optgroup/index.min.js +0 -1
- package/lib/optgroup/style/index.js +0 -1
- package/lib/optgroup/style/style.css +0 -26
- package/lib/option/index.d.ts +0 -4
- package/lib/option/index.js +0 -17
- package/lib/option/index.min.js +0 -1
- package/lib/option/style/index.js +0 -1
- package/lib/option/style/style.css +0 -26
- package/lib/pager/index.d.ts +0 -4
- package/lib/pager/index.js +0 -17
- package/lib/pager/index.min.js +0 -1
- package/lib/pager/src/pager.js +0 -550
- package/lib/pager/src/pager.min.js +0 -1
- package/lib/pager/style/index.js +0 -1
- package/lib/pager/style/style.css +0 -329
- package/lib/pager/style/style.min.css +0 -1
- package/lib/pulldown/index.d.ts +0 -4
- package/lib/pulldown/index.js +0 -17
- package/lib/pulldown/index.min.js +0 -1
- package/lib/pulldown/src/pulldown.js +0 -316
- package/lib/pulldown/src/pulldown.min.js +0 -1
- package/lib/pulldown/style/index.js +0 -1
- package/lib/pulldown/style/style.css +0 -85
- package/lib/pulldown/style/style.min.css +0 -1
- package/lib/radio/index.d.ts +0 -4
- package/lib/radio/index.js +0 -17
- package/lib/radio/index.min.js +0 -1
- package/lib/radio/src/button.js +0 -128
- package/lib/radio/src/button.min.js +0 -1
- package/lib/radio/src/group.js +0 -97
- package/lib/radio/src/group.min.js +0 -1
- package/lib/radio/src/radio.js +0 -133
- package/lib/radio/src/radio.min.js +0 -1
- package/lib/radio/style/index.js +0 -1
- package/lib/radio/style/style.css +0 -328
- package/lib/radio/style/style.min.css +0 -1
- package/lib/radio-button/index.d.ts +0 -4
- package/lib/radio-button/index.js +0 -17
- package/lib/radio-button/index.min.js +0 -1
- package/lib/radio-button/style/index.js +0 -1
- package/lib/radio-button/style/style.css +0 -26
- package/lib/radio-group/index.d.ts +0 -4
- package/lib/radio-group/index.js +0 -17
- package/lib/radio-group/index.min.js +0 -1
- package/lib/radio-group/style/index.js +0 -1
- package/lib/radio-group/style/style.css +0 -26
- package/lib/select/index.d.ts +0 -4
- package/lib/select/index.js +0 -23
- package/lib/select/index.min.js +0 -1
- package/lib/select/src/optgroup.js +0 -57
- package/lib/select/src/optgroup.min.js +0 -1
- package/lib/select/src/option.js +0 -51
- package/lib/select/src/option.min.js +0 -1
- package/lib/select/src/select.js +0 -1068
- package/lib/select/src/select.min.js +0 -1
- package/lib/select/src/util.js +0 -74
- package/lib/select/src/util.min.js +0 -1
- package/lib/select/style/index.js +0 -1
- package/lib/select/style/style.css +0 -229
- package/lib/select/style/style.min.css +0 -1
- package/lib/switch/index.d.ts +0 -4
- package/lib/switch/index.js +0 -17
- package/lib/switch/index.min.js +0 -1
- package/lib/switch/src/switch.js +0 -161
- package/lib/switch/src/switch.min.js +0 -1
- package/lib/switch/style/index.js +0 -1
- package/lib/switch/style/style.css +0 -134
- package/lib/switch/style/style.min.css +0 -1
- package/lib/table/index.d.ts +0 -4
- package/lib/textarea/index.d.ts +0 -4
- package/lib/textarea/index.js +0 -17
- package/lib/textarea/index.min.js +0 -1
- package/lib/textarea/src/textarea.js +0 -282
- package/lib/textarea/src/textarea.min.js +0 -1
- package/lib/textarea/style/index.js +0 -1
- package/lib/textarea/style/style.css +0 -132
- package/lib/textarea/style/style.min.css +0 -1
- package/lib/toolbar/index.d.ts +0 -4
- package/lib/tools/dom.js +0 -196
- package/lib/tools/dom.min.js +0 -1
- package/lib/tools/event.js +0 -96
- package/lib/tools/event.min.js +0 -1
- package/lib/tools/log.js +0 -22
- package/lib/tools/log.min.js +0 -1
- package/lib/tools/resize.js +0 -103
- package/lib/tools/resize.min.js +0 -1
- package/lib/tools/utils.js +0 -116
- package/lib/tools/utils.min.js +0 -1
- package/lib/tools/vn.js +0 -14
- package/lib/tools/vn.min.js +0 -1
- package/lib/tooltip/index.d.ts +0 -4
- package/lib/tooltip/index.js +0 -18
- package/lib/tooltip/index.min.js +0 -1
- package/lib/tooltip/src/tooltip.js +0 -377
- package/lib/tooltip/src/tooltip.min.js +0 -1
- package/lib/tooltip/style/index.js +0 -1
- package/lib/tooltip/style/style.css +0 -130
- package/lib/tooltip/style/style.min.css +0 -1
- package/lib/ui/index.d.ts +0 -4
- package/lib/v-x-e-table/index.d.ts +0 -4
- package/lib/v-x-e-table/src/commands.js +0 -74
- package/lib/v-x-e-table/src/commands.min.js +0 -1
- package/lib/v-x-e-table/src/conf.js +0 -420
- package/lib/v-x-e-table/src/conf.min.js +0 -1
- package/lib/v-x-e-table/src/formats.js +0 -74
- package/lib/v-x-e-table/src/formats.min.js +0 -1
- package/lib/v-x-e-table/src/interceptor.js +0 -59
- package/lib/v-x-e-table/src/interceptor.min.js +0 -1
- package/lib/v-x-e-table/src/menus.js +0 -74
- package/lib/v-x-e-table/src/menus.min.js +0 -1
- package/lib/v-x-e-table/src/renderer.js +0 -1026
- package/lib/v-x-e-table/src/renderer.min.js +0 -1
- package/lib/v-x-e-table/src/store.js +0 -62
- package/lib/v-x-e-table/src/store.min.js +0 -1
- package/lib/v-x-e-table/src/theme.js +0 -25
- package/lib/v-x-e-table/src/theme.min.js +0 -1
- package/lib/v-x-e-table/src/validators.js +0 -14
- package/lib/v-x-e-table/src/validators.min.js +0 -1
- package/lib/validator/index.d.ts +0 -4
- package/lib/validator/index.js +0 -18
- package/lib/validator/index.min.js +0 -1
- package/lib/validator/src/mixin.js +0 -545
- package/lib/validator/src/mixin.min.js +0 -1
- package/lib/validator/style/index.js +0 -1
- package/lib/validator/style/style.css +0 -26
- package/lib/vxe-button/index.d.ts +0 -4
- package/lib/vxe-button/index.js +0 -23
- package/lib/vxe-button/index.min.js +0 -1
- package/lib/vxe-button/style/index.js +0 -1
- package/lib/vxe-button/style/style.css +0 -571
- package/lib/vxe-button/style/style.min.css +0 -1
- package/lib/vxe-button-group/index.d.ts +0 -4
- package/lib/vxe-button-group/index.js +0 -23
- package/lib/vxe-button-group/index.min.js +0 -1
- package/lib/vxe-button-group/style/index.js +0 -1
- package/lib/vxe-button-group/style/style.css +0 -29
- package/lib/vxe-button-group/style/style.min.css +0 -1
- package/lib/vxe-checkbox/index.d.ts +0 -4
- package/lib/vxe-checkbox/index.js +0 -23
- package/lib/vxe-checkbox/index.min.js +0 -1
- package/lib/vxe-checkbox/style/index.js +0 -1
- package/lib/vxe-checkbox/style/style.css +0 -292
- package/lib/vxe-checkbox/style/style.min.css +0 -1
- package/lib/vxe-checkbox-group/index.d.ts +0 -4
- package/lib/vxe-checkbox-group/index.js +0 -23
- package/lib/vxe-checkbox-group/index.min.js +0 -1
- package/lib/vxe-checkbox-group/style/index.js +0 -1
- package/lib/vxe-checkbox-group/style/style.css +0 -26
- package/lib/vxe-colgroup/index.d.ts +0 -4
- package/lib/vxe-column/index.d.ts +0 -4
- package/lib/vxe-form/index.d.ts +0 -4
- package/lib/vxe-form/index.js +0 -23
- package/lib/vxe-form/index.min.js +0 -1
- package/lib/vxe-form/style/index.js +0 -1
- package/lib/vxe-form/style/style.css +0 -444
- package/lib/vxe-form/style/style.min.css +0 -1
- package/lib/vxe-form-gather/index.d.ts +0 -4
- package/lib/vxe-form-gather/index.js +0 -23
- package/lib/vxe-form-gather/index.min.js +0 -1
- package/lib/vxe-form-gather/style/index.js +0 -1
- package/lib/vxe-form-gather/style/style.css +0 -26
- package/lib/vxe-form-item/index.d.ts +0 -4
- package/lib/vxe-form-item/index.js +0 -23
- package/lib/vxe-form-item/index.min.js +0 -1
- package/lib/vxe-form-item/style/index.js +0 -1
- package/lib/vxe-form-item/style/style.css +0 -26
- package/lib/vxe-grid/index.d.ts +0 -4
- package/lib/vxe-icon/index.d.ts +0 -4
- package/lib/vxe-icon/index.js +0 -23
- package/lib/vxe-icon/index.min.js +0 -1
- package/lib/vxe-icon/style/index.js +0 -1
- package/lib/vxe-icon/style/style.css +0 -1550
- package/lib/vxe-icon/style/style.min.css +0 -1
- package/lib/vxe-input/index.d.ts +0 -4
- package/lib/vxe-input/index.js +0 -23
- package/lib/vxe-input/index.min.js +0 -1
- package/lib/vxe-input/style/index.js +0 -1
- package/lib/vxe-input/style/style.css +0 -1039
- package/lib/vxe-input/style/style.min.css +0 -1
- package/lib/vxe-list/index.d.ts +0 -4
- package/lib/vxe-list/index.js +0 -23
- package/lib/vxe-list/index.min.js +0 -1
- package/lib/vxe-list/style/index.js +0 -1
- package/lib/vxe-list/style/style.css +0 -52
- package/lib/vxe-list/style/style.min.css +0 -1
- package/lib/vxe-loading/index.d.ts +0 -4
- package/lib/vxe-loading/index.js +0 -23
- package/lib/vxe-loading/index.min.js +0 -1
- package/lib/vxe-loading/style/index.js +0 -1
- package/lib/vxe-loading/style/style.css +0 -104
- package/lib/vxe-loading/style/style.min.css +0 -1
- package/lib/vxe-modal/index.d.ts +0 -4
- package/lib/vxe-modal/index.js +0 -23
- package/lib/vxe-modal/index.min.js +0 -1
- package/lib/vxe-modal/style/index.js +0 -1
- package/lib/vxe-modal/style/style.css +0 -354
- package/lib/vxe-modal/style/style.min.css +0 -1
- package/lib/vxe-optgroup/index.d.ts +0 -4
- package/lib/vxe-optgroup/index.js +0 -23
- package/lib/vxe-optgroup/index.min.js +0 -1
- package/lib/vxe-optgroup/style/index.js +0 -1
- package/lib/vxe-optgroup/style/style.css +0 -26
- package/lib/vxe-option/index.d.ts +0 -4
- package/lib/vxe-option/index.js +0 -23
- package/lib/vxe-option/index.min.js +0 -1
- package/lib/vxe-option/style/index.js +0 -1
- package/lib/vxe-option/style/style.css +0 -26
- package/lib/vxe-pager/index.d.ts +0 -4
- package/lib/vxe-pager/index.js +0 -23
- package/lib/vxe-pager/index.min.js +0 -1
- package/lib/vxe-pager/style/index.js +0 -1
- package/lib/vxe-pager/style/style.css +0 -329
- package/lib/vxe-pager/style/style.min.css +0 -1
- package/lib/vxe-pulldown/index.d.ts +0 -4
- package/lib/vxe-pulldown/index.js +0 -23
- package/lib/vxe-pulldown/index.min.js +0 -1
- package/lib/vxe-pulldown/style/index.js +0 -1
- package/lib/vxe-pulldown/style/style.css +0 -85
- package/lib/vxe-pulldown/style/style.min.css +0 -1
- package/lib/vxe-radio/index.d.ts +0 -4
- package/lib/vxe-radio/index.js +0 -23
- package/lib/vxe-radio/index.min.js +0 -1
- package/lib/vxe-radio/style/index.js +0 -1
- package/lib/vxe-radio/style/style.css +0 -328
- package/lib/vxe-radio/style/style.min.css +0 -1
- package/lib/vxe-radio-button/index.d.ts +0 -4
- package/lib/vxe-radio-button/index.js +0 -23
- package/lib/vxe-radio-button/index.min.js +0 -1
- package/lib/vxe-radio-button/style/index.js +0 -1
- package/lib/vxe-radio-button/style/style.css +0 -26
- package/lib/vxe-radio-group/index.d.ts +0 -4
- package/lib/vxe-radio-group/index.js +0 -23
- package/lib/vxe-radio-group/index.min.js +0 -1
- package/lib/vxe-radio-group/style/index.js +0 -1
- package/lib/vxe-radio-group/style/style.css +0 -26
- package/lib/vxe-select/index.d.ts +0 -4
- package/lib/vxe-select/index.js +0 -23
- package/lib/vxe-select/index.min.js +0 -1
- package/lib/vxe-select/style/index.js +0 -1
- package/lib/vxe-select/style/style.css +0 -229
- package/lib/vxe-select/style/style.min.css +0 -1
- package/lib/vxe-switch/index.d.ts +0 -4
- package/lib/vxe-switch/index.js +0 -23
- package/lib/vxe-switch/index.min.js +0 -1
- package/lib/vxe-switch/style/index.js +0 -1
- package/lib/vxe-switch/style/style.css +0 -134
- package/lib/vxe-switch/style/style.min.css +0 -1
- package/lib/vxe-table/index.d.ts +0 -4
- package/lib/vxe-table-custom-module/index.d.ts +0 -4
- package/lib/vxe-table-custom-module/index.js +0 -23
- package/lib/vxe-table-custom-module/index.min.js +0 -1
- package/lib/vxe-table-custom-module/style/index.js +0 -1
- package/lib/vxe-table-custom-module/style/style.css +0 -629
- package/lib/vxe-table-custom-module/style/style.min.css +0 -1
- package/lib/vxe-table-edit-module/index.d.ts +0 -4
- package/lib/vxe-table-edit-module/index.js +0 -23
- package/lib/vxe-table-edit-module/index.min.js +0 -1
- package/lib/vxe-table-edit-module/style/index.js +0 -1
- package/lib/vxe-table-edit-module/style/style.css +0 -26
- package/lib/vxe-table-export-module/index.d.ts +0 -4
- package/lib/vxe-table-export-module/index.js +0 -23
- package/lib/vxe-table-export-module/index.min.js +0 -1
- package/lib/vxe-table-export-module/style/index.js +0 -1
- package/lib/vxe-table-export-module/style/style.css +0 -219
- package/lib/vxe-table-export-module/style/style.min.css +0 -1
- package/lib/vxe-table-filter-module/index.d.ts +0 -4
- package/lib/vxe-table-filter-module/index.js +0 -23
- package/lib/vxe-table-filter-module/index.min.js +0 -1
- package/lib/vxe-table-filter-module/style/index.js +0 -1
- package/lib/vxe-table-filter-module/style/style.css +0 -166
- package/lib/vxe-table-filter-module/style/style.min.css +0 -1
- package/lib/vxe-table-keyboard-module/index.d.ts +0 -4
- package/lib/vxe-table-keyboard-module/index.js +0 -23
- package/lib/vxe-table-keyboard-module/index.min.js +0 -1
- package/lib/vxe-table-keyboard-module/style/index.js +0 -1
- package/lib/vxe-table-keyboard-module/style/style.css +0 -26
- package/lib/vxe-table-menu-module/index.d.ts +0 -4
- package/lib/vxe-table-menu-module/index.js +0 -23
- package/lib/vxe-table-menu-module/index.min.js +0 -1
- package/lib/vxe-table-menu-module/style/index.js +0 -1
- package/lib/vxe-table-menu-module/style/style.css +0 -126
- package/lib/vxe-table-menu-module/style/style.min.css +0 -1
- package/lib/vxe-table-validator-module/index.d.ts +0 -4
- package/lib/vxe-table-validator-module/index.js +0 -23
- package/lib/vxe-table-validator-module/index.min.js +0 -1
- package/lib/vxe-table-validator-module/style/index.js +0 -1
- package/lib/vxe-table-validator-module/style/style.css +0 -26
- package/lib/vxe-textarea/index.d.ts +0 -4
- package/lib/vxe-textarea/index.js +0 -23
- package/lib/vxe-textarea/index.min.js +0 -1
- package/lib/vxe-textarea/style/index.js +0 -1
- package/lib/vxe-textarea/style/style.css +0 -132
- package/lib/vxe-textarea/style/style.min.css +0 -1
- package/lib/vxe-toolbar/index.d.ts +0 -4
- package/lib/vxe-tooltip/index.d.ts +0 -4
- package/lib/vxe-tooltip/index.js +0 -23
- package/lib/vxe-tooltip/index.min.js +0 -1
- package/lib/vxe-tooltip/style/index.js +0 -1
- package/lib/vxe-tooltip/style/style.css +0 -130
- package/lib/vxe-tooltip/style/style.min.css +0 -1
- package/packages/all.js +0 -136
- package/packages/button/index.d.ts +0 -4
- package/packages/button/index.js +0 -13
- package/packages/button/src/button.js +0 -460
- package/packages/button/src/group.js +0 -41
- package/packages/button-group/index.d.ts +0 -4
- package/packages/button-group/index.js +0 -13
- package/packages/checkbox/index.d.ts +0 -4
- package/packages/checkbox/index.js +0 -13
- package/packages/checkbox/src/checkbox.js +0 -108
- package/packages/checkbox/src/group.js +0 -86
- package/packages/checkbox-group/index.d.ts +0 -4
- package/packages/checkbox-group/index.js +0 -13
- package/packages/colgroup/index.d.ts +0 -4
- package/packages/colgroup/index.js +0 -15
- package/packages/column/index.d.ts +0 -4
- package/packages/column/index.js +0 -15
- package/packages/custom/index.d.ts +0 -4
- package/packages/custom/index.js +0 -17
- package/packages/custom/src/mixin.js +0 -87
- package/packages/custom/src/panel.js +0 -930
- package/packages/edit/index.d.ts +0 -4
- package/packages/edit/index.js +0 -14
- package/packages/edit/src/mixin.js +0 -796
- package/packages/export/index.d.ts +0 -4
- package/packages/export/index.js +0 -42
- package/packages/export/src/export-panel.js +0 -444
- package/packages/export/src/import-panel.js +0 -184
- package/packages/export/src/mixin.js +0 -1529
- package/packages/filter/index.d.ts +0 -4
- package/packages/filter/index.js +0 -17
- package/packages/filter/src/mixin.js +0 -271
- package/packages/filter/src/panel.js +0 -210
- package/packages/form/index.d.ts +0 -4
- package/packages/form/index.js +0 -13
- package/packages/form/src/form-config-item.js +0 -182
- package/packages/form/src/form-gather.js +0 -21
- package/packages/form/src/form-item.js +0 -246
- package/packages/form/src/form.js +0 -621
- package/packages/form/src/render.js +0 -81
- package/packages/form/src/util.js +0 -117
- package/packages/form-gather/index.d.ts +0 -4
- package/packages/form-gather/index.js +0 -13
- package/packages/form-item/index.d.ts +0 -4
- package/packages/form-item/index.js +0 -13
- package/packages/grid/index.d.ts +0 -4
- package/packages/grid/index.js +0 -15
- package/packages/grid/src/grid.js +0 -1118
- package/packages/icon/index.d.ts +0 -4
- package/packages/icon/index.js +0 -13
- package/packages/icon/src/icon.js +0 -22
- package/packages/index.common.js +0 -4
- package/packages/input/index.d.ts +0 -4
- package/packages/input/index.js +0 -13
- package/packages/input/src/date.js +0 -38
- package/packages/input/src/input.js +0 -2171
- package/packages/input/src/number.js +0 -12
- package/packages/keyboard/index.d.ts +0 -4
- package/packages/keyboard/index.js +0 -14
- package/packages/keyboard/src/mixin.js +0 -355
- package/packages/list/index.d.ts +0 -4
- package/packages/list/index.js +0 -13
- package/packages/list/src/list.js +0 -294
- package/packages/loading/index.d.ts +0 -4
- package/packages/loading/index.js +0 -13
- package/packages/loading/src/loading.js +0 -45
- package/packages/locale/lang/en-US.d.ts +0 -8
- package/packages/locale/lang/en-US.js +0 -670
- package/packages/locale/lang/es-ES.d.ts +0 -8
- package/packages/locale/lang/es-ES.js +0 -670
- package/packages/locale/lang/ja-JP.d.ts +0 -8
- package/packages/locale/lang/ja-JP.js +0 -670
- package/packages/locale/lang/language.d.ts +0 -5
- package/packages/locale/lang/pt-BR.d.ts +0 -8
- package/packages/locale/lang/pt-BR.js +0 -670
- package/packages/locale/lang/zh-CN.d.ts +0 -8
- package/packages/locale/lang/zh-CN.js +0 -670
- package/packages/locale/lang/zh-HK.d.ts +0 -8
- package/packages/locale/lang/zh-MO.d.ts +0 -8
- package/packages/locale/lang/zh-TC.d.ts +0 -8
- package/packages/locale/lang/zh-TC.js +0 -670
- package/packages/locale/lang/zh-TW.d.ts +0 -8
- package/packages/menu/index.d.ts +0 -4
- package/packages/menu/index.js +0 -17
- package/packages/menu/src/mixin.js +0 -270
- package/packages/menu/src/panel.js +0 -130
- package/packages/mixins/size.js +0 -8
- package/packages/modal/index.d.ts +0 -4
- package/packages/modal/index.js +0 -116
- package/packages/modal/src/modal.js +0 -822
- package/packages/optgroup/index.d.ts +0 -4
- package/packages/optgroup/index.js +0 -13
- package/packages/option/index.d.ts +0 -4
- package/packages/option/index.js +0 -13
- package/packages/pager/index.d.ts +0 -4
- package/packages/pager/index.js +0 -13
- package/packages/pager/src/pager.js +0 -477
- package/packages/pulldown/index.d.ts +0 -4
- package/packages/pulldown/index.js +0 -13
- package/packages/pulldown/src/pulldown.js +0 -273
- package/packages/radio/index.d.ts +0 -4
- package/packages/radio/index.js +0 -13
- package/packages/radio/src/button.js +0 -102
- package/packages/radio/src/group.js +0 -76
- package/packages/radio/src/radio.js +0 -109
- package/packages/radio-button/index.d.ts +0 -4
- package/packages/radio-button/index.js +0 -13
- package/packages/radio-group/index.d.ts +0 -4
- package/packages/radio-group/index.js +0 -13
- package/packages/select/index.d.ts +0 -4
- package/packages/select/index.js +0 -19
- package/packages/select/src/optgroup.js +0 -48
- package/packages/select/src/option.js +0 -42
- package/packages/select/src/select.js +0 -921
- package/packages/select/src/util.js +0 -52
- package/packages/switch/index.d.ts +0 -4
- package/packages/switch/index.js +0 -13
- package/packages/switch/src/switch.js +0 -138
- package/packages/table/index.d.ts +0 -4
- package/packages/table/index.js +0 -35
- package/packages/table/src/body.js +0 -826
- package/packages/table/src/cell.js +0 -843
- package/packages/table/src/column.js +0 -141
- package/packages/table/src/columnInfo.js +0 -168
- package/packages/table/src/footer.js +0 -293
- package/packages/table/src/header.js +0 -295
- package/packages/table/src/methods.js +0 -5532
- package/packages/table/src/table.js +0 -1297
- package/packages/table/src/util.js +0 -364
- package/packages/textarea/index.d.ts +0 -4
- package/packages/textarea/index.js +0 -13
- package/packages/textarea/src/textarea.js +0 -224
- package/packages/toolbar/index.d.ts +0 -4
- package/packages/toolbar/index.js +0 -13
- package/packages/toolbar/src/toolbar.js +0 -467
- package/packages/tools/dom.js +0 -179
- package/packages/tools/event.js +0 -82
- package/packages/tools/log.js +0 -16
- package/packages/tools/resize.js +0 -76
- package/packages/tools/utils.js +0 -94
- package/packages/tools/vn.js +0 -8
- package/packages/tooltip/index.d.ts +0 -4
- package/packages/tooltip/index.js +0 -14
- package/packages/tooltip/src/tooltip.js +0 -301
- package/packages/ui/index.d.ts +0 -4
- package/packages/ui/index.js +0 -4
- package/packages/v-x-e-table/index.d.ts +0 -4
- package/packages/v-x-e-table/index.js +0 -201
- package/packages/v-x-e-table/src/commands.js +0 -55
- package/packages/v-x-e-table/src/conf.js +0 -420
- package/packages/v-x-e-table/src/formats.js +0 -55
- package/packages/v-x-e-table/src/interceptor.js +0 -53
- package/packages/v-x-e-table/src/menus.js +0 -55
- package/packages/v-x-e-table/src/renderer.js +0 -951
- package/packages/v-x-e-table/src/store.js +0 -44
- package/packages/v-x-e-table/src/theme.js +0 -19
- package/packages/v-x-e-table/src/validators.js +0 -7
- package/packages/validator/index.d.ts +0 -4
- package/packages/validator/index.js +0 -14
- package/packages/validator/src/mixin.js +0 -473
- package/styles/base/common.scss +0 -88
- package/styles/button-group.scss +0 -5
- package/styles/button.scss +0 -374
- package/styles/checkbox-group.scss +0 -1
- package/styles/checkbox.scss +0 -91
- package/styles/colgroup.scss +0 -1
- package/styles/column.scss +0 -1
- package/styles/css-variable.scss +0 -272
- package/styles/custom.scss +0 -386
- package/styles/edit.scss +0 -1
- package/styles/export.scss +0 -126
- package/styles/filter.scss +0 -113
- package/styles/footer.scss +0 -1
- package/styles/form-gather.scss +0 -1
- package/styles/form-item.scss +0 -1
- package/styles/form.scss +0 -366
- package/styles/grid.scss +0 -64
- package/styles/header.scss +0 -1
- package/styles/icon.scss +0 -972
- package/styles/input.scss +0 -917
- package/styles/keyboard.scss +0 -1
- package/styles/list.scss +0 -28
- package/styles/loading.scss +0 -87
- package/styles/menu.scss +0 -89
- package/styles/modal.scss +0 -387
- package/styles/old-icon.scss +0 -722
- package/styles/optgroup.scss +0 -1
- package/styles/option.scss +0 -1
- package/styles/pager.scss +0 -270
- package/styles/pulldown.scss +0 -58
- package/styles/radio-button.scss +0 -1
- package/styles/radio-group.scss +0 -1
- package/styles/radio.scss +0 -147
- package/styles/select.scss +0 -228
- package/styles/switch.scss +0 -125
- package/styles/table.scss +0 -1477
- package/styles/textarea.scss +0 -105
- package/styles/toolbar.scss +0 -103
- package/styles/tooltip.scss +0 -127
- package/styles/v-x-e-table.scss +0 -3
- package/styles/validator.scss +0 -1
- package/styles/vxe-table.scss +0 -1
- package/types/button-group.d.ts +0 -11
- package/types/button.d.ts +0 -49
- package/types/checkbox-group.d.ts +0 -17
- package/types/checkbox.d.ts +0 -33
- package/types/colgroup.d.ts +0 -155
- package/types/column.d.ts +0 -489
- package/types/component.d.ts +0 -29
- package/types/form-gather.d.ts +0 -13
- package/types/form-item.d.ts +0 -217
- package/types/form.d.ts +0 -149
- package/types/grid.d.ts +0 -169
- package/types/icon.d.ts +0 -7
- package/types/input.d.ts +0 -163
- package/types/list.d.ts +0 -71
- package/types/loading.d.ts +0 -10
- package/types/modal.d.ts +0 -329
- package/types/module/custom.d.ts +0 -11
- package/types/module/edit.d.ts +0 -67
- package/types/module/export.d.ts +0 -255
- package/types/module/filter.d.ts +0 -133
- package/types/module/index.d.ts +0 -7
- package/types/module/keyboard.d.ts +0 -11
- package/types/module/menu.d.ts +0 -85
- package/types/module/validator.d.ts +0 -77
- package/types/optgroup.d.ts +0 -20
- package/types/option.d.ts +0 -24
- package/types/pager.d.ts +0 -123
- package/types/pulldown.d.ts +0 -44
- package/types/radio-button.d.ts +0 -20
- package/types/radio-group.d.ts +0 -16
- package/types/radio.d.ts +0 -32
- package/types/select.d.ts +0 -66
- package/types/switch.d.ts +0 -22
- package/types/table.d.ts +0 -1662
- package/types/textarea.d.ts +0 -65
- package/types/toolbar.d.ts +0 -191
- package/types/tooltip.d.ts +0 -40
- package/types/v-x-e-table/commands.d.ts +0 -29
- package/types/v-x-e-table/formats.d.ts +0 -28
- package/types/v-x-e-table/index.d.ts +0 -229
- package/types/v-x-e-table/interceptor.d.ts +0 -46
- package/types/v-x-e-table/menus.d.ts +0 -24
- package/types/v-x-e-table/renderer.d.ts +0 -355
- package/types/v-x-e-table/validators.d.ts +0 -30
- /package/{lib/checkbox-group/style/style.min.css → es/colgroup/style.css} +0 -0
- /package/{lib/edit/style → es/colgroup}/style.min.css +0 -0
- /package/{lib/form-gather/style/style.min.css → es/column/style.css} +0 -0
- /package/{lib/form-item/style → es/column}/style.min.css +0 -0
- /package/{lib/keyboard/style/style.min.css → es/ui/style.css} +0 -0
- /package/{lib/optgroup/style → es/ui}/style.min.css +0 -0
- /package/{lib/option/style/style.min.css → es/v-x-e-table/style.css} +0 -0
- /package/{lib/radio-button/style → es/v-x-e-table}/style.min.css +0 -0
- /package/{lib/radio-group/style/style.min.css → es/vxe-colgroup/style.css} +0 -0
- /package/{lib/validator/style → es/vxe-colgroup}/style.min.css +0 -0
- /package/{lib/vxe-checkbox-group/style/style.min.css → es/vxe-column/style.css} +0 -0
- /package/{lib/vxe-form-gather/style → es/vxe-column}/style.min.css +0 -0
- /package/{lib/vxe-form-item/style/style.min.css → es/vxe-ui/style.css} +0 -0
- /package/{lib/vxe-optgroup/style → es/vxe-ui}/style.min.css +0 -0
- /package/{lib/vxe-option/style/style.min.css → es/vxe-v-x-e-table/style.css} +0 -0
- /package/{lib/vxe-radio-button/style → es/vxe-v-x-e-table}/style.min.css +0 -0
- /package/lib/{button-group → ui}/style/index.js +0 -0
- /package/lib/{vxe-radio-group/style/style.min.css → ui/style/style.css} +0 -0
- /package/lib/{vxe-table-edit-module → ui}/style/style.min.css +0 -0
- /package/lib/{button → vxe-ui}/style/index.js +0 -0
- /package/lib/{vxe-table-keyboard-module/style/style.min.css → vxe-ui/style/style.css} +0 -0
- /package/lib/{vxe-table-validator-module → vxe-ui}/style/style.min.css +0 -0
- /package/lib/{checkbox-group → vxe-v-x-e-table}/style/index.js +0 -0
- /package/packages/locale/lang/{zh-HK.js → zh-HK.ts} +0 -0
- /package/packages/locale/lang/{zh-MO.js → zh-MO.ts} +0 -0
- /package/packages/locale/lang/{zh-TW.js → zh-TW.ts} +0 -0
- /package/packages/table/src/{group.js → group.ts} +0 -0
package/lib/select/src/select.js
DELETED
|
@@ -1,1068 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
exports.renderOptgroup = renderOptgroup;
|
|
8
|
-
exports.renderOption = renderOption;
|
|
9
|
-
var _xeUtils = _interopRequireDefault(require("xe-utils"));
|
|
10
|
-
var _input = _interopRequireDefault(require("../../input/src/input"));
|
|
11
|
-
var _conf = _interopRequireDefault(require("../../v-x-e-table/src/conf"));
|
|
12
|
-
var _size = _interopRequireDefault(require("../../mixins/size"));
|
|
13
|
-
var _utils = _interopRequireWildcard(require("../../tools/utils"));
|
|
14
|
-
var _dom = _interopRequireDefault(require("../../tools/dom"));
|
|
15
|
-
var _event = require("../../tools/event");
|
|
16
|
-
var _vn = require("../../tools/vn");
|
|
17
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
18
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
19
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
20
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
21
|
-
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
22
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
23
|
-
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
24
|
-
function isOptionVisible(option) {
|
|
25
|
-
return option.visible !== false;
|
|
26
|
-
}
|
|
27
|
-
function getOptUniqueId() {
|
|
28
|
-
return _xeUtils.default.uniqueId('opt_');
|
|
29
|
-
}
|
|
30
|
-
function getOptkey(_vm) {
|
|
31
|
-
var optionOpts = _vm.optionOpts;
|
|
32
|
-
return optionOpts.keyField || _vm.optionId || '_X_OPTION_KEY';
|
|
33
|
-
}
|
|
34
|
-
function getOptid(_vm, option) {
|
|
35
|
-
var optid = option[getOptkey(_vm)];
|
|
36
|
-
return optid ? encodeURIComponent(optid) : '';
|
|
37
|
-
}
|
|
38
|
-
function findOffsetOption(_vm, optionValue, isUpArrow) {
|
|
39
|
-
var isGroup = _vm.isGroup,
|
|
40
|
-
visibleOptionList = _vm.visibleOptionList,
|
|
41
|
-
visibleGroupList = _vm.visibleGroupList,
|
|
42
|
-
valueField = _vm.valueField,
|
|
43
|
-
groupOptionsField = _vm.groupOptionsField;
|
|
44
|
-
var firstOption;
|
|
45
|
-
var prevOption;
|
|
46
|
-
var nextOption;
|
|
47
|
-
var currOption;
|
|
48
|
-
if (isGroup) {
|
|
49
|
-
for (var gIndex = 0; gIndex < visibleGroupList.length; gIndex++) {
|
|
50
|
-
var group = visibleGroupList[gIndex];
|
|
51
|
-
var groupOptionList = group[groupOptionsField];
|
|
52
|
-
var isGroupDisabled = group.disabled;
|
|
53
|
-
if (groupOptionList) {
|
|
54
|
-
for (var index = 0; index < groupOptionList.length; index++) {
|
|
55
|
-
var option = groupOptionList[index];
|
|
56
|
-
var isVisible = isOptionVisible(option);
|
|
57
|
-
var isDisabled = isGroupDisabled || option.disabled;
|
|
58
|
-
if (!firstOption && !isDisabled) {
|
|
59
|
-
firstOption = option;
|
|
60
|
-
}
|
|
61
|
-
if (currOption) {
|
|
62
|
-
if (isVisible && !isDisabled) {
|
|
63
|
-
nextOption = option;
|
|
64
|
-
if (!isUpArrow) {
|
|
65
|
-
return {
|
|
66
|
-
offsetOption: nextOption
|
|
67
|
-
};
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
}
|
|
71
|
-
if (optionValue === option[valueField]) {
|
|
72
|
-
currOption = option;
|
|
73
|
-
if (isUpArrow) {
|
|
74
|
-
return {
|
|
75
|
-
offsetOption: prevOption
|
|
76
|
-
};
|
|
77
|
-
}
|
|
78
|
-
} else {
|
|
79
|
-
if (isVisible && !isDisabled) {
|
|
80
|
-
prevOption = option;
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
} else {
|
|
87
|
-
for (var _index = 0; _index < visibleOptionList.length; _index++) {
|
|
88
|
-
var _option = visibleOptionList[_index];
|
|
89
|
-
var _isDisabled = _option.disabled;
|
|
90
|
-
if (!firstOption && !_isDisabled) {
|
|
91
|
-
firstOption = _option;
|
|
92
|
-
}
|
|
93
|
-
if (currOption) {
|
|
94
|
-
if (!_isDisabled) {
|
|
95
|
-
nextOption = _option;
|
|
96
|
-
if (!isUpArrow) {
|
|
97
|
-
return {
|
|
98
|
-
offsetOption: nextOption
|
|
99
|
-
};
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
if (optionValue === _option[valueField]) {
|
|
104
|
-
currOption = _option;
|
|
105
|
-
if (isUpArrow) {
|
|
106
|
-
return {
|
|
107
|
-
offsetOption: prevOption
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
} else {
|
|
111
|
-
if (!_isDisabled) {
|
|
112
|
-
prevOption = _option;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
}
|
|
117
|
-
return {
|
|
118
|
-
firstOption: firstOption
|
|
119
|
-
};
|
|
120
|
-
}
|
|
121
|
-
function findOption(_vm, optionValue) {
|
|
122
|
-
var isGroup = _vm.isGroup,
|
|
123
|
-
fullOptionList = _vm.fullOptionList,
|
|
124
|
-
fullGroupList = _vm.fullGroupList,
|
|
125
|
-
valueField = _vm.valueField;
|
|
126
|
-
if (isGroup) {
|
|
127
|
-
for (var gIndex = 0; gIndex < fullGroupList.length; gIndex++) {
|
|
128
|
-
var group = fullGroupList[gIndex];
|
|
129
|
-
if (group.options) {
|
|
130
|
-
for (var index = 0; index < group.options.length; index++) {
|
|
131
|
-
var option = group.options[index];
|
|
132
|
-
if (optionValue === option[valueField]) {
|
|
133
|
-
return option;
|
|
134
|
-
}
|
|
135
|
-
}
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
return fullOptionList.find(function (item) {
|
|
140
|
-
return optionValue === item[valueField];
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
function getRemoteSelectLabel(_vm, value) {
|
|
144
|
-
var remoteValueList = _vm.remoteValueList;
|
|
145
|
-
var remoteItem = remoteValueList.find(function (item) {
|
|
146
|
-
return value === item.key;
|
|
147
|
-
});
|
|
148
|
-
var item = remoteItem ? remoteItem.result : null;
|
|
149
|
-
return _xeUtils.default.toValueString(item ? item[_vm.labelField] : value);
|
|
150
|
-
}
|
|
151
|
-
function getSelectLabel(_vm, value) {
|
|
152
|
-
var item = findOption(_vm, value);
|
|
153
|
-
return _xeUtils.default.toValueString(item ? item[_vm.labelField] : value);
|
|
154
|
-
}
|
|
155
|
-
function checkOptionDisabled(_vm, isSelected, option, group) {
|
|
156
|
-
if (option.disabled) {
|
|
157
|
-
return true;
|
|
158
|
-
}
|
|
159
|
-
if (group && group.disabled) {
|
|
160
|
-
return true;
|
|
161
|
-
}
|
|
162
|
-
if (_vm.isMaximize && !isSelected) {
|
|
163
|
-
return true;
|
|
164
|
-
}
|
|
165
|
-
return false;
|
|
166
|
-
}
|
|
167
|
-
function renderOption(h, _vm, list, group) {
|
|
168
|
-
var $scopedSlots = _vm.$scopedSlots,
|
|
169
|
-
isGroup = _vm.isGroup,
|
|
170
|
-
labelField = _vm.labelField,
|
|
171
|
-
valueField = _vm.valueField,
|
|
172
|
-
optionKey = _vm.optionKey,
|
|
173
|
-
value = _vm.value,
|
|
174
|
-
multiple = _vm.multiple,
|
|
175
|
-
currentValue = _vm.currentValue,
|
|
176
|
-
optionOpts = _vm.optionOpts;
|
|
177
|
-
var useKey = optionOpts.useKey;
|
|
178
|
-
var optionSlot = $scopedSlots.option;
|
|
179
|
-
return list.map(function (option, cIndex) {
|
|
180
|
-
var slots = option.slots;
|
|
181
|
-
var optionValue = option[valueField];
|
|
182
|
-
var isSelected = multiple ? value && value.indexOf(optionValue) > -1 : value === optionValue;
|
|
183
|
-
var isVisible = !isGroup || isOptionVisible(option);
|
|
184
|
-
var isDisabled = checkOptionDisabled(_vm, isSelected, option, group);
|
|
185
|
-
var optid = getOptid(_vm, option);
|
|
186
|
-
var defaultSlot = slots ? slots.default : null;
|
|
187
|
-
var optParams = {
|
|
188
|
-
option: option,
|
|
189
|
-
group: null,
|
|
190
|
-
$select: _vm
|
|
191
|
-
};
|
|
192
|
-
return isVisible ? h('div', {
|
|
193
|
-
key: useKey || optionKey ? optid : cIndex,
|
|
194
|
-
class: ['vxe-select-option', option.className, {
|
|
195
|
-
'is--disabled': isDisabled,
|
|
196
|
-
'is--selected': isSelected,
|
|
197
|
-
'is--hover': currentValue === optionValue
|
|
198
|
-
}],
|
|
199
|
-
attrs: {
|
|
200
|
-
optid: optid
|
|
201
|
-
},
|
|
202
|
-
on: {
|
|
203
|
-
mousedown: _vm.mousedownOptionEvent,
|
|
204
|
-
click: function click(evnt) {
|
|
205
|
-
if (!isDisabled) {
|
|
206
|
-
_vm.changeOptionEvent(evnt, optionValue, option);
|
|
207
|
-
}
|
|
208
|
-
},
|
|
209
|
-
mouseenter: function mouseenter() {
|
|
210
|
-
if (!isDisabled) {
|
|
211
|
-
_vm.setCurrentOption(option);
|
|
212
|
-
}
|
|
213
|
-
}
|
|
214
|
-
}
|
|
215
|
-
}, optionSlot ? _vm.callSlot(optionSlot, optParams, h) : defaultSlot ? _vm.callSlot(defaultSlot, optParams, h) : _utils.default.formatText((0, _utils.getFuncText)(option[labelField]))) : null;
|
|
216
|
-
});
|
|
217
|
-
}
|
|
218
|
-
function renderOptgroup(h, _vm) {
|
|
219
|
-
var $scopedSlots = _vm.$scopedSlots,
|
|
220
|
-
optionKey = _vm.optionKey,
|
|
221
|
-
visibleGroupList = _vm.visibleGroupList,
|
|
222
|
-
groupLabelField = _vm.groupLabelField,
|
|
223
|
-
groupOptionsField = _vm.groupOptionsField,
|
|
224
|
-
optionOpts = _vm.optionOpts;
|
|
225
|
-
var useKey = optionOpts.useKey;
|
|
226
|
-
var optionSlot = $scopedSlots.option;
|
|
227
|
-
return visibleGroupList.map(function (group, gIndex) {
|
|
228
|
-
var slots = group.slots;
|
|
229
|
-
var optid = getOptid(_vm, group);
|
|
230
|
-
var isGroupDisabled = group.disabled;
|
|
231
|
-
var defaultSlot = slots ? slots.default : null;
|
|
232
|
-
var optParams = {
|
|
233
|
-
option: group,
|
|
234
|
-
group: group,
|
|
235
|
-
$select: _vm
|
|
236
|
-
};
|
|
237
|
-
return h('div', {
|
|
238
|
-
key: useKey || optionKey ? optid : gIndex,
|
|
239
|
-
class: ['vxe-optgroup', group.className, {
|
|
240
|
-
'is--disabled': isGroupDisabled
|
|
241
|
-
}],
|
|
242
|
-
attrs: {
|
|
243
|
-
optid: optid
|
|
244
|
-
}
|
|
245
|
-
}, [h('div', {
|
|
246
|
-
class: 'vxe-optgroup--title'
|
|
247
|
-
}, optionSlot ? _vm.callSlot(optionSlot, optParams, h) : defaultSlot ? _vm.callSlot(defaultSlot, optParams, h) : (0, _utils.getFuncText)(group[groupLabelField])), h('div', {
|
|
248
|
-
class: 'vxe-optgroup--wrapper'
|
|
249
|
-
}, renderOption(h, _vm, group[groupOptionsField], group))]);
|
|
250
|
-
});
|
|
251
|
-
}
|
|
252
|
-
function renderOpts(h, _vm) {
|
|
253
|
-
var isGroup = _vm.isGroup,
|
|
254
|
-
visibleGroupList = _vm.visibleGroupList,
|
|
255
|
-
visibleOptionList = _vm.visibleOptionList,
|
|
256
|
-
searchLoading = _vm.searchLoading;
|
|
257
|
-
if (searchLoading) {
|
|
258
|
-
return [h('div', {
|
|
259
|
-
class: 'vxe-select--search-loading'
|
|
260
|
-
}, [h('i', {
|
|
261
|
-
class: ['vxe-select--search-icon', _conf.default.icon.SELECT_LOADED]
|
|
262
|
-
}), h('span', {
|
|
263
|
-
class: 'vxe-select--search-text'
|
|
264
|
-
}, _conf.default.i18n('vxe.select.loadingText'))])];
|
|
265
|
-
}
|
|
266
|
-
if (isGroup) {
|
|
267
|
-
if (visibleGroupList.length) {
|
|
268
|
-
return renderOptgroup(h, _vm);
|
|
269
|
-
}
|
|
270
|
-
} else {
|
|
271
|
-
if (visibleOptionList.length) {
|
|
272
|
-
return renderOption(h, _vm, visibleOptionList);
|
|
273
|
-
}
|
|
274
|
-
}
|
|
275
|
-
return [h('div', {
|
|
276
|
-
class: 'vxe-select--empty-placeholder'
|
|
277
|
-
}, _vm.emptyText || _conf.default.i18n('vxe.select.emptyText'))];
|
|
278
|
-
}
|
|
279
|
-
var _default2 = exports.default = {
|
|
280
|
-
name: 'VxeSelect',
|
|
281
|
-
mixins: [_size.default],
|
|
282
|
-
props: {
|
|
283
|
-
value: null,
|
|
284
|
-
clearable: Boolean,
|
|
285
|
-
placeholder: {
|
|
286
|
-
type: String,
|
|
287
|
-
default: function _default() {
|
|
288
|
-
return _xeUtils.default.eqNull(_conf.default.select.placeholder) ? _conf.default.i18n('vxe.base.pleaseSelect') : _conf.default.select.placeholder;
|
|
289
|
-
}
|
|
290
|
-
},
|
|
291
|
-
loading: Boolean,
|
|
292
|
-
disabled: Boolean,
|
|
293
|
-
multiple: Boolean,
|
|
294
|
-
multiCharOverflow: {
|
|
295
|
-
type: [Number, String],
|
|
296
|
-
default: function _default() {
|
|
297
|
-
return _conf.default.select.multiCharOverflow;
|
|
298
|
-
}
|
|
299
|
-
},
|
|
300
|
-
prefixIcon: String,
|
|
301
|
-
placement: String,
|
|
302
|
-
options: Array,
|
|
303
|
-
optionProps: Object,
|
|
304
|
-
optionGroups: Array,
|
|
305
|
-
optionGroupProps: Object,
|
|
306
|
-
optionConfig: Object,
|
|
307
|
-
className: [String, Function],
|
|
308
|
-
popupClassName: [String, Function],
|
|
309
|
-
max: [String, Number],
|
|
310
|
-
size: {
|
|
311
|
-
type: String,
|
|
312
|
-
default: function _default() {
|
|
313
|
-
return _conf.default.select.size || _conf.default.size;
|
|
314
|
-
}
|
|
315
|
-
},
|
|
316
|
-
filterable: Boolean,
|
|
317
|
-
filterMethod: Function,
|
|
318
|
-
remote: Boolean,
|
|
319
|
-
remoteMethod: Function,
|
|
320
|
-
emptyText: String,
|
|
321
|
-
// 已废弃,被 option-config.keyField 替换
|
|
322
|
-
optionId: {
|
|
323
|
-
type: String,
|
|
324
|
-
default: function _default() {
|
|
325
|
-
return _conf.default.select.optionId;
|
|
326
|
-
}
|
|
327
|
-
},
|
|
328
|
-
// 已废弃,被 option-config.useKey 替换
|
|
329
|
-
optionKey: Boolean,
|
|
330
|
-
transfer: {
|
|
331
|
-
type: Boolean,
|
|
332
|
-
default: function _default() {
|
|
333
|
-
return _conf.default.select.transfer;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
},
|
|
337
|
-
components: {
|
|
338
|
-
VxeInput: _input.default
|
|
339
|
-
},
|
|
340
|
-
inject: {
|
|
341
|
-
$xeform: {
|
|
342
|
-
default: null
|
|
343
|
-
},
|
|
344
|
-
$xeformiteminfo: {
|
|
345
|
-
default: null
|
|
346
|
-
}
|
|
347
|
-
},
|
|
348
|
-
provide: function provide() {
|
|
349
|
-
return {
|
|
350
|
-
$xeselect: this
|
|
351
|
-
};
|
|
352
|
-
},
|
|
353
|
-
data: function data() {
|
|
354
|
-
return {
|
|
355
|
-
inited: false,
|
|
356
|
-
collectOption: [],
|
|
357
|
-
fullGroupList: [],
|
|
358
|
-
fullOptionList: [],
|
|
359
|
-
visibleGroupList: [],
|
|
360
|
-
visibleOptionList: [],
|
|
361
|
-
remoteValueList: [],
|
|
362
|
-
panelIndex: 0,
|
|
363
|
-
panelStyle: null,
|
|
364
|
-
panelPlacement: null,
|
|
365
|
-
currentOption: null,
|
|
366
|
-
currentValue: null,
|
|
367
|
-
visiblePanel: false,
|
|
368
|
-
animatVisible: false,
|
|
369
|
-
isActivated: false,
|
|
370
|
-
searchValue: '',
|
|
371
|
-
searchLoading: false
|
|
372
|
-
};
|
|
373
|
-
},
|
|
374
|
-
computed: {
|
|
375
|
-
propsOpts: function propsOpts() {
|
|
376
|
-
return this.optionProps || {};
|
|
377
|
-
},
|
|
378
|
-
groupPropsOpts: function groupPropsOpts() {
|
|
379
|
-
return this.optionGroupProps || {};
|
|
380
|
-
},
|
|
381
|
-
labelField: function labelField() {
|
|
382
|
-
return this.propsOpts.label || 'label';
|
|
383
|
-
},
|
|
384
|
-
valueField: function valueField() {
|
|
385
|
-
return this.propsOpts.value || 'value';
|
|
386
|
-
},
|
|
387
|
-
groupLabelField: function groupLabelField() {
|
|
388
|
-
return this.groupPropsOpts.label || 'label';
|
|
389
|
-
},
|
|
390
|
-
groupOptionsField: function groupOptionsField() {
|
|
391
|
-
return this.groupPropsOpts.options || 'options';
|
|
392
|
-
},
|
|
393
|
-
optionOpts: function optionOpts() {
|
|
394
|
-
return Object.assign({}, _conf.default.select.optionConfig, this.optionConfig);
|
|
395
|
-
},
|
|
396
|
-
isGroup: function isGroup() {
|
|
397
|
-
return this.fullGroupList.some(function (item) {
|
|
398
|
-
return item.options && item.options.length;
|
|
399
|
-
});
|
|
400
|
-
},
|
|
401
|
-
multiMaxCharNum: function multiMaxCharNum() {
|
|
402
|
-
return _xeUtils.default.toNumber(this.multiCharOverflow);
|
|
403
|
-
},
|
|
404
|
-
selectLabel: function selectLabel() {
|
|
405
|
-
var _this = this;
|
|
406
|
-
var value = this.value,
|
|
407
|
-
multiple = this.multiple,
|
|
408
|
-
remote = this.remote,
|
|
409
|
-
multiMaxCharNum = this.multiMaxCharNum;
|
|
410
|
-
if (value && multiple) {
|
|
411
|
-
var vals = _xeUtils.default.isArray(value) ? value : [value];
|
|
412
|
-
if (remote) {
|
|
413
|
-
return vals.map(function (val) {
|
|
414
|
-
return getRemoteSelectLabel(_this, val);
|
|
415
|
-
}).join(', ');
|
|
416
|
-
}
|
|
417
|
-
return vals.map(function (val) {
|
|
418
|
-
var label = getSelectLabel(_this, val);
|
|
419
|
-
if (multiMaxCharNum > 0 && label.length > multiMaxCharNum) {
|
|
420
|
-
return "".concat(label.substring(0, multiMaxCharNum), "...");
|
|
421
|
-
}
|
|
422
|
-
return label;
|
|
423
|
-
}).join(', ');
|
|
424
|
-
}
|
|
425
|
-
if (remote) {
|
|
426
|
-
return getRemoteSelectLabel(this, value);
|
|
427
|
-
}
|
|
428
|
-
return getSelectLabel(this, value);
|
|
429
|
-
},
|
|
430
|
-
isMaximize: function isMaximize() {
|
|
431
|
-
var value = this.value,
|
|
432
|
-
multiple = this.multiple,
|
|
433
|
-
max = this.max;
|
|
434
|
-
if (multiple && max) {
|
|
435
|
-
return (value ? value.length : 0) >= _xeUtils.default.toNumber(max);
|
|
436
|
-
}
|
|
437
|
-
return false;
|
|
438
|
-
}
|
|
439
|
-
},
|
|
440
|
-
watch: {
|
|
441
|
-
collectOption: function collectOption(value) {
|
|
442
|
-
if (value.some(function (item) {
|
|
443
|
-
return item.options && item.options.length;
|
|
444
|
-
})) {
|
|
445
|
-
this.fullOptionList = [];
|
|
446
|
-
this.fullGroupList = value;
|
|
447
|
-
} else {
|
|
448
|
-
this.fullGroupList = [];
|
|
449
|
-
this.fullOptionList = value;
|
|
450
|
-
}
|
|
451
|
-
this.cacheItemMap();
|
|
452
|
-
},
|
|
453
|
-
options: function options(value) {
|
|
454
|
-
this.fullGroupList = [];
|
|
455
|
-
this.fullOptionList = value;
|
|
456
|
-
this.cacheItemMap();
|
|
457
|
-
},
|
|
458
|
-
optionGroups: function optionGroups(value) {
|
|
459
|
-
this.fullOptionList = [];
|
|
460
|
-
this.fullGroupList = value;
|
|
461
|
-
this.cacheItemMap();
|
|
462
|
-
}
|
|
463
|
-
},
|
|
464
|
-
created: function created() {
|
|
465
|
-
var options = this.options,
|
|
466
|
-
optionGroups = this.optionGroups;
|
|
467
|
-
if (optionGroups) {
|
|
468
|
-
this.fullGroupList = optionGroups;
|
|
469
|
-
} else if (options) {
|
|
470
|
-
this.fullOptionList = options;
|
|
471
|
-
}
|
|
472
|
-
this.cacheItemMap();
|
|
473
|
-
_event.GlobalEvent.on(this, 'mousewheel', this.handleGlobalMousewheelEvent);
|
|
474
|
-
_event.GlobalEvent.on(this, 'mousedown', this.handleGlobalMousedownEvent);
|
|
475
|
-
_event.GlobalEvent.on(this, 'keydown', this.handleGlobalKeydownEvent);
|
|
476
|
-
_event.GlobalEvent.on(this, 'blur', this.handleGlobalBlurEvent);
|
|
477
|
-
},
|
|
478
|
-
beforeDestroy: function beforeDestroy() {
|
|
479
|
-
var panelElem = this.$refs.panel;
|
|
480
|
-
if (panelElem && panelElem.parentNode) {
|
|
481
|
-
panelElem.parentNode.removeChild(panelElem);
|
|
482
|
-
}
|
|
483
|
-
},
|
|
484
|
-
destroyed: function destroyed() {
|
|
485
|
-
_event.GlobalEvent.off(this, 'mousewheel');
|
|
486
|
-
_event.GlobalEvent.off(this, 'mousedown');
|
|
487
|
-
_event.GlobalEvent.off(this, 'keydown');
|
|
488
|
-
_event.GlobalEvent.off(this, 'blur');
|
|
489
|
-
},
|
|
490
|
-
render: function render(h) {
|
|
491
|
-
var _this2 = this;
|
|
492
|
-
var _e = this._e,
|
|
493
|
-
$scopedSlots = this.$scopedSlots,
|
|
494
|
-
vSize = this.vSize,
|
|
495
|
-
className = this.className,
|
|
496
|
-
popupClassName = this.popupClassName,
|
|
497
|
-
inited = this.inited,
|
|
498
|
-
isActivated = this.isActivated,
|
|
499
|
-
loading = this.loading,
|
|
500
|
-
disabled = this.disabled,
|
|
501
|
-
visiblePanel = this.visiblePanel,
|
|
502
|
-
filterable = this.filterable;
|
|
503
|
-
var defaultSlot = $scopedSlots.default;
|
|
504
|
-
var prefixSlot = $scopedSlots.prefix;
|
|
505
|
-
var headerSlot = $scopedSlots.header;
|
|
506
|
-
var footerSlot = $scopedSlots.footer;
|
|
507
|
-
return h('div', {
|
|
508
|
-
class: ['vxe-select', className ? _xeUtils.default.isFunction(className) ? className({
|
|
509
|
-
$select: this
|
|
510
|
-
}) : className : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--visivle', visiblePanel), 'is--disabled', disabled), 'is--filter', filterable), 'is--loading', loading), 'is--active', isActivated)]
|
|
511
|
-
}, [h('div', {
|
|
512
|
-
class: 'vxe-select-slots',
|
|
513
|
-
ref: 'hideOption'
|
|
514
|
-
}, defaultSlot ? defaultSlot.call(this, {}) : []), h('vxe-input', {
|
|
515
|
-
ref: 'input',
|
|
516
|
-
props: {
|
|
517
|
-
clearable: this.clearable,
|
|
518
|
-
placeholder: this.placeholder,
|
|
519
|
-
readonly: true,
|
|
520
|
-
disabled: disabled,
|
|
521
|
-
type: 'text',
|
|
522
|
-
prefixIcon: this.prefixIcon,
|
|
523
|
-
suffixIcon: loading ? _conf.default.icon.SELECT_LOADED : visiblePanel ? _conf.default.icon.SELECT_OPEN : _conf.default.icon.SELECT_CLOSE,
|
|
524
|
-
value: this.selectLabel
|
|
525
|
-
},
|
|
526
|
-
on: {
|
|
527
|
-
clear: this.clearEvent,
|
|
528
|
-
click: this.togglePanelEvent,
|
|
529
|
-
focus: this.focusEvent,
|
|
530
|
-
blur: this.blurEvent,
|
|
531
|
-
'suffix-click': this.togglePanelEvent
|
|
532
|
-
},
|
|
533
|
-
scopedSlots: prefixSlot ? {
|
|
534
|
-
prefix: function prefix() {
|
|
535
|
-
return prefixSlot.call(_this2, {});
|
|
536
|
-
}
|
|
537
|
-
} : {}
|
|
538
|
-
}), h('div', {
|
|
539
|
-
ref: 'panel',
|
|
540
|
-
class: ['vxe-table--ignore-clear vxe-select--panel', popupClassName ? _xeUtils.default.isFunction(popupClassName) ? popupClassName({
|
|
541
|
-
$select: this
|
|
542
|
-
}) : popupClassName : '', _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "size--".concat(vSize), vSize), 'is--transfer', this.transfer), 'animat--leave', !loading && this.animatVisible), 'animat--enter', !loading && visiblePanel)],
|
|
543
|
-
attrs: {
|
|
544
|
-
placement: this.panelPlacement
|
|
545
|
-
},
|
|
546
|
-
style: this.panelStyle
|
|
547
|
-
}, inited ? [filterable ? h('div', {
|
|
548
|
-
class: 'vxe-select--panel-search'
|
|
549
|
-
}, [h('vxe-input', {
|
|
550
|
-
ref: 'inpSearch',
|
|
551
|
-
class: 'vxe-select-search--input',
|
|
552
|
-
props: {
|
|
553
|
-
value: this.searchValue,
|
|
554
|
-
type: 'text',
|
|
555
|
-
clearable: true,
|
|
556
|
-
placeholder: _conf.default.i18n('vxe.select.search'),
|
|
557
|
-
prefixIcon: _conf.default.icon.INPUT_SEARCH
|
|
558
|
-
},
|
|
559
|
-
on: {
|
|
560
|
-
modelValue: this.modelSearchEvent,
|
|
561
|
-
focus: this.focusSearchEvent,
|
|
562
|
-
keydown: this.keydownSearchEvent,
|
|
563
|
-
change: this.triggerSearchEvent,
|
|
564
|
-
search: this.triggerSearchEvent
|
|
565
|
-
}
|
|
566
|
-
})]) : _e(), h('div', {
|
|
567
|
-
class: 'vxe-select--panel-wrapper'
|
|
568
|
-
}, [headerSlot ? h('div', {
|
|
569
|
-
class: 'vxe-select--panel-header'
|
|
570
|
-
}, headerSlot.call(this, {})) : _e(), h('div', {
|
|
571
|
-
class: 'vxe-select--panel-body'
|
|
572
|
-
}, [h('div', {
|
|
573
|
-
ref: 'optWrapper',
|
|
574
|
-
class: 'vxe-select-option--wrapper'
|
|
575
|
-
}, renderOpts(h, this))]), footerSlot ? h('div', {
|
|
576
|
-
class: 'vxe-select--panel-footer'
|
|
577
|
-
}, footerSlot.call(this, {})) : _e()])] : [])]);
|
|
578
|
-
},
|
|
579
|
-
methods: {
|
|
580
|
-
callSlot: function callSlot(slotFunc, params, h) {
|
|
581
|
-
if (slotFunc) {
|
|
582
|
-
var $scopedSlots = this.$scopedSlots;
|
|
583
|
-
if (_xeUtils.default.isString(slotFunc)) {
|
|
584
|
-
slotFunc = $scopedSlots[slotFunc] || null;
|
|
585
|
-
}
|
|
586
|
-
if (_xeUtils.default.isFunction(slotFunc)) {
|
|
587
|
-
return (0, _vn.getSlotVNs)(slotFunc.call(this, params, h));
|
|
588
|
-
}
|
|
589
|
-
}
|
|
590
|
-
return [];
|
|
591
|
-
},
|
|
592
|
-
cacheItemMap: function cacheItemMap() {
|
|
593
|
-
var _this3 = this;
|
|
594
|
-
var fullOptionList = this.fullOptionList,
|
|
595
|
-
fullGroupList = this.fullGroupList,
|
|
596
|
-
groupOptionsField = this.groupOptionsField;
|
|
597
|
-
var optkey = getOptkey(this);
|
|
598
|
-
var handleOptis = function handleOptis(item) {
|
|
599
|
-
if (!getOptid(_this3, item)) {
|
|
600
|
-
item[optkey] = getOptUniqueId();
|
|
601
|
-
}
|
|
602
|
-
};
|
|
603
|
-
if (fullGroupList.length) {
|
|
604
|
-
fullGroupList.forEach(function (group) {
|
|
605
|
-
handleOptis(group);
|
|
606
|
-
if (group[groupOptionsField]) {
|
|
607
|
-
group[groupOptionsField].forEach(handleOptis);
|
|
608
|
-
}
|
|
609
|
-
});
|
|
610
|
-
} else if (fullOptionList.length) {
|
|
611
|
-
fullOptionList.forEach(handleOptis);
|
|
612
|
-
}
|
|
613
|
-
this.refreshOption();
|
|
614
|
-
},
|
|
615
|
-
/**
|
|
616
|
-
* 刷新选项,当选项被搜索、动态显示/隐藏时可能会用到
|
|
617
|
-
*/
|
|
618
|
-
refreshOption: function refreshOption() {
|
|
619
|
-
var isGroup = this.isGroup,
|
|
620
|
-
fullOptionList = this.fullOptionList,
|
|
621
|
-
fullGroupList = this.fullGroupList,
|
|
622
|
-
filterable = this.filterable,
|
|
623
|
-
filterMethod = this.filterMethod,
|
|
624
|
-
searchValue = this.searchValue,
|
|
625
|
-
labelField = this.labelField,
|
|
626
|
-
groupLabelField = this.groupLabelField;
|
|
627
|
-
var searchStr = "".concat(searchValue || '').toLowerCase();
|
|
628
|
-
if (isGroup) {
|
|
629
|
-
if (filterable && filterMethod) {
|
|
630
|
-
this.visibleGroupList = fullGroupList.filter(function (group) {
|
|
631
|
-
return isOptionVisible(group) && filterMethod({
|
|
632
|
-
group: group,
|
|
633
|
-
option: null,
|
|
634
|
-
searchValue: searchStr
|
|
635
|
-
});
|
|
636
|
-
});
|
|
637
|
-
} else if (filterable) {
|
|
638
|
-
this.visibleGroupList = fullGroupList.filter(function (group) {
|
|
639
|
-
return isOptionVisible(group) && (!searchStr || "".concat(group[groupLabelField]).toLowerCase().indexOf(searchStr) > -1);
|
|
640
|
-
});
|
|
641
|
-
} else {
|
|
642
|
-
this.visibleGroupList = fullGroupList.filter(isOptionVisible);
|
|
643
|
-
}
|
|
644
|
-
} else {
|
|
645
|
-
if (filterable && filterMethod) {
|
|
646
|
-
this.visibleOptionList = fullOptionList.filter(function (option) {
|
|
647
|
-
return isOptionVisible(option) && filterMethod({
|
|
648
|
-
group: null,
|
|
649
|
-
option: option,
|
|
650
|
-
searchValue: searchStr
|
|
651
|
-
});
|
|
652
|
-
});
|
|
653
|
-
} else if (filterable) {
|
|
654
|
-
this.visibleOptionList = fullOptionList.filter(function (option) {
|
|
655
|
-
return isOptionVisible(option) && (!searchStr || "".concat(option[labelField]).toLowerCase().indexOf(searchStr) > -1);
|
|
656
|
-
});
|
|
657
|
-
} else {
|
|
658
|
-
this.visibleOptionList = fullOptionList.filter(isOptionVisible);
|
|
659
|
-
}
|
|
660
|
-
}
|
|
661
|
-
return this.$nextTick();
|
|
662
|
-
},
|
|
663
|
-
setCurrentOption: function setCurrentOption(option) {
|
|
664
|
-
if (option) {
|
|
665
|
-
this.currentOption = option;
|
|
666
|
-
this.currentValue = option[this.valueField];
|
|
667
|
-
}
|
|
668
|
-
},
|
|
669
|
-
scrollToOption: function scrollToOption(option, isAlignBottom) {
|
|
670
|
-
var _this4 = this;
|
|
671
|
-
return this.$nextTick().then(function () {
|
|
672
|
-
if (option) {
|
|
673
|
-
var $refs = _this4.$refs;
|
|
674
|
-
var optWrapperElem = $refs.optWrapper;
|
|
675
|
-
var optElem = $refs.panel.querySelector("[optid='".concat(getOptid(_this4, option), "']"));
|
|
676
|
-
if (optWrapperElem && optElem) {
|
|
677
|
-
var wrapperHeight = optWrapperElem.offsetHeight;
|
|
678
|
-
var offsetPadding = 5;
|
|
679
|
-
if (isAlignBottom) {
|
|
680
|
-
if (optElem.offsetTop + optElem.offsetHeight - optWrapperElem.scrollTop > wrapperHeight) {
|
|
681
|
-
optWrapperElem.scrollTop = optElem.offsetTop + optElem.offsetHeight - wrapperHeight;
|
|
682
|
-
}
|
|
683
|
-
} else {
|
|
684
|
-
if (optElem.offsetTop + offsetPadding < optWrapperElem.scrollTop || optElem.offsetTop + offsetPadding > optWrapperElem.scrollTop + optWrapperElem.clientHeight) {
|
|
685
|
-
optWrapperElem.scrollTop = optElem.offsetTop - offsetPadding;
|
|
686
|
-
}
|
|
687
|
-
}
|
|
688
|
-
}
|
|
689
|
-
}
|
|
690
|
-
});
|
|
691
|
-
},
|
|
692
|
-
clearEvent: function clearEvent(params, evnt) {
|
|
693
|
-
this.clearValueEvent(evnt, null);
|
|
694
|
-
this.hideOptionPanel();
|
|
695
|
-
},
|
|
696
|
-
clearValueEvent: function clearValueEvent(evnt, selectValue) {
|
|
697
|
-
this.remoteValueList = [];
|
|
698
|
-
this.changeEvent(evnt, selectValue);
|
|
699
|
-
this.$emit('clear', {
|
|
700
|
-
value: selectValue,
|
|
701
|
-
$event: evnt
|
|
702
|
-
});
|
|
703
|
-
},
|
|
704
|
-
changeEvent: function changeEvent(evnt, selectValue) {
|
|
705
|
-
if (selectValue !== this.value) {
|
|
706
|
-
this.$emit('input', selectValue);
|
|
707
|
-
this.$emit('change', {
|
|
708
|
-
value: selectValue,
|
|
709
|
-
$event: evnt
|
|
710
|
-
});
|
|
711
|
-
// 自动更新校验状态
|
|
712
|
-
if (this.$xeform && this.$xeformiteminfo) {
|
|
713
|
-
this.$xeform.triggerItemEvent(evnt, this.$xeformiteminfo.itemConfig.field, selectValue);
|
|
714
|
-
}
|
|
715
|
-
}
|
|
716
|
-
},
|
|
717
|
-
mousedownOptionEvent: function mousedownOptionEvent(evnt) {
|
|
718
|
-
var isLeftBtn = evnt.button === 0;
|
|
719
|
-
if (isLeftBtn) {
|
|
720
|
-
evnt.stopPropagation();
|
|
721
|
-
}
|
|
722
|
-
},
|
|
723
|
-
changeOptionEvent: function changeOptionEvent(evnt, selectValue, option) {
|
|
724
|
-
var value = this.value,
|
|
725
|
-
multiple = this.multiple,
|
|
726
|
-
remoteValueList = this.remoteValueList;
|
|
727
|
-
if (multiple) {
|
|
728
|
-
var multipleValue;
|
|
729
|
-
if (value) {
|
|
730
|
-
if (value.indexOf(selectValue) === -1) {
|
|
731
|
-
multipleValue = value.concat([selectValue]);
|
|
732
|
-
} else {
|
|
733
|
-
multipleValue = value.filter(function (val) {
|
|
734
|
-
return val !== selectValue;
|
|
735
|
-
});
|
|
736
|
-
}
|
|
737
|
-
} else {
|
|
738
|
-
multipleValue = [selectValue];
|
|
739
|
-
}
|
|
740
|
-
var remoteItem = remoteValueList.find(function (item) {
|
|
741
|
-
return item.key === selectValue;
|
|
742
|
-
});
|
|
743
|
-
if (remoteItem) {
|
|
744
|
-
remoteItem.result = option;
|
|
745
|
-
} else {
|
|
746
|
-
remoteValueList.push({
|
|
747
|
-
key: selectValue,
|
|
748
|
-
result: option
|
|
749
|
-
});
|
|
750
|
-
}
|
|
751
|
-
this.changeEvent(evnt, multipleValue);
|
|
752
|
-
} else {
|
|
753
|
-
this.remoteValueList = [{
|
|
754
|
-
key: selectValue,
|
|
755
|
-
result: option
|
|
756
|
-
}];
|
|
757
|
-
this.changeEvent(evnt, selectValue);
|
|
758
|
-
this.hideOptionPanel();
|
|
759
|
-
}
|
|
760
|
-
},
|
|
761
|
-
handleGlobalMousewheelEvent: function handleGlobalMousewheelEvent(evnt) {
|
|
762
|
-
var $refs = this.$refs,
|
|
763
|
-
disabled = this.disabled,
|
|
764
|
-
visiblePanel = this.visiblePanel;
|
|
765
|
-
if (!disabled) {
|
|
766
|
-
if (visiblePanel) {
|
|
767
|
-
if (_dom.default.getEventTargetNode(evnt, $refs.panel).flag) {
|
|
768
|
-
this.updatePlacement();
|
|
769
|
-
} else {
|
|
770
|
-
this.hideOptionPanel();
|
|
771
|
-
}
|
|
772
|
-
}
|
|
773
|
-
}
|
|
774
|
-
},
|
|
775
|
-
handleGlobalMousedownEvent: function handleGlobalMousedownEvent(evnt) {
|
|
776
|
-
var $refs = this.$refs,
|
|
777
|
-
$el = this.$el,
|
|
778
|
-
disabled = this.disabled,
|
|
779
|
-
visiblePanel = this.visiblePanel;
|
|
780
|
-
if (!disabled) {
|
|
781
|
-
this.isActivated = _dom.default.getEventTargetNode(evnt, $el).flag || _dom.default.getEventTargetNode(evnt, $refs.panel).flag;
|
|
782
|
-
if (visiblePanel && !this.isActivated) {
|
|
783
|
-
this.hideOptionPanel();
|
|
784
|
-
}
|
|
785
|
-
}
|
|
786
|
-
},
|
|
787
|
-
handleGlobalKeydownEvent: function handleGlobalKeydownEvent(evnt) {
|
|
788
|
-
var visiblePanel = this.visiblePanel,
|
|
789
|
-
currentValue = this.currentValue,
|
|
790
|
-
currentOption = this.currentOption,
|
|
791
|
-
clearable = this.clearable,
|
|
792
|
-
disabled = this.disabled;
|
|
793
|
-
if (!disabled) {
|
|
794
|
-
var keyCode = evnt.keyCode;
|
|
795
|
-
var isTab = keyCode === 9;
|
|
796
|
-
var isEnter = keyCode === 13;
|
|
797
|
-
var isEsc = keyCode === 27;
|
|
798
|
-
var isUpArrow = keyCode === 38;
|
|
799
|
-
var isDwArrow = keyCode === 40;
|
|
800
|
-
var isDel = keyCode === 46;
|
|
801
|
-
var isSpacebar = keyCode === 32;
|
|
802
|
-
if (isTab) {
|
|
803
|
-
this.isActivated = false;
|
|
804
|
-
}
|
|
805
|
-
if (visiblePanel) {
|
|
806
|
-
if (isEsc || isTab) {
|
|
807
|
-
this.hideOptionPanel();
|
|
808
|
-
} else if (isEnter) {
|
|
809
|
-
evnt.preventDefault();
|
|
810
|
-
evnt.stopPropagation();
|
|
811
|
-
this.changeOptionEvent(evnt, currentValue, currentOption);
|
|
812
|
-
} else if (isUpArrow || isDwArrow) {
|
|
813
|
-
evnt.preventDefault();
|
|
814
|
-
var _findOffsetOption = findOffsetOption(this, currentValue, isUpArrow),
|
|
815
|
-
firstOption = _findOffsetOption.firstOption,
|
|
816
|
-
offsetOption = _findOffsetOption.offsetOption;
|
|
817
|
-
if (!offsetOption && !findOption(this, currentValue)) {
|
|
818
|
-
offsetOption = firstOption;
|
|
819
|
-
}
|
|
820
|
-
this.setCurrentOption(offsetOption);
|
|
821
|
-
this.scrollToOption(offsetOption, isDwArrow);
|
|
822
|
-
} else if (isSpacebar) {
|
|
823
|
-
evnt.preventDefault();
|
|
824
|
-
}
|
|
825
|
-
} else if ((isUpArrow || isDwArrow || isEnter || isSpacebar) && this.isActivated) {
|
|
826
|
-
evnt.preventDefault();
|
|
827
|
-
this.showOptionPanel();
|
|
828
|
-
}
|
|
829
|
-
if (this.isActivated) {
|
|
830
|
-
if (isDel && clearable) {
|
|
831
|
-
this.clearValueEvent(evnt, null);
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
}
|
|
835
|
-
},
|
|
836
|
-
handleGlobalBlurEvent: function handleGlobalBlurEvent() {
|
|
837
|
-
this.hideOptionPanel();
|
|
838
|
-
},
|
|
839
|
-
updateZindex: function updateZindex() {
|
|
840
|
-
if (this.panelIndex < _utils.default.getLastZIndex()) {
|
|
841
|
-
this.panelIndex = _utils.default.nextZIndex();
|
|
842
|
-
}
|
|
843
|
-
},
|
|
844
|
-
handleFocusSearch: function handleFocusSearch() {
|
|
845
|
-
var _this5 = this;
|
|
846
|
-
if (this.filterable) {
|
|
847
|
-
this.$nextTick(function () {
|
|
848
|
-
if (_this5.$refs.inpSearch) {
|
|
849
|
-
_this5.$refs.inpSearch.focus();
|
|
850
|
-
}
|
|
851
|
-
});
|
|
852
|
-
}
|
|
853
|
-
},
|
|
854
|
-
focusEvent: function focusEvent(evnt) {
|
|
855
|
-
if (!this.disabled) {
|
|
856
|
-
this.isActivated = true;
|
|
857
|
-
}
|
|
858
|
-
this.$emit('focus', {
|
|
859
|
-
$event: evnt
|
|
860
|
-
});
|
|
861
|
-
},
|
|
862
|
-
blurEvent: function blurEvent(evnt) {
|
|
863
|
-
this.isActivated = false;
|
|
864
|
-
this.$emit('blur', {
|
|
865
|
-
$event: evnt
|
|
866
|
-
});
|
|
867
|
-
},
|
|
868
|
-
modelSearchEvent: function modelSearchEvent(value) {
|
|
869
|
-
this.searchValue = value;
|
|
870
|
-
},
|
|
871
|
-
focusSearchEvent: function focusSearchEvent() {
|
|
872
|
-
this.isActivated = true;
|
|
873
|
-
},
|
|
874
|
-
keydownSearchEvent: function keydownSearchEvent(params) {
|
|
875
|
-
var $event = params.$event;
|
|
876
|
-
var isEnter = (0, _event.hasEventKey)($event, _event.EVENT_KEYS.ENTER);
|
|
877
|
-
if (isEnter) {
|
|
878
|
-
$event.preventDefault();
|
|
879
|
-
$event.stopPropagation();
|
|
880
|
-
}
|
|
881
|
-
},
|
|
882
|
-
triggerSearchEvent: _xeUtils.default.debounce(function () {
|
|
883
|
-
var _this6 = this;
|
|
884
|
-
var remote = this.remote,
|
|
885
|
-
remoteMethod = this.remoteMethod,
|
|
886
|
-
searchValue = this.searchValue;
|
|
887
|
-
if (remote && remoteMethod) {
|
|
888
|
-
this.searchLoading = true;
|
|
889
|
-
Promise.resolve(remoteMethod({
|
|
890
|
-
searchValue: searchValue
|
|
891
|
-
})).then(function () {
|
|
892
|
-
return _this6.$nextTick();
|
|
893
|
-
}).catch(function () {
|
|
894
|
-
return _this6.$nextTick();
|
|
895
|
-
}).finally(function () {
|
|
896
|
-
_this6.searchLoading = false;
|
|
897
|
-
_this6.refreshOption();
|
|
898
|
-
});
|
|
899
|
-
} else {
|
|
900
|
-
this.refreshOption();
|
|
901
|
-
}
|
|
902
|
-
}, 350, {
|
|
903
|
-
trailing: true
|
|
904
|
-
}),
|
|
905
|
-
isPanelVisible: function isPanelVisible() {
|
|
906
|
-
return this.visiblePanel;
|
|
907
|
-
},
|
|
908
|
-
togglePanel: function togglePanel() {
|
|
909
|
-
if (this.visiblePanel) {
|
|
910
|
-
this.hideOptionPanel();
|
|
911
|
-
} else {
|
|
912
|
-
this.showOptionPanel();
|
|
913
|
-
}
|
|
914
|
-
this.$nextTick();
|
|
915
|
-
},
|
|
916
|
-
hidePanel: function hidePanel() {
|
|
917
|
-
if (this.visiblePanel) {
|
|
918
|
-
this.hideOptionPanel();
|
|
919
|
-
}
|
|
920
|
-
this.$nextTick();
|
|
921
|
-
},
|
|
922
|
-
showPanel: function showPanel() {
|
|
923
|
-
if (!this.visiblePanel) {
|
|
924
|
-
this.showOptionPanel();
|
|
925
|
-
}
|
|
926
|
-
this.$nextTick();
|
|
927
|
-
},
|
|
928
|
-
togglePanelEvent: function togglePanelEvent(params) {
|
|
929
|
-
var $event = params.$event;
|
|
930
|
-
$event.preventDefault();
|
|
931
|
-
if (this.visiblePanel) {
|
|
932
|
-
this.hideOptionPanel();
|
|
933
|
-
} else {
|
|
934
|
-
this.showOptionPanel();
|
|
935
|
-
}
|
|
936
|
-
},
|
|
937
|
-
showOptionPanel: function showOptionPanel() {
|
|
938
|
-
var _this7 = this;
|
|
939
|
-
var loading = this.loading,
|
|
940
|
-
disabled = this.disabled,
|
|
941
|
-
filterable = this.filterable;
|
|
942
|
-
if (!loading && !disabled) {
|
|
943
|
-
this.searchList = this.option;
|
|
944
|
-
clearTimeout(this.hidePanelTimeout);
|
|
945
|
-
if (!this.inited) {
|
|
946
|
-
this.inited = true;
|
|
947
|
-
if (this.transfer) {
|
|
948
|
-
document.body.appendChild(this.$refs.panel);
|
|
949
|
-
}
|
|
950
|
-
}
|
|
951
|
-
this.isActivated = true;
|
|
952
|
-
this.animatVisible = true;
|
|
953
|
-
if (filterable) {
|
|
954
|
-
this.refreshOption();
|
|
955
|
-
}
|
|
956
|
-
setTimeout(function () {
|
|
957
|
-
var value = _this7.value,
|
|
958
|
-
multiple = _this7.multiple;
|
|
959
|
-
var currOption = findOption(_this7, multiple && value ? value[0] : value);
|
|
960
|
-
_this7.visiblePanel = true;
|
|
961
|
-
if (currOption) {
|
|
962
|
-
_this7.setCurrentOption(currOption);
|
|
963
|
-
_this7.scrollToOption(currOption);
|
|
964
|
-
}
|
|
965
|
-
_this7.handleFocusSearch();
|
|
966
|
-
}, 10);
|
|
967
|
-
this.updateZindex();
|
|
968
|
-
this.updatePlacement();
|
|
969
|
-
}
|
|
970
|
-
},
|
|
971
|
-
hideOptionPanel: function hideOptionPanel() {
|
|
972
|
-
var _this8 = this;
|
|
973
|
-
this.searchValue = '';
|
|
974
|
-
this.searchLoading = false;
|
|
975
|
-
this.visiblePanel = false;
|
|
976
|
-
this.hidePanelTimeout = setTimeout(function () {
|
|
977
|
-
_this8.animatVisible = false;
|
|
978
|
-
_this8.searchValue = '';
|
|
979
|
-
}, 350);
|
|
980
|
-
},
|
|
981
|
-
updatePlacement: function updatePlacement() {
|
|
982
|
-
var _this9 = this;
|
|
983
|
-
return this.$nextTick().then(function () {
|
|
984
|
-
var $refs = _this9.$refs,
|
|
985
|
-
transfer = _this9.transfer,
|
|
986
|
-
placement = _this9.placement,
|
|
987
|
-
panelIndex = _this9.panelIndex;
|
|
988
|
-
var targetElem = $refs.input.$el;
|
|
989
|
-
var panelElem = $refs.panel;
|
|
990
|
-
if (panelElem && targetElem) {
|
|
991
|
-
var targetHeight = targetElem.offsetHeight;
|
|
992
|
-
var targetWidth = targetElem.offsetWidth;
|
|
993
|
-
var panelHeight = panelElem.offsetHeight;
|
|
994
|
-
var panelWidth = panelElem.offsetWidth;
|
|
995
|
-
var marginSize = 5;
|
|
996
|
-
var panelStyle = {
|
|
997
|
-
zIndex: panelIndex
|
|
998
|
-
};
|
|
999
|
-
var _DomTools$getAbsolute = _dom.default.getAbsolutePos(targetElem),
|
|
1000
|
-
boundingTop = _DomTools$getAbsolute.boundingTop,
|
|
1001
|
-
boundingLeft = _DomTools$getAbsolute.boundingLeft,
|
|
1002
|
-
visibleHeight = _DomTools$getAbsolute.visibleHeight,
|
|
1003
|
-
visibleWidth = _DomTools$getAbsolute.visibleWidth;
|
|
1004
|
-
var panelPlacement = 'bottom';
|
|
1005
|
-
if (transfer) {
|
|
1006
|
-
var left = boundingLeft;
|
|
1007
|
-
var top = boundingTop + targetHeight;
|
|
1008
|
-
if (placement === 'top') {
|
|
1009
|
-
panelPlacement = 'top';
|
|
1010
|
-
top = boundingTop - panelHeight;
|
|
1011
|
-
} else if (!placement) {
|
|
1012
|
-
// 如果下面不够放,则向上
|
|
1013
|
-
if (top + panelHeight + marginSize > visibleHeight) {
|
|
1014
|
-
panelPlacement = 'top';
|
|
1015
|
-
top = boundingTop - panelHeight;
|
|
1016
|
-
}
|
|
1017
|
-
// 如果上面不够放,则向下(优先)
|
|
1018
|
-
if (top < marginSize) {
|
|
1019
|
-
panelPlacement = 'bottom';
|
|
1020
|
-
top = boundingTop + targetHeight;
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
// 如果溢出右边
|
|
1024
|
-
if (left + panelWidth + marginSize > visibleWidth) {
|
|
1025
|
-
left -= left + panelWidth + marginSize - visibleWidth;
|
|
1026
|
-
}
|
|
1027
|
-
// 如果溢出左边
|
|
1028
|
-
if (left < marginSize) {
|
|
1029
|
-
left = marginSize;
|
|
1030
|
-
}
|
|
1031
|
-
Object.assign(panelStyle, {
|
|
1032
|
-
left: "".concat(left, "px"),
|
|
1033
|
-
top: "".concat(top, "px"),
|
|
1034
|
-
minWidth: "".concat(targetWidth, "px")
|
|
1035
|
-
});
|
|
1036
|
-
} else {
|
|
1037
|
-
if (placement === 'top') {
|
|
1038
|
-
panelPlacement = 'top';
|
|
1039
|
-
panelStyle.bottom = "".concat(targetHeight, "px");
|
|
1040
|
-
} else if (!placement) {
|
|
1041
|
-
// 如果下面不够放,则向上
|
|
1042
|
-
if (boundingTop + targetHeight + panelHeight > visibleHeight) {
|
|
1043
|
-
// 如果上面不够放,则向下(优先)
|
|
1044
|
-
if (boundingTop - targetHeight - panelHeight > marginSize) {
|
|
1045
|
-
panelPlacement = 'top';
|
|
1046
|
-
panelStyle.bottom = "".concat(targetHeight, "px");
|
|
1047
|
-
}
|
|
1048
|
-
}
|
|
1049
|
-
}
|
|
1050
|
-
}
|
|
1051
|
-
_this9.panelStyle = panelStyle;
|
|
1052
|
-
_this9.panelPlacement = panelPlacement;
|
|
1053
|
-
return _this9.$nextTick();
|
|
1054
|
-
}
|
|
1055
|
-
});
|
|
1056
|
-
},
|
|
1057
|
-
focus: function focus() {
|
|
1058
|
-
this.isActivated = true;
|
|
1059
|
-
this.$refs.input.focus();
|
|
1060
|
-
return this.$nextTick();
|
|
1061
|
-
},
|
|
1062
|
-
blur: function blur() {
|
|
1063
|
-
this.hideOptionPanel();
|
|
1064
|
-
this.$refs.input.blur();
|
|
1065
|
-
return this.$nextTick();
|
|
1066
|
-
}
|
|
1067
|
-
}
|
|
1068
|
-
};
|