fit2cloud-ui-plus 0.0.1-beta.7 → 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 (231) hide show
  1. package/README.md +61 -9
  2. package/lib/fit2cloud-ui-plus.es.js +1428 -867
  3. package/lib/fit2cloud-ui-plus.umd.js +1 -1
  4. package/package.json +11 -6
  5. package/src/components/filter-bar/FuFilter.vue +36 -22
  6. package/src/components/filter-bar/FuFilterBar.vue +31 -17
  7. package/src/components/filter-bar/FuFilterInput.vue +48 -0
  8. package/src/components/filter-bar/filter-components/FuFilterDate.vue +13 -5
  9. package/src/components/filter-bar/filter-components/FuFilterDateTime.vue +17 -14
  10. package/src/components/filter-bar/filter-components/FuFilterSelect.vue +19 -13
  11. package/src/components/filter-bar/index.ts +11 -12
  12. package/src/components/icon-button/FuIconButton.vue +54 -0
  13. package/src/components/icon-button/index.ts +9 -0
  14. package/src/components/read-write-switch/FuSelectRwSwitch.vue +23 -10
  15. package/src/components/search-bar/FuComplexSearch.vue +60 -64
  16. package/src/components/search-bar/FuQuickSearch.vue +39 -18
  17. package/src/components/search-bar/FuSearchBar.vue +85 -97
  18. package/src/components/search-bar/FuSearchBarButton.vue +16 -7
  19. package/src/components/search-bar/FuSearchContions.vue +24 -8
  20. package/src/components/search-bar/complex-components/FuComplexDate.vue +70 -0
  21. package/src/components/search-bar/complex-components/FuComplexDateTime.vue +74 -0
  22. package/src/components/search-bar/complex-components/FuComplexInput.vue +57 -0
  23. package/src/components/search-bar/complex-components/FuComplexSelect.vue +93 -0
  24. package/src/components/search-bar/index.ts +17 -10
  25. package/src/components/search-bar/types.ts +23 -0
  26. package/src/components/speed-dial/FuSpeedDial.vue +78 -69
  27. package/src/components/speed-dial/FuSpeedDialActionButton.vue +55 -55
  28. package/src/components/speed-dial/FuSpeedDialButton.vue +14 -11
  29. package/src/components/speed-dial/FuSpeedDialItem.vue +9 -15
  30. package/src/components/speed-dial/types.ts +12 -0
  31. package/src/components/split-pane/FuSplitPane.vue +2 -2
  32. package/src/components/table/FuTable.vue +18 -27
  33. package/src/components/table/FuTableBody.ts +17 -19
  34. package/src/components/table/{table-column-dropdown/FuTableColumnDropdown.vue → FuTableColumnDropdown.vue} +0 -0
  35. package/src/components/table/index.ts +11 -7
  36. package/src/components/table/table-column-select/FuTableColumnSelectDialog.vue +3 -9
  37. package/src/components/table/table-column-select/FuTableColumnSelectPopover.vue +4 -3
  38. package/src/components/table/table-operations/FuTableButton.vue +1 -4
  39. package/src/components/table/table-operations/FuTableMoreButton.vue +1 -1
  40. package/src/components/table/table-operations/FuTableOperations.vue +1 -2
  41. package/src/components/table/types.ts +3 -0
  42. package/src/components/tabs/FuTabs.vue +4 -3
  43. package/src/hooks/index.ts +2 -1
  44. package/src/hooks/use-global-config/index.ts +25 -22
  45. package/src/hooks/use-locale/index.ts +1 -1
  46. package/src/hooks/use-size/index.ts +35 -0
  47. package/src/index.ts +5 -2
  48. package/src/styles/common/function.scss +14 -4
  49. package/src/styles/common/mixins.scss +9 -4
  50. package/src/styles/common/variables.scss +56 -17
  51. package/src/styles/components/filter-bar.scss +16 -16
  52. package/src/styles/components/icon-button.scss +66 -0
  53. package/src/styles/components/search-bar.scss +45 -90
  54. package/src/styles/components/speed-dial.scss +1 -51
  55. package/src/styles/components/split-pane.scss +1 -1
  56. package/src/styles/components/steps.scss +2 -2
  57. package/src/styles/components/table.scss +9 -13
  58. package/src/styles/index.scss +2 -1
  59. package/src/styles/themes/default.scss +91 -0
  60. package/src/tools/size.ts +6 -0
  61. package/src/tools/theme.ts +0 -12
  62. package/src/tools/vnode.ts +47 -0
  63. package/types/examples/App.vue.d.ts +2 -0
  64. package/types/examples/components/CodeExample.vue.d.ts +29 -0
  65. package/types/examples/components/DocumentTable.vue.d.ts +14 -0
  66. package/types/examples/components/Markdown.vue.d.ts +12 -0
  67. package/types/examples/layout/components/AppHeader.vue.d.ts +2 -0
  68. package/types/examples/layout/components/Sidebar.vue.d.ts +2 -0
  69. package/types/examples/layout/index.vue.d.ts +2 -0
  70. package/types/examples/main.d.ts +2 -0
  71. package/types/examples/pages/filter-bar/attributes.d.ts +63 -0
  72. package/types/examples/pages/filter-bar/demo/BaseFilterBar.vue.d.ts +2 -0
  73. package/types/examples/pages/filter-bar/demo/SetConditionsDemo.vue.d.ts +2 -0
  74. package/types/examples/pages/filter-bar/demo/SlotDemo.vue.d.ts +2 -0
  75. package/types/examples/pages/filter-bar/index.vue.d.ts +2 -0
  76. package/types/examples/pages/icon-button/attributes.d.ts +45 -0
  77. package/types/examples/pages/icon-button/demo/BaseIconButton.vue.d.ts +2 -0
  78. package/types/examples/pages/icon-button/demo/SlotDemo.vue.d.ts +2 -0
  79. package/types/examples/pages/icon-button/index.vue.d.ts +2 -0
  80. package/types/examples/pages/index.d.ts +3 -0
  81. package/types/examples/pages/read-write-switch/attributes.d.ts +63 -0
  82. package/types/examples/pages/read-write-switch/demo/BaseDemo.vue.d.ts +2 -0
  83. package/types/examples/pages/read-write-switch/demo/CustomContentDemo.vue.d.ts +2 -0
  84. package/types/examples/pages/read-write-switch/demo/InputRwSwitchDemo.vue.d.ts +2 -0
  85. package/types/examples/pages/read-write-switch/demo/ReadSwitchDemo.vue.d.ts +2 -0
  86. package/types/examples/pages/read-write-switch/demo/SelectRwSwitchDemo.vue.d.ts +2 -0
  87. package/types/examples/pages/read-write-switch/demo/TableInnerEditDemo.vue.d.ts +2 -0
  88. package/types/examples/pages/read-write-switch/demo/WriteSwitchDemo.vue.d.ts +2 -0
  89. package/types/examples/pages/read-write-switch/index.vue.d.ts +2 -0
  90. package/types/examples/pages/search/attributes.d.ts +57 -0
  91. package/types/examples/pages/search/demo/BaseSearchbar.vue.d.ts +66 -0
  92. package/types/examples/pages/search/demo/ComplexComponentsDemo.vue.d.ts +60 -0
  93. package/types/examples/pages/search/demo/ComplexSearchDemo.vue.d.ts +84 -0
  94. package/types/examples/pages/search/demo/CustomComponentsDemo.vue.d.ts +50 -0
  95. package/types/examples/pages/search/demo/EchoConditionsDemo.vue.d.ts +52 -0
  96. package/types/examples/pages/search/demo/QuickSearchDemo.vue.d.ts +18 -0
  97. package/types/examples/pages/search/demo/SearchBarButtonDemo.vue.d.ts +54 -0
  98. package/types/examples/pages/search/index.vue.d.ts +150 -0
  99. package/types/examples/pages/search-bar/attributes.d.ts +63 -0
  100. package/types/examples/pages/search-bar/demo/BaseSearchbar.vue.d.ts +31 -0
  101. package/types/examples/pages/search-bar/demo/ComplexSearchDemo.vue.d.ts +40 -0
  102. package/types/examples/pages/search-bar/demo/EchoConditionsDemo.vue.d.ts +32 -0
  103. package/types/examples/pages/search-bar/demo/QuickSearchDemo.vue.d.ts +7 -0
  104. package/types/examples/pages/search-bar/demo/SearchBarButtonDemo.vue.d.ts +32 -0
  105. package/types/examples/pages/search-bar/index.vue.d.ts +2 -0
  106. package/types/examples/pages/speed-dial/attributes.d.ts +63 -0
  107. package/types/examples/pages/speed-dial/demo/BaseSpeedDial.vue.d.ts +2 -0
  108. package/types/examples/pages/speed-dial/demo/SpeedDialCustom.vue.d.ts +2 -0
  109. package/types/examples/pages/speed-dial/demo/SpeedDialPosition.vue.d.ts +2 -0
  110. package/types/examples/pages/speed-dial/demo/SpeedDialTrigger.vue.d.ts +2 -0
  111. package/types/examples/pages/speed-dial/index.vue.d.ts +2 -0
  112. package/types/examples/pages/split-pane/attributes.d.ts +63 -0
  113. package/types/examples/pages/split-pane/demo/BaseSplit.vue.d.ts +2 -0
  114. package/types/examples/pages/split-pane/demo/CustomResizer.vue.d.ts +2 -0
  115. package/types/examples/pages/split-pane/demo/NestSplit.vue.d.ts +2 -0
  116. package/types/examples/pages/split-pane/demo/ResizerType.vue.d.ts +2 -0
  117. package/types/examples/pages/split-pane/index.vue.d.ts +2 -0
  118. package/types/examples/pages/table/attributes.d.ts +121 -0
  119. package/types/examples/pages/table/demo/BaseTable.vue.d.ts +2 -0
  120. package/types/examples/pages/table/demo/DropdownColumn.vue.d.ts +2 -0
  121. package/types/examples/pages/table/demo/DropdownColumnSlot.vue.d.ts +2 -0
  122. package/types/examples/pages/table/demo/SaveSelectColumn.vue.d.ts +2 -0
  123. package/types/examples/pages/table/demo/SelectColumn.vue.d.ts +2 -0
  124. package/types/examples/pages/table/demo/TableOperations.vue.d.ts +2 -0
  125. package/types/examples/pages/table/demo/TablePagination.vue.d.ts +2 -0
  126. package/types/examples/pages/table/index.vue.d.ts +2 -0
  127. package/types/examples/pages/tabs/attributes.d.ts +63 -0
  128. package/types/examples/pages/tabs/demo/AddCloseTab.vue.d.ts +2 -0
  129. package/types/examples/pages/tabs/index.vue.d.ts +2 -0
  130. package/types/examples/router/doc-routes.d.ts +12 -0
  131. package/types/examples/router/index.d.ts +4 -0
  132. package/types/examples/router/styles-routes.d.ts +12 -0
  133. package/types/examples/style-guide/button/BaseButton.vue.d.ts +2 -0
  134. package/types/examples/style-guide/button/IconButton.vue.d.ts +2 -0
  135. package/types/examples/style-guide/button/PlainButton.vue.d.ts +2 -0
  136. package/types/examples/style-guide/button/TextButton.vue.d.ts +2 -0
  137. package/types/examples/style-guide/button/index.vue.d.ts +2 -0
  138. package/types/examples/style-guide/input/BaseInput.vue.d.ts +2 -0
  139. package/types/examples/style-guide/input/SearchInput.vue.d.ts +2 -0
  140. package/types/examples/style-guide/input/Textarea.vue.d.ts +2 -0
  141. package/types/examples/style-guide/input/index.vue.d.ts +2 -0
  142. package/types/examples/style-guide/select/BaseSelect.vue.d.ts +2 -0
  143. package/types/examples/style-guide/select/index.vue.d.ts +2 -0
  144. package/types/plugins/example-transform.d.ts +5 -0
  145. package/types/src/components/filter-bar/FuFilter.vue.d.ts +42 -0
  146. package/types/src/components/filter-bar/FuFilterBar.vue.d.ts +33 -0
  147. package/types/src/components/filter-bar/FuFilterConditions.vue.d.ts +8 -0
  148. package/types/src/components/filter-bar/FuFilterInput.vue.d.ts +17 -0
  149. package/types/src/components/filter-bar/FuSearchInput.vue.d.ts +17 -0
  150. package/types/src/components/filter-bar/filter-components/FuFilterDate.vue.d.ts +36 -0
  151. package/types/src/components/filter-bar/filter-components/FuFilterDateTime.vue.d.ts +36 -0
  152. package/types/src/components/filter-bar/filter-components/FuFilterOption.vue.d.ts +24 -0
  153. package/types/src/components/filter-bar/filter-components/FuFilterSelect.vue.d.ts +66 -0
  154. package/types/src/components/filter-bar/index.d.ts +2 -0
  155. package/types/src/components/filter-bar/types.d.ts +22 -0
  156. package/types/src/components/icon-button/FuIconButton.vue.d.ts +43 -0
  157. package/types/src/components/icon-button/index.d.ts +2 -0
  158. package/types/src/components/read-write-switch/FuInputRwSwitch.vue.d.ts +21 -0
  159. package/types/src/components/read-write-switch/FuReadWriteSwitch.vue.d.ts +23 -0
  160. package/types/src/components/read-write-switch/FuSelectRwSwitch.vue.d.ts +43 -0
  161. package/types/src/components/read-write-switch/index.d.ts +2 -0
  162. package/types/src/components/read-write-switch/types.d.ts +4 -0
  163. package/types/src/components/search-bar/FuComplexSearch.vue.d.ts +22 -0
  164. package/types/src/components/search-bar/FuQuickSearch.vue.d.ts +29 -0
  165. package/types/src/components/search-bar/FuSearchBar.vue.d.ts +58 -0
  166. package/types/src/components/search-bar/FuSearchBarButton.vue.d.ts +14 -0
  167. package/types/src/components/search-bar/FuSearchContions.vue.d.ts +26 -0
  168. package/types/src/components/search-bar/complex-components/FuComplexDate.vue.d.ts +36 -0
  169. package/types/src/components/search-bar/complex-components/FuComplexDateTime.vue.d.ts +36 -0
  170. package/types/src/components/search-bar/complex-components/FuComplexInput.vue.d.ts +26 -0
  171. package/types/src/components/search-bar/complex-components/FuComplexSelect.vue.d.ts +50 -0
  172. package/types/src/components/search-bar/complex-components/index.d.ts +0 -0
  173. package/types/src/components/search-bar/complex-components/mixins.d.ts +6 -0
  174. package/types/src/components/search-bar/index.d.ts +2 -0
  175. package/types/src/components/search-bar/types.d.ts +17 -0
  176. package/types/src/components/speed-dial/FuSpeedDial.vue.d.ts +218 -0
  177. package/types/src/components/speed-dial/FuSpeedDialActionButton.vue.d.ts +32 -0
  178. package/types/src/components/speed-dial/FuSpeedDialButton.vue.d.ts +42 -0
  179. package/types/src/components/speed-dial/FuSpeedDialItem.vue.d.ts +12 -0
  180. package/types/src/components/speed-dial/index.d.ts +2 -0
  181. package/types/src/components/speed-dial/types.d.ts +8 -0
  182. package/types/src/components/split-pane/FuSplitPane.vue.d.ts +59 -0
  183. package/types/src/components/split-pane/index.d.ts +2 -0
  184. package/types/src/components/table/FuTable.vue.d.ts +18 -0
  185. package/types/src/components/table/FuTableBody.d.ts +3 -0
  186. package/types/src/components/table/FuTableColumnDropdown.vue.d.ts +50 -0
  187. package/types/src/components/table/FuTablePagination.vue.d.ts +47 -0
  188. package/types/src/components/table/index.d.ts +2 -0
  189. package/types/src/components/table/table-column-select/FuTableColumnSelect.vue.d.ts +10 -0
  190. package/types/src/components/table/table-column-select/FuTableColumnSelectDialog.vue.d.ts +23 -0
  191. package/types/src/components/table/table-column-select/FuTableColumnSelectPopover.vue.d.ts +34 -0
  192. package/types/src/components/table/table-column-select/utils.d.ts +8 -0
  193. package/types/src/components/table/table-operations/FuTableButton.vue.d.ts +13 -0
  194. package/types/src/components/table/table-operations/FuTableMoreButton.vue.d.ts +37 -0
  195. package/types/src/components/table/table-operations/FuTableOperations.vue.d.ts +46 -0
  196. package/types/src/components/table/types.d.ts +2 -0
  197. package/types/src/components/tabs/FuTabs.vue.d.ts +54 -0
  198. package/types/src/components/tabs/index.d.ts +2 -0
  199. package/types/src/hooks/index.d.ts +3 -0
  200. package/types/src/hooks/use-global-config/index.d.ts +9 -0
  201. package/types/src/hooks/use-locale/index.d.ts +14 -0
  202. package/types/src/hooks/use-size/index.d.ts +9 -0
  203. package/types/src/index.d.ts +8 -0
  204. package/types/src/locale/index.d.ts +10 -0
  205. package/types/src/locale/lang/en.d.ts +59 -0
  206. package/types/src/locale/lang/zh-cn.d.ts +59 -0
  207. package/types/src/locale/lang/zh-tw.d.ts +59 -0
  208. package/types/src/tools/size.d.ts +4 -0
  209. package/types/src/tools/theme.d.ts +1 -0
  210. package/types/src/tools/time.d.ts +2 -0
  211. package/types/src/tools/types.d.ts +8 -0
  212. package/types/src/tools/utils.d.ts +2 -0
  213. package/types/src/tools/vnode.d.ts +9 -0
  214. package/src/components/filter-bar/FuSearchInput.vue +0 -31
  215. package/src/components/search-bar/store.ts +0 -25
  216. package/src/components/steps/FuHorizontalNavigation.vue +0 -18
  217. package/src/components/steps/FuHorizontalSteps.vue +0 -94
  218. package/src/components/steps/FuStep.vue +0 -13
  219. package/src/components/steps/FuSteps.vue +0 -22
  220. package/src/components/steps/FuStepsFooter.ts +0 -79
  221. package/src/components/steps/FuVerticalNavigation.vue +0 -35
  222. package/src/components/steps/FuVerticalSteps.vue +0 -79
  223. package/src/components/steps/Stepper.ts +0 -188
  224. package/src/components/steps/index.ts +0 -11
  225. package/src/components/table/table-column-dropdown/index.ts +0 -7
  226. package/src/components/table/table-column-select/index.ts +0 -8
  227. package/src/components/table/table-operations/index.ts +0 -12
  228. package/src/components/virtual-scroller/FuVirtualHorizontalScroll.js +0 -96
  229. package/src/components/virtual-scroller/FuVirtualScroll.js +0 -15
  230. package/src/components/virtual-scroller/FuVirtualVerticalScroll.js +0 -95
  231. package/src/components/virtual-scroller/index.js +0 -10
