vxe-pc-ui 0.2.0 → 0.4.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/es/anchor/index.js +2 -0
- package/es/anchor/src/anchor.js +18 -18
- package/es/anchor-link/index.js +2 -0
- package/es/breadcrumb/index.js +2 -0
- package/es/breadcrumb/src/breadcrumb.js +2 -2
- package/es/breadcrumb-item/index.js +2 -0
- package/es/button/index.js +2 -0
- package/es/button/src/button-group.js +2 -5
- package/es/button-group/index.js +2 -0
- package/es/checkbox/src/checkbox.js +8 -8
- package/es/checkbox/src/group.js +6 -6
- package/es/checkbox-group/index.js +1 -1
- package/es/col/index.js +2 -0
- package/es/components.js +3 -0
- package/es/form/index.js +2 -0
- package/es/form/src/form-config-item.js +3 -8
- package/es/form/src/form-item.js +3 -8
- package/es/form/src/form.js +5 -8
- package/es/form/src/render.js +2 -10
- package/es/form-design/index.js +2 -0
- package/es/form-gather/index.js +2 -0
- package/es/form-item/index.js +2 -0
- package/es/icon/index.js +2 -0
- package/es/input/index.js +1 -1
- package/es/input/style.css +5 -5
- package/es/input/style.min.css +1 -1
- package/es/layout-aside/index.js +2 -0
- package/es/layout-body/index.js +2 -0
- package/es/layout-container/index.js +2 -0
- package/es/layout-footer/index.js +2 -0
- package/es/layout-header/index.js +2 -0
- package/es/list/index.js +10 -0
- package/es/list/src/list.js +340 -0
- package/es/list/style.css +26 -0
- package/es/list/style.min.css +1 -0
- package/es/list-design/index.js +2 -0
- package/es/loading/index.js +2 -0
- package/es/modal/index.js +1 -1
- package/es/modal/src/modal.js +2 -5
- package/es/modal/style.css +1 -1
- package/es/modal/style.min.css +1 -1
- package/es/optgroup/index.js +1 -1
- package/es/option/index.js +1 -1
- package/es/pager/index.js +1 -1
- package/es/pager/src/pager.js +4 -4
- package/es/pager/style.css +2 -2
- package/es/pager/style.min.css +1 -1
- package/es/pulldown/index.js +1 -1
- package/es/pulldown/style.css +2 -2
- package/es/pulldown/style.min.css +1 -1
- package/es/radio/index.js +1 -1
- package/es/radio-button/index.js +1 -1
- package/es/radio-group/index.js +1 -1
- package/es/row/index.js +2 -0
- package/es/select/index.js +1 -1
- package/es/select/style.css +2 -2
- package/es/select/style.min.css +1 -1
- package/es/style.css +1 -1
- package/es/style.min.css +1 -1
- package/es/switch/index.js +1 -1
- package/es/switch/style.css +1 -1
- package/es/switch/style.min.css +1 -1
- package/es/tab-pane/index.js +2 -0
- package/es/tabs/index.js +2 -0
- package/es/tabs/src/tabs.js +50 -19
- package/es/tabs/style.css +49 -34
- package/es/tabs/style.min.css +1 -1
- package/es/textarea/index.js +1 -1
- package/es/textarea/style.css +2 -2
- package/es/textarea/style.min.css +1 -1
- package/es/tooltip/index.js +2 -0
- package/es/tooltip/src/tooltip.js +2 -7
- package/es/ui/src/core.js +1 -1
- package/es/ui/src/globalStore.js +64 -66
- package/es/ui/src/log.js +1 -1
- package/es/ui/src/resize.js +81 -0
- package/es/ui/src/store.js +8 -1
- package/es/vxe-input/style.css +5 -5
- package/es/vxe-input/style.min.css +1 -1
- package/es/vxe-list/index.js +3 -0
- package/es/vxe-list/style.css +26 -0
- package/es/vxe-list/style.min.css +1 -0
- package/es/vxe-modal/style.css +1 -1
- package/es/vxe-modal/style.min.css +1 -1
- package/es/vxe-pager/style.css +2 -2
- package/es/vxe-pager/style.min.css +1 -1
- package/es/vxe-pulldown/style.css +2 -2
- package/es/vxe-pulldown/style.min.css +1 -1
- package/es/vxe-select/style.css +2 -2
- package/es/vxe-select/style.min.css +1 -1
- package/es/vxe-switch/style.css +1 -1
- package/es/vxe-switch/style.min.css +1 -1
- package/es/vxe-tabs/style.css +49 -34
- package/es/vxe-tabs/style.min.css +1 -1
- package/es/vxe-textarea/style.css +2 -2
- package/es/vxe-textarea/style.min.css +1 -1
- package/lib/anchor/index.js +2 -0
- package/lib/anchor/index.min.js +1 -1
- package/lib/anchor/src/anchor.js +18 -18
- package/lib/anchor/src/anchor.min.js +1 -1
- package/lib/anchor-link/index.js +2 -0
- package/lib/anchor-link/index.min.js +1 -1
- package/lib/breadcrumb/index.js +2 -0
- package/lib/breadcrumb/index.min.js +1 -1
- package/lib/breadcrumb/src/breadcrumb.js +2 -2
- package/lib/breadcrumb/src/breadcrumb.min.js +1 -1
- package/lib/breadcrumb-item/index.js +2 -0
- package/lib/breadcrumb-item/index.min.js +1 -1
- package/lib/button/index.js +2 -0
- package/lib/button/index.min.js +1 -1
- package/lib/button/src/button-group.js +5 -7
- package/lib/button/src/button-group.min.js +1 -1
- package/lib/button-group/index.js +2 -0
- package/lib/button-group/index.min.js +1 -1
- package/lib/checkbox/src/checkbox.js +8 -8
- package/lib/checkbox/src/checkbox.min.js +1 -1
- package/lib/checkbox/src/group.js +6 -6
- package/lib/checkbox/src/group.min.js +1 -1
- package/lib/checkbox-group/index.js +1 -1
- package/lib/checkbox-group/index.min.js +1 -1
- package/lib/col/index.js +2 -0
- package/lib/col/index.min.js +1 -1
- package/lib/components.js +13 -1
- package/lib/components.min.js +1 -1
- package/lib/form/index.js +2 -0
- package/lib/form/index.min.js +1 -1
- package/lib/form/src/form-config-item.js +3 -4
- package/lib/form/src/form-config-item.min.js +1 -1
- package/lib/form/src/form-item.js +3 -4
- package/lib/form/src/form-item.min.js +1 -1
- package/lib/form/src/form.js +7 -8
- package/lib/form/src/form.min.js +1 -1
- package/lib/form/src/render.js +4 -8
- package/lib/form/src/render.min.js +1 -1
- package/lib/form-design/index.js +2 -0
- package/lib/form-design/index.min.js +1 -1
- package/lib/form-gather/index.js +2 -0
- package/lib/form-gather/index.min.js +1 -1
- package/lib/form-item/index.js +2 -0
- package/lib/form-item/index.min.js +1 -1
- package/lib/icon/index.js +2 -0
- package/lib/icon/index.min.js +1 -1
- package/lib/index.umd.js +737 -167
- package/lib/index.umd.min.js +1 -1
- package/lib/input/index.js +1 -1
- package/lib/input/index.min.js +1 -1
- package/lib/input/style/style.css +5 -5
- package/lib/input/style/style.min.css +1 -1
- package/lib/layout-aside/index.js +2 -0
- package/lib/layout-aside/index.min.js +1 -1
- package/lib/layout-body/index.js +2 -0
- package/lib/layout-body/index.min.js +1 -1
- package/lib/layout-container/index.js +2 -0
- package/lib/layout-container/index.min.js +1 -1
- package/lib/layout-footer/index.js +2 -0
- package/lib/layout-footer/index.min.js +1 -1
- package/lib/layout-header/index.js +2 -0
- package/lib/layout-header/index.min.js +1 -1
- package/lib/list/index.js +17 -0
- package/lib/list/index.min.js +1 -0
- package/lib/list/src/list.js +397 -0
- package/lib/list/src/list.min.js +1 -0
- package/lib/list/style/index.js +1 -0
- package/lib/list/style/style.css +26 -0
- package/lib/list/style/style.min.css +1 -0
- package/lib/list-design/index.js +2 -0
- package/lib/list-design/index.min.js +1 -1
- package/lib/loading/index.js +2 -0
- package/lib/loading/index.min.js +1 -1
- package/lib/modal/index.js +1 -5
- package/lib/modal/index.min.js +1 -1
- package/lib/modal/src/modal.js +3 -4
- package/lib/modal/src/modal.min.js +1 -1
- package/lib/modal/style/style.css +1 -1
- package/lib/modal/style/style.min.css +1 -1
- package/lib/optgroup/index.js +1 -1
- package/lib/optgroup/index.min.js +1 -1
- package/lib/option/index.js +1 -1
- package/lib/option/index.min.js +1 -1
- package/lib/pager/index.js +1 -1
- package/lib/pager/index.min.js +1 -1
- package/lib/pager/src/pager.js +6 -7
- package/lib/pager/src/pager.min.js +1 -1
- package/lib/pager/style/style.css +2 -2
- package/lib/pager/style/style.min.css +1 -1
- package/lib/pulldown/index.js +1 -1
- package/lib/pulldown/index.min.js +1 -1
- package/lib/pulldown/style/style.css +2 -2
- package/lib/pulldown/style/style.min.css +1 -1
- package/lib/radio/index.js +1 -1
- package/lib/radio/index.min.js +1 -1
- package/lib/radio-button/index.js +1 -1
- package/lib/radio-button/index.min.js +1 -1
- package/lib/radio-group/index.js +1 -1
- package/lib/radio-group/index.min.js +1 -1
- package/lib/row/index.js +2 -0
- package/lib/row/index.min.js +1 -1
- package/lib/select/index.js +1 -1
- package/lib/select/index.min.js +1 -1
- package/lib/select/style/style.css +2 -2
- package/lib/select/style/style.min.css +1 -1
- package/lib/style.css +1 -1
- package/lib/style.min.css +1 -1
- package/lib/switch/index.js +1 -1
- package/lib/switch/index.min.js +1 -1
- package/lib/switch/style/style.css +1 -1
- package/lib/switch/style/style.min.css +1 -1
- package/lib/tab-pane/index.js +2 -0
- package/lib/tab-pane/index.min.js +1 -1
- package/lib/tabs/index.js +2 -0
- package/lib/tabs/index.min.js +1 -1
- package/lib/tabs/src/tabs.js +50 -12
- package/lib/tabs/src/tabs.min.js +1 -1
- package/lib/tabs/style/style.css +49 -34
- package/lib/tabs/style/style.min.css +1 -1
- package/lib/textarea/index.js +1 -1
- package/lib/textarea/index.min.js +1 -1
- package/lib/textarea/style/style.css +2 -2
- package/lib/textarea/style/style.min.css +1 -1
- package/lib/tooltip/index.js +2 -0
- package/lib/tooltip/index.min.js +1 -1
- package/lib/tooltip/src/tooltip.js +3 -4
- package/lib/tooltip/src/tooltip.min.js +1 -1
- package/lib/ui/src/core.js +1 -1
- package/lib/ui/src/core.min.js +1 -1
- package/lib/ui/src/globalStore.js +63 -65
- package/lib/ui/src/globalStore.min.js +1 -1
- package/lib/ui/src/log.js +1 -1
- package/lib/ui/src/log.min.js +1 -1
- package/lib/ui/src/resize.js +96 -0
- package/lib/ui/src/resize.min.js +1 -0
- package/lib/ui/src/store.js +8 -1
- package/lib/ui/src/store.min.js +1 -1
- package/lib/vxe-input/style/style.css +5 -5
- package/lib/vxe-input/style/style.min.css +1 -1
- package/lib/vxe-list/index.js +22 -0
- package/lib/vxe-list/index.min.js +1 -0
- package/lib/vxe-list/style/index.js +1 -0
- package/lib/vxe-list/style/style.css +26 -0
- package/lib/vxe-list/style/style.min.css +1 -0
- package/lib/vxe-modal/style/style.css +1 -1
- package/lib/vxe-modal/style/style.min.css +1 -1
- package/lib/vxe-pager/style/style.css +2 -2
- package/lib/vxe-pager/style/style.min.css +1 -1
- package/lib/vxe-pulldown/style/style.css +2 -2
- package/lib/vxe-pulldown/style/style.min.css +1 -1
- package/lib/vxe-select/style/style.css +2 -2
- package/lib/vxe-select/style/style.min.css +1 -1
- package/lib/vxe-switch/style/style.css +1 -1
- package/lib/vxe-switch/style/style.min.css +1 -1
- package/lib/vxe-tabs/style/style.css +49 -34
- package/lib/vxe-tabs/style/style.min.css +1 -1
- package/lib/vxe-textarea/style/style.css +2 -2
- package/lib/vxe-textarea/style/style.min.css +1 -1
- package/package.json +1 -1
- package/packages/anchor/index.ts +3 -0
- package/packages/anchor/src/anchor.ts +23 -23
- package/packages/anchor-link/index.ts +3 -0
- package/packages/breadcrumb/index.ts +3 -0
- package/packages/breadcrumb/src/breadcrumb.ts +2 -2
- package/packages/breadcrumb-item/index.ts +3 -0
- package/packages/button/index.ts +3 -0
- package/packages/button-group/index.ts +3 -0
- package/packages/checkbox/index.ts +2 -2
- package/packages/checkbox/src/checkbox.ts +8 -8
- package/packages/checkbox/src/group.ts +6 -6
- package/packages/checkbox-group/index.ts +3 -4
- package/packages/col/index.ts +3 -0
- package/packages/components.ts +3 -0
- package/packages/form/index.ts +3 -0
- package/packages/form/src/form.ts +4 -4
- package/packages/form-design/index.ts +3 -0
- package/packages/form-gather/index.ts +3 -0
- package/packages/form-item/index.ts +3 -0
- package/packages/icon/index.ts +3 -0
- package/packages/input/index.ts +3 -4
- package/packages/layout-aside/index.ts +3 -0
- package/packages/layout-body/index.ts +3 -0
- package/packages/layout-container/index.ts +3 -0
- package/packages/layout-footer/index.ts +3 -0
- package/packages/layout-header/index.ts +3 -0
- package/packages/list/index.ts +14 -0
- package/packages/list/src/list.ts +372 -0
- package/packages/list-design/index.ts +3 -0
- package/packages/loading/index.ts +3 -0
- package/packages/optgroup/index.ts +3 -4
- package/packages/option/index.ts +3 -4
- package/packages/pager/index.ts +3 -4
- package/packages/pager/src/pager.ts +3 -3
- package/packages/pulldown/index.ts +3 -4
- package/packages/radio/index.ts +3 -4
- package/packages/radio-button/index.ts +3 -4
- package/packages/radio-group/index.ts +2 -3
- package/packages/row/index.ts +3 -0
- package/packages/select/index.ts +3 -4
- package/packages/switch/index.ts +1 -2
- package/packages/tab-pane/index.ts +3 -0
- package/packages/tabs/index.ts +3 -0
- package/packages/tabs/src/tabs.ts +49 -19
- package/packages/textarea/index.ts +3 -4
- package/packages/tooltip/index.ts +3 -0
- package/packages/ui/src/globalStore.ts +63 -65
- package/packages/ui/src/resize.ts +85 -0
- package/styles/all.scss +1 -0
- package/styles/components/input.scss +5 -5
- package/styles/components/list.scss +1 -1
- package/styles/components/modal.scss +1 -1
- package/styles/components/pager.scss +2 -2
- package/styles/components/pulldown.scss +2 -2
- package/styles/components/select.scss +2 -2
- package/styles/components/switch.scss +1 -1
- package/styles/components/tabs.scss +44 -34
- package/styles/components/textarea.scss +2 -2
- package/types/all.d.ts +1 -0
- package/types/components/list.d.ts +166 -0
- package/types/components/tab-pane.d.ts +1 -1
- package/types/components/tabs.d.ts +2 -2
- package/types/ui/global-config.d.ts +67 -25
package/lib/index.umd.js
CHANGED
|
@@ -1689,6 +1689,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1689
1689
|
LayoutContainer: function() { return /* reexport */ LayoutContainer; },
|
|
1690
1690
|
LayoutFooter: function() { return /* reexport */ LayoutFooter; },
|
|
1691
1691
|
LayoutHeader: function() { return /* reexport */ LayoutHeader; },
|
|
1692
|
+
List: function() { return /* reexport */ List; },
|
|
1692
1693
|
ListDesign: function() { return /* reexport */ ListDesign; },
|
|
1693
1694
|
Loading: function() { return /* reexport */ Loading; },
|
|
1694
1695
|
Modal: function() { return /* reexport */ Modal; },
|
|
@@ -1712,6 +1713,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
1712
1713
|
VxeFormGather: function() { return /* reexport */ VxeFormGather; },
|
|
1713
1714
|
VxeFormItem: function() { return /* reexport */ VxeFormItem; },
|
|
1714
1715
|
VxeInput: function() { return /* reexport */ VxeInput; },
|
|
1716
|
+
VxeList: function() { return /* reexport */ VxeList; },
|
|
1715
1717
|
VxeModal: function() { return /* reexport */ VxeModal; },
|
|
1716
1718
|
VxeOptgroup: function() { return /* reexport */ VxeOptgroup; },
|
|
1717
1719
|
VxeOption: function() { return /* reexport */ VxeOption; },
|
|
@@ -1761,6 +1763,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1761
1763
|
LayoutContainer: function() { return LayoutContainer; },
|
|
1762
1764
|
LayoutFooter: function() { return LayoutFooter; },
|
|
1763
1765
|
LayoutHeader: function() { return LayoutHeader; },
|
|
1766
|
+
List: function() { return List; },
|
|
1764
1767
|
ListDesign: function() { return ListDesign; },
|
|
1765
1768
|
Loading: function() { return Loading; },
|
|
1766
1769
|
Modal: function() { return Modal; },
|
|
@@ -1784,6 +1787,7 @@ __webpack_require__.d(components_namespaceObject, {
|
|
|
1784
1787
|
VxeFormGather: function() { return VxeFormGather; },
|
|
1785
1788
|
VxeFormItem: function() { return VxeFormItem; },
|
|
1786
1789
|
VxeInput: function() { return VxeInput; },
|
|
1790
|
+
VxeList: function() { return VxeList; },
|
|
1787
1791
|
VxeModal: function() { return VxeModal; },
|
|
1788
1792
|
VxeOptgroup: function() { return VxeOptgroup; },
|
|
1789
1793
|
VxeOption: function() { return VxeOption; },
|
|
@@ -1946,23 +1950,19 @@ const globalConfigStore = {
|
|
|
1946
1950
|
zIndex: 999,
|
|
1947
1951
|
emptyCell: ' ',
|
|
1948
1952
|
loadingText: '',
|
|
1953
|
+
resizeInterval: 500,
|
|
1949
1954
|
i18n: key => key,
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
|
|
1954
|
-
enterDelay: 500,
|
|
1955
|
-
leaveDelay: 300
|
|
1956
|
-
},
|
|
1957
|
-
pager: {
|
|
1958
|
-
// size: null,
|
|
1959
|
-
// autoHidden: false,
|
|
1960
|
-
// perfect: true,
|
|
1961
|
-
// pageSize: 10,
|
|
1962
|
-
// pagerCount: 7,
|
|
1963
|
-
// pageSizes: [10, 15, 20, 50, 100],
|
|
1964
|
-
// layouts: ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']
|
|
1955
|
+
anchor: {},
|
|
1956
|
+
anchorLink: {},
|
|
1957
|
+
breadcrumb: {
|
|
1958
|
+
separator: '/'
|
|
1965
1959
|
},
|
|
1960
|
+
breadcrumbItem: {},
|
|
1961
|
+
button: {},
|
|
1962
|
+
buttonGroup: {},
|
|
1963
|
+
checkbox: {},
|
|
1964
|
+
checkboxGroup: {},
|
|
1965
|
+
col: {},
|
|
1966
1966
|
form: {
|
|
1967
1967
|
// preventSubmit: false,
|
|
1968
1968
|
// size: null,
|
|
@@ -1976,6 +1976,10 @@ const globalConfigStore = {
|
|
|
1976
1976
|
},
|
|
1977
1977
|
titleAsterisk: true
|
|
1978
1978
|
},
|
|
1979
|
+
formDesign: {},
|
|
1980
|
+
formGather: {},
|
|
1981
|
+
formItem: {},
|
|
1982
|
+
icon: {},
|
|
1979
1983
|
input: {
|
|
1980
1984
|
// size: null,
|
|
1981
1985
|
// transfer: false
|
|
@@ -1989,49 +1993,21 @@ const globalConfigStore = {
|
|
|
1989
1993
|
digits: 2,
|
|
1990
1994
|
controls: true
|
|
1991
1995
|
},
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
1997
|
-
|
|
1998
|
-
|
|
1999
|
-
select: {
|
|
2000
|
-
// size: null,
|
|
2001
|
-
// transfer: false,
|
|
2002
|
-
// optionConfig: {
|
|
2003
|
-
// keyField: '_X_OPTION_KEY'
|
|
2004
|
-
// },
|
|
2005
|
-
multiCharOverflow: 8
|
|
2006
|
-
},
|
|
2007
|
-
button: {
|
|
2008
|
-
// size: null,
|
|
2009
|
-
// transfer: false
|
|
2010
|
-
},
|
|
2011
|
-
buttonGroup: {
|
|
2012
|
-
// size: null
|
|
2013
|
-
},
|
|
2014
|
-
radio: {
|
|
2015
|
-
// size: null,
|
|
2016
|
-
strict: true
|
|
2017
|
-
},
|
|
2018
|
-
radioButton: {
|
|
2019
|
-
// size: null,
|
|
2020
|
-
strict: true
|
|
2021
|
-
},
|
|
2022
|
-
radioGroup: {
|
|
1996
|
+
layoutAside: {},
|
|
1997
|
+
layoutBody: {},
|
|
1998
|
+
layoutContainer: {},
|
|
1999
|
+
layoutFooter: {},
|
|
2000
|
+
layoutHeader: {},
|
|
2001
|
+
listDesign: {},
|
|
2002
|
+
list: {
|
|
2023
2003
|
// size: null,
|
|
2024
|
-
|
|
2025
|
-
|
|
2026
|
-
|
|
2027
|
-
|
|
2028
|
-
|
|
2029
|
-
checkboxGroup: {
|
|
2030
|
-
// size: null
|
|
2031
|
-
},
|
|
2032
|
-
switch: {
|
|
2033
|
-
// size: null
|
|
2004
|
+
scrollY: {
|
|
2005
|
+
enabled: true,
|
|
2006
|
+
gt: 100
|
|
2007
|
+
// oSize: 0
|
|
2008
|
+
}
|
|
2034
2009
|
},
|
|
2010
|
+
loading: {},
|
|
2035
2011
|
modal: {
|
|
2036
2012
|
// size: null,
|
|
2037
2013
|
top: 15,
|
|
@@ -2050,16 +2026,42 @@ const globalConfigStore = {
|
|
|
2050
2026
|
// storage: false,
|
|
2051
2027
|
storageKey: 'VXE_MODAL_POSITION'
|
|
2052
2028
|
},
|
|
2053
|
-
|
|
2029
|
+
optgroup: {},
|
|
2030
|
+
option: {},
|
|
2031
|
+
pager: {
|
|
2054
2032
|
// size: null,
|
|
2055
|
-
|
|
2056
|
-
|
|
2057
|
-
|
|
2058
|
-
|
|
2059
|
-
|
|
2033
|
+
// autoHidden: false,
|
|
2034
|
+
// perfect: true,
|
|
2035
|
+
// pageSize: 10,
|
|
2036
|
+
// pagerCount: 7,
|
|
2037
|
+
// pageSizes: [10, 15, 20, 50, 100],
|
|
2038
|
+
// layouts: ['PrevJump', 'PrevPage', 'Jump', 'PageCount', 'NextPage', 'NextJump', 'Sizes', 'Total']
|
|
2039
|
+
},
|
|
2040
|
+
pulldown: {},
|
|
2041
|
+
radio: {
|
|
2042
|
+
strict: true
|
|
2043
|
+
},
|
|
2044
|
+
radioButton: {
|
|
2045
|
+
strict: true
|
|
2046
|
+
},
|
|
2047
|
+
radioGroup: {
|
|
2048
|
+
strict: true
|
|
2049
|
+
},
|
|
2050
|
+
row: {},
|
|
2051
|
+
select: {
|
|
2052
|
+
multiCharOverflow: 8
|
|
2060
2053
|
},
|
|
2061
|
-
|
|
2062
|
-
|
|
2054
|
+
switch: {},
|
|
2055
|
+
tabPane: {},
|
|
2056
|
+
tabs: {},
|
|
2057
|
+
textarea: {},
|
|
2058
|
+
tooltip: {
|
|
2059
|
+
// size: null,
|
|
2060
|
+
trigger: 'hover',
|
|
2061
|
+
theme: 'dark',
|
|
2062
|
+
enterDelay: 500,
|
|
2063
|
+
leaveDelay: 300
|
|
2064
|
+
}
|
|
2063
2065
|
};
|
|
2064
2066
|
/* harmony default export */ var globalStore = (globalConfigStore);
|
|
2065
2067
|
;// CONCATENATED MODULE: ./packages/ui/src/iconStore.ts
|
|
@@ -2163,7 +2165,7 @@ var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(9274);
|
|
|
2163
2165
|
;// CONCATENATED MODULE: ./packages/ui/src/log.ts
|
|
2164
2166
|
|
|
2165
2167
|
function getLog(message, params) {
|
|
2166
|
-
return `[vxe-table v${"0.
|
|
2168
|
+
return `[vxe-table v${"0.4.0"}] ${getI18n(message, params)}`;
|
|
2167
2169
|
}
|
|
2168
2170
|
function outLog(type) {
|
|
2169
2171
|
return function (message, params) {
|
|
@@ -2378,8 +2380,8 @@ function setIcon(options) {
|
|
|
2378
2380
|
function getIcon(key) {
|
|
2379
2381
|
return arguments.length ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(iconStore, key) : iconStore;
|
|
2380
2382
|
}
|
|
2381
|
-
const version = "0.
|
|
2382
|
-
const
|
|
2383
|
+
const version = "0.4.0";
|
|
2384
|
+
const core_VxeCore = {
|
|
2383
2385
|
version,
|
|
2384
2386
|
setConfig,
|
|
2385
2387
|
getConfig,
|
|
@@ -2394,12 +2396,12 @@ setTheme();
|
|
|
2394
2396
|
|
|
2395
2397
|
|
|
2396
2398
|
|
|
2397
|
-
/* harmony default export */ var core = (
|
|
2399
|
+
/* harmony default export */ var core = (core_VxeCore);
|
|
2398
2400
|
;// CONCATENATED MODULE: ./packages/ui/index.ts
|
|
2399
2401
|
|
|
2400
2402
|
const VxeUI = core;
|
|
2401
2403
|
|
|
2402
|
-
/* harmony default export */ var ui = (
|
|
2404
|
+
/* harmony default export */ var ui = ((/* unused pure expression or super */ null && (VxeCore)));
|
|
2403
2405
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
2404
2406
|
var es_array_push = __webpack_require__(4114);
|
|
2405
2407
|
;// CONCATENATED MODULE: ./packages/ui/src/dom.ts
|
|
@@ -2801,24 +2803,6 @@ function destroyAnchorLink($xeAnchor, linkConfig) {
|
|
|
2801
2803
|
}
|
|
2802
2804
|
};
|
|
2803
2805
|
Object.assign($xeAnchor, anchorMethods, anchorPrivateMethods);
|
|
2804
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
|
|
2805
|
-
reactData.activeHref = val;
|
|
2806
|
-
});
|
|
2807
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.activeHref, () => {
|
|
2808
|
-
updateMarkerPos();
|
|
2809
|
-
});
|
|
2810
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.container, () => {
|
|
2811
|
-
removeContainerElemScroll();
|
|
2812
|
-
updateContainerElem();
|
|
2813
|
-
});
|
|
2814
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
2815
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
2816
|
-
updateContainerElem();
|
|
2817
|
-
});
|
|
2818
|
-
});
|
|
2819
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
2820
|
-
removeContainerElemScroll();
|
|
2821
|
-
});
|
|
2822
2806
|
const renderSubItems = options => {
|
|
2823
2807
|
const itemVNs = [];
|
|
2824
2808
|
if (options) {
|
|
@@ -2861,6 +2845,24 @@ function destroyAnchorLink($xeAnchor, linkConfig) {
|
|
|
2861
2845
|
class: 'vxe-anchor--marker'
|
|
2862
2846
|
}) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)()]);
|
|
2863
2847
|
};
|
|
2848
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
|
|
2849
|
+
reactData.activeHref = val;
|
|
2850
|
+
});
|
|
2851
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.activeHref, () => {
|
|
2852
|
+
updateMarkerPos();
|
|
2853
|
+
});
|
|
2854
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.container, () => {
|
|
2855
|
+
removeContainerElemScroll();
|
|
2856
|
+
updateContainerElem();
|
|
2857
|
+
});
|
|
2858
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
2859
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
2860
|
+
updateContainerElem();
|
|
2861
|
+
});
|
|
2862
|
+
});
|
|
2863
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onBeforeUnmount)(() => {
|
|
2864
|
+
removeContainerElemScroll();
|
|
2865
|
+
});
|
|
2864
2866
|
$xeAnchor.renderVN = renderVN;
|
|
2865
2867
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeAnchor', $xeAnchor);
|
|
2866
2868
|
return $xeAnchor;
|
|
@@ -2869,22 +2871,56 @@ function destroyAnchorLink($xeAnchor, linkConfig) {
|
|
|
2869
2871
|
return this.renderVN();
|
|
2870
2872
|
}
|
|
2871
2873
|
}));
|
|
2874
|
+
;// CONCATENATED MODULE: ./packages/dynamics/index.ts
|
|
2875
|
+
|
|
2876
|
+
let dynamicContainerElem;
|
|
2877
|
+
const dynamicStore = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
2878
|
+
modals: []
|
|
2879
|
+
});
|
|
2880
|
+
/**
|
|
2881
|
+
* 动态组件
|
|
2882
|
+
*/
|
|
2883
|
+
const VxeDynamics = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
2884
|
+
setup() {
|
|
2885
|
+
return () => {
|
|
2886
|
+
const {
|
|
2887
|
+
modals
|
|
2888
|
+
} = dynamicStore;
|
|
2889
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
2890
|
+
class: 'vxe-dynamics--modal'
|
|
2891
|
+
}, modals.map(item => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-modal'), item)));
|
|
2892
|
+
};
|
|
2893
|
+
}
|
|
2894
|
+
});
|
|
2895
|
+
const dynamicApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createApp)(VxeDynamics);
|
|
2896
|
+
function checkDynamic() {
|
|
2897
|
+
if (!dynamicContainerElem) {
|
|
2898
|
+
dynamicContainerElem = document.createElement('div');
|
|
2899
|
+
dynamicContainerElem.className = 'vxe-dynamics';
|
|
2900
|
+
document.body.appendChild(dynamicContainerElem);
|
|
2901
|
+
dynamicApp.mount(dynamicContainerElem);
|
|
2902
|
+
}
|
|
2903
|
+
}
|
|
2872
2904
|
;// CONCATENATED MODULE: ./packages/anchor/index.ts
|
|
2873
2905
|
|
|
2906
|
+
|
|
2874
2907
|
const VxeAnchor = Object.assign({}, src_anchor, {
|
|
2875
2908
|
install(app) {
|
|
2876
2909
|
app.component(src_anchor.name, src_anchor);
|
|
2877
2910
|
}
|
|
2878
2911
|
});
|
|
2912
|
+
dynamicApp.component(src_anchor.name, src_anchor);
|
|
2879
2913
|
const Anchor = VxeAnchor;
|
|
2880
2914
|
/* harmony default export */ var packages_anchor = (VxeAnchor);
|
|
2881
2915
|
;// CONCATENATED MODULE: ./packages/anchor-link/index.ts
|
|
2882
2916
|
|
|
2917
|
+
|
|
2883
2918
|
const VxeAnchorLink = Object.assign({}, anchor_link, {
|
|
2884
2919
|
install(app) {
|
|
2885
2920
|
app.component(anchor_link.name, anchor_link);
|
|
2886
2921
|
}
|
|
2887
2922
|
});
|
|
2923
|
+
dynamicApp.component(anchor_link.name, anchor_link);
|
|
2888
2924
|
const AnchorLink = VxeAnchorLink;
|
|
2889
2925
|
/* harmony default export */ var packages_anchor_link = (VxeAnchorLink);
|
|
2890
2926
|
;// CONCATENATED MODULE: ./packages/breadcrumb/src/breadcrumb.ts
|
|
@@ -2896,7 +2932,7 @@ const AnchorLink = VxeAnchorLink;
|
|
|
2896
2932
|
props: {
|
|
2897
2933
|
separator: {
|
|
2898
2934
|
type: String,
|
|
2899
|
-
default: () =>
|
|
2935
|
+
default: () => globalStore.breadcrumb.separator
|
|
2900
2936
|
}
|
|
2901
2937
|
},
|
|
2902
2938
|
emits: [],
|
|
@@ -2936,11 +2972,13 @@ const AnchorLink = VxeAnchorLink;
|
|
|
2936
2972
|
}));
|
|
2937
2973
|
;// CONCATENATED MODULE: ./packages/breadcrumb/index.ts
|
|
2938
2974
|
|
|
2975
|
+
|
|
2939
2976
|
const VxeBreadcrumb = Object.assign({}, breadcrumb, {
|
|
2940
2977
|
install(app) {
|
|
2941
2978
|
app.component(breadcrumb.name, breadcrumb);
|
|
2942
2979
|
}
|
|
2943
2980
|
});
|
|
2981
|
+
dynamicApp.component(breadcrumb.name, breadcrumb);
|
|
2944
2982
|
const Breadcrumb = VxeBreadcrumb;
|
|
2945
2983
|
/* harmony default export */ var packages_breadcrumb = (VxeBreadcrumb);
|
|
2946
2984
|
;// CONCATENATED MODULE: ./packages/breadcrumb-item/src/breadcrumb-item.ts
|
|
@@ -2997,11 +3035,13 @@ const Breadcrumb = VxeBreadcrumb;
|
|
|
2997
3035
|
}));
|
|
2998
3036
|
;// CONCATENATED MODULE: ./packages/breadcrumb-item/index.ts
|
|
2999
3037
|
|
|
3038
|
+
|
|
3000
3039
|
const VxeBreadcrumbItem = Object.assign({}, breadcrumb_item, {
|
|
3001
3040
|
install(app) {
|
|
3002
3041
|
app.component(breadcrumb_item.name, breadcrumb_item);
|
|
3003
3042
|
}
|
|
3004
3043
|
});
|
|
3044
|
+
dynamicApp.component(breadcrumb_item.name, breadcrumb_item);
|
|
3005
3045
|
const BreadcrumbItem = VxeBreadcrumbItem;
|
|
3006
3046
|
/* harmony default export */ var packages_breadcrumb_item = (VxeBreadcrumbItem);
|
|
3007
3047
|
;// CONCATENATED MODULE: ./packages/hooks/size.ts
|
|
@@ -3674,11 +3714,13 @@ if (browse.isDoc) {
|
|
|
3674
3714
|
}));
|
|
3675
3715
|
;// CONCATENATED MODULE: ./packages/button/index.ts
|
|
3676
3716
|
|
|
3717
|
+
|
|
3677
3718
|
const VxeButton = Object.assign({}, src_button, {
|
|
3678
3719
|
install(app) {
|
|
3679
3720
|
app.component(src_button.name, src_button);
|
|
3680
3721
|
}
|
|
3681
3722
|
});
|
|
3723
|
+
dynamicApp.component(src_button.name, src_button);
|
|
3682
3724
|
const Button = VxeButton;
|
|
3683
3725
|
/* harmony default export */ var packages_button = (VxeButton);
|
|
3684
3726
|
;// CONCATENATED MODULE: ./packages/button/src/button-group.ts
|
|
@@ -3765,11 +3807,13 @@ const Button = VxeButton;
|
|
|
3765
3807
|
}));
|
|
3766
3808
|
;// CONCATENATED MODULE: ./packages/button-group/index.ts
|
|
3767
3809
|
|
|
3810
|
+
|
|
3768
3811
|
const VxeButtonGroup = Object.assign({}, button_group, {
|
|
3769
3812
|
install(app) {
|
|
3770
3813
|
app.component(button_group.name, button_group);
|
|
3771
3814
|
}
|
|
3772
3815
|
});
|
|
3816
|
+
dynamicApp.component(button_group.name, button_group);
|
|
3773
3817
|
const ButtonGroup = VxeButtonGroup;
|
|
3774
3818
|
/* harmony default export */ var packages_button_group = (VxeButtonGroup);
|
|
3775
3819
|
;// CONCATENATED MODULE: ./packages/checkbox/src/checkbox.ts
|
|
@@ -3819,10 +3863,10 @@ const ButtonGroup = VxeButtonGroup;
|
|
|
3819
3863
|
};
|
|
3820
3864
|
let checkboxMethods = {};
|
|
3821
3865
|
const computeSize = useSize(props);
|
|
3822
|
-
const $
|
|
3866
|
+
const $xeCheckboxGroup = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeCheckboxGroup', null);
|
|
3823
3867
|
const computeIsChecked = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
3824
|
-
if ($
|
|
3825
|
-
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes($
|
|
3868
|
+
if ($xeCheckboxGroup) {
|
|
3869
|
+
return external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().includes($xeCheckboxGroup.props.modelValue, props.label);
|
|
3826
3870
|
}
|
|
3827
3871
|
return props.modelValue === props.checkedValue;
|
|
3828
3872
|
});
|
|
@@ -3830,13 +3874,13 @@ const ButtonGroup = VxeButtonGroup;
|
|
|
3830
3874
|
if (props.disabled) {
|
|
3831
3875
|
return true;
|
|
3832
3876
|
}
|
|
3833
|
-
if ($
|
|
3877
|
+
if ($xeCheckboxGroup) {
|
|
3834
3878
|
const {
|
|
3835
3879
|
props: groupProps
|
|
3836
|
-
} = $
|
|
3880
|
+
} = $xeCheckboxGroup;
|
|
3837
3881
|
const {
|
|
3838
3882
|
computeIsMaximize
|
|
3839
|
-
} = $
|
|
3883
|
+
} = $xeCheckboxGroup.getComputeMaps();
|
|
3840
3884
|
const isMaximize = computeIsMaximize.value;
|
|
3841
3885
|
const isChecked = computeIsChecked.value;
|
|
3842
3886
|
return groupProps.disabled || isMaximize && !isChecked;
|
|
@@ -3857,8 +3901,8 @@ const ButtonGroup = VxeButtonGroup;
|
|
|
3857
3901
|
value,
|
|
3858
3902
|
label: props.label
|
|
3859
3903
|
};
|
|
3860
|
-
if ($
|
|
3861
|
-
$
|
|
3904
|
+
if ($xeCheckboxGroup) {
|
|
3905
|
+
$xeCheckboxGroup.handleChecked(params, evnt);
|
|
3862
3906
|
} else {
|
|
3863
3907
|
emit('update:modelValue', value);
|
|
3864
3908
|
checkboxMethods.dispatchEvent('change', params, evnt);
|
|
@@ -3910,36 +3954,6 @@ const ButtonGroup = VxeButtonGroup;
|
|
|
3910
3954
|
return this.renderVN();
|
|
3911
3955
|
}
|
|
3912
3956
|
}));
|
|
3913
|
-
;// CONCATENATED MODULE: ./packages/dynamics/index.ts
|
|
3914
|
-
|
|
3915
|
-
let dynamicContainerElem;
|
|
3916
|
-
const dynamicStore = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
3917
|
-
modals: []
|
|
3918
|
-
});
|
|
3919
|
-
/**
|
|
3920
|
-
* 动态组件
|
|
3921
|
-
*/
|
|
3922
|
-
const VxeDynamics = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
3923
|
-
setup() {
|
|
3924
|
-
return () => {
|
|
3925
|
-
const {
|
|
3926
|
-
modals
|
|
3927
|
-
} = dynamicStore;
|
|
3928
|
-
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
3929
|
-
class: 'vxe-dynamics--modal'
|
|
3930
|
-
}, modals.map(item => (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)((0,external_commonjs_vue_commonjs2_vue_root_Vue_.resolveComponent)('vxe-modal'), item)));
|
|
3931
|
-
};
|
|
3932
|
-
}
|
|
3933
|
-
});
|
|
3934
|
-
const dynamicApp = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createApp)(VxeDynamics);
|
|
3935
|
-
function checkDynamic() {
|
|
3936
|
-
if (!dynamicContainerElem) {
|
|
3937
|
-
dynamicContainerElem = document.createElement('div');
|
|
3938
|
-
dynamicContainerElem.className = 'vxe-dynamics';
|
|
3939
|
-
document.body.appendChild(dynamicContainerElem);
|
|
3940
|
-
dynamicApp.mount(dynamicContainerElem);
|
|
3941
|
-
}
|
|
3942
|
-
}
|
|
3943
3957
|
;// CONCATENATED MODULE: ./packages/checkbox/index.ts
|
|
3944
3958
|
|
|
3945
3959
|
|
|
@@ -4011,7 +4025,7 @@ dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
|
4011
4025
|
const computeMaps = {
|
|
4012
4026
|
computeIsMaximize
|
|
4013
4027
|
};
|
|
4014
|
-
const $
|
|
4028
|
+
const $xeCheckboxGroup = {
|
|
4015
4029
|
xID,
|
|
4016
4030
|
props,
|
|
4017
4031
|
context,
|
|
@@ -4021,7 +4035,7 @@ dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
|
4021
4035
|
const checkboxGroupMethods = {
|
|
4022
4036
|
dispatchEvent(type, params, evnt) {
|
|
4023
4037
|
emit(type, Object.assign({
|
|
4024
|
-
$checkboxGroup: $
|
|
4038
|
+
$checkboxGroup: $xeCheckboxGroup,
|
|
4025
4039
|
$event: evnt
|
|
4026
4040
|
}, params));
|
|
4027
4041
|
}
|
|
@@ -4042,7 +4056,7 @@ dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
|
4042
4056
|
checklist.splice(checkIndex, 1);
|
|
4043
4057
|
}
|
|
4044
4058
|
emit('update:modelValue', checklist);
|
|
4045
|
-
$
|
|
4059
|
+
$xeCheckboxGroup.dispatchEvent('change', Object.assign({
|
|
4046
4060
|
checklist
|
|
4047
4061
|
}, params), evnt);
|
|
4048
4062
|
// 自动更新校验状态
|
|
@@ -4051,7 +4065,7 @@ dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
|
4051
4065
|
}
|
|
4052
4066
|
}
|
|
4053
4067
|
};
|
|
4054
|
-
Object.assign($
|
|
4068
|
+
Object.assign($xeCheckboxGroup, checkboxGroupMethods, checkboxGroupPrivateMethods);
|
|
4055
4069
|
const renderVN = () => {
|
|
4056
4070
|
const {
|
|
4057
4071
|
options
|
|
@@ -4070,8 +4084,8 @@ dynamicApp.component(src_checkbox.name, src_checkbox);
|
|
|
4070
4084
|
});
|
|
4071
4085
|
}) : []);
|
|
4072
4086
|
};
|
|
4073
|
-
$
|
|
4074
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$
|
|
4087
|
+
$xeCheckboxGroup.renderVN = renderVN;
|
|
4088
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('$xeCheckboxGroup', $xeCheckboxGroup);
|
|
4075
4089
|
return renderVN;
|
|
4076
4090
|
}
|
|
4077
4091
|
}));
|
|
@@ -4083,8 +4097,8 @@ const VxeCheckboxGroup = Object.assign(group, {
|
|
|
4083
4097
|
app.component(group.name, group);
|
|
4084
4098
|
}
|
|
4085
4099
|
});
|
|
4086
|
-
const CheckboxGroup = VxeCheckboxGroup;
|
|
4087
4100
|
dynamicApp.component(group.name, group);
|
|
4101
|
+
const CheckboxGroup = VxeCheckboxGroup;
|
|
4088
4102
|
/* harmony default export */ var checkbox_group = (VxeCheckboxGroup);
|
|
4089
4103
|
;// CONCATENATED MODULE: ./packages/row/src/col.ts
|
|
4090
4104
|
|
|
@@ -4178,11 +4192,13 @@ dynamicApp.component(group.name, group);
|
|
|
4178
4192
|
}));
|
|
4179
4193
|
;// CONCATENATED MODULE: ./packages/col/index.ts
|
|
4180
4194
|
|
|
4195
|
+
|
|
4181
4196
|
const VxeCol = Object.assign({}, col, {
|
|
4182
4197
|
install(app) {
|
|
4183
4198
|
app.component(col.name, col);
|
|
4184
4199
|
}
|
|
4185
4200
|
});
|
|
4201
|
+
dynamicApp.component(col.name, col);
|
|
4186
4202
|
const Col = VxeCol;
|
|
4187
4203
|
/* harmony default export */ var packages_col = (VxeCol);
|
|
4188
4204
|
;// CONCATENATED MODULE: ./packages/form/src/itemInfo.ts
|
|
@@ -4745,11 +4761,13 @@ function getSlotVNs(vns) {
|
|
|
4745
4761
|
}));
|
|
4746
4762
|
;// CONCATENATED MODULE: ./packages/tooltip/index.ts
|
|
4747
4763
|
|
|
4764
|
+
|
|
4748
4765
|
const VxeTooltip = Object.assign({}, tooltip, {
|
|
4749
4766
|
install(app) {
|
|
4750
4767
|
app.component(tooltip.name, tooltip);
|
|
4751
4768
|
}
|
|
4752
4769
|
});
|
|
4770
|
+
dynamicApp.component(tooltip.name, tooltip);
|
|
4753
4771
|
const Tooltip = VxeTooltip;
|
|
4754
4772
|
/* harmony default export */ var packages_tooltip = (VxeTooltip);
|
|
4755
4773
|
;// CONCATENATED MODULE: ./packages/form/src/render.ts
|
|
@@ -5023,7 +5041,7 @@ const VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
|
|
|
5023
5041
|
|
|
5024
5042
|
|
|
5025
5043
|
|
|
5026
|
-
/* harmony default export */ var
|
|
5044
|
+
/* harmony default export */ var src_loading = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
5027
5045
|
name: 'VxeLoading',
|
|
5028
5046
|
props: {
|
|
5029
5047
|
modelValue: Boolean,
|
|
@@ -5063,11 +5081,13 @@ const VxeFormConfigItem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.defin
|
|
|
5063
5081
|
}));
|
|
5064
5082
|
;// CONCATENATED MODULE: ./packages/loading/index.ts
|
|
5065
5083
|
|
|
5066
|
-
|
|
5084
|
+
|
|
5085
|
+
const VxeLoading = Object.assign({}, src_loading, {
|
|
5067
5086
|
install(app) {
|
|
5068
|
-
app.component(
|
|
5087
|
+
app.component(src_loading.name, src_loading);
|
|
5069
5088
|
}
|
|
5070
5089
|
});
|
|
5090
|
+
dynamicApp.component(src_loading.name, src_loading);
|
|
5071
5091
|
const Loading = VxeLoading;
|
|
5072
5092
|
/* harmony default export */ var packages_loading = (VxeLoading);
|
|
5073
5093
|
;// CONCATENATED MODULE: ./packages/form/src/form.ts
|
|
@@ -5221,7 +5241,7 @@ function getResetValue(value, resetValue) {
|
|
|
5221
5241
|
}
|
|
5222
5242
|
});
|
|
5223
5243
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.provide)('xeFormItemInfo', null);
|
|
5224
|
-
const $
|
|
5244
|
+
const $xeGrid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeGrid', null);
|
|
5225
5245
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
5226
5246
|
const refTooltip = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
5227
5247
|
let formMethods = {};
|
|
@@ -5244,7 +5264,7 @@ function getResetValue(value, resetValue) {
|
|
|
5244
5264
|
props,
|
|
5245
5265
|
context,
|
|
5246
5266
|
reactData,
|
|
5247
|
-
xegrid: $
|
|
5267
|
+
xegrid: $xeGrid,
|
|
5248
5268
|
getRefMaps: () => refMaps,
|
|
5249
5269
|
getComputeMaps: () => computeMaps
|
|
5250
5270
|
};
|
|
@@ -5716,7 +5736,7 @@ function getResetValue(value, resetValue) {
|
|
|
5716
5736
|
dispatchEvent(type, params, evnt) {
|
|
5717
5737
|
emit(type, Object.assign({
|
|
5718
5738
|
$form: $xeform,
|
|
5719
|
-
$grid: $
|
|
5739
|
+
$grid: $xeGrid,
|
|
5720
5740
|
$event: evnt
|
|
5721
5741
|
}, params));
|
|
5722
5742
|
},
|
|
@@ -5818,7 +5838,7 @@ function getResetValue(value, resetValue) {
|
|
|
5818
5838
|
/**
|
|
5819
5839
|
* 工具提示
|
|
5820
5840
|
*/
|
|
5821
|
-
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(
|
|
5841
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(tooltip, {
|
|
5822
5842
|
ref: refTooltip,
|
|
5823
5843
|
...tooltipOpts
|
|
5824
5844
|
})]);
|
|
@@ -5835,11 +5855,13 @@ function getResetValue(value, resetValue) {
|
|
|
5835
5855
|
}));
|
|
5836
5856
|
;// CONCATENATED MODULE: ./packages/form/index.ts
|
|
5837
5857
|
|
|
5858
|
+
|
|
5838
5859
|
const VxeForm = Object.assign(src_form, {
|
|
5839
5860
|
install(app) {
|
|
5840
5861
|
app.component(src_form.name, src_form);
|
|
5841
5862
|
}
|
|
5842
5863
|
});
|
|
5864
|
+
dynamicApp.component(src_form.name, src_form);
|
|
5843
5865
|
const Form = VxeForm;
|
|
5844
5866
|
/* harmony default export */ var packages_form = (VxeForm);
|
|
5845
5867
|
;// CONCATENATED MODULE: ./packages/form-design/src/util.ts
|
|
@@ -6200,11 +6222,13 @@ function getNewWidgetId(widgetObjList) {
|
|
|
6200
6222
|
}));
|
|
6201
6223
|
;// CONCATENATED MODULE: ./packages/form-design/index.ts
|
|
6202
6224
|
|
|
6225
|
+
|
|
6203
6226
|
const VxeFormDesign = Object.assign({}, form_design, {
|
|
6204
6227
|
install(app) {
|
|
6205
6228
|
app.component(form_design.name, form_design);
|
|
6206
6229
|
}
|
|
6207
6230
|
});
|
|
6231
|
+
dynamicApp.component(form_design.name, form_design);
|
|
6208
6232
|
const FormDesign = VxeFormDesign;
|
|
6209
6233
|
/* harmony default export */ var packages_form_design = (VxeFormDesign);
|
|
6210
6234
|
;// CONCATENATED MODULE: ./packages/form/src/form-item.ts
|
|
@@ -6503,20 +6527,24 @@ const formItemProps = {
|
|
|
6503
6527
|
}));
|
|
6504
6528
|
;// CONCATENATED MODULE: ./packages/form-gather/index.ts
|
|
6505
6529
|
|
|
6530
|
+
|
|
6506
6531
|
const VxeFormGather = Object.assign(form_gather, {
|
|
6507
6532
|
install(app) {
|
|
6508
6533
|
app.component(form_gather.name, form_gather);
|
|
6509
6534
|
}
|
|
6510
6535
|
});
|
|
6536
|
+
dynamicApp.component(form_gather.name, form_gather);
|
|
6511
6537
|
const FormGather = VxeFormGather;
|
|
6512
6538
|
/* harmony default export */ var packages_form_gather = (VxeFormGather);
|
|
6513
6539
|
;// CONCATENATED MODULE: ./packages/form-item/index.ts
|
|
6514
6540
|
|
|
6541
|
+
|
|
6515
6542
|
const VxeFormItem = Object.assign(form_item, {
|
|
6516
6543
|
install(app) {
|
|
6517
6544
|
app.component(form_item.name, form_item);
|
|
6518
6545
|
}
|
|
6519
6546
|
});
|
|
6547
|
+
dynamicApp.component(form_item.name, form_item);
|
|
6520
6548
|
const FormItem = VxeFormItem;
|
|
6521
6549
|
/* harmony default export */ var packages_form_item = (VxeFormItem);
|
|
6522
6550
|
;// CONCATENATED MODULE: ./packages/icon/src/icon.ts
|
|
@@ -6552,11 +6580,13 @@ const FormItem = VxeFormItem;
|
|
|
6552
6580
|
}));
|
|
6553
6581
|
;// CONCATENATED MODULE: ./packages/icon/index.ts
|
|
6554
6582
|
|
|
6583
|
+
|
|
6555
6584
|
const VxeIcon = Object.assign({}, icon, {
|
|
6556
6585
|
install(app) {
|
|
6557
6586
|
app.component(icon.name, icon);
|
|
6558
6587
|
}
|
|
6559
6588
|
});
|
|
6589
|
+
dynamicApp.component(icon.name, icon);
|
|
6560
6590
|
const Icon = VxeIcon;
|
|
6561
6591
|
/* harmony default export */ var packages_icon = (VxeIcon);
|
|
6562
6592
|
;// CONCATENATED MODULE: ./packages/input/src/date.ts
|
|
@@ -9158,8 +9188,8 @@ const VxeInput = Object.assign(input, {
|
|
|
9158
9188
|
app.component(input.name, input);
|
|
9159
9189
|
}
|
|
9160
9190
|
});
|
|
9161
|
-
const Input = VxeInput;
|
|
9162
9191
|
dynamicApp.component(input.name, input);
|
|
9192
|
+
const Input = VxeInput;
|
|
9163
9193
|
/* harmony default export */ var packages_input = (VxeInput);
|
|
9164
9194
|
;// CONCATENATED MODULE: ./packages/layout-aside/src/layout-aside.ts
|
|
9165
9195
|
|
|
@@ -9240,11 +9270,13 @@ dynamicApp.component(input.name, input);
|
|
|
9240
9270
|
}));
|
|
9241
9271
|
;// CONCATENATED MODULE: ./packages/layout-aside/index.ts
|
|
9242
9272
|
|
|
9273
|
+
|
|
9243
9274
|
const VxeLayoutAside = Object.assign({}, layout_aside, {
|
|
9244
9275
|
install(app) {
|
|
9245
9276
|
app.component(layout_aside.name, layout_aside);
|
|
9246
9277
|
}
|
|
9247
9278
|
});
|
|
9279
|
+
dynamicApp.component(layout_aside.name, layout_aside);
|
|
9248
9280
|
const LayoutAside = VxeLayoutAside;
|
|
9249
9281
|
/* harmony default export */ var packages_layout_aside = (VxeLayoutAside);
|
|
9250
9282
|
;// CONCATENATED MODULE: ./packages/layout-body/src/layout-body.ts
|
|
@@ -9296,11 +9328,13 @@ const LayoutAside = VxeLayoutAside;
|
|
|
9296
9328
|
}));
|
|
9297
9329
|
;// CONCATENATED MODULE: ./packages/layout-body/index.ts
|
|
9298
9330
|
|
|
9331
|
+
|
|
9299
9332
|
const VxeLayoutBody = Object.assign({}, layout_body, {
|
|
9300
9333
|
install(app) {
|
|
9301
9334
|
app.component(layout_body.name, layout_body);
|
|
9302
9335
|
}
|
|
9303
9336
|
});
|
|
9337
|
+
dynamicApp.component(layout_body.name, layout_body);
|
|
9304
9338
|
const LayoutBody = VxeLayoutBody;
|
|
9305
9339
|
/* harmony default export */ var packages_layout_body = (VxeLayoutBody);
|
|
9306
9340
|
;// CONCATENATED MODULE: ./packages/layout-container/src/layout-container.ts
|
|
@@ -9352,11 +9386,13 @@ const LayoutBody = VxeLayoutBody;
|
|
|
9352
9386
|
}));
|
|
9353
9387
|
;// CONCATENATED MODULE: ./packages/layout-container/index.ts
|
|
9354
9388
|
|
|
9389
|
+
|
|
9355
9390
|
const VxeLayoutContainer = Object.assign({}, layout_container, {
|
|
9356
9391
|
install(app) {
|
|
9357
9392
|
app.component(layout_container.name, layout_container);
|
|
9358
9393
|
}
|
|
9359
9394
|
});
|
|
9395
|
+
dynamicApp.component(layout_container.name, layout_container);
|
|
9360
9396
|
const LayoutContainer = VxeLayoutContainer;
|
|
9361
9397
|
/* harmony default export */ var packages_layout_container = (VxeLayoutContainer);
|
|
9362
9398
|
;// CONCATENATED MODULE: ./packages/layout-footer/src/layout-footer.ts
|
|
@@ -9410,11 +9446,13 @@ const LayoutContainer = VxeLayoutContainer;
|
|
|
9410
9446
|
}));
|
|
9411
9447
|
;// CONCATENATED MODULE: ./packages/layout-footer/index.ts
|
|
9412
9448
|
|
|
9449
|
+
|
|
9413
9450
|
const VxeLayoutFooter = Object.assign({}, layout_footer, {
|
|
9414
9451
|
install(app) {
|
|
9415
9452
|
app.component(layout_footer.name, layout_footer);
|
|
9416
9453
|
}
|
|
9417
9454
|
});
|
|
9455
|
+
dynamicApp.component(layout_footer.name, layout_footer);
|
|
9418
9456
|
const LayoutFooter = VxeLayoutFooter;
|
|
9419
9457
|
/* harmony default export */ var packages_layout_footer = (VxeLayoutFooter);
|
|
9420
9458
|
;// CONCATENATED MODULE: ./packages/layout-header/src/layout-header.ts
|
|
@@ -9463,11 +9501,13 @@ const LayoutFooter = VxeLayoutFooter;
|
|
|
9463
9501
|
}));
|
|
9464
9502
|
;// CONCATENATED MODULE: ./packages/layout-header/index.ts
|
|
9465
9503
|
|
|
9504
|
+
|
|
9466
9505
|
const VxeLayoutHeader = Object.assign({}, layout_header, {
|
|
9467
9506
|
install(app) {
|
|
9468
9507
|
app.component(layout_header.name, layout_header);
|
|
9469
9508
|
}
|
|
9470
9509
|
});
|
|
9510
|
+
dynamicApp.component(layout_header.name, layout_header);
|
|
9471
9511
|
const LayoutHeader = VxeLayoutHeader;
|
|
9472
9512
|
/* harmony default export */ var packages_layout_header = (VxeLayoutHeader);
|
|
9473
9513
|
;// CONCATENATED MODULE: ./packages/list-design/src/list-design.ts
|
|
@@ -9514,13 +9554,497 @@ const LayoutHeader = VxeLayoutHeader;
|
|
|
9514
9554
|
}));
|
|
9515
9555
|
;// CONCATENATED MODULE: ./packages/list-design/index.ts
|
|
9516
9556
|
|
|
9557
|
+
|
|
9517
9558
|
const VxeListDesign = Object.assign({}, list_design, {
|
|
9518
9559
|
install(app) {
|
|
9519
9560
|
app.component(list_design.name, list_design);
|
|
9520
9561
|
}
|
|
9521
9562
|
});
|
|
9563
|
+
dynamicApp.component(list_design.name, list_design);
|
|
9522
9564
|
const ListDesign = VxeListDesign;
|
|
9523
9565
|
/* harmony default export */ var packages_list_design = (VxeListDesign);
|
|
9566
|
+
;// CONCATENATED MODULE: ./packages/ui/src/resize.ts
|
|
9567
|
+
|
|
9568
|
+
|
|
9569
|
+
|
|
9570
|
+
|
|
9571
|
+
/**
|
|
9572
|
+
* 监听 resize 事件
|
|
9573
|
+
* 如果项目中已使用了 resize-observer-polyfill,那么只需要将方法定义全局,该组件就会自动使用
|
|
9574
|
+
*/
|
|
9575
|
+
let resizeTimeout;
|
|
9576
|
+
/* eslint-disable no-use-before-define */
|
|
9577
|
+
const resize_eventStore = [];
|
|
9578
|
+
const defaultInterval = 500;
|
|
9579
|
+
function eventHandle() {
|
|
9580
|
+
if (resize_eventStore.length) {
|
|
9581
|
+
resize_eventStore.forEach(item => {
|
|
9582
|
+
item.tarList.forEach(observer => {
|
|
9583
|
+
const {
|
|
9584
|
+
target,
|
|
9585
|
+
width,
|
|
9586
|
+
heighe
|
|
9587
|
+
} = observer;
|
|
9588
|
+
const clientWidth = target.clientWidth;
|
|
9589
|
+
const clientHeight = target.clientHeight;
|
|
9590
|
+
const rWidth = clientWidth && width !== clientWidth;
|
|
9591
|
+
const rHeight = clientHeight && heighe !== clientHeight;
|
|
9592
|
+
if (rWidth || rHeight) {
|
|
9593
|
+
observer.width = clientWidth;
|
|
9594
|
+
observer.heighe = clientHeight;
|
|
9595
|
+
setTimeout(item.callback);
|
|
9596
|
+
}
|
|
9597
|
+
});
|
|
9598
|
+
});
|
|
9599
|
+
/* eslint-disable @typescript-eslint/no-use-before-define */
|
|
9600
|
+
eventListener();
|
|
9601
|
+
}
|
|
9602
|
+
}
|
|
9603
|
+
function eventListener() {
|
|
9604
|
+
clearTimeout(resizeTimeout);
|
|
9605
|
+
resizeTimeout = setTimeout(eventHandle, globalStore.resizeInterval || defaultInterval);
|
|
9606
|
+
}
|
|
9607
|
+
class XEResizeObserver {
|
|
9608
|
+
constructor(callback) {
|
|
9609
|
+
_defineProperty(this, "tarList", []);
|
|
9610
|
+
_defineProperty(this, "callback", void 0);
|
|
9611
|
+
this.callback = callback;
|
|
9612
|
+
}
|
|
9613
|
+
observe(target) {
|
|
9614
|
+
if (target) {
|
|
9615
|
+
const {
|
|
9616
|
+
tarList
|
|
9617
|
+
} = this;
|
|
9618
|
+
if (!tarList.some(observer => observer.target === target)) {
|
|
9619
|
+
tarList.push({
|
|
9620
|
+
target,
|
|
9621
|
+
width: target.clientWidth,
|
|
9622
|
+
heighe: target.clientHeight
|
|
9623
|
+
});
|
|
9624
|
+
}
|
|
9625
|
+
if (!resize_eventStore.length) {
|
|
9626
|
+
eventListener();
|
|
9627
|
+
}
|
|
9628
|
+
if (!resize_eventStore.some(item => item === this)) {
|
|
9629
|
+
resize_eventStore.push(this);
|
|
9630
|
+
}
|
|
9631
|
+
}
|
|
9632
|
+
}
|
|
9633
|
+
unobserve(target) {
|
|
9634
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(resize_eventStore, item => item.tarList.some(observer => observer.target === target));
|
|
9635
|
+
}
|
|
9636
|
+
disconnect() {
|
|
9637
|
+
external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().remove(resize_eventStore, item => item === this);
|
|
9638
|
+
}
|
|
9639
|
+
}
|
|
9640
|
+
function createResizeEvent(callback) {
|
|
9641
|
+
if (window.ResizeObserver) {
|
|
9642
|
+
return new window.ResizeObserver(callback);
|
|
9643
|
+
}
|
|
9644
|
+
return new XEResizeObserver(callback);
|
|
9645
|
+
}
|
|
9646
|
+
;// CONCATENATED MODULE: ./packages/list/src/list.ts
|
|
9647
|
+
|
|
9648
|
+
|
|
9649
|
+
|
|
9650
|
+
|
|
9651
|
+
|
|
9652
|
+
|
|
9653
|
+
|
|
9654
|
+
|
|
9655
|
+
/* harmony default export */ var list = ((0,external_commonjs_vue_commonjs2_vue_root_Vue_.defineComponent)({
|
|
9656
|
+
name: 'VxeList',
|
|
9657
|
+
props: {
|
|
9658
|
+
data: Array,
|
|
9659
|
+
height: [Number, String],
|
|
9660
|
+
maxHeight: [Number, String],
|
|
9661
|
+
loading: Boolean,
|
|
9662
|
+
className: [String, Function],
|
|
9663
|
+
size: {
|
|
9664
|
+
type: String,
|
|
9665
|
+
default: () => globalStore.list.size || globalStore.size
|
|
9666
|
+
},
|
|
9667
|
+
autoResize: {
|
|
9668
|
+
type: Boolean,
|
|
9669
|
+
default: () => globalStore.list.autoResize
|
|
9670
|
+
},
|
|
9671
|
+
syncResize: [Boolean, String, Number],
|
|
9672
|
+
scrollY: Object
|
|
9673
|
+
},
|
|
9674
|
+
emits: ['scroll'],
|
|
9675
|
+
setup(props, context) {
|
|
9676
|
+
const {
|
|
9677
|
+
slots,
|
|
9678
|
+
emit
|
|
9679
|
+
} = context;
|
|
9680
|
+
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
9681
|
+
const computeSize = useSize(props);
|
|
9682
|
+
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
9683
|
+
scrollYLoad: false,
|
|
9684
|
+
bodyHeight: 0,
|
|
9685
|
+
rowHeight: 0,
|
|
9686
|
+
topSpaceHeight: 0,
|
|
9687
|
+
items: []
|
|
9688
|
+
});
|
|
9689
|
+
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
9690
|
+
const refVirtualWrapper = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
9691
|
+
const refVirtualBody = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
9692
|
+
const internalData = {
|
|
9693
|
+
fullData: [],
|
|
9694
|
+
lastScrollLeft: 0,
|
|
9695
|
+
lastScrollTop: 0,
|
|
9696
|
+
scrollYStore: {
|
|
9697
|
+
startIndex: 0,
|
|
9698
|
+
endIndex: 0,
|
|
9699
|
+
visibleSize: 0,
|
|
9700
|
+
offsetSize: 0,
|
|
9701
|
+
rowHeight: 0
|
|
9702
|
+
}
|
|
9703
|
+
};
|
|
9704
|
+
const refMaps = {
|
|
9705
|
+
refElem
|
|
9706
|
+
};
|
|
9707
|
+
const $xeList = {
|
|
9708
|
+
xID,
|
|
9709
|
+
props,
|
|
9710
|
+
context,
|
|
9711
|
+
reactData,
|
|
9712
|
+
internalData,
|
|
9713
|
+
getRefMaps: () => refMaps
|
|
9714
|
+
};
|
|
9715
|
+
let listMethods = {};
|
|
9716
|
+
const computeSYOpts = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
9717
|
+
return Object.assign({}, globalStore.list.scrollY, props.scrollY);
|
|
9718
|
+
});
|
|
9719
|
+
const computeStyles = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.computed)(() => {
|
|
9720
|
+
const {
|
|
9721
|
+
height,
|
|
9722
|
+
maxHeight
|
|
9723
|
+
} = props;
|
|
9724
|
+
const style = {};
|
|
9725
|
+
if (height) {
|
|
9726
|
+
style.height = `${isNaN(height) ? height : `${height}px`}`;
|
|
9727
|
+
} else if (maxHeight) {
|
|
9728
|
+
style.height = 'auto';
|
|
9729
|
+
style.maxHeight = `${isNaN(maxHeight) ? maxHeight : `${maxHeight}px`}`;
|
|
9730
|
+
}
|
|
9731
|
+
return style;
|
|
9732
|
+
});
|
|
9733
|
+
const updateYSpace = () => {
|
|
9734
|
+
const {
|
|
9735
|
+
scrollYLoad
|
|
9736
|
+
} = reactData;
|
|
9737
|
+
const {
|
|
9738
|
+
scrollYStore,
|
|
9739
|
+
fullData
|
|
9740
|
+
} = internalData;
|
|
9741
|
+
reactData.bodyHeight = scrollYLoad ? fullData.length * scrollYStore.rowHeight : 0;
|
|
9742
|
+
reactData.topSpaceHeight = scrollYLoad ? Math.max(scrollYStore.startIndex * scrollYStore.rowHeight, 0) : 0;
|
|
9743
|
+
};
|
|
9744
|
+
const handleData = () => {
|
|
9745
|
+
const {
|
|
9746
|
+
scrollYLoad
|
|
9747
|
+
} = reactData;
|
|
9748
|
+
const {
|
|
9749
|
+
fullData,
|
|
9750
|
+
scrollYStore
|
|
9751
|
+
} = internalData;
|
|
9752
|
+
reactData.items = scrollYLoad ? fullData.slice(scrollYStore.startIndex, scrollYStore.endIndex) : fullData.slice(0);
|
|
9753
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
9754
|
+
};
|
|
9755
|
+
const updateYData = () => {
|
|
9756
|
+
handleData();
|
|
9757
|
+
updateYSpace();
|
|
9758
|
+
};
|
|
9759
|
+
const computeScrollLoad = () => {
|
|
9760
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)().then(() => {
|
|
9761
|
+
const {
|
|
9762
|
+
scrollYLoad
|
|
9763
|
+
} = reactData;
|
|
9764
|
+
const {
|
|
9765
|
+
scrollYStore
|
|
9766
|
+
} = internalData;
|
|
9767
|
+
const virtualBodyElem = refVirtualBody.value;
|
|
9768
|
+
const sYOpts = computeSYOpts.value;
|
|
9769
|
+
let rowHeight = 0;
|
|
9770
|
+
let firstItemElem;
|
|
9771
|
+
if (virtualBodyElem) {
|
|
9772
|
+
if (sYOpts.sItem) {
|
|
9773
|
+
firstItemElem = virtualBodyElem.querySelector(sYOpts.sItem);
|
|
9774
|
+
}
|
|
9775
|
+
if (!firstItemElem) {
|
|
9776
|
+
firstItemElem = virtualBodyElem.children[0];
|
|
9777
|
+
}
|
|
9778
|
+
}
|
|
9779
|
+
if (firstItemElem) {
|
|
9780
|
+
rowHeight = firstItemElem.offsetHeight;
|
|
9781
|
+
}
|
|
9782
|
+
rowHeight = Math.max(20, rowHeight);
|
|
9783
|
+
scrollYStore.rowHeight = rowHeight;
|
|
9784
|
+
// 计算 Y 逻辑
|
|
9785
|
+
if (scrollYLoad) {
|
|
9786
|
+
const scrollBodyElem = refVirtualWrapper.value;
|
|
9787
|
+
const visibleYSize = Math.max(8, Math.ceil(scrollBodyElem.clientHeight / rowHeight));
|
|
9788
|
+
const offsetYSize = sYOpts.oSize ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toNumber(sYOpts.oSize) : browse.edge ? 10 : 0;
|
|
9789
|
+
scrollYStore.offsetSize = offsetYSize;
|
|
9790
|
+
scrollYStore.visibleSize = visibleYSize;
|
|
9791
|
+
scrollYStore.endIndex = Math.max(scrollYStore.startIndex, visibleYSize + offsetYSize, scrollYStore.endIndex);
|
|
9792
|
+
updateYData();
|
|
9793
|
+
} else {
|
|
9794
|
+
updateYSpace();
|
|
9795
|
+
}
|
|
9796
|
+
reactData.rowHeight = rowHeight;
|
|
9797
|
+
});
|
|
9798
|
+
};
|
|
9799
|
+
/**
|
|
9800
|
+
* 清除滚动条
|
|
9801
|
+
*/
|
|
9802
|
+
const clearScroll = () => {
|
|
9803
|
+
const scrollBodyElem = refVirtualWrapper.value;
|
|
9804
|
+
if (scrollBodyElem) {
|
|
9805
|
+
scrollBodyElem.scrollTop = 0;
|
|
9806
|
+
}
|
|
9807
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
9808
|
+
};
|
|
9809
|
+
/**
|
|
9810
|
+
* 如果有滚动条,则滚动到对应的位置
|
|
9811
|
+
* @param {Number} scrollLeft 左距离
|
|
9812
|
+
* @param {Number} scrollTop 上距离
|
|
9813
|
+
*/
|
|
9814
|
+
const scrollTo = (scrollLeft, scrollTop) => {
|
|
9815
|
+
const scrollBodyElem = refVirtualWrapper.value;
|
|
9816
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollLeft)) {
|
|
9817
|
+
scrollBodyElem.scrollLeft = scrollLeft;
|
|
9818
|
+
}
|
|
9819
|
+
if (external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isNumber(scrollTop)) {
|
|
9820
|
+
scrollBodyElem.scrollTop = scrollTop;
|
|
9821
|
+
}
|
|
9822
|
+
if (reactData.scrollYLoad) {
|
|
9823
|
+
return new Promise(resolve => {
|
|
9824
|
+
setTimeout(() => {
|
|
9825
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
9826
|
+
resolve();
|
|
9827
|
+
});
|
|
9828
|
+
}, 50);
|
|
9829
|
+
});
|
|
9830
|
+
}
|
|
9831
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)();
|
|
9832
|
+
};
|
|
9833
|
+
/**
|
|
9834
|
+
* 刷新滚动条
|
|
9835
|
+
*/
|
|
9836
|
+
const refreshScroll = () => {
|
|
9837
|
+
const {
|
|
9838
|
+
lastScrollLeft,
|
|
9839
|
+
lastScrollTop
|
|
9840
|
+
} = internalData;
|
|
9841
|
+
return clearScroll().then(() => {
|
|
9842
|
+
if (lastScrollLeft || lastScrollTop) {
|
|
9843
|
+
internalData.lastScrollLeft = 0;
|
|
9844
|
+
internalData.lastScrollTop = 0;
|
|
9845
|
+
return scrollTo(lastScrollLeft, lastScrollTop);
|
|
9846
|
+
}
|
|
9847
|
+
});
|
|
9848
|
+
};
|
|
9849
|
+
/**
|
|
9850
|
+
* 重新计算列表
|
|
9851
|
+
*/
|
|
9852
|
+
const recalculate = () => {
|
|
9853
|
+
const el = refElem.value;
|
|
9854
|
+
if (el.clientWidth && el.clientHeight) {
|
|
9855
|
+
return computeScrollLoad();
|
|
9856
|
+
}
|
|
9857
|
+
return Promise.resolve();
|
|
9858
|
+
};
|
|
9859
|
+
const loadYData = evnt => {
|
|
9860
|
+
const {
|
|
9861
|
+
scrollYStore
|
|
9862
|
+
} = internalData;
|
|
9863
|
+
const {
|
|
9864
|
+
startIndex,
|
|
9865
|
+
endIndex,
|
|
9866
|
+
visibleSize,
|
|
9867
|
+
offsetSize,
|
|
9868
|
+
rowHeight
|
|
9869
|
+
} = scrollYStore;
|
|
9870
|
+
const scrollBodyElem = evnt.target;
|
|
9871
|
+
const scrollTop = scrollBodyElem.scrollTop;
|
|
9872
|
+
const toVisibleIndex = Math.floor(scrollTop / rowHeight);
|
|
9873
|
+
const offsetStartIndex = Math.max(0, toVisibleIndex - 1 - offsetSize);
|
|
9874
|
+
const offsetEndIndex = toVisibleIndex + visibleSize + offsetSize;
|
|
9875
|
+
if (toVisibleIndex <= startIndex || toVisibleIndex >= endIndex - visibleSize - 1) {
|
|
9876
|
+
if (startIndex !== offsetStartIndex || endIndex !== offsetEndIndex) {
|
|
9877
|
+
scrollYStore.startIndex = offsetStartIndex;
|
|
9878
|
+
scrollYStore.endIndex = offsetEndIndex;
|
|
9879
|
+
updateYData();
|
|
9880
|
+
}
|
|
9881
|
+
}
|
|
9882
|
+
};
|
|
9883
|
+
const scrollEvent = evnt => {
|
|
9884
|
+
const scrollBodyElem = evnt.target;
|
|
9885
|
+
const scrollTop = scrollBodyElem.scrollTop;
|
|
9886
|
+
const scrollLeft = scrollBodyElem.scrollLeft;
|
|
9887
|
+
const isX = scrollLeft !== internalData.lastScrollLeft;
|
|
9888
|
+
const isY = scrollTop !== internalData.lastScrollTop;
|
|
9889
|
+
internalData.lastScrollTop = scrollTop;
|
|
9890
|
+
internalData.lastScrollLeft = scrollLeft;
|
|
9891
|
+
if (reactData.scrollYLoad) {
|
|
9892
|
+
loadYData(evnt);
|
|
9893
|
+
}
|
|
9894
|
+
listMethods.dispatchEvent('scroll', {
|
|
9895
|
+
scrollLeft,
|
|
9896
|
+
scrollTop,
|
|
9897
|
+
isX,
|
|
9898
|
+
isY
|
|
9899
|
+
}, evnt);
|
|
9900
|
+
};
|
|
9901
|
+
listMethods = {
|
|
9902
|
+
dispatchEvent(type, params, evnt) {
|
|
9903
|
+
emit(type, Object.assign({
|
|
9904
|
+
$list: $xeList,
|
|
9905
|
+
$event: evnt
|
|
9906
|
+
}, params));
|
|
9907
|
+
},
|
|
9908
|
+
/**
|
|
9909
|
+
* 加载数据
|
|
9910
|
+
* @param {Array} datas 数据
|
|
9911
|
+
*/
|
|
9912
|
+
loadData(datas) {
|
|
9913
|
+
const {
|
|
9914
|
+
scrollYStore
|
|
9915
|
+
} = internalData;
|
|
9916
|
+
const sYOpts = computeSYOpts.value;
|
|
9917
|
+
const fullData = datas || [];
|
|
9918
|
+
Object.assign(scrollYStore, {
|
|
9919
|
+
startIndex: 0,
|
|
9920
|
+
endIndex: 1,
|
|
9921
|
+
visibleSize: 0
|
|
9922
|
+
});
|
|
9923
|
+
internalData.fullData = fullData;
|
|
9924
|
+
// 如果gt为0,则总是启用
|
|
9925
|
+
reactData.scrollYLoad = !!sYOpts.enabled && sYOpts.gt > -1 && (sYOpts.gt === 0 || sYOpts.gt <= fullData.length);
|
|
9926
|
+
handleData();
|
|
9927
|
+
return computeScrollLoad().then(() => {
|
|
9928
|
+
refreshScroll();
|
|
9929
|
+
});
|
|
9930
|
+
},
|
|
9931
|
+
/**
|
|
9932
|
+
* 重新加载数据
|
|
9933
|
+
* @param {Array} datas 数据
|
|
9934
|
+
*/
|
|
9935
|
+
reloadData(datas) {
|
|
9936
|
+
clearScroll();
|
|
9937
|
+
return listMethods.loadData(datas);
|
|
9938
|
+
},
|
|
9939
|
+
recalculate,
|
|
9940
|
+
scrollTo,
|
|
9941
|
+
refreshScroll,
|
|
9942
|
+
clearScroll
|
|
9943
|
+
};
|
|
9944
|
+
Object.assign($xeList, listMethods);
|
|
9945
|
+
const dataFlag = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)(0);
|
|
9946
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.data ? props.data.length : -1, () => {
|
|
9947
|
+
dataFlag.value++;
|
|
9948
|
+
});
|
|
9949
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.data, () => {
|
|
9950
|
+
dataFlag.value++;
|
|
9951
|
+
});
|
|
9952
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(dataFlag, () => {
|
|
9953
|
+
listMethods.loadData(props.data || []);
|
|
9954
|
+
});
|
|
9955
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.syncResize, value => {
|
|
9956
|
+
if (value) {
|
|
9957
|
+
recalculate();
|
|
9958
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => setTimeout(() => recalculate()));
|
|
9959
|
+
}
|
|
9960
|
+
});
|
|
9961
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onActivated)(() => {
|
|
9962
|
+
recalculate().then(() => refreshScroll());
|
|
9963
|
+
});
|
|
9964
|
+
let resizeObserver;
|
|
9965
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.nextTick)(() => {
|
|
9966
|
+
GlobalEvent.on($xeList, 'resize', () => {
|
|
9967
|
+
recalculate();
|
|
9968
|
+
});
|
|
9969
|
+
if (props.autoResize) {
|
|
9970
|
+
const el = refElem.value;
|
|
9971
|
+
resizeObserver = createResizeEvent(() => recalculate());
|
|
9972
|
+
resizeObserver.observe(el);
|
|
9973
|
+
}
|
|
9974
|
+
listMethods.loadData(props.data || []);
|
|
9975
|
+
});
|
|
9976
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onUnmounted)(() => {
|
|
9977
|
+
if (resizeObserver) {
|
|
9978
|
+
resizeObserver.disconnect();
|
|
9979
|
+
}
|
|
9980
|
+
GlobalEvent.off($xeList, 'resize');
|
|
9981
|
+
});
|
|
9982
|
+
const renderVN = () => {
|
|
9983
|
+
const {
|
|
9984
|
+
className,
|
|
9985
|
+
loading
|
|
9986
|
+
} = props;
|
|
9987
|
+
const {
|
|
9988
|
+
bodyHeight,
|
|
9989
|
+
topSpaceHeight,
|
|
9990
|
+
items
|
|
9991
|
+
} = reactData;
|
|
9992
|
+
const vSize = computeSize.value;
|
|
9993
|
+
const styles = computeStyles.value;
|
|
9994
|
+
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
9995
|
+
ref: refElem,
|
|
9996
|
+
class: ['vxe-list', className ? external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().isFunction(className) ? className({
|
|
9997
|
+
$list: $xeList
|
|
9998
|
+
}) : className : '', {
|
|
9999
|
+
[`size--${vSize}`]: vSize,
|
|
10000
|
+
'is--loading': loading
|
|
10001
|
+
}]
|
|
10002
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10003
|
+
ref: refVirtualWrapper,
|
|
10004
|
+
class: 'vxe-list--virtual-wrapper',
|
|
10005
|
+
style: styles,
|
|
10006
|
+
onScroll: scrollEvent
|
|
10007
|
+
}, [(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10008
|
+
class: 'vxe-list--y-space',
|
|
10009
|
+
style: {
|
|
10010
|
+
height: bodyHeight ? `${bodyHeight}px` : ''
|
|
10011
|
+
}
|
|
10012
|
+
}), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
10013
|
+
ref: refVirtualBody,
|
|
10014
|
+
class: 'vxe-list--body',
|
|
10015
|
+
style: {
|
|
10016
|
+
marginTop: topSpaceHeight ? `${topSpaceHeight}px` : ''
|
|
10017
|
+
}
|
|
10018
|
+
}, slots.default ? slots.default({
|
|
10019
|
+
items,
|
|
10020
|
+
$list: $xeList
|
|
10021
|
+
}) : [])]),
|
|
10022
|
+
/**
|
|
10023
|
+
* 加载中
|
|
10024
|
+
*/
|
|
10025
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(src_loading, {
|
|
10026
|
+
class: 'vxe-list--loading',
|
|
10027
|
+
modelValue: loading
|
|
10028
|
+
})]);
|
|
10029
|
+
};
|
|
10030
|
+
$xeList.renderVN = renderVN;
|
|
10031
|
+
return $xeList;
|
|
10032
|
+
},
|
|
10033
|
+
render() {
|
|
10034
|
+
return this.renderVN();
|
|
10035
|
+
}
|
|
10036
|
+
}));
|
|
10037
|
+
;// CONCATENATED MODULE: ./packages/list/index.ts
|
|
10038
|
+
|
|
10039
|
+
|
|
10040
|
+
const VxeList = Object.assign(list, {
|
|
10041
|
+
install(app) {
|
|
10042
|
+
app.component(list.name, list);
|
|
10043
|
+
}
|
|
10044
|
+
});
|
|
10045
|
+
dynamicApp.component(list.name, list);
|
|
10046
|
+
const List = VxeList;
|
|
10047
|
+
/* harmony default export */ var packages_list = (VxeList);
|
|
9524
10048
|
;// CONCATENATED MODULE: ./packages/modal/src/modal.ts
|
|
9525
10049
|
|
|
9526
10050
|
|
|
@@ -10797,8 +11321,8 @@ const VxeOptgroup = Object.assign(optgroup, {
|
|
|
10797
11321
|
app.component(optgroup.name, optgroup);
|
|
10798
11322
|
}
|
|
10799
11323
|
});
|
|
10800
|
-
const Optgroup = VxeOptgroup;
|
|
10801
11324
|
dynamicApp.component(optgroup.name, optgroup);
|
|
11325
|
+
const Optgroup = VxeOptgroup;
|
|
10802
11326
|
/* harmony default export */ var packages_optgroup = (VxeOptgroup);
|
|
10803
11327
|
;// CONCATENATED MODULE: ./packages/select/src/option.ts
|
|
10804
11328
|
|
|
@@ -10848,8 +11372,8 @@ const VxeOption = Object.assign(src_option, {
|
|
|
10848
11372
|
app.component(src_option.name, src_option);
|
|
10849
11373
|
}
|
|
10850
11374
|
});
|
|
10851
|
-
const Option = VxeOption;
|
|
10852
11375
|
dynamicApp.component(src_option.name, src_option);
|
|
11376
|
+
const Option = VxeOption;
|
|
10853
11377
|
/* harmony default export */ var packages_option = (VxeOption);
|
|
10854
11378
|
;// CONCATENATED MODULE: ./packages/select/src/select.ts
|
|
10855
11379
|
|
|
@@ -11958,8 +12482,8 @@ const VxeSelect = Object.assign(src_select, {
|
|
|
11958
12482
|
app.component(src_select.name, src_select);
|
|
11959
12483
|
}
|
|
11960
12484
|
});
|
|
11961
|
-
const Select = VxeSelect;
|
|
11962
12485
|
dynamicApp.component(src_select.name, src_select);
|
|
12486
|
+
const Select = VxeSelect;
|
|
11963
12487
|
/* harmony default export */ var packages_select = (VxeSelect);
|
|
11964
12488
|
;// CONCATENATED MODULE: ./packages/pager/src/pager.ts
|
|
11965
12489
|
|
|
@@ -12058,7 +12582,7 @@ dynamicApp.component(src_select.name, src_select);
|
|
|
12058
12582
|
} = context;
|
|
12059
12583
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
12060
12584
|
const computeSize = useSize(props);
|
|
12061
|
-
const $
|
|
12585
|
+
const $xeGrid = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.inject)('$xeGrid', null);
|
|
12062
12586
|
const reactData = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.reactive)({
|
|
12063
12587
|
inpCurrPage: props.currentPage
|
|
12064
12588
|
});
|
|
@@ -12464,7 +12988,7 @@ dynamicApp.component(src_select.name, src_select);
|
|
|
12464
12988
|
childNodes.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
12465
12989
|
class: 'vxe-pager--left-wrapper'
|
|
12466
12990
|
}, slots.left({
|
|
12467
|
-
$grid: $
|
|
12991
|
+
$grid: $xeGrid
|
|
12468
12992
|
})));
|
|
12469
12993
|
}
|
|
12470
12994
|
layouts.forEach(name => {
|
|
@@ -12522,7 +13046,7 @@ dynamicApp.component(src_select.name, src_select);
|
|
|
12522
13046
|
childNodes.push((0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
12523
13047
|
class: 'vxe-pager--right-wrapper'
|
|
12524
13048
|
}, slots.right({
|
|
12525
|
-
$grid: $
|
|
13049
|
+
$grid: $xeGrid
|
|
12526
13050
|
})));
|
|
12527
13051
|
}
|
|
12528
13052
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
@@ -12557,8 +13081,8 @@ const VxePager = Object.assign(pager, {
|
|
|
12557
13081
|
app.component(pager.name, pager);
|
|
12558
13082
|
}
|
|
12559
13083
|
});
|
|
12560
|
-
const Pager = VxePager;
|
|
12561
13084
|
dynamicApp.component(pager.name, pager);
|
|
13085
|
+
const Pager = VxePager;
|
|
12562
13086
|
/* harmony default export */ var packages_pager = (VxePager);
|
|
12563
13087
|
;// CONCATENATED MODULE: ./packages/pulldown/src/pulldown.ts
|
|
12564
13088
|
|
|
@@ -12921,8 +13445,8 @@ const VxePulldown = Object.assign(pulldown, {
|
|
|
12921
13445
|
app.component(pulldown.name, pulldown);
|
|
12922
13446
|
}
|
|
12923
13447
|
});
|
|
12924
|
-
const Pulldown = VxePulldown;
|
|
12925
13448
|
dynamicApp.component(pulldown.name, pulldown);
|
|
13449
|
+
const Pulldown = VxePulldown;
|
|
12926
13450
|
/* harmony default export */ var packages_pulldown = (VxePulldown);
|
|
12927
13451
|
;// CONCATENATED MODULE: ./packages/radio/src/radio.ts
|
|
12928
13452
|
|
|
@@ -13065,8 +13589,8 @@ const VxeRadio = Object.assign(src_radio, {
|
|
|
13065
13589
|
app.component(src_radio.name, src_radio);
|
|
13066
13590
|
}
|
|
13067
13591
|
});
|
|
13068
|
-
const Radio = VxeRadio;
|
|
13069
13592
|
dynamicApp.component(src_radio.name, src_radio);
|
|
13593
|
+
const Radio = VxeRadio;
|
|
13070
13594
|
/* harmony default export */ var packages_radio = (VxeRadio);
|
|
13071
13595
|
;// CONCATENATED MODULE: ./packages/radio/src/button.ts
|
|
13072
13596
|
|
|
@@ -13205,8 +13729,8 @@ const VxeRadioButton = Object.assign(radio_src_button, {
|
|
|
13205
13729
|
app.component(radio_src_button.name, radio_src_button);
|
|
13206
13730
|
}
|
|
13207
13731
|
});
|
|
13208
|
-
const RadioButton = VxeRadioButton;
|
|
13209
13732
|
dynamicApp.component(radio_src_button.name, radio_src_button);
|
|
13733
|
+
const RadioButton = VxeRadioButton;
|
|
13210
13734
|
/* harmony default export */ var radio_button = (VxeRadioButton);
|
|
13211
13735
|
;// CONCATENATED MODULE: ./packages/radio/src/group.ts
|
|
13212
13736
|
|
|
@@ -13318,8 +13842,8 @@ const VxeRadioGroup = Object.assign(src_group, {
|
|
|
13318
13842
|
app.component(src_group.name, src_group);
|
|
13319
13843
|
}
|
|
13320
13844
|
});
|
|
13321
|
-
const RadioGroup = VxeRadioGroup;
|
|
13322
13845
|
dynamicApp.component(src_group.name, src_group);
|
|
13846
|
+
const RadioGroup = VxeRadioGroup;
|
|
13323
13847
|
/* harmony default export */ var radio_group = (VxeRadioGroup);
|
|
13324
13848
|
;// CONCATENATED MODULE: ./packages/row/src/row.ts
|
|
13325
13849
|
|
|
@@ -13399,11 +13923,13 @@ dynamicApp.component(src_group.name, src_group);
|
|
|
13399
13923
|
}));
|
|
13400
13924
|
;// CONCATENATED MODULE: ./packages/row/index.ts
|
|
13401
13925
|
|
|
13926
|
+
|
|
13402
13927
|
const VxeRow = Object.assign({}, row, {
|
|
13403
13928
|
install(app) {
|
|
13404
13929
|
app.component(row.name, row);
|
|
13405
13930
|
}
|
|
13406
13931
|
});
|
|
13932
|
+
dynamicApp.component(row.name, row);
|
|
13407
13933
|
const Row = VxeRow;
|
|
13408
13934
|
/* harmony default export */ var packages_row = (VxeRow);
|
|
13409
13935
|
;// CONCATENATED MODULE: ./packages/switch/src/switch.ts
|
|
@@ -13569,8 +14095,8 @@ const VxeSwitch = Object.assign(src_switch, {
|
|
|
13569
14095
|
app.component(src_switch.name, src_switch);
|
|
13570
14096
|
}
|
|
13571
14097
|
});
|
|
13572
|
-
const Switch = VxeSwitch;
|
|
13573
14098
|
dynamicApp.component(src_switch.name, src_switch);
|
|
14099
|
+
const Switch = VxeSwitch;
|
|
13574
14100
|
/* harmony default export */ var packages_switch = (VxeSwitch);
|
|
13575
14101
|
;// CONCATENATED MODULE: ./packages/tabs/src/util.ts
|
|
13576
14102
|
|
|
@@ -13661,11 +14187,13 @@ function destroyAnchorTab($xeTabs, tabConfig) {
|
|
|
13661
14187
|
}));
|
|
13662
14188
|
;// CONCATENATED MODULE: ./packages/tab-pane/index.ts
|
|
13663
14189
|
|
|
14190
|
+
|
|
13664
14191
|
const VxeTabPane = Object.assign({}, tab_pane, {
|
|
13665
14192
|
install(app) {
|
|
13666
14193
|
app.component(tab_pane.name, tab_pane);
|
|
13667
14194
|
}
|
|
13668
14195
|
});
|
|
14196
|
+
dynamicApp.component(tab_pane.name, tab_pane);
|
|
13669
14197
|
const TabPane = VxeTabPane;
|
|
13670
14198
|
/* harmony default export */ var packages_tab_pane = (VxeTabPane);
|
|
13671
14199
|
;// CONCATENATED MODULE: ./packages/tabs/src/tabs.ts
|
|
@@ -13682,10 +14210,11 @@ const TabPane = VxeTabPane;
|
|
|
13682
14210
|
destroyOnClose: Boolean,
|
|
13683
14211
|
type: String
|
|
13684
14212
|
},
|
|
13685
|
-
emits: [],
|
|
14213
|
+
emits: ['update:modelValue', 'click', 'change', 'load'],
|
|
13686
14214
|
setup(props, context) {
|
|
13687
14215
|
const {
|
|
13688
|
-
slots
|
|
14216
|
+
slots,
|
|
14217
|
+
emit
|
|
13689
14218
|
} = context;
|
|
13690
14219
|
const xID = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().uniqueId();
|
|
13691
14220
|
const refElem = (0,external_commonjs_vue_commonjs2_vue_root_Vue_.ref)();
|
|
@@ -13747,30 +14276,62 @@ const TabPane = VxeTabPane;
|
|
|
13747
14276
|
activeName
|
|
13748
14277
|
} = reactData;
|
|
13749
14278
|
const headerWrapperEl = refHeaderElem.value;
|
|
13750
|
-
|
|
14279
|
+
let lintWidth = 0;
|
|
14280
|
+
let lintLeft = 0;
|
|
14281
|
+
if (headerWrapperEl) {
|
|
13751
14282
|
const index = external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().findIndexOf(staticTabs.length ? staticTabs : options, item => item.name === activeName);
|
|
13752
14283
|
if (index > -1) {
|
|
13753
14284
|
const tabEl = headerWrapperEl.children[index];
|
|
13754
14285
|
const tabWidth = tabEl.clientWidth;
|
|
13755
|
-
|
|
13756
|
-
|
|
13757
|
-
|
|
14286
|
+
if (type === 'card') {
|
|
14287
|
+
lintWidth = tabWidth + 1;
|
|
14288
|
+
lintLeft = tabEl.offsetLeft;
|
|
14289
|
+
} else if (type === 'border-card') {
|
|
14290
|
+
lintWidth = tabWidth + 1;
|
|
14291
|
+
lintLeft = tabEl.offsetLeft - 1;
|
|
14292
|
+
} else if (!type) {
|
|
14293
|
+
lintWidth = Math.max(4, Math.floor(tabWidth * 0.6));
|
|
14294
|
+
lintLeft = tabEl.offsetLeft + Math.floor((tabWidth - lintWidth) / 2);
|
|
14295
|
+
}
|
|
13758
14296
|
}
|
|
13759
14297
|
}
|
|
14298
|
+
reactData.lintLeft = lintLeft;
|
|
14299
|
+
reactData.lintWidth = lintWidth;
|
|
13760
14300
|
});
|
|
13761
14301
|
};
|
|
13762
14302
|
const clickEvent = (evnt, item) => {
|
|
13763
14303
|
const {
|
|
13764
|
-
initNames
|
|
14304
|
+
initNames,
|
|
14305
|
+
activeName
|
|
13765
14306
|
} = reactData;
|
|
13766
14307
|
const {
|
|
13767
14308
|
name
|
|
13768
14309
|
} = item;
|
|
14310
|
+
let isInit = false;
|
|
14311
|
+
const value = name;
|
|
13769
14312
|
if (!initNames.includes(name)) {
|
|
14313
|
+
isInit = true;
|
|
13770
14314
|
initNames.push(name);
|
|
13771
14315
|
}
|
|
13772
14316
|
reactData.activeName = name;
|
|
13773
|
-
|
|
14317
|
+
emit('update:modelValue', value);
|
|
14318
|
+
if (name !== activeName) {
|
|
14319
|
+
emit('change', {
|
|
14320
|
+
value,
|
|
14321
|
+
name,
|
|
14322
|
+
$event: evnt
|
|
14323
|
+
});
|
|
14324
|
+
}
|
|
14325
|
+
emit('click', {
|
|
14326
|
+
name,
|
|
14327
|
+
$event: evnt
|
|
14328
|
+
});
|
|
14329
|
+
if (isInit) {
|
|
14330
|
+
emit('load', {
|
|
14331
|
+
name,
|
|
14332
|
+
$event: evnt
|
|
14333
|
+
});
|
|
14334
|
+
}
|
|
13774
14335
|
};
|
|
13775
14336
|
const renderTabHeader = list => {
|
|
13776
14337
|
const {
|
|
@@ -13794,6 +14355,7 @@ const TabPane = VxeTabPane;
|
|
|
13794
14355
|
} = item;
|
|
13795
14356
|
const tabSlot = slots ? slots.tab : null;
|
|
13796
14357
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
14358
|
+
key: name,
|
|
13797
14359
|
class: ['vxe-tab-header--item', {
|
|
13798
14360
|
'is--active': activeName === name
|
|
13799
14361
|
}],
|
|
@@ -13806,8 +14368,8 @@ const TabPane = VxeTabPane;
|
|
|
13806
14368
|
name,
|
|
13807
14369
|
title
|
|
13808
14370
|
}) : `${title}`)]);
|
|
13809
|
-
})),
|
|
13810
|
-
class:
|
|
14371
|
+
})), (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('span', {
|
|
14372
|
+
class: `vxe-tabs-header--active-line-${type || 'default'}`,
|
|
13811
14373
|
style: {
|
|
13812
14374
|
left: `${lintLeft}px`,
|
|
13813
14375
|
width: `${lintWidth}px`
|
|
@@ -13827,6 +14389,7 @@ const TabPane = VxeTabPane;
|
|
|
13827
14389
|
return (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)(tab_pane, item, {
|
|
13828
14390
|
default() {
|
|
13829
14391
|
return name && initNames.includes(name) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
14392
|
+
key: name,
|
|
13830
14393
|
class: ['vxe-tab-pane--item', {
|
|
13831
14394
|
'is--visible': activeName === name
|
|
13832
14395
|
}]
|
|
@@ -13840,7 +14403,7 @@ const TabPane = VxeTabPane;
|
|
|
13840
14403
|
} = props;
|
|
13841
14404
|
const activeOptionTab = computeActiveOptionTab.value;
|
|
13842
14405
|
if (destroyOnClose) {
|
|
13843
|
-
return activeOptionTab ? renderOptionPane(activeOptionTab) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
14406
|
+
return activeOptionTab ? [renderOptionPane(activeOptionTab)] : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
13844
14407
|
}
|
|
13845
14408
|
return options.map(renderOptionPane);
|
|
13846
14409
|
};
|
|
@@ -13855,6 +14418,7 @@ const TabPane = VxeTabPane;
|
|
|
13855
14418
|
} = item;
|
|
13856
14419
|
const defaultSlot = slots ? slots.default : null;
|
|
13857
14420
|
return name && initNames.includes(name) ? (0,external_commonjs_vue_commonjs2_vue_root_Vue_.h)('div', {
|
|
14421
|
+
key: name,
|
|
13858
14422
|
class: ['vxe-tab-pane--item', {
|
|
13859
14423
|
'is--visible': activeName === name
|
|
13860
14424
|
}]
|
|
@@ -13866,7 +14430,7 @@ const TabPane = VxeTabPane;
|
|
|
13866
14430
|
} = props;
|
|
13867
14431
|
const activeDefaultTab = computeActiveDefaultTab.value;
|
|
13868
14432
|
if (destroyOnClose) {
|
|
13869
|
-
return activeDefaultTab ? renderDefaultPane(activeDefaultTab) : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
14433
|
+
return activeDefaultTab ? [renderDefaultPane(activeDefaultTab)] : (0,external_commonjs_vue_commonjs2_vue_root_Vue_.createCommentVNode)();
|
|
13870
14434
|
}
|
|
13871
14435
|
return staticTabs.map(renderDefaultPane);
|
|
13872
14436
|
};
|
|
@@ -13890,6 +14454,8 @@ const TabPane = VxeTabPane;
|
|
|
13890
14454
|
};
|
|
13891
14455
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => props.modelValue, val => {
|
|
13892
14456
|
reactData.activeName = val;
|
|
14457
|
+
});
|
|
14458
|
+
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.watch)(() => reactData.activeName, () => {
|
|
13893
14459
|
updateLineStyle();
|
|
13894
14460
|
});
|
|
13895
14461
|
(0,external_commonjs_vue_commonjs2_vue_root_Vue_.onMounted)(() => {
|
|
@@ -13905,11 +14471,13 @@ const TabPane = VxeTabPane;
|
|
|
13905
14471
|
}));
|
|
13906
14472
|
;// CONCATENATED MODULE: ./packages/tabs/index.ts
|
|
13907
14473
|
|
|
14474
|
+
|
|
13908
14475
|
const VxeTabs = Object.assign({}, tabs, {
|
|
13909
14476
|
install(app) {
|
|
13910
14477
|
app.component(tabs.name, tabs);
|
|
13911
14478
|
}
|
|
13912
14479
|
});
|
|
14480
|
+
dynamicApp.component(tabs.name, tabs);
|
|
13913
14481
|
const Tabs = VxeTabs;
|
|
13914
14482
|
/* harmony default export */ var packages_tabs = (VxeTabs);
|
|
13915
14483
|
;// CONCATENATED MODULE: ./packages/textarea/src/textarea.ts
|
|
@@ -14212,8 +14780,8 @@ const VxeTextarea = Object.assign(src_textarea, {
|
|
|
14212
14780
|
app.component(src_textarea.name, src_textarea);
|
|
14213
14781
|
}
|
|
14214
14782
|
});
|
|
14215
|
-
const Textarea = VxeTextarea;
|
|
14216
14783
|
dynamicApp.component(src_textarea.name, src_textarea);
|
|
14784
|
+
const Textarea = VxeTextarea;
|
|
14217
14785
|
/* harmony default export */ var packages_textarea = (VxeTextarea);
|
|
14218
14786
|
;// CONCATENATED MODULE: ./packages/locale/lang/zh-CN.ts
|
|
14219
14787
|
/* harmony default export */ var zh_CN = ({
|
|
@@ -14718,13 +15286,14 @@ dynamicApp.component(src_textarea.name, src_textarea);
|
|
|
14718
15286
|
|
|
14719
15287
|
|
|
14720
15288
|
|
|
15289
|
+
|
|
14721
15290
|
|
|
14722
15291
|
|
|
14723
15292
|
// 默认中文
|
|
14724
15293
|
setConfig({
|
|
14725
15294
|
i18n: (key, args) => external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().toFormatString(external_root_XEUtils_commonjs_xe_utils_commonjs2_xe_utils_amd_xe_utils_default().get(zh_CN, key), args)
|
|
14726
15295
|
});
|
|
14727
|
-
const components = [packages_anchor, packages_anchor_link, packages_breadcrumb, packages_breadcrumb_item, packages_button, packages_button_group, packages_checkbox, checkbox_group, packages_col, packages_form, packages_form_design, packages_form_gather, packages_form_item, packages_icon, packages_input, packages_layout_aside, packages_layout_body, packages_layout_container, packages_layout_footer, packages_layout_header, packages_list_design, packages_loading, packages_modal, packages_optgroup, packages_option, packages_pager, packages_pulldown, packages_radio, radio_button, radio_group, packages_row, packages_select, packages_switch, packages_tab_pane, packages_tabs, packages_textarea, packages_tooltip];
|
|
15296
|
+
const components = [packages_anchor, packages_anchor_link, packages_breadcrumb, packages_breadcrumb_item, packages_button, packages_button_group, packages_checkbox, checkbox_group, packages_col, packages_form, packages_form_design, packages_form_gather, packages_form_item, packages_icon, packages_input, packages_layout_aside, packages_layout_body, packages_layout_container, packages_layout_footer, packages_layout_header, packages_list_design, packages_list, packages_loading, packages_modal, packages_optgroup, packages_option, packages_pager, packages_pulldown, packages_radio, radio_button, radio_group, packages_row, packages_select, packages_switch, packages_tab_pane, packages_tabs, packages_textarea, packages_tooltip];
|
|
14728
15297
|
function install(app, options) {
|
|
14729
15298
|
setConfig(options);
|
|
14730
15299
|
components.forEach(component => app.use(component));
|
|
@@ -14766,6 +15335,7 @@ function install(app, options) {
|
|
|
14766
15335
|
|
|
14767
15336
|
|
|
14768
15337
|
|
|
15338
|
+
|
|
14769
15339
|
|
|
14770
15340
|
|
|
14771
15341
|
;// CONCATENATED MODULE: ./index.ts
|