vxe-table 4.4.2-beta.0 → 4.4.2-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (81) hide show
  1. package/es/checkbox/style.css +12 -12
  2. package/es/export/style.css +6 -6
  3. package/es/filter/style.css +6 -6
  4. package/es/form/style.css +1 -1
  5. package/es/icon/style.css +1 -1
  6. package/es/radio/style.css +16 -16
  7. package/es/style.css +1 -1
  8. package/es/style.min.css +1 -1
  9. package/es/table/src/table.js +25 -5
  10. package/es/table/style.css +27 -27
  11. package/es/toolbar/style.css +6 -6
  12. package/es/tools/log.js +1 -1
  13. package/es/v-x-e-table/index.js +1 -1
  14. package/es/vxe-checkbox/style.css +12 -12
  15. package/es/vxe-form/style.css +1 -1
  16. package/es/vxe-module-export/style.css +6 -6
  17. package/es/vxe-module-filter/style.css +6 -6
  18. package/es/vxe-radio/style.css +16 -16
  19. package/es/vxe-table/style.css +27 -27
  20. package/es/vxe-toolbar/style.css +6 -6
  21. package/lib/checkbox/style/style.css +12 -12
  22. package/lib/checkbox/style/style.min.css +1 -1
  23. package/lib/export/style/style.css +6 -6
  24. package/lib/export/style/style.min.css +1 -1
  25. package/lib/filter/style/style.css +6 -6
  26. package/lib/filter/style/style.min.css +1 -1
  27. package/lib/form/style/style.css +1 -1
  28. package/lib/form/style/style.min.css +1 -1
  29. package/lib/icon/style/style.css +1 -1
  30. package/lib/icon/style/style.min.css +1 -1
  31. package/lib/index.umd.js +27 -7
  32. package/lib/index.umd.min.js +1 -1
  33. package/lib/radio/style/style.css +16 -16
  34. package/lib/radio/style/style.min.css +1 -1
  35. package/lib/style.css +1 -1
  36. package/lib/style.min.css +1 -1
  37. package/lib/table/src/table.js +25 -5
  38. package/lib/table/src/table.min.js +1 -1
  39. package/lib/table/style/style.css +27 -27
  40. package/lib/table/style/style.min.css +1 -1
  41. package/lib/toolbar/style/style.css +6 -6
  42. package/lib/toolbar/style/style.min.css +1 -1
  43. package/lib/tools/log.js +1 -1
  44. package/lib/tools/log.min.js +1 -1
  45. package/lib/v-x-e-table/index.js +1 -1
  46. package/lib/v-x-e-table/index.min.js +1 -1
  47. package/lib/vxe-checkbox/style/style.css +12 -12
  48. package/lib/vxe-checkbox/style/style.min.css +1 -1
  49. package/lib/vxe-form/style/style.css +1 -1
  50. package/lib/vxe-form/style/style.min.css +1 -1
  51. package/lib/vxe-module-export/style/style.css +6 -6
  52. package/lib/vxe-module-export/style/style.min.css +1 -1
  53. package/lib/vxe-module-filter/style/style.css +6 -6
  54. package/lib/vxe-module-filter/style/style.min.css +1 -1
  55. package/lib/vxe-radio/style/style.css +16 -16
  56. package/lib/vxe-radio/style/style.min.css +1 -1
  57. package/lib/vxe-table/style/style.css +27 -27
  58. package/lib/vxe-table/style/style.min.css +1 -1
  59. package/lib/vxe-toolbar/style/style.css +6 -6
  60. package/lib/vxe-toolbar/style/style.min.css +1 -1
  61. package/package.json +1 -1
  62. package/packages/table/src/table.ts +25 -5
  63. package/styles/base/checked.scss +12 -12
  64. package/styles/base/common.scss +6 -6
  65. package/styles/form.scss +1 -1
  66. package/styles/radio.scss +4 -4
  67. package/styles/table.scss +9 -9
  68. package/types/form-item.d.ts +1 -1
  69. package/types/table.d.ts +8 -1
  70. /package/es/icon/style/{iconfont.1685463362588.ttf → iconfont.1686011878916.ttf} +0 -0
  71. /package/es/icon/style/{iconfont.1685463362588.woff → iconfont.1686011878916.woff} +0 -0
  72. /package/es/icon/style/{iconfont.1685463362588.woff2 → iconfont.1686011878916.woff2} +0 -0
  73. /package/es/{iconfont.1685463362588.ttf → iconfont.1686011878916.ttf} +0 -0
  74. /package/es/{iconfont.1685463362588.woff → iconfont.1686011878916.woff} +0 -0
  75. /package/es/{iconfont.1685463362588.woff2 → iconfont.1686011878916.woff2} +0 -0
  76. /package/lib/icon/style/{iconfont.1685463362588.ttf → iconfont.1686011878916.ttf} +0 -0
  77. /package/lib/icon/style/{iconfont.1685463362588.woff → iconfont.1686011878916.woff} +0 -0
  78. /package/lib/icon/style/{iconfont.1685463362588.woff2 → iconfont.1686011878916.woff2} +0 -0
  79. /package/lib/{iconfont.1685463362588.ttf → iconfont.1686011878916.ttf} +0 -0
  80. /package/lib/{iconfont.1685463362588.woff → iconfont.1686011878916.woff} +0 -0
  81. /package/lib/{iconfont.1685463362588.woff2 → iconfont.1686011878916.woff2} +0 -0
@@ -1 +1 @@
1
- .vxe-custom--option .vxe-checkbox--icon{font-size:1.34em}.vxe-custom--option .vxe-checkbox--icon{color:#dcdfe6;vertical-align:middle;font-weight:700;-webkit-user-select:none;-moz-user-select:none;user-select:none}.is--checked.vxe-custom--option,.is--indeterminate.vxe-custom--option{color:#409eff}.is--checked.vxe-custom--option .vxe-checkbox--icon,.is--indeterminate.vxe-custom--option .vxe-checkbox--icon{color:#409eff}.vxe-custom--option:not(.is--disabled){cursor:pointer}.vxe-custom--option:not(.is--disabled):hover .vxe-checkbox--icon{color:#409eff}.is--disabled.vxe-custom--option{color:#bfbfbf;cursor:not-allowed}.is--disabled.vxe-custom--option .vxe-checkbox--icon{color:#dcdfe6}.vxe-custom--option .vxe-checkbox--label{padding-left:.5em;vertical-align:middle}.vxe-toolbar{position:relative;display:flex;flex-direction:row;align-items:center;padding:.6em 0;color:var(--vxe-font-color);font-family:var(--vxe-font-family);background-color:var(--vxe-toolbar-background-color)}.vxe-toolbar:after{content:"";display:block;clear:both;height:0;overflow:hidden;visibility:hidden}.vxe-toolbar.is--perfect{border:1px solid var(--vxe-table-border-color);border-bottom-width:0;background-color:var(--vxe-table-header-background-color)}.vxe-toolbar.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:var(--vxe-loading-z-index);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vxe-loading-background-color)}.vxe-toolbar .vxe-buttons--wrapper{flex-grow:1}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button+.vxe-button--item,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button--item{margin-left:.8em}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button+.vxe-tool--item,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-button,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-tool--item{margin-left:.8em}.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button{display:flex;align-items:center;justify-content:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--operate,.vxe-toolbar .vxe-tools--wrapper{display:flex;align-items:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--wrapper{flex-wrap:wrap}.vxe-toolbar .vxe-tools--operate{flex-shrink:0}.vxe-toolbar .vxe-custom--wrapper{position:relative;margin-left:.8em}.vxe-toolbar .vxe-custom--wrapper.is--active>.vxe-button{background-color:var(--vxe-toolbar-custom-active-background-color);border-radius:50%}.vxe-toolbar .vxe-custom--wrapper.is--active .vxe-custom--option-wrapper{display:block}.vxe-toolbar .vxe-custom--option-wrapper{display:none;position:absolute;right:2px;text-align:left;background-color:var(--vxe-toolbar-panel-background-color);z-index:19;border:1px solid var(--vxe-table-border-color);border-radius:var(--vxe-border-radius);box-shadow:0 1px 6px rgba(0,0,0,.2)}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header{padding:.28em 0;font-weight:700;border-bottom:1px solid var(--vxe-table-popup-border-color)}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body{padding:.2em 0;max-height:17.6em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body .vxe-custom--option:hover{background-color:var(--vxe-table-row-hover-background-color)}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li{max-width:16em;min-width:12.5em;padding:.2em 1em .2em 1em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2{padding-left:3.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2 .vxe-checkbox--icon{left:1.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3{padding-left:4.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3 .vxe-checkbox--icon{left:2.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4{padding-left:5.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4 .vxe-checkbox--icon{left:3.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5{padding-left:6.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5 .vxe-checkbox--icon{left:4.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6{padding-left:7.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6 .vxe-checkbox--icon{left:5.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7{padding-left:8.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7 .vxe-checkbox--icon{left:6.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8{padding-left:9.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8 .vxe-checkbox--icon{left:7.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer{border-top:1px solid var(--vxe-table-popup-border-color);text-align:right}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button{background-color:transparent;width:50%;height:2.5em;border:0;color:var(--vxe-font-color);text-align:center;cursor:pointer}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:focus{outline:0}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:hover{color:var(--vxe-primary-color)}.vxe-custom--option-wrapper .vxe-custom--body,.vxe-custom--option-wrapper .vxe-custom--header{list-style-type:none;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-custom--option-wrapper .vxe-custom--body>li,.vxe-custom--option-wrapper .vxe-custom--header>li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-toolbar{font-size:var(--vxe-font-size)}.vxe-toolbar.size--medium{font-size:var(--vxe-font-size-medium)}.vxe-toolbar.size--small{font-size:var(--vxe-font-size-small)}.vxe-toolbar.size--mini{font-size:var(--vxe-font-size-mini)}
1
+ .vxe-custom--option .vxe-checkbox--icon{font-size:1.34em}.vxe-custom--option .vxe-checkbox--icon{color:var(--vxe-input-border-color);vertical-align:middle;font-weight:700;-webkit-user-select:none;-moz-user-select:none;user-select:none}.is--checked.vxe-custom--option,.is--indeterminate.vxe-custom--option{color:var(--vxe-primary-color)}.is--checked.vxe-custom--option .vxe-checkbox--icon,.is--indeterminate.vxe-custom--option .vxe-checkbox--icon{color:var(--vxe-primary-color)}.vxe-custom--option:not(.is--disabled){cursor:pointer}.vxe-custom--option:not(.is--disabled):hover .vxe-checkbox--icon{color:var(--vxe-primary-color)}.is--disabled.vxe-custom--option{color:var(--vxe-disabled-color);cursor:not-allowed}.is--disabled.vxe-custom--option .vxe-checkbox--icon{color:var(--vxe-input-disabled-color)}.vxe-custom--option .vxe-checkbox--label{padding-left:.5em;vertical-align:middle}.vxe-toolbar{position:relative;display:flex;flex-direction:row;align-items:center;padding:.6em 0;color:var(--vxe-font-color);font-family:var(--vxe-font-family);background-color:var(--vxe-toolbar-background-color)}.vxe-toolbar:after{content:"";display:block;clear:both;height:0;overflow:hidden;visibility:hidden}.vxe-toolbar.is--perfect{border:1px solid var(--vxe-table-border-color);border-bottom-width:0;background-color:var(--vxe-table-header-background-color)}.vxe-toolbar.is--loading:before{content:"";position:absolute;top:0;left:0;width:100%;height:100%;z-index:var(--vxe-loading-z-index);-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:var(--vxe-loading-background-color)}.vxe-toolbar .vxe-buttons--wrapper{flex-grow:1}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button+.vxe-button--item,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button,.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item+.vxe-button--item{margin-left:.8em}.vxe-toolbar .vxe-buttons--wrapper>.vxe-button--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button+.vxe-tool--item,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-button,.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item+.vxe-tool--item{margin-left:.8em}.vxe-toolbar .vxe-tools--wrapper>.vxe-tool--item{display:inline-block}.vxe-toolbar .vxe-tools--wrapper>.vxe-button{display:flex;align-items:center;justify-content:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--operate,.vxe-toolbar .vxe-tools--wrapper{display:flex;align-items:center}.vxe-toolbar .vxe-buttons--wrapper,.vxe-toolbar .vxe-tools--wrapper{flex-wrap:wrap}.vxe-toolbar .vxe-tools--operate{flex-shrink:0}.vxe-toolbar .vxe-custom--wrapper{position:relative;margin-left:.8em}.vxe-toolbar .vxe-custom--wrapper.is--active>.vxe-button{background-color:var(--vxe-toolbar-custom-active-background-color);border-radius:50%}.vxe-toolbar .vxe-custom--wrapper.is--active .vxe-custom--option-wrapper{display:block}.vxe-toolbar .vxe-custom--option-wrapper{display:none;position:absolute;right:2px;text-align:left;background-color:var(--vxe-toolbar-panel-background-color);z-index:19;border:1px solid var(--vxe-table-border-color);border-radius:var(--vxe-border-radius);box-shadow:0 1px 6px rgba(0,0,0,.2)}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header{padding:.28em 0;font-weight:700;border-bottom:1px solid var(--vxe-table-popup-border-color)}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body{padding:.2em 0;max-height:17.6em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body .vxe-custom--option:hover{background-color:var(--vxe-table-row-hover-background-color)}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li{max-width:16em;min-width:12.5em;padding:.2em 1em .2em 1em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2{padding-left:3.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--2 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--2 .vxe-checkbox--icon{left:1.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3{padding-left:4.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--3 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--3 .vxe-checkbox--icon{left:2.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4{padding-left:5.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--4 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--4 .vxe-checkbox--icon{left:3.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5{padding-left:6.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--5 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--5 .vxe-checkbox--icon{left:4.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6{padding-left:7.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--6 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--6 .vxe-checkbox--icon{left:5.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7{padding-left:8.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--7 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--7 .vxe-checkbox--icon{left:6.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8{padding-left:9.5em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--body>li.level--8 .vxe-checkbox--icon,.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--header>li.level--8 .vxe-checkbox--icon{left:7.8em}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer{border-top:1px solid var(--vxe-table-popup-border-color);text-align:right}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button{background-color:transparent;width:50%;height:2.5em;border:0;color:var(--vxe-font-color);text-align:center;cursor:pointer}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:focus{outline:0}.vxe-toolbar .vxe-custom--option-wrapper .vxe-custom--footer button:hover{color:var(--vxe-primary-color)}.vxe-custom--option-wrapper .vxe-custom--body,.vxe-custom--option-wrapper .vxe-custom--header{list-style-type:none;overflow-x:hidden;overflow-y:auto;margin:0;padding:0;-webkit-user-select:none;-moz-user-select:none;user-select:none}.vxe-custom--option-wrapper .vxe-custom--body>li,.vxe-custom--option-wrapper .vxe-custom--header>li{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vxe-toolbar{font-size:var(--vxe-font-size)}.vxe-toolbar.size--medium{font-size:var(--vxe-font-size-medium)}.vxe-toolbar.size--small{font-size:var(--vxe-font-size-small)}.vxe-toolbar.size--mini{font-size:var(--vxe-font-size-mini)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vxe-table",
3
- "version": "4.4.2-beta.0",
3
+ "version": "4.4.2-beta.2",
4
4
  "description": "一个基于 vue 的 PC 端表格组件,支持增删改查、虚拟列表、虚拟树、懒加载、快捷菜单、数据校验、树形结构、打印导出、表单渲染、数据分页、弹窗、自定义模板、渲染器等...",
5
5
  "scripts": {
6
6
  "update": "npm install --legacy-peer-deps",
@@ -24,6 +24,8 @@ const isWebkit = browse['-webkit'] && !browse.edge
24
24
 
25
25
  const resizableStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_WIDTH'
26
26
  const visibleStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_VISIBLE'
27
+ const fixedStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_FIXED'
28
+ const orderStorageKey = 'VXE_TABLE_CUSTOM_COLUMN_ORDER'
27
29
 
28
30
  export default defineComponent({
29
31
  name: 'VxeTable',
@@ -837,9 +839,11 @@ export default defineComponent({
837
839
  const { collectColumn } = internalData
838
840
  const customOpts = computeCustomOpts.value
839
841
  const { storage } = customOpts
840
- const isResizable = storage === true || (storage && storage.resizable)
841
- const isVisible = storage === true || (storage && storage.visible)
842
- if (customConfig && (isResizable || isVisible)) {
842
+ const isCustomResizable = storage === true || (storage && storage.resizable)
843
+ const isCustomVisible = storage === true || (storage && storage.visible)
844
+ const isCustomFixed = storage === true || (storage && storage.fixed)
845
+ const isCustomOrder = storage === true || (storage && storage.order)
846
+ if (customConfig && (isCustomResizable || isCustomVisible || isCustomFixed || isCustomOrder)) {
843
847
  const customMap: {
844
848
  [key: string]: {
845
849
  field?: VxeColumnPropTypes.Field
@@ -851,7 +855,8 @@ export default defineComponent({
851
855
  errLog('vxe.error.reqProp', ['id'])
852
856
  return
853
857
  }
854
- if (isResizable) {
858
+ // 自定义列宽
859
+ if (isCustomResizable) {
855
860
  const columnWidthStorage = getCustomStorageMap(resizableStorageKey)[id]
856
861
  if (columnWidthStorage) {
857
862
  XEUtils.each(columnWidthStorage, (resizeWidth: number, field) => {
@@ -859,7 +864,22 @@ export default defineComponent({
859
864
  })
860
865
  }
861
866
  }
862
- if (isVisible) {
867
+ // 自定义固定列
868
+ if (isCustomFixed) {
869
+ const columnFixedStorage = getCustomStorageMap(fixedStorageKey)[id]
870
+ if (columnFixedStorage) {
871
+ // 开发中...
872
+ }
873
+ }
874
+ // 自定义顺序
875
+ if (isCustomOrder) {
876
+ const columnOrderStorage = getCustomStorageMap(orderStorageKey)[id]
877
+ if (columnOrderStorage) {
878
+ // 开发中...
879
+ }
880
+ }
881
+ // 自定义隐藏列
882
+ if (isCustomVisible) {
863
883
  const columnVisibleStorage = getCustomStorageMap(visibleStorageKey)[id]
864
884
  if (columnVisibleStorage) {
865
885
  const colVisibles = columnVisibleStorage.split('|')
@@ -3,31 +3,31 @@
3
3
  font-size: 1.34em;
4
4
  }
5
5
  .vxe-checkbox--icon {
6
- color: $vxe-input-border-color;
6
+ color: var(--vxe-input-border-color);
7
7
  vertical-align: middle;
8
8
  font-weight: 700;
9
9
  user-select: none;
10
10
  }
11
11
  &.is--checked,
12
12
  &.is--indeterminate {
13
- color: $vxe-primary-color;
13
+ color: var(--vxe-primary-color);
14
14
  .vxe-checkbox--icon {
15
- color: $vxe-primary-color;
15
+ color: var(--vxe-primary-color);
16
16
  }
17
17
  }
18
18
  &:not(.is--disabled) {
19
19
  cursor: pointer;
20
20
  &:hover {
21
21
  .vxe-checkbox--icon {
22
- color: $vxe-primary-color;
22
+ color: var(--vxe-primary-color);
23
23
  }
24
24
  }
25
25
  }
26
26
  &.is--disabled {
27
- color: $vxe-disabled-color;
27
+ color: var(--vxe-disabled-color);
28
28
  cursor: not-allowed;
29
29
  .vxe-checkbox--icon {
30
- color: $vxe-input-disabled-color;
30
+ color: var(--vxe-input-disabled-color);
31
31
  }
32
32
  }
33
33
  .vxe-checkbox--label {
@@ -42,30 +42,30 @@
42
42
  font-size: 1.4em;
43
43
  }
44
44
  .vxe-radio--icon {
45
- color: $vxe-input-border-color;
45
+ color: var(--vxe-input-border-color);
46
46
  vertical-align: middle;
47
47
  font-weight: 700;
48
48
  user-select: none;
49
49
  }
50
50
  &.is--checked {
51
- color: $vxe-primary-color;
51
+ color: var(--vxe-primary-color);
52
52
  .vxe-radio--icon {
53
- color: $vxe-primary-color;
53
+ color: var(--vxe-primary-color);
54
54
  }
55
55
  }
56
56
  &:not(.is--disabled) {
57
57
  cursor: pointer;
58
58
  &:hover {
59
59
  .vxe-radio--icon {
60
- color: $vxe-primary-color;
60
+ color: var(--vxe-primary-color);
61
61
  }
62
62
  }
63
63
  }
64
64
  &.is--disabled {
65
- color: $vxe-disabled-color;
65
+ color: var(--vxe-disabled-color);
66
66
  cursor: not-allowed;
67
67
  .vxe-radio--icon {
68
- color: $vxe-input-disabled-color;
68
+ color: var(--vxe-input-disabled-color);
69
69
  }
70
70
  }
71
71
  .vxe-radio--label {
@@ -19,22 +19,22 @@
19
19
  }
20
20
 
21
21
  .vxe-primary-color {
22
- color: $vxe-primary-color;
22
+ color: var(--vxe-primary-color);
23
23
  }
24
24
  .vxe-success-color {
25
- color: $vxe-success-color;
25
+ color: var(--vxe-success-color);
26
26
  }
27
27
  .vxe-info-color {
28
- color: $vxe-info-color;
28
+ color: var(--vxe-info-color);
29
29
  }
30
30
  .vxe-warning-color {
31
- color: $vxe-warning-color;
31
+ color: var(--vxe-warning-color);
32
32
  }
33
33
  .vxe-danger-color {
34
- color: $vxe-danger-color;
34
+ color: var(--vxe-danger-color);
35
35
  }
36
36
  .vxe-perfect-color {
37
- color: $vxe-table-header-background-color;
37
+ color: var(--vxe-table-header-background-color);
38
38
  }
39
39
 
40
40
  // 24 栅格布局
package/styles/form.scss CHANGED
@@ -226,7 +226,7 @@
226
226
  }
227
227
  .vxe-default-input[type="submit"],
228
228
  .vxe-default-input[type="reset"] {
229
- line-height: var(--vxe-button-height-default) - 2px;
229
+ line-height: calc(var(--vxe-button-height-default) - 2px);
230
230
  background-color: #fff;
231
231
  cursor: pointer;
232
232
  &:hover {
package/styles/radio.scss CHANGED
@@ -74,7 +74,7 @@
74
74
  }
75
75
  .vxe-radio--label {
76
76
  padding: 0 1em;
77
- line-height: var(--vxe-button-height-default) - 2;
77
+ line-height: calc(var(--vxe-button-height-default) - 2px);
78
78
  display: inline-block;
79
79
  border-style: solid;
80
80
  border-color: var(--vxe-input-border-color);
@@ -119,17 +119,17 @@
119
119
  }
120
120
  &.size--medium {
121
121
  .vxe-radio--label {
122
- line-height: var(--vxe-button-height-medium) - 2;
122
+ line-height: calc(var(--vxe-button-height-medium) - 2px);
123
123
  }
124
124
  }
125
125
  &.size--small {
126
126
  .vxe-radio--label {
127
- line-height: var(--vxe-button-height-small) - 2;
127
+ line-height: calc(var(--vxe-button-height-small) - 2px);
128
128
  }
129
129
  }
130
130
  &.size--mini {
131
131
  .vxe-radio--label {
132
- line-height: var(--vxe-button-height-mini) - 2;
132
+ line-height: calc(var(--vxe-button-height-mini) - 2px);
133
133
  }
134
134
  }
135
135
  }
package/styles/table.scss CHANGED
@@ -5,19 +5,19 @@
5
5
  @import './loading.scss';
6
6
 
7
7
  %DefaultColumnHeight {
8
- height: $vxe-table-row-height-default;
8
+ height: var(--vxe-table-row-height-default);
9
9
  }
10
10
 
11
11
  %MediumColumnHeight {
12
- height: $vxe-table-row-height-medium;
12
+ height: var(--vxe-table-row-height-medium);
13
13
  }
14
14
 
15
15
  %SmallColumnHeight {
16
- height: $vxe-table-row-height-small;
16
+ height: var(--vxe-table-row-height-small);
17
17
  }
18
18
 
19
19
  %MiniColumnHeight {
20
- height: $vxe-table-row-height-mini;
20
+ height: var(--vxe-table-row-height-mini);
21
21
  }
22
22
 
23
23
  .vxe-table-slots,
@@ -1232,8 +1232,8 @@
1232
1232
  position: relative;
1233
1233
  &:before {
1234
1234
  content: "";
1235
- top: -$vxe-table-cell-dirty-width;
1236
- left: -$vxe-table-cell-dirty-width;
1235
+ top: --vxe-table-cell-dirty-width;
1236
+ left: --vxe-table-cell-dirty-width;
1237
1237
  position: absolute;
1238
1238
  border-width: var(--vxe-table-cell-dirty-width);
1239
1239
  border-style: solid;
@@ -1248,8 +1248,8 @@
1248
1248
  position: relative;
1249
1249
  &:before {
1250
1250
  content: "";
1251
- top: -$vxe-table-cell-dirty-width;
1252
- left: -$vxe-table-cell-dirty-width;
1251
+ top: --vxe-table-cell-dirty-width;
1252
+ left: --vxe-table-cell-dirty-width;
1253
1253
  position: absolute;
1254
1254
  border-width: var(--vxe-table-cell-dirty-width);
1255
1255
  border-style: solid;
@@ -1284,7 +1284,7 @@
1284
1284
  }
1285
1285
  }
1286
1286
  .vxe-textarea {
1287
- height: var(--vxe-table-row-line-height) - 1;
1287
+ height: calc(var(--vxe-table-row-line-height) - 1px);
1288
1288
  .vxe-textarea--inner {
1289
1289
  border: 0;
1290
1290
  }
@@ -199,7 +199,7 @@ export interface FormItemRenderOptions extends VxeGlobalRendererHandles.RenderOp
199
199
  * 渲染组件的内容(需要渲染器支持)
200
200
  */
201
201
  content?: string
202
- autofocus?: boolean
202
+ autofocus?: string
203
203
  defaultValue?: ((params: { item: VxeFormItemProps }) => any) | null | undefined | string | number | RegExp | object | any[] | Date
204
204
  }
205
205
 
package/types/table.d.ts CHANGED
@@ -333,7 +333,12 @@ export interface TablePublicMethods<DT = VxeTableDataRow> {
333
333
  * 如果已关联工具栏,则会同步更新
334
334
  * @param options 可选参数
335
335
  */
336
- resetColumn(options?: boolean | { visible?: boolean, resizable?: boolean }): Promise<void>
336
+ resetColumn(options?: boolean | {
337
+ visible?: boolean
338
+ resizable?: boolean
339
+ fixed?: boolean
340
+ order?: boolean
341
+ }): Promise<void>
337
342
  /**
338
343
  * 刷新列配置
339
344
  * 对于动态修改属性、显示/隐藏列等场景下可能会用到
@@ -1311,6 +1316,8 @@ export namespace VxeTablePropTypes {
1311
1316
  storage?: boolean | {
1312
1317
  visible?: boolean
1313
1318
  resizable?: boolean
1319
+ fixed?: boolean
1320
+ order?: boolean
1314
1321
  }
1315
1322
  checkMethod?(params: {
1316
1323
  column: VxeTableDefines.ColumnInfo<D>