@@ -83,8 +83,8 @@
83
83
  cursor: pointer;
84
84
 
85
85
  .is-wait {
86
- color: getCssVar('color', 'primary');
87
- border-color: getCssVar('color', 'primary');
86
+ color: var(--el-color-primary);
87
+ border-color: var(--el-color-primary);
88
88
  }
89
89
  }
90
90
  }
@@ -3,28 +3,23 @@
3
3
 
4
4
  @include b(table) {
5
5
  &.el-table {
6
- th.el-table-column--selection>.cell {
6
+ th.el-table-column--selection > .cell {
7
7
  padding-left: 14px;
8
8
  padding-right: 14px;
9
9
  }
10
10
  }
11
-
12
11
  &.el-table--small {
13
12
  font-size: 13px;
14
13
  }
15
14
  }
16
15
 
17
16
  @include b(table-header) {
18
- // ****** 颜色变量未定
19
17
  th {
20
- background-color: #F5F6F7 !important;
21
- border-top: 1px solid rgba(31, 35, 41, 0.15);
18
+ background-color: var(--el-table-header-bg-color) !important;
19
+ border-top: 1px solid var(--el-table-border-color);
22
20
  font-weight: 500 !important;;
23
21
  }
24
22
  }
25
- .el-table__inner-wrapper::before {
26
- background: none;
27
- }
28
23
 
29
24
  @include b(table-column-select) {
30
25
  margin-left: 10px;
@@ -42,7 +37,7 @@
42
37
  }
43
38
 
44
39
  @include e(item) {
45
- &+& {
40
+ & + & {
46
41
  margin-top: 5px;
47
42
  }
48
43
  }
@@ -65,14 +60,15 @@
65
60
  }
66
61
 
67
62
  @include b(table-operations) {
68
- div[type='dialog']>.fu-search-bar-button {
63
+ div[type='dialog'] > .fu-search-bar-button {
69
64
  border: none;
70
65
  }
71
66
  }
72
67
 
73
68
  @include b(table-more-button) {
74
- button+& {
75
- margin-left: 10px;
69
+ button + & {
70
+ margin-left: 12px;
71
+ vertical-align: middle;
76
72
  }
77
73
  }
78
74
 
@@ -102,4 +98,4 @@
102
98
  @include b(show-icon) {
103
99
  display: inline;
104
100
  }
105
- }
101
+ }
@@ -1,11 +1,12 @@
1
1
  @use "./common/variables.scss";
2
2
  @use "element-plus/theme-chalk/src/index.scss" as *;
3
3
  @use "./components/speed-dial";
4
- @use "./components/search-bar";
5
4
  @use "./components/filter-bar";
5
+ @use "./components/search-bar";
6
6
  @use "./components/table";
7
7
  @use "./components/steps";
8
8
  @use "./components/read-write-switch";
9
9
  @use "./components/split-pane";
10
10
  @use "./components/tabs";
11
11
  @use "./components/virtual-scroller";
12
+ @use "./components/icon-button";
@@ -0,0 +1,91 @@
1
+ // 自定义Element plus样式
2
+ @forward 'element-plus/theme-chalk/src/common/var.scss' with (
3
+ $colors: (
4
+ 'primary': (
5
+ 'base': #3370FF,
6
+ ),
7
+ 'danger':(
8
+ 'base':#F54A45
9
+ )
10
+ ),
11
+ $input: (
12
+ 'hover-border-color': var(--el-input-focus-border-color),
13
+ 'clear-hover-color': var(--el-input-focus-border-color),
14
+ 'icon-color': var(--el-input-text-color),
15
+ ),
16
+ $select: (
17
+ 'border-color-hover': var(--el-select-input-focus-border-color),
18
+ )
19
+ );
20
+
21
+ // 自定义FIT2CLOUD UI PLUS的样式
22
+ @forward "../common/variables.scss" with (
23
+ $fu-filter-bar: (
24
+ 'color': #646A73,
25
+ 'drawer-color': #646A73,
26
+ 'condition-color': #0C296E,
27
+ 'condition-bgColor': #3370FF19,
28
+ 'option-bgColor': #F5F6F7,
29
+ 'option-hover-bgColor': #3370FF19,
30
+ 'scroll-bgColor': #1F232919
31
+ ),
32
+ $fu-icon-button: (
33
+ 'color': #1F2329,
34
+ )
35
+ );
36
+
37
+ @use 'element-plus/theme-chalk/src/common/var.scss' as *;
38
+
39
+ .el-button--primary {
40
+ --el-button-hover-bg-color: #{mix(#FFF, $color-primary, 15%)} !important;
41
+ --el-button-active-bg-color: #{mix(#000, $color-primary, 15%)} !important;
42
+ }
43
+
44
+ .el-button--primary.is-plain {
45
+ --el-button-bg-color: #FFF !important;
46
+ --el-button-hover-text-color: var(--el-button-text-color) !important;
47
+ --el-button-hover-bg-color: #{mix($color-primary, #FFF, 15%)} !important;
48
+ --el-button-active-text-color: var(--el-button-text-color) !important;
49
+ --el-button-active-bg-color: #{mix($color-primary, #FFF, 30%)} !important;
50
+ }
51
+
52
+ .el-button--danger {
53
+ --el-button-hover-bg-color: #{mix(#FFF, $color-danger, 15%)} !important;
54
+ --el-button-active-bg-color: #{mix(#000, $color-danger, 15%)} !important;
55
+ }
56
+
57
+ .el-button--default:not(.el-button--primary).is-plain {
58
+ --el-button-bg-color: #FFF !important;
59
+ --el-button-hover-text-color: var(--el-button-text-color) !important;
60
+ --el-button-hover-border-color: var(--el-button-border-color) !important;
61
+ --el-button-hover-bg-color: #{mix(map-get($text-color,'regular'), #FFF, 5%)} !important;
62
+ --el-button-active-text-color: var(--el-button-text-color) !important;
63
+ --el-button-active-border-color: var(--el-button-border-color) !important;
64
+ --el-button-active-bg-color: #{mix(map-get($text-color,'regular'), #FFF, 10%)} !important;
65
+ }
66
+
67
+ .el-select .el-input .el-input__wrapper .el-select__caret.el-icon:hover {
68
+ color: var(--el-select-input-focus-border-color)
69
+ }
70
+
71
+ .el-button.is-text:not(.is-disabled).is-has-bg {
72
+ background-color: #FFF !important;
73
+
74
+ &.el-button--primary {
75
+ &:hover, &:focus {
76
+ background-color: #{mix($color-primary, #FFF, 15%)} !important;
77
+ }
78
+
79
+ &:active {
80
+ background-color: #{mix($color-primary, #FFF, 30%)} !important;
81
+ }
82
+ }
83
+
84
+ &:hover, &:focus {
85
+ background-color: #{mix(map-get($text-color,'regular'), #FFF, 5%)} !important;
86
+ }
87
+
88
+ &:active {
89
+ background-color: #{mix(map-get($text-color,'regular'), #FFF, 10%)} !important;
90
+ }
91
+ }
@@ -0,0 +1,6 @@
1
+ const COMPONENTS_SIZE = ['', 'default', 'small', 'large'];
2
+
3
+ export type ComponentSize = typeof COMPONENTS_SIZE[number]
4
+
5
+ export const validateSize = (val: string): val is ComponentSize | '' =>
6
+ ['', ...COMPONENTS_SIZE].includes(val)
@@ -9,15 +9,3 @@ export const validateType = (value: string) => {
9
9
  console.error("types is not contains " + value);
10
10
  return false;
11
11
  }
12
-
13
- const COMPONENTS_SIZE = ["default", "large", "small"];
14
-
15
- export const validateSize = (value: string) => {
16
- if (!value) return true;
17
-
18
- if (COMPONENTS_SIZE.includes(value)) {
19
- return true;
20
- }
21
- console.error("size is not contains " + value);
22
- return false;
23
- }
@@ -0,0 +1,47 @@
1
+ import {
2
+ Comment,
3
+ Fragment,
4
+ isVNode,
5
+ } from 'vue'
6
+ import type {
7
+ VNode,
8
+ VNodeNormalizedChildren,
9
+ } from 'vue'
10
+ import {isArray} from "@vue/shared";
11
+
12
+ export function isFragment(node: VNode): boolean
13
+ export function isFragment(node: unknown): node is VNode
14
+ export function isFragment(node: unknown): node is VNode {
15
+ return isVNode(node) && node.type === Fragment
16
+ }
17
+
18
+ export function isComment(node: VNode): boolean
19
+ export function isComment(node: unknown): node is VNode
20
+ export function isComment(node: unknown): node is VNode {
21
+ return isVNode(node) && node.type === Comment
22
+ }
23
+
24
+ export function isValidElementNode(node: VNode): boolean
25
+ export function isValidElementNode(node: unknown): node is VNode
26
+ export function isValidElementNode(node: unknown): node is VNode {
27
+ return isVNode(node) && !isFragment(node) && !isComment(node)
28
+ }
29
+
30
+ export function isValidChildren(children: VNodeNormalizedChildren): children is VNodeNormalizedChildren {
31
+ return Array.isArray(children) ? isValidElementNode(children[0]) : false
32
+ }
33
+
34
+ export function getChildren(
35
+ nodes: VNodeNormalizedChildren | VNode[],
36
+ depth = 5
37
+ ): VNodeNormalizedChildren | VNode[] {
38
+ let node = isArray(nodes) ? nodes[0] : nodes
39
+ if (isFragment(node)) {
40
+ if (isValidChildren(node.children)) return node.children
41
+ if (depth > 0) {
42
+ return getChildren(node.children[0], depth - 1)
43
+ }
44
+ }
45
+ if (isValidChildren(nodes)) return nodes
46
+ return []
47
+ }
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,29 @@
1
+ import 'prismjs';
2
+ import './code.scss';
3
+ declare const _default: import("vue").DefineComponent<{
4
+ component: {
5
+ type: ObjectConstructor;
6
+ default: () => {};
7
+ };
8
+ description: StringConstructor;
9
+ label: {
10
+ type: StringConstructor;
11
+ default: string;
12
+ };
13
+ lang: StringConstructor;
14
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
15
+ component: {
16
+ type: ObjectConstructor;
17
+ default: () => {};
18
+ };
19
+ description: StringConstructor;
20
+ label: {
21
+ type: StringConstructor;
22
+ default: string;
23
+ };
24
+ lang: StringConstructor;
25
+ }>>, {
26
+ label: string;
27
+ component: Record<string, any>;
28
+ }>;
29
+ export default _default;
@@ -0,0 +1,14 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ data: {
3
+ type: any;
4
+ default: () => never[];
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ data: {
8
+ type: any;
9
+ default: () => never[];
10
+ };
11
+ }>>, {
12
+ data: any;
13
+ }>;
14
+ export default _default;
@@ -0,0 +1,12 @@
1
+ declare const _default: import("vue").DefineComponent<{
2
+ content: {
3
+ type: StringConstructor;
4
+ required: true;
5
+ };
6
+ }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
7
+ content: {
8
+ type: StringConstructor;
9
+ required: true;
10
+ };
11
+ }>>, {}>;
12
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ import "github-markdown-css";
2
+ import './index.scss';
@@ -0,0 +1,63 @@
1
+ /**
2
+ * 说明文档
3
+ * @name 表格名称
4
+ * @header 表格头部参数,任意定义
5
+ * @table table内容,字段要和header定义的属性保持一直
6
+ * @children 多表使用
7
+ */
8
+ export declare const attributes: {
9
+ name: string;
10
+ children: ({
11
+ name: string;
12
+ header: {
13
+ prop: string;
14
+ desc: string;
15
+ type: string;
16
+ enum: string;
17
+ default: string;
18
+ event?: undefined;
19
+ value?: undefined;
20
+ name?: undefined;
21
+ };
22
+ table: {
23
+ prop: string;
24
+ desc: string;
25
+ type: string;
26
+ enum: string;
27
+ default: string;
28
+ }[];
29
+ } | {
30
+ name: string;
31
+ header: {
32
+ event: string;
33
+ desc: string;
34
+ value: string;
35
+ prop?: undefined;
36
+ type?: undefined;
37
+ enum?: undefined;
38
+ default?: undefined;
39
+ name?: undefined;
40
+ };
41
+ table: {
42
+ event: string;
43
+ desc: string;
44
+ value: string;
45
+ }[];
46
+ } | {
47
+ name: string;
48
+ header: {
49
+ name: string;
50
+ desc: string;
51
+ prop?: undefined;
52
+ type?: undefined;
53
+ enum?: undefined;
54
+ default?: undefined;
55
+ event?: undefined;
56
+ value?: undefined;
57
+ };
58
+ table: {
59
+ name: string;
60
+ desc: string;
61
+ }[];
62
+ })[];
63
+ }[];
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,45 @@
1
+ /**
2
+ * 说明文档
3
+ * @name 表格名称
4
+ * @header 表格头部参数,任意定义
5
+ * @table table内容,字段要和header定义的属性保持一直
6
+ * @children 多表使用
7
+ */
8
+ export declare const attributes: {
9
+ name: string;
10
+ children: ({
11
+ name: string;
12
+ header: {
13
+ prop: string;
14
+ desc: string;
15
+ type: string;
16
+ enum: string;
17
+ default: string;
18
+ event?: undefined;
19
+ value?: undefined;
20
+ };
21
+ table: {
22
+ prop: string;
23
+ desc: string;
24
+ type: string;
25
+ enum: string;
26
+ default: string;
27
+ }[];
28
+ } | {
29
+ name: string;
30
+ header: {
31
+ event: string;
32
+ desc: string;
33
+ value: string;
34
+ prop?: undefined;
35
+ type?: undefined;
36
+ enum?: undefined;
37
+ default?: undefined;
38
+ };
39
+ table: {
40
+ event: string;
41
+ desc: string;
42
+ value: string;
43
+ }[];
44
+ })[];
45
+ }[];
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,3 @@
1
+ import type { App } from "vue";
2
+ declare const pages: (app: App) => void;
3
+ export default pages;
@@ -0,0 +1,63 @@
1
+ /**
2
+ * 说明文档
3
+ * @name 表格名称
4
+ * @header 表格头部参数,任意定义
5
+ * @table table内容,字段要和header定义的属性保持一直
6
+ * @children 多表使用
7
+ */
8
+ export declare const attributes: {
9
+ name: string;
10
+ children: ({
11
+ name: string;
12
+ header: {
13
+ prop: string;
14
+ desc: string;
15
+ type: string;
16
+ enum: string;
17
+ default: string;
18
+ event?: undefined;
19
+ value?: undefined;
20
+ name?: undefined;
21
+ };
22
+ table: {
23
+ prop: string;
24
+ desc: string;
25
+ type: string;
26
+ enum: string;
27
+ default: string;
28
+ }[];
29
+ } | {
30
+ name: string;
31
+ header: {
32
+ event: string;
33
+ desc: string;
34
+ value: string;
35
+ prop?: undefined;
36
+ type?: undefined;
37
+ enum?: undefined;
38
+ default?: undefined;
39
+ name?: undefined;
40
+ };
41
+ table: {
42
+ event: string;
43
+ desc: string;
44
+ value: string;
45
+ }[];
46
+ } | {
47
+ name: string;
48
+ header: {
49
+ name: string;
50
+ desc: string;
51
+ prop?: undefined;
52
+ type?: undefined;
53
+ enum?: undefined;
54
+ default?: undefined;
55
+ event?: undefined;
56
+ value?: undefined;
57
+ };
58
+ table: {
59
+ name: string;
60
+ desc: string;
61
+ }[];
62
+ })[];
63
+ }[];
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -0,0 +1,57 @@
1
+ declare var _default: {
2
+ name: string;
3
+ children: ({
4
+ name: string;
5
+ header: {
6
+ prop: string;
7
+ desc: string;
8
+ type: string;
9
+ enum: string;
10
+ default: string;
11
+ event?: undefined;
12
+ value?: undefined;
13
+ name?: undefined;
14
+ };
15
+ table: {
16
+ prop: string;
17
+ desc: string;
18
+ type: string;
19
+ enum: string;
20
+ default: string;
21
+ }[];
22
+ } | {
23
+ name: string;
24
+ header: {
25
+ event: string;
26
+ desc: string;
27
+ value: string;
28
+ prop?: undefined;
29
+ type?: undefined;
30
+ enum?: undefined;
31
+ default?: undefined;
32
+ name?: undefined;
33
+ };
34
+ table: {
35
+ event: string;
36
+ desc: string;
37
+ value: string;
38
+ }[];
39
+ } | {
40
+ name: string;
41
+ header: {
42
+ name: string;
43
+ desc: string;
44
+ prop?: undefined;
45
+ type?: undefined;
46
+ enum?: undefined;
47
+ default?: undefined;
48
+ event?: undefined;
49
+ value?: undefined;
50
+ };
51
+ table: {
52
+ name: string;
53
+ desc: string;
54
+ }[];
55
+ })[];
56
+ }[];
57
+ export default _default;