@jiaozhiye/qm-design-react 1.0.0-beta.1

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 (222) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +4 -0
  3. package/lib/_utils/cloneElement.d.ts +2 -0
  4. package/lib/_utils/dom.d.ts +68 -0
  5. package/lib/_utils/download.d.ts +7 -0
  6. package/lib/_utils/error.d.ts +2 -0
  7. package/lib/_utils/isServer.d.ts +2 -0
  8. package/lib/_utils/prefix.d.ts +1 -0
  9. package/lib/_utils/resize-event.d.ts +10 -0
  10. package/lib/_utils/scrollbar-width.d.ts +1 -0
  11. package/lib/_utils/types.d.ts +33 -0
  12. package/lib/_utils/util.d.ts +23 -0
  13. package/lib/_utils/validators.d.ts +2 -0
  14. package/lib/anchor/index.d.ts +4 -0
  15. package/lib/anchor/src/anchor-item.d.ts +13 -0
  16. package/lib/anchor/src/anchor-nav.d.ts +12 -0
  17. package/lib/anchor/src/anchor.d.ts +52 -0
  18. package/lib/anchor/style/index.less +60 -0
  19. package/lib/antd/Calendar.d.ts +4 -0
  20. package/lib/antd/DatePicker.d.ts +11 -0
  21. package/lib/antd/TimePicker.d.ts +14 -0
  22. package/lib/antd/index.d.ts +123 -0
  23. package/lib/antd/index.less +7 -0
  24. package/lib/button/index.d.ts +3 -0
  25. package/lib/button/src/button.d.ts +30 -0
  26. package/lib/button/style/index.less +12 -0
  27. package/lib/config-provider/context.d.ts +9 -0
  28. package/lib/config-provider/index.d.ts +3 -0
  29. package/lib/config-provider/src/config-provider.d.ts +34 -0
  30. package/lib/countup/index.d.ts +3 -0
  31. package/lib/countup/src/countup.d.ts +17 -0
  32. package/lib/countup/style/index.less +22 -0
  33. package/lib/cropper/index.d.ts +3 -0
  34. package/lib/cropper/src/cropper.d.ts +213 -0
  35. package/lib/cropper/style/index.less +13 -0
  36. package/lib/divider/index.d.ts +3 -0
  37. package/lib/divider/src/divider.d.ts +25 -0
  38. package/lib/divider/style/index.less +54 -0
  39. package/lib/download/index.d.ts +3 -0
  40. package/lib/download/src/download.d.ts +51 -0
  41. package/lib/download/style/index.less +12 -0
  42. package/lib/drawer/index.d.ts +3 -0
  43. package/lib/drawer/src/drawer.d.ts +33 -0
  44. package/lib/drawer/style/index.less +77 -0
  45. package/lib/empty/index.d.ts +3 -0
  46. package/lib/empty/src/empty.d.ts +15 -0
  47. package/lib/empty/style/index.less +35 -0
  48. package/lib/form/index.d.ts +4 -0
  49. package/lib/form/src/china-data.d.ts +4577 -0
  50. package/lib/form/src/context.d.ts +6 -0
  51. package/lib/form/src/fields-filter.d.ts +26 -0
  52. package/lib/form/src/form-cascader.d.ts +21 -0
  53. package/lib/form/src/form-checkbox-group.d.ts +18 -0
  54. package/lib/form/src/form-checkbox.d.ts +10 -0
  55. package/lib/form/src/form-city-select.d.ts +10 -0
  56. package/lib/form/src/form-date.d.ts +10 -0
  57. package/lib/form/src/form-divider.d.ts +10 -0
  58. package/lib/form/src/form-immediate.d.ts +10 -0
  59. package/lib/form/src/form-input-number.d.ts +10 -0
  60. package/lib/form/src/form-input.d.ts +10 -0
  61. package/lib/form/src/form-radio.d.ts +18 -0
  62. package/lib/form/src/form-range-date.d.ts +10 -0
  63. package/lib/form/src/form-range-input-number.d.ts +10 -0
  64. package/lib/form/src/form-range-input.d.ts +10 -0
  65. package/lib/form/src/form-range-time.d.ts +10 -0
  66. package/lib/form/src/form-region-select.d.ts +10 -0
  67. package/lib/form/src/form-search-helper.d.ts +10 -0
  68. package/lib/form/src/form-select.d.ts +21 -0
  69. package/lib/form/src/form-switch.d.ts +10 -0
  70. package/lib/form/src/form-text-area.d.ts +10 -0
  71. package/lib/form/src/form-time.d.ts +10 -0
  72. package/lib/form/src/form-tinymce.d.ts +10 -0
  73. package/lib/form/src/form-tree-select.d.ts +23 -0
  74. package/lib/form/src/form-upload-file.d.ts +18 -0
  75. package/lib/form/src/form-upload-img.d.ts +18 -0
  76. package/lib/form/src/form.d.ts +169 -0
  77. package/lib/form/src/types.d.ts +251 -0
  78. package/lib/form/src/utils.d.ts +7 -0
  79. package/lib/form/style/index.less +243 -0
  80. package/lib/hooks/useForceUpdate.d.ts +1 -0
  81. package/lib/hooks/useOutsideClick.d.ts +2 -0
  82. package/lib/hooks/useResizeObserve.d.ts +5 -0
  83. package/lib/hooks/useUpdateEffect.d.ts +2 -0
  84. package/lib/index.d.ts +42 -0
  85. package/lib/index.esm.js +16 -0
  86. package/lib/index.full.js +1 -0
  87. package/lib/index.js +16 -0
  88. package/lib/locale/index.d.ts +11 -0
  89. package/lib/locale/index.js +51 -0
  90. package/lib/locale/lang/en.d.ts +243 -0
  91. package/lib/locale/lang/en.js +248 -0
  92. package/lib/locale/lang/zh-cn.d.ts +243 -0
  93. package/lib/locale/lang/zh-cn.js +248 -0
  94. package/lib/modal/index.d.ts +3 -0
  95. package/lib/modal/src/modal.d.ts +38 -0
  96. package/lib/modal/style/index.less +89 -0
  97. package/lib/pinyin/core.d.ts +12 -0
  98. package/lib/pinyin/dict.d.ts +31 -0
  99. package/lib/pinyin/index.d.ts +2 -0
  100. package/lib/pinyin/patchers/56l.d.ts +7 -0
  101. package/lib/qm-design.d.ts +28 -0
  102. package/lib/search-helper/index.d.ts +3 -0
  103. package/lib/search-helper/src/search-helper.d.ts +20 -0
  104. package/lib/search-helper/style/index.less +13 -0
  105. package/lib/space/index.d.ts +3 -0
  106. package/lib/space/src/space.d.ts +12 -0
  107. package/lib/space/style/index.less +12 -0
  108. package/lib/spin/index.d.ts +3 -0
  109. package/lib/spin/src/spin.d.ts +11 -0
  110. package/lib/spin/style/index.less +12 -0
  111. package/lib/split/index.d.ts +4 -0
  112. package/lib/split/src/context.d.ts +8 -0
  113. package/lib/split/src/resize-bar.d.ts +8 -0
  114. package/lib/split/src/split-pane.d.ts +9 -0
  115. package/lib/split/src/split.d.ts +14 -0
  116. package/lib/split/style/index.less +86 -0
  117. package/lib/style/common.less +8 -0
  118. package/lib/style/index.css +1 -0
  119. package/lib/style/index.less +32 -0
  120. package/lib/style/mixins/box.less +13 -0
  121. package/lib/style/mixins/clearfix.less +21 -0
  122. package/lib/style/mixins/index.less +11 -0
  123. package/lib/style/mixins/operation-unit.less +24 -0
  124. package/lib/style/mixins/reset.less +35 -0
  125. package/lib/style/mixins/size.less +15 -0
  126. package/lib/style/reset.less +134 -0
  127. package/lib/style/themes/default.less +113 -0
  128. package/lib/style/themes/index.less +7 -0
  129. package/lib/table/index.d.ts +4 -0
  130. package/lib/table/src/alert/index.d.ts +6 -0
  131. package/lib/table/src/body/index.d.ts +8 -0
  132. package/lib/table/src/body/useValueFormat.d.ts +12 -0
  133. package/lib/table/src/column-filter/index.d.ts +7 -0
  134. package/lib/table/src/config/index.d.ts +47 -0
  135. package/lib/table/src/context/index.d.ts +74 -0
  136. package/lib/table/src/edit/InputNumber.d.ts +17 -0
  137. package/lib/table/src/edit/index.d.ts +12 -0
  138. package/lib/table/src/empty/index.d.ts +3 -0
  139. package/lib/table/src/expandable/index.d.ts +8 -0
  140. package/lib/table/src/export/define.d.ts +8 -0
  141. package/lib/table/src/export/index.d.ts +18 -0
  142. package/lib/table/src/export/setting.d.ts +8 -0
  143. package/lib/table/src/export/useExport.d.ts +9 -0
  144. package/lib/table/src/filter/index.d.ts +8 -0
  145. package/lib/table/src/filter-sql/index.d.ts +5 -0
  146. package/lib/table/src/filter-sql/lib/filter_string.d.ts +11 -0
  147. package/lib/table/src/filter-sql/lib/operations.d.ts +8 -0
  148. package/lib/table/src/filter-sql/lib/variables_replacement.d.ts +5 -0
  149. package/lib/table/src/footer/index.d.ts +8 -0
  150. package/lib/table/src/full-screen/index.d.ts +6 -0
  151. package/lib/table/src/group-summary/index.d.ts +3 -0
  152. package/lib/table/src/group-summary/result.d.ts +9 -0
  153. package/lib/table/src/group-summary/setting.d.ts +6 -0
  154. package/lib/table/src/header/index.d.ts +10 -0
  155. package/lib/table/src/hooks/useImperativeMethod.d.ts +36 -0
  156. package/lib/table/src/hooks/useTableCore.d.ts +86 -0
  157. package/lib/table/src/hooks/useTableEffect.d.ts +35 -0
  158. package/lib/table/src/hooks/useTableLayout.d.ts +39 -0
  159. package/lib/table/src/hooks/useTableMemo.d.ts +43 -0
  160. package/lib/table/src/hooks/useTableRef.d.ts +89 -0
  161. package/lib/table/src/hooks/useTableState.d.ts +94 -0
  162. package/lib/table/src/icon/caretdown.d.ts +3 -0
  163. package/lib/table/src/icon/caretup.d.ts +3 -0
  164. package/lib/table/src/icon/filter.d.ts +3 -0
  165. package/lib/table/src/manager/index.d.ts +15 -0
  166. package/lib/table/src/pager/index.d.ts +11 -0
  167. package/lib/table/src/print/index.d.ts +7 -0
  168. package/lib/table/src/reload/index.d.ts +3 -0
  169. package/lib/table/src/resizable/index.d.ts +7 -0
  170. package/lib/table/src/select-collection/index.d.ts +7 -0
  171. package/lib/table/src/select-collection/result.d.ts +8 -0
  172. package/lib/table/src/selection/all.d.ts +7 -0
  173. package/lib/table/src/selection/index.d.ts +12 -0
  174. package/lib/table/src/store/index.d.ts +29 -0
  175. package/lib/table/src/super-search/index.d.ts +3 -0
  176. package/lib/table/src/super-search/result.d.ts +6 -0
  177. package/lib/table/src/table/index.d.ts +5 -0
  178. package/lib/table/src/table/props.d.ts +243 -0
  179. package/lib/table/src/table/types.d.ts +335 -0
  180. package/lib/table/src/utils/index.d.ts +37 -0
  181. package/lib/table/style/alert.less +34 -0
  182. package/lib/table/style/body.less +42 -0
  183. package/lib/table/style/column-filter.less +88 -0
  184. package/lib/table/style/empty.less +16 -0
  185. package/lib/table/style/expandable.less +55 -0
  186. package/lib/table/style/export.less +30 -0
  187. package/lib/table/style/footer.less +28 -0
  188. package/lib/table/style/full-screen.less +21 -0
  189. package/lib/table/style/group-summary.less +93 -0
  190. package/lib/table/style/header.less +178 -0
  191. package/lib/table/style/index.less +25 -0
  192. package/lib/table/style/pager.less +12 -0
  193. package/lib/table/style/print.less +21 -0
  194. package/lib/table/style/reload.less +21 -0
  195. package/lib/table/style/select-collection.less +21 -0
  196. package/lib/table/style/size.less +69 -0
  197. package/lib/table/style/super-search.less +102 -0
  198. package/lib/table/style/table.less +328 -0
  199. package/lib/table/style/toper.less +28 -0
  200. package/lib/table/style/variable.less +48 -0
  201. package/lib/tabs/index.d.ts +4 -0
  202. package/lib/tabs/src/tab-pane.d.ts +8 -0
  203. package/lib/tabs/src/tabs.d.ts +16 -0
  204. package/lib/tabs/style/index.less +22 -0
  205. package/lib/tinymce/index.d.ts +3 -0
  206. package/lib/tinymce/src/Events.d.ts +78 -0
  207. package/lib/tinymce/src/ScriptLoader.d.ts +13 -0
  208. package/lib/tinymce/src/TinyMCE.d.ts +2 -0
  209. package/lib/tinymce/src/Utils.d.ts +19 -0
  210. package/lib/tinymce/src/components/Editor.d.ts +66 -0
  211. package/lib/tinymce/src/components/EditorPropTypes.d.ts +18 -0
  212. package/lib/tinymce/src/index.d.ts +29 -0
  213. package/lib/tinymce/style/index.less +18 -0
  214. package/lib/upload-file/index.d.ts +3 -0
  215. package/lib/upload-file/src/upload-file.d.ts +16 -0
  216. package/lib/upload-file/style/index.less +12 -0
  217. package/lib/upload-img/index.d.ts +3 -0
  218. package/lib/upload-img/src/cropper-preview.d.ts +30 -0
  219. package/lib/upload-img/src/upload-img.d.ts +27 -0
  220. package/lib/upload-img/style/index.less +36 -0
  221. package/lib/version/index.d.ts +2 -0
  222. package/package.json +136 -0
@@ -0,0 +1,42 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-02-28 22:13:54
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-01-02 10:44:42
6
+ */
7
+ .body--column {
8
+ .cell--edit {
9
+ &.is-error {
10
+ position: relative;
11
+ display: flex;
12
+ align-items: center;
13
+ .ant-input {
14
+ border-color: @v-danger-color;
15
+ &:focus {
16
+ box-shadow: 0 0 0 2px @--error-color-outline;
17
+ }
18
+ }
19
+ .ant-input-search + .cell-error {
20
+ right: 40px;
21
+ }
22
+ .cell-error {
23
+ position: absolute;
24
+ font-size: @v-font-size-small;
25
+ color: @v-danger-color;
26
+ right: @v-module-distance;
27
+ pointer-events: none;
28
+ z-index: 2;
29
+ }
30
+ }
31
+ }
32
+ &.col--center {
33
+ .cell--edit .ant-input {
34
+ text-align: center;
35
+ }
36
+ }
37
+ &.col--right {
38
+ .cell--edit .ant-input {
39
+ text-align: right;
40
+ }
41
+ }
42
+ }
@@ -0,0 +1,88 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-02-28 22:13:50
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-12-31 21:50:43
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}-column-filter {
10
+ display: inline-block;
11
+ padding: 5px 0 5px 3px;
12
+ line-height: 1;
13
+ cursor: pointer;
14
+ transition: all 0.3s ease;
15
+ .icon {
16
+ font-size: 1.05em;
17
+ margin-right: 2px;
18
+ }
19
+ &:hover,
20
+ &.selected {
21
+ color: @v-primary-color;
22
+ }
23
+ }
24
+
25
+ .column-filter__popper {
26
+ padding: 0 !important;
27
+ .column-filter--wrap {
28
+ padding: @v-module-distance;
29
+ min-width: 150px;
30
+ max-width: 200px;
31
+ overflow-y: auto;
32
+ .box-sizing-content();
33
+ li.item {
34
+ position: relative;
35
+ line-height: 1.75;
36
+ .text-overflow-cut();
37
+ .handle {
38
+ padding: 2px;
39
+ color: @v-font-secondary-color;
40
+ cursor: s-resize;
41
+ transform: scale(0.9);
42
+ }
43
+ .fixed {
44
+ position: absolute;
45
+ right: 0;
46
+ i {
47
+ color: @--icon-color;
48
+ cursor: pointer;
49
+ }
50
+ }
51
+ }
52
+ .reset {
53
+ text-align: right;
54
+ .ant-btn-text {
55
+ padding: 0;
56
+ }
57
+ }
58
+ .left {
59
+ ul {
60
+ margin: 0;
61
+ li {
62
+ padding-right: 15px;
63
+ }
64
+ }
65
+ }
66
+ .main {
67
+ ul {
68
+ margin: 0;
69
+ li {
70
+ padding-right: 30px;
71
+ }
72
+ }
73
+ }
74
+ .right {
75
+ ul {
76
+ margin: 0;
77
+ li {
78
+ padding-right: 15px;
79
+ }
80
+ }
81
+ }
82
+ .divider {
83
+ height: 0;
84
+ border-top: 1px solid @v-table-resizable-color;
85
+ margin: 4px 0;
86
+ }
87
+ }
88
+ }
@@ -0,0 +1,16 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-05-19 19:18:15
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-09-12 22:09:00
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}--empty {
10
+ display: flex;
11
+ justify-content: center;
12
+ align-items: center;
13
+ position: absolute;
14
+ width: 100%;
15
+ pointer-events: none;
16
+ }
@@ -0,0 +1,55 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-30 16:36:41
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-12-28 19:56:04
6
+ */
7
+ @prefix-expand: ~'@{qm-prefix}-expand';
8
+
9
+ .@{prefix-expand}--icon {
10
+ position: relative;
11
+ display: inline-flex;
12
+ margin-right: 5px;
13
+ width: 17px;
14
+ height: 17px;
15
+ color: @v-font-secondary-color;
16
+ vertical-align: -4px;
17
+ background: #fff;
18
+ border: 1px solid #d9d9d9;
19
+ border-radius: @v-border-radius;
20
+ outline: none;
21
+ user-select: none;
22
+ cursor: pointer;
23
+ transition: all 0.3s ease;
24
+ .box-sizing-content();
25
+ &:hover {
26
+ color: @v-primary-color;
27
+ border-color: @v-primary-color;
28
+ }
29
+ &::before,
30
+ &::after {
31
+ position: absolute;
32
+ background: currentColor;
33
+ transition: transform 0.3s ease-out;
34
+ content: '';
35
+ }
36
+ &::before {
37
+ top: 7px;
38
+ right: 3px;
39
+ left: 3px;
40
+ height: 1px;
41
+ }
42
+ &::after {
43
+ top: 3px;
44
+ bottom: 3px;
45
+ left: 7px;
46
+ width: 1px;
47
+ transform: rotate(90deg);
48
+ }
49
+ &.collapsed::before {
50
+ transform: rotate(-180deg);
51
+ }
52
+ &.collapsed::after {
53
+ transform: rotate(0deg);
54
+ }
55
+ }
@@ -0,0 +1,30 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-26 11:26:46
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-01-09 11:58:00
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}-export {
10
+ display: inline-block;
11
+ padding: 5px 3px;
12
+ line-height: 1;
13
+ cursor: pointer;
14
+ transition: all 0.3s ease;
15
+ .icon {
16
+ font-size: 1.05em;
17
+ }
18
+ &:not(.disabled):hover {
19
+ color: @v-primary-color;
20
+ }
21
+ &.disabled {
22
+ color: @v-font-disabled-color;
23
+ cursor: not-allowed;
24
+ }
25
+ &__setting {
26
+ .qm-form--mini .qm-table-column-filter {
27
+ font-size: @v-font-size-small;
28
+ }
29
+ }
30
+ }
@@ -0,0 +1,28 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-02-28 22:13:07
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-05-21 13:56:03
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}--footer-wrapper {
10
+ background-color: @v-table-footer-background-color;
11
+ &::before {
12
+ content: '';
13
+ position: absolute;
14
+ left: 0;
15
+ right: 0;
16
+ height: 0;
17
+ z-index: 3;
18
+ border-top: 1px solid @v-table-border-color;
19
+ }
20
+ .@{prefix-table}--footer {
21
+ .gutter {
22
+ background-color: @v-table-footer-background-color;
23
+ }
24
+ .cell {
25
+ font-weight: 700;
26
+ }
27
+ }
28
+ }
@@ -0,0 +1,21 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-26 11:45:02
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-12-30 16:06:55
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}-full-screen {
10
+ display: inline-block;
11
+ padding: 5px 3px;
12
+ line-height: 1;
13
+ cursor: pointer;
14
+ transition: all 0.3s ease;
15
+ .icon {
16
+ font-size: 1.05em;
17
+ }
18
+ &:hover {
19
+ color: @v-primary-color;
20
+ }
21
+ }
@@ -0,0 +1,93 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-26 11:45:02
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-01-09 16:30:50
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}-group-summary {
10
+ display: inline-block;
11
+ padding: 5px 3px;
12
+ line-height: 1;
13
+ cursor: pointer;
14
+ transition: all 0.3s ease;
15
+ .icon {
16
+ font-size: 1.05em;
17
+ }
18
+ &:hover {
19
+ color: @v-primary-color;
20
+ }
21
+ }
22
+
23
+ .@{prefix-table}-group-summary__setting {
24
+ .main {
25
+ display: flex;
26
+ flex-direction: row;
27
+ height: 100%;
28
+ margin-bottom: @v-module-distance;
29
+ .container {
30
+ flex: 1;
31
+ width: 0;
32
+ }
33
+ .saved {
34
+ width: 200px;
35
+ .form-wrap {
36
+ display: flex;
37
+ }
38
+ .card-wrap {
39
+ margin-top: @v-module-distance;
40
+ border: 1px solid @v-table-border-color;
41
+ > h5 {
42
+ display: flex;
43
+ align-items: center;
44
+ font-size: inherit;
45
+ font-weight: normal;
46
+ margin-bottom: 0;
47
+ padding: 0 @v-module-distance;
48
+ border-bottom: 1px solid @v-table-border-color;
49
+ background-color: @v-table-header-background-color;
50
+ }
51
+ > ul {
52
+ margin-bottom: 0;
53
+ li {
54
+ display: flex;
55
+ align-items: center;
56
+ position: relative;
57
+ padding: 8px @v-module-distance;
58
+ border-bottom: 1px solid @v-table-border-color;
59
+ cursor: pointer;
60
+ transition: all 0.3s ease;
61
+ &:last-of-type {
62
+ border-bottom: 0;
63
+ }
64
+ &:hover {
65
+ background-color: @v-table-row-hover-background-color;
66
+ .close {
67
+ visibility: visible;
68
+ }
69
+ }
70
+ &.selected {
71
+ background-color: @v-table-row-selected-background-color;
72
+ }
73
+ .title {
74
+ i {
75
+ margin-right: 5px;
76
+ }
77
+ }
78
+ .close {
79
+ position: absolute;
80
+ right: @v-module-distance;
81
+ visibility: hidden;
82
+ }
83
+ }
84
+ }
85
+ }
86
+ }
87
+ .line {
88
+ border-left: 1px dashed @--border-color-base;
89
+ padding-left: @v-module-distance;
90
+ margin-left: @v-module-distance;
91
+ }
92
+ }
93
+ }
@@ -0,0 +1,178 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-02-28 22:11:53
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-12-28 18:50:31
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .TheadAlignCenter {
10
+ .cell--text {
11
+ justify-content: center !important;
12
+ }
13
+ }
14
+
15
+ .TheadAlignRight {
16
+ .cell--text {
17
+ justify-content: flex-end !important;
18
+ }
19
+ }
20
+
21
+ .@{prefix-table}--header-wrapper {
22
+ background-color: @v-table-header-background-color;
23
+ .@{prefix-table}--header {
24
+ tr > th[colspan]:not([colspan='1']) {
25
+ .TheadAlignCenter();
26
+ }
27
+ }
28
+ .gutter {
29
+ background-color: @v-table-header-background-color;
30
+ }
31
+ }
32
+
33
+ .header--column {
34
+ .cell--wrapper {
35
+ display: flex;
36
+ height: 100%;
37
+ .cell--text {
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: flex-start;
41
+ flex: 1;
42
+ /* 重要 */
43
+ width: 0;
44
+ .cell {
45
+ padding-right: 2px;
46
+ }
47
+ .tip {
48
+ padding: 2px;
49
+ cursor: default;
50
+ }
51
+ }
52
+ }
53
+ &.col--center {
54
+ .TheadAlignCenter();
55
+ }
56
+ &.col--right {
57
+ .TheadAlignRight();
58
+ }
59
+ &:not(.column-has-sorter):not(.column-has-filter) {
60
+ .cell--text {
61
+ .cell {
62
+ padding-right: @v-module-distance;
63
+ }
64
+ .tip {
65
+ margin-left: -8px;
66
+ }
67
+ }
68
+ }
69
+ &.column--required {
70
+ .cell {
71
+ &::before {
72
+ content: '*';
73
+ color: @v-danger-color;
74
+ margin-right: 2px;
75
+ }
76
+ }
77
+ }
78
+
79
+ /* 全选 */
80
+ .cell--selection {
81
+ display: flex;
82
+ align-items: center;
83
+ .icon {
84
+ padding: 2px;
85
+ margin-left: 2px;
86
+ margin-top: 1px;
87
+ font-size: @v-font-size;
88
+ color: @v-icon-color;
89
+ cursor: pointer;
90
+ }
91
+ }
92
+
93
+ /* 排序 */
94
+ .cell--sorter {
95
+ width: 1em;
96
+ flex-shrink: 0;
97
+ display: flex;
98
+ flex-direction: column;
99
+ align-items: center;
100
+ cursor: pointer;
101
+ transform: scale(0.8, 0.85);
102
+ &__asc,
103
+ &__desc {
104
+ color: @v-icon-color;
105
+ &.actived {
106
+ color: @v-primary-color;
107
+ }
108
+ }
109
+ &__asc {
110
+ transform: translateY(2px);
111
+ }
112
+ &__desc {
113
+ transform: translateY(-2px);
114
+ }
115
+ }
116
+
117
+ /* 筛选 */
118
+ .cell--filter {
119
+ width: 20px;
120
+ flex-shrink: 0;
121
+ display: flex;
122
+ justify-content: center;
123
+ align-items: center;
124
+ height: 100%;
125
+ color: @v-icon-color;
126
+ transition: all 0.3s ease;
127
+ cursor: pointer;
128
+ .icon {
129
+ transform: scale(0.9, 1);
130
+ }
131
+ &:hover,
132
+ &.selected {
133
+ color: @v-font-secondary-color;
134
+ background-color: @v-table-column-filter-hover-color;
135
+ }
136
+ &.actived {
137
+ color: @v-primary-color;
138
+ }
139
+ }
140
+
141
+ .resizable {
142
+ position: absolute;
143
+ top: 0;
144
+ bottom: 0;
145
+ right: -5px;
146
+ width: 10px;
147
+ z-index: 1;
148
+ cursor: col-resize;
149
+ &.is--line {
150
+ &:before {
151
+ content: '';
152
+ position: absolute;
153
+ left: 50%;
154
+ top: 20%;
155
+ width: 1px;
156
+ height: 60%;
157
+ background-color: @v-table-resizable-color;
158
+ }
159
+ }
160
+ }
161
+ }
162
+
163
+ .head-filter--wrap {
164
+ ul {
165
+ margin: 0;
166
+ li {
167
+ display: flex;
168
+ align-items: center;
169
+ margin-bottom: 5px;
170
+ &:last-of-type {
171
+ margin-bottom: 0;
172
+ }
173
+ & > span {
174
+ margin-right: 5px;
175
+ }
176
+ }
177
+ }
178
+ }
@@ -0,0 +1,25 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2021-07-23 19:05:57
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-01-09 14:12:48
6
+ */
7
+ @import './variable.less';
8
+ @import './toper.less';
9
+ @import './alert.less';
10
+ @import './full-screen.less';
11
+ @import './reload.less';
12
+ @import './print.less';
13
+ @import './export.less';
14
+ @import './select-collection.less';
15
+ @import './group-summary.less';
16
+ @import './super-search.less';
17
+ @import './column-filter.less';
18
+ @import './table.less';
19
+ @import './header.less';
20
+ @import './body.less';
21
+ @import './footer.less';
22
+ @import './pager.less';
23
+ @import './empty.less';
24
+ @import './expandable.less';
25
+ @import './size.less';
@@ -0,0 +1,12 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-26 11:45:02
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-09-04 10:17:37
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}-pager {
10
+ margin-top: @v-module-distance;
11
+ text-align: right;
12
+ }
@@ -0,0 +1,21 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-26 11:45:02
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-01-09 10:06:27
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}-print {
10
+ display: inline-block;
11
+ padding: 5px 3px;
12
+ line-height: 1;
13
+ cursor: pointer;
14
+ transition: all 0.3s ease;
15
+ .icon {
16
+ font-size: 1.05em;
17
+ }
18
+ &:hover {
19
+ color: @v-primary-color;
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-26 11:45:02
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2021-12-31 14:12:41
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}-reload {
10
+ display: inline-block;
11
+ padding: 5px 3px;
12
+ line-height: 1;
13
+ cursor: pointer;
14
+ transition: all 0.3s ease;
15
+ .icon {
16
+ font-size: 1.05em;
17
+ }
18
+ &:hover {
19
+ color: @v-primary-color;
20
+ }
21
+ }
@@ -0,0 +1,21 @@
1
+ /*
2
+ * @Author: 焦质晔
3
+ * @Date: 2020-03-26 11:45:02
4
+ * @Last Modified by: 焦质晔
5
+ * @Last Modified time: 2022-01-06 10:27:07
6
+ */
7
+ @prefix-table: ~'@{qm-prefix}-table';
8
+
9
+ .@{prefix-table}-select-collection {
10
+ display: inline-block;
11
+ padding: 5px 3px;
12
+ line-height: 1;
13
+ cursor: pointer;
14
+ transition: all 0.3s ease;
15
+ .icon {
16
+ font-size: 1.05em;
17
+ }
18
+ &:hover {
19
+ color: @v-primary-color;
20
+ }
21
+ }