@jetlinks-web/components 3.0.1-rc → 3.0.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 (286) hide show
  1. package/es/AutoComplete/AutoComplete.js +13 -9
  2. package/es/BadgeStatus/Badge.js +1 -2
  3. package/es/BadgeStatus/color.js +3 -3
  4. package/es/CardSelect/CardSelect.js +23 -13
  5. package/es/CardSelect/style/index.js +25 -1
  6. package/es/CheckButton/CheckButton.js +12 -4
  7. package/es/CheckButton/style/index.js +41 -1
  8. package/es/DragModal/DragModal.js +14 -8
  9. package/es/DragModal/style/index.js +64 -1
  10. package/es/EditTable/Body.js +10 -3
  11. package/es/EditTable/EditTable.js +13 -7
  12. package/es/EditTable/FormItem.js +18 -19
  13. package/es/EditTable/Header.js +16 -6
  14. package/es/EditTable/components/ContextMenu/Menu.js +11 -5
  15. package/es/EditTable/components/Search/search.js +1 -2
  16. package/es/EditTable/components/Search/sort.js +1 -3
  17. package/es/EditTable/group.js +23 -18
  18. package/es/EditTable/hooks/useValidate.js +1 -1
  19. package/es/EditTable/style/body.js +53 -0
  20. package/es/EditTable/style/form.js +24 -0
  21. package/es/EditTable/style/group.js +25 -0
  22. package/es/EditTable/style/header.js +58 -0
  23. package/es/EditTable/style/index.js +42 -1
  24. package/es/EditTable/style/menu.js +27 -0
  25. package/es/EditTable/style/table.js +46 -0
  26. package/es/EditTable/utils.js +30 -3
  27. package/es/Ellipsis/Ellipsis.js +10 -2
  28. package/es/Ellipsis/style/index.js +24 -1
  29. package/es/FullPage/FullPage.js +1 -2
  30. package/es/LocaleProvider/index.js +1 -2
  31. package/es/PermissionButton/index.js +6 -7
  32. package/es/ProLayout/Basic/BasicLayout.js +45 -41
  33. package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
  34. package/es/ProLayout/Basic/Header.js +3 -7
  35. package/es/ProLayout/Basic/HeaderStyle.js +10 -0
  36. package/es/ProLayout/PageContainer/index.js +21 -17
  37. package/es/ProLayout/PageContainer/style.js +46 -0
  38. package/es/ProLayout/SiderMenu/BaseMenu.js +18 -42
  39. package/es/ProLayout/SiderMenu/SiderMenu.js +24 -36
  40. package/es/ProLayout/SiderMenu/style.js +166 -0
  41. package/es/ProLayout/TopHeader/index.js +13 -12
  42. package/es/ProLayout/TopHeader/style.js +126 -0
  43. package/es/ProLayout/style/index.js +7 -1
  44. package/es/ProLayout/util.js +5 -5
  45. package/es/ProTable/Alert.js +12 -4
  46. package/es/ProTable/Content.js +108 -28
  47. package/es/ProTable/Header.js +21 -11
  48. package/es/ProTable/Pagination.js +12 -4
  49. package/es/ProTable/ProTable.js +46 -34
  50. package/es/ProTable/hooks/index.js +2 -0
  51. package/es/ProTable/hooks/useTableInject.js +5 -0
  52. package/es/ProTable/hooks/useTableSelection.js +95 -0
  53. package/es/ProTable/setting.js +1 -1
  54. package/es/ProTable/style/index.js +109 -1
  55. package/es/RadioButton/RadioButton.js +10 -4
  56. package/es/RadioButton/style/index.js +23 -1
  57. package/es/Scrollbar/Scrollbar.js +10 -3
  58. package/es/Scrollbar/Thumb.js +36 -25
  59. package/es/Scrollbar/style/index.js +63 -1
  60. package/es/Search/Advanced/History.js +23 -16
  61. package/es/Search/Advanced/SaveHistory.js +1 -2
  62. package/es/Search/Advanced/index.js +212 -292
  63. package/es/Search/Item.js +175 -415
  64. package/es/Search/Search.js +78 -172
  65. package/es/Search/hooks/index.js +108 -1
  66. package/es/Search/hooks/useRouteQuery.js +57 -0
  67. package/es/Search/setting.js +132 -14
  68. package/es/Search/style/index.js +4 -2
  69. package/es/Search/style/item.js +28 -0
  70. package/es/Search/style/search.js +133 -0
  71. package/es/Search/util.js +116 -124
  72. package/es/Skeleton/components/DashBoardCard.js +19 -12
  73. package/es/Skeleton/components/DashBoardChart.js +48 -45
  74. package/es/Skeleton/components/Detail.js +27 -21
  75. package/es/Skeleton/components/Drawer.js +23 -14
  76. package/es/Skeleton/components/Item.js +9 -1
  77. package/es/Skeleton/components/List.js +0 -1
  78. package/es/Skeleton/components/ListCard.js +20 -13
  79. package/es/Skeleton/components/ListCardItem.js +12 -13
  80. package/es/Skeleton/components/ListTable.js +19 -10
  81. package/es/Skeleton/components/Page.js +0 -1
  82. package/es/Skeleton/components/Tree.js +21 -14
  83. package/es/Skeleton/skeleton.js +17 -8
  84. package/es/Skeleton/style/index.js +132 -1
  85. package/es/Title/style/index.js +29 -1
  86. package/es/Title/title.js +13 -5
  87. package/es/ValueItem/ValueItem.js +44 -39
  88. package/es/components.js +1 -5
  89. package/es/locale/en-US.js +3 -7
  90. package/es/locale/zh-CN.js +3 -7
  91. package/es/style/index.js +0 -3
  92. package/es/style/styleRegister.js +21 -0
  93. package/es/style/variable.js +4 -0
  94. package/es/style.js +0 -13
  95. package/lib/AutoComplete/AutoComplete.js +13 -9
  96. package/lib/BadgeStatus/Badge.js +1 -2
  97. package/lib/BadgeStatus/color.js +3 -3
  98. package/lib/CardSelect/CardSelect.js +23 -13
  99. package/lib/CardSelect/style/index.js +30 -1
  100. package/lib/CheckButton/CheckButton.js +12 -4
  101. package/lib/CheckButton/style/index.js +46 -1
  102. package/lib/DragModal/DragModal.js +14 -8
  103. package/lib/DragModal/style/index.js +69 -1
  104. package/lib/EditTable/Body.js +10 -3
  105. package/lib/EditTable/EditTable.js +13 -7
  106. package/lib/EditTable/FormItem.js +18 -19
  107. package/lib/EditTable/Header.js +16 -6
  108. package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
  109. package/lib/EditTable/components/Search/search.js +1 -2
  110. package/lib/EditTable/components/Search/sort.js +1 -3
  111. package/lib/EditTable/group.js +23 -18
  112. package/lib/EditTable/hooks/useValidate.js +1 -1
  113. package/lib/EditTable/style/body.js +60 -0
  114. package/lib/EditTable/style/form.js +31 -0
  115. package/lib/EditTable/style/group.js +32 -0
  116. package/lib/EditTable/style/header.js +65 -0
  117. package/lib/EditTable/style/index.js +47 -1
  118. package/lib/EditTable/style/menu.js +33 -0
  119. package/lib/EditTable/style/table.js +52 -0
  120. package/lib/EditTable/utils.js +31 -3
  121. package/lib/Ellipsis/Ellipsis.js +10 -2
  122. package/lib/Ellipsis/style/index.js +29 -1
  123. package/lib/FullPage/FullPage.js +1 -2
  124. package/lib/Icon/icon.js +1 -2
  125. package/lib/LocaleProvider/index.js +1 -2
  126. package/lib/PermissionButton/index.js +6 -7
  127. package/lib/ProLayout/Basic/BasicLayout.js +45 -42
  128. package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
  129. package/lib/ProLayout/Basic/Header.js +2 -6
  130. package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
  131. package/lib/ProLayout/PageContainer/index.js +19 -15
  132. package/lib/ProLayout/PageContainer/style.js +53 -0
  133. package/lib/ProLayout/SiderMenu/BaseMenu.js +19 -42
  134. package/lib/ProLayout/SiderMenu/SiderMenu.js +24 -37
  135. package/lib/ProLayout/SiderMenu/style.js +173 -0
  136. package/lib/ProLayout/TopHeader/index.js +14 -12
  137. package/lib/ProLayout/TopHeader/style.js +133 -0
  138. package/lib/ProLayout/style/index.js +12 -1
  139. package/lib/ProLayout/util.js +5 -5
  140. package/lib/ProTable/Alert.js +12 -4
  141. package/lib/ProTable/Content.js +108 -28
  142. package/lib/ProTable/Header.js +21 -11
  143. package/lib/ProTable/Pagination.js +12 -4
  144. package/lib/ProTable/ProTable.js +46 -34
  145. package/lib/ProTable/hooks/index.js +27 -0
  146. package/lib/ProTable/hooks/useTableInject.js +11 -0
  147. package/lib/ProTable/hooks/useTableSelection.js +102 -0
  148. package/lib/ProTable/setting.js +1 -1
  149. package/lib/ProTable/style/index.js +114 -1
  150. package/lib/RadioButton/RadioButton.js +10 -4
  151. package/lib/RadioButton/style/index.js +28 -1
  152. package/lib/Scrollbar/Scrollbar.js +10 -3
  153. package/lib/Scrollbar/Thumb.js +36 -25
  154. package/lib/Scrollbar/style/index.js +68 -1
  155. package/lib/Search/Advanced/History.js +23 -16
  156. package/lib/Search/Advanced/SaveHistory.js +1 -2
  157. package/lib/Search/Advanced/index.js +212 -292
  158. package/lib/Search/Item.js +175 -415
  159. package/lib/Search/Search.js +78 -172
  160. package/lib/Search/hooks/index.js +130 -1
  161. package/lib/Search/hooks/useRouteQuery.js +64 -0
  162. package/lib/Search/setting.js +133 -15
  163. package/lib/Search/style/index.js +9 -2
  164. package/lib/Search/style/item.js +35 -0
  165. package/lib/Search/style/search.js +140 -0
  166. package/lib/Search/util.js +116 -124
  167. package/lib/Skeleton/components/DashBoardCard.js +19 -12
  168. package/lib/Skeleton/components/DashBoardChart.js +48 -45
  169. package/lib/Skeleton/components/Detail.js +27 -21
  170. package/lib/Skeleton/components/Drawer.js +23 -14
  171. package/lib/Skeleton/components/Item.js +9 -1
  172. package/lib/Skeleton/components/List.js +0 -1
  173. package/lib/Skeleton/components/ListCard.js +20 -13
  174. package/lib/Skeleton/components/ListCardItem.js +12 -13
  175. package/lib/Skeleton/components/ListTable.js +19 -10
  176. package/lib/Skeleton/components/Page.js +0 -1
  177. package/lib/Skeleton/components/Tree.js +21 -14
  178. package/lib/Skeleton/skeleton.js +17 -8
  179. package/lib/Skeleton/style/index.js +137 -1
  180. package/lib/Title/style/index.js +34 -1
  181. package/lib/Title/title.js +13 -5
  182. package/lib/ValueItem/ValueItem.js +44 -39
  183. package/lib/components.js +1 -30
  184. package/lib/index.js +1 -2
  185. package/lib/locale/en-US.js +3 -7
  186. package/lib/locale/zh-CN.js +3 -7
  187. package/lib/style/components.less +0 -1
  188. package/lib/style/index.js +1 -4
  189. package/lib/style/styleRegister.js +28 -0
  190. package/lib/style/variable.js +10 -0
  191. package/lib/style.js +1 -15
  192. package/package.json +170 -173
  193. package/es/AMap/Map.js +0 -133
  194. package/es/AMap/index.js +0 -5
  195. package/es/AMap/util.js +0 -56
  196. package/es/CardSelect/style/index.css +0 -24
  197. package/es/CardSelect/style/index.less +0 -26
  198. package/es/CheckButton/style/index.css +0 -37
  199. package/es/CheckButton/style/index.less +0 -40
  200. package/es/DragModal/style/index.css +0 -82
  201. package/es/DragModal/style/index.less +0 -97
  202. package/es/Echarts/Echarts.js +0 -48
  203. package/es/Echarts/index.js +0 -5
  204. package/es/EditTable/style/body.less +0 -66
  205. package/es/EditTable/style/form.less +0 -33
  206. package/es/EditTable/style/group.less +0 -32
  207. package/es/EditTable/style/header.less +0 -77
  208. package/es/EditTable/style/index.css +0 -267
  209. package/es/EditTable/style/index.less +0 -41
  210. package/es/EditTable/style/menu.less +0 -25
  211. package/es/EditTable/style/table.less +0 -47
  212. package/es/Ellipsis/style/index.css +0 -17
  213. package/es/Ellipsis/style/index.less +0 -20
  214. package/es/FlameGraph/FlameGraph.js +0 -136
  215. package/es/FlameGraph/index.js +0 -5
  216. package/es/FlameGraph/style/index.css +0 -43
  217. package/es/FlameGraph/style/index.js +0 -1
  218. package/es/FlameGraph/style/index.less +0 -52
  219. package/es/ProLayout/Basic/BasicLayout.less +0 -66
  220. package/es/ProLayout/Basic/Header.less +0 -8
  221. package/es/ProLayout/PageContainer/index.less +0 -103
  222. package/es/ProLayout/SiderMenu/index.less +0 -231
  223. package/es/ProLayout/TopHeader/index.less +0 -174
  224. package/es/ProLayout/style/default.less +0 -4
  225. package/es/ProLayout/style/style.less +0 -7
  226. package/es/ProTable/style/ProTable.less +0 -139
  227. package/es/RadioButton/style/index.css +0 -20
  228. package/es/RadioButton/style/index.less +0 -19
  229. package/es/Scrollbar/style/index.css +0 -65
  230. package/es/Scrollbar/style/index.less +0 -83
  231. package/es/Search/style/Item.less +0 -33
  232. package/es/Search/style/Search.less +0 -179
  233. package/es/Skeleton/style/Skeleton.less +0 -166
  234. package/es/Title/style/index.css +0 -27
  235. package/es/Title/style/index.less +0 -27
  236. package/es/style/index.css +0 -5375
  237. package/es/style/index.less +0 -14
  238. package/es/style/variable.css +0 -4
  239. package/es/style/variable.less +0 -4
  240. package/lib/AMap/Map.js +0 -133
  241. package/lib/AMap/index.js +0 -12
  242. package/lib/AMap/util.js +0 -62
  243. package/lib/CardSelect/style/index.css +0 -24
  244. package/lib/CardSelect/style/index.less +0 -26
  245. package/lib/CheckButton/style/index.css +0 -37
  246. package/lib/CheckButton/style/index.less +0 -40
  247. package/lib/DragModal/style/index.css +0 -82
  248. package/lib/DragModal/style/index.less +0 -97
  249. package/lib/Echarts/Echarts.js +0 -48
  250. package/lib/Echarts/index.js +0 -12
  251. package/lib/EditTable/style/body.less +0 -66
  252. package/lib/EditTable/style/form.less +0 -33
  253. package/lib/EditTable/style/group.less +0 -32
  254. package/lib/EditTable/style/header.less +0 -77
  255. package/lib/EditTable/style/index.css +0 -267
  256. package/lib/EditTable/style/index.less +0 -41
  257. package/lib/EditTable/style/menu.less +0 -25
  258. package/lib/EditTable/style/table.less +0 -47
  259. package/lib/Ellipsis/style/index.css +0 -17
  260. package/lib/Ellipsis/style/index.less +0 -20
  261. package/lib/FlameGraph/FlameGraph.js +0 -136
  262. package/lib/FlameGraph/index.js +0 -12
  263. package/lib/FlameGraph/style/index.css +0 -43
  264. package/lib/FlameGraph/style/index.js +0 -3
  265. package/lib/FlameGraph/style/index.less +0 -52
  266. package/lib/ProLayout/Basic/BasicLayout.less +0 -66
  267. package/lib/ProLayout/Basic/Header.less +0 -8
  268. package/lib/ProLayout/PageContainer/index.less +0 -103
  269. package/lib/ProLayout/SiderMenu/index.less +0 -231
  270. package/lib/ProLayout/TopHeader/index.less +0 -174
  271. package/lib/ProLayout/style/default.less +0 -4
  272. package/lib/ProLayout/style/style.less +0 -7
  273. package/lib/ProTable/style/ProTable.less +0 -139
  274. package/lib/RadioButton/style/index.css +0 -20
  275. package/lib/RadioButton/style/index.less +0 -19
  276. package/lib/Scrollbar/style/index.css +0 -65
  277. package/lib/Scrollbar/style/index.less +0 -83
  278. package/lib/Search/style/Item.less +0 -33
  279. package/lib/Search/style/Search.less +0 -179
  280. package/lib/Skeleton/style/Skeleton.less +0 -166
  281. package/lib/Title/style/index.css +0 -27
  282. package/lib/Title/style/index.less +0 -27
  283. package/lib/style/index.css +0 -5375
  284. package/lib/style/index.less +0 -14
  285. package/lib/style/variable.css +0 -4
  286. package/lib/style/variable.less +0 -4
@@ -1 +1,132 @@
1
- import './Skeleton.less';
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import { Keyframes } from "ant-design-vue";
4
+ import genCompoentStyle from "../../style/styleRegister";
5
+ var JSkeletonSizeLg = '36px';
6
+ var JSkeletonSizeSm = '16px';
7
+ var JSkeletonSize = '24px';
8
+ var JSkeletonBorderRadius = '8px';
9
+ var JSkeletonBg = '#f0f2f5';
10
+ var JSkeletonBg1 = '#e6e8eb';
11
+ var JSkeletonBorder = "4px solid ".concat(JSkeletonBg);
12
+ var JSkeletonFlex = {
13
+ display: 'flex',
14
+ gap: '24px',
15
+ marginBottom: '16px'
16
+ };
17
+ //动画
18
+ var waveKeyframes = new Keyframes('wave', {
19
+ '0%': {
20
+ backgroundPosition: '200% 0'
21
+ },
22
+ '100%': {
23
+ backgroundPosition: '-200% 0'
24
+ }
25
+ });
26
+ var genSkeletonStyle = function genSkeletonStyle(config) {
27
+ var _$concat6;
28
+ var componentCls = config.componentCls,
29
+ token = config.token;
30
+ return _defineProperty(_defineProperty(_defineProperty(_defineProperty({}, "".concat(componentCls, "-flex"), JSkeletonFlex), "".concat(componentCls, "-flex-between"), _objectSpread(_objectSpread({}, JSkeletonFlex), {}, {
31
+ background: JSkeletonBg,
32
+ height: JSkeletonSize,
33
+ borderRadius: JSkeletonBorderRadius
34
+ })), "".concat(componentCls, "-flex-column"), _objectSpread(_objectSpread({}, JSkeletonFlex), {}, {
35
+ justifyContent: 'space-between'
36
+ })), "".concat(componentCls), (_$concat6 = {
37
+ height: '100%'
38
+ }, _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_$concat6, "".concat(componentCls, "-item"), {
39
+ background: 'linear-gradient(90deg, ${JSkeletonBg} 25%, ${JSkeletonBg1} 50%, ${JSkeletonBg} 75%)',
40
+ backgroundSize: '400% 100%',
41
+ borderRadius: JSkeletonBorderRadius,
42
+ height: JSkeletonSize
43
+ }), "".concat(componentCls, "-item-active"), {
44
+ animationName: waveKeyframes,
45
+ animationDuration: '1.8s',
46
+ animationIterationCount: 'infinite',
47
+ animationTimingFunction: 'ease-in-out'
48
+ }), "".concat(componentCls, "-item-lg"), {
49
+ height: JSkeletonSizeLg
50
+ }), "".concat(componentCls, "-item-sm"), {
51
+ height: JSkeletonSizeSm
52
+ }), "".concat(componentCls, "-dashboard-card"), _objectSpread(_objectSpread({}, JSkeletonFlex), {}, {
53
+ border: JSkeletonBorder,
54
+ borderRadius: JSkeletonBorderRadius,
55
+ height: '100%',
56
+ padding: '24px',
57
+ flexDirection: 'column'
58
+ })), "".concat(componentCls, "-tabs"), {
59
+ display: 'flex',
60
+ gap: '16px',
61
+ margin: '60px 0 20px 0',
62
+ borderBottom: JSkeletonBorder,
63
+ padding: '16px 0'
64
+ }), "".concat(componentCls, "-desc"), _defineProperty(_defineProperty({
65
+ display: 'flex',
66
+ flexDirection: 'column',
67
+ marginBottom: '24px'
68
+ }, "".concat(componentCls, "-desc-content"), {
69
+ display: 'grid',
70
+ gridTemplateColumns: 'repeat(3, 1fr)',
71
+ gap: '36px',
72
+ margin: '24px 0 0 0'
73
+ }), "".concat(componentCls, "-desc-item"), {
74
+ display: 'flex',
75
+ gap: '16px'
76
+ })), "".concat(componentCls, "-box"), {
77
+ borderBottom: JSkeletonBorder,
78
+ padding: '16px 0'
79
+ }), "".concat(componentCls, "-table-cell"), {
80
+ display: 'grid',
81
+ gridTemplateColumns: 'repeat(auto-fit, minmax(0, 1fr)) 200px',
82
+ gap: '24px',
83
+ padding: '12px 6px',
84
+ borderRadius: '8px'
85
+ }), "".concat(componentCls, "-table-header"), {
86
+ backgroundColor: 'lightgrey'
87
+ }), _defineProperty(_defineProperty(_defineProperty(_$concat6, "".concat(componentCls, "-table-action"), {
88
+ width: '200px',
89
+ display: 'grid',
90
+ gridTemplateColumns: 'repeat(auto-fit, minmax(0, 1fr))',
91
+ gap: '24px'
92
+ }), "".concat(componentCls, "-cards"), {
93
+ display: 'grid',
94
+ gridTemplateColumns: 'repeat(3, 1fr)',
95
+ gap: '16px'
96
+ }), "".concat(componentCls, "-card"), _defineProperty(_defineProperty({}, "".concat(componentCls, "-card-content"), _defineProperty(_defineProperty({
97
+ display: 'flex',
98
+ gap: '16px',
99
+ border: '2px solid #f0f2f5',
100
+ borderRadius: '8px',
101
+ padding: '24px',
102
+ marginBottom: '16px'
103
+ }, "".concat(componentCls, "-image"), {
104
+ width: '100px',
105
+ height: '100px'
106
+ }), "".concat(componentCls, "-right"), _defineProperty({
107
+ flex: 1,
108
+ minWidth: '200px'
109
+ }, "".concat(componentCls, "-right-content"), _defineProperty({
110
+ display: 'flex',
111
+ gap: '16px',
112
+ marginTop: '16px'
113
+ }, "".concat(componentCls, "-right-item"), {
114
+ flex: 1,
115
+ minWidth: '100px',
116
+ display: 'flex',
117
+ flexDirection: 'column',
118
+ gap: '16px'
119
+ })))), "".concat(componentCls, "-action"), {
120
+ display: 'flex',
121
+ justifyContent: 'flex-end',
122
+ gap: '16px',
123
+ '.btn': {
124
+ flex: 1,
125
+ minWidth: '100px'
126
+ },
127
+ '.delete': {
128
+ flex: '0 0 100px'
129
+ }
130
+ }))));
131
+ };
132
+ export default genCompoentStyle([genSkeletonStyle]);
@@ -1 +1,29 @@
1
- import './index.less';
1
+ import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
2
+ import genCompoentStyle from "../../style/styleRegister";
3
+ var genTitleStyle = function genTitleStyle(config) {
4
+ var componentCls = config.componentCls,
5
+ token = config.token;
6
+ return _defineProperty({}, componentCls, _defineProperty({
7
+ display: 'flex',
8
+ alignItems: 'center',
9
+ width: '100%',
10
+ marginBottom: '16px'
11
+ }, "".concat(componentCls, "-content"), {
12
+ position: 'relative',
13
+ paddingLeft: '10px',
14
+ color: 'rgba(0, 0, 0, 0.8)',
15
+ fontWeight: 600,
16
+ lineHeight: 1,
17
+ '&::before': {
18
+ position: 'absolute',
19
+ top: 0,
20
+ left: 0,
21
+ width: 4,
22
+ height: '100%',
23
+ background: '#1890ff',
24
+ borderRadius: '0 3px 3px 0',
25
+ content: '""'
26
+ }
27
+ }));
28
+ };
29
+ export default genCompoentStyle([genTitleStyle]);
package/es/Title/title.js CHANGED
@@ -1,11 +1,17 @@
1
1
  /* Analyzed bindings: {
2
2
  "data": "props",
3
3
  "style": "props",
4
- "defineOptions": "setup-const",
5
- "props": "setup-reactive-const"
4
+ "computed": "setup-const",
5
+ "useTitleStyle": "setup-maybe-ref",
6
+ "props": "setup-reactive-const",
7
+ "prefixCls": "setup-ref",
8
+ "wrapSSR": "setup-maybe-ref",
9
+ "hashId": "setup-maybe-ref"
6
10
  } */
7
- import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
11
+ import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
8
12
  const _hoisted_1 = { class: "j-title-content" };
13
+ import { computed } from 'vue';
14
+ import useTitleStyle from './style';
9
15
  const __sfc_main__ = Object.assign({
10
16
  name: 'JTitle'
11
17
  }, {
@@ -21,14 +27,16 @@ const __sfc_main__ = Object.assign({
21
27
  },
22
28
  setup(__props) {
23
29
  const props = __props;
30
+ const prefixCls = computed(() => 'j-title');
31
+ const [wrapSSR, hashId] = useTitleStyle(prefixCls);
24
32
  return (_ctx, _cache) => {
25
33
  return (_openBlock(), _createElementBlock("div", {
26
- class: "j-title",
34
+ class: _normalizeClass(['j-title', _unref(hashId)]),
27
35
  style: _normalizeStyle(__props.style)
28
36
  }, [
29
37
  _createElementVNode("div", _hoisted_1, _toDisplayString(__props.data), 1 /* TEXT */),
30
38
  _renderSlot(_ctx.$slots, "extra")
31
- ], 4 /* STYLE */));
39
+ ], 6 /* CLASS, STYLE */));
32
40
  };
33
41
  }
34
42
  });
@@ -34,6 +34,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
34
34
  "watch": "setup-const",
35
35
  "computed": "setup-const",
36
36
  "componentsType": "setup-maybe-ref",
37
+ "MonacoEditor": "setup-maybe-ref",
37
38
  "Select": "setup-maybe-ref",
38
39
  "DatePicker": "setup-maybe-ref",
39
40
  "TimePicker": "setup-maybe-ref",
@@ -41,6 +42,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
41
42
  "InputNumber": "setup-maybe-ref",
42
43
  "InputPassword": "setup-maybe-ref",
43
44
  "Upload": "setup-maybe-ref",
45
+ "Modal": "setup-maybe-ref",
44
46
  "omit": "setup-maybe-ref",
45
47
  "emit": "setup-const",
46
48
  "props": "setup-reactive-const",
@@ -48,7 +50,9 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
48
50
  "myValue": "setup-ref",
49
51
  "objectValue": "setup-ref",
50
52
  "bindProps": "setup-ref",
51
- "onChange": "setup-const"
53
+ "handleItemModalSubmit": "setup-const",
54
+ "onChange": "setup-const",
55
+ "monacoCancel": "setup-const"
52
56
  } */
53
57
  import { defineComponent as _defineComponent } from 'vue';
54
58
  import { unref as _unref, mergeProps as _mergeProps, openBlock as _openBlock, createBlock as _createBlock, resolveComponent as _resolveComponent, createVNode as _createVNode, withCtx as _withCtx, createElementBlock as _createElementBlock } from "vue";
@@ -103,10 +107,18 @@ const __sfc_main__ = _defineComponent({
103
107
  const bindProps = computed(() => {
104
108
  return Object.assign(omit(props, ['extraProps']), props.extraProps);
105
109
  });
110
+ const handleItemModalSubmit = () => {
111
+ myValue.value = objectValue.value.replace(/[\r\n]\s*/g, '');
112
+ emit('update:modelValue', objectValue.value);
113
+ emit('change', objectValue.value);
114
+ };
106
115
  const onChange = (e) => {
107
116
  emit('update:modelValue', myValue.value);
108
117
  emit('change', e && e.target ? e.target.value : e);
109
118
  };
119
+ const monacoCancel = () => {
120
+ objectValue.value = props.modelValue;
121
+ };
110
122
  const handleFileChange = async (info) => {
111
123
  if (info.file.status === 'done') {
112
124
  let url = _optionalChain([info, 'access', _2 => _2.file, 'access', _3 => _3.response, 'optionalAccess', _4 => _4.result, 'optionalAccess', _5 => _5.accessUrl]);
@@ -182,52 +194,45 @@ const __sfc_main__ = _defineComponent({
182
194
  min: -999999999999999,
183
195
  style: { "width": "100%" }
184
196
  }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
185
- : (_unref(typeMap).get(__props.itemType) === 'object')
197
+ : (_unref(typeMap).get(__props.itemType) === 'file')
186
198
  ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
187
199
  key: 6,
188
200
  value: myValue.value,
189
201
  "onUpdate:value": _cache[7] || (_cache[7] = ($event) => ((myValue).value = $event)),
190
- allowClear: ""
191
- }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
192
- : (_unref(typeMap).get(__props.itemType) === 'file')
193
- ? (_openBlock(), _createBlock(_unref(Input), _mergeProps({
202
+ allowClear: "",
203
+ placeholder: "请输入链接"
204
+ }, bindProps.value, { onChange: onChange }), {
205
+ addonAfter: _withCtx(() => [
206
+ _createVNode(_unref(Upload), {
207
+ action: __props.action,
208
+ headers: __props.headers,
209
+ showUploadList: false,
210
+ name: "file",
211
+ onChange: handleFileChange
212
+ }, {
213
+ default: _withCtx(() => [
214
+ _createVNode(_component_AIcon, { type: "UploadOutlined" })
215
+ ]),
216
+ _: 1 /* STABLE */
217
+ }, 8 /* PROPS */, ["action", "headers"])
218
+ ]),
219
+ _: 1 /* STABLE */
220
+ }, 16 /* FULL_PROPS */, ["value"]))
221
+ : (_unref(typeMap).get(__props.itemType) === 'password')
222
+ ? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
194
223
  key: 7,
195
224
  value: myValue.value,
196
225
  "onUpdate:value": _cache[8] || (_cache[8] = ($event) => ((myValue).value = $event)),
197
226
  allowClear: "",
198
- placeholder: "请输入链接"
199
- }, bindProps.value, { onChange: onChange }), {
200
- addonAfter: _withCtx(() => [
201
- _createVNode(_unref(Upload), {
202
- action: __props.action,
203
- headers: __props.headers,
204
- showUploadList: false,
205
- name: "file",
206
- onChange: handleFileChange
207
- }, {
208
- default: _withCtx(() => [
209
- _createVNode(_component_AIcon, { type: "UploadOutlined" })
210
- ]),
211
- _: 1 /* STABLE */
212
- }, 8 /* PROPS */, ["action", "headers"])
213
- ]),
214
- _: 1 /* STABLE */
215
- }, 16 /* FULL_PROPS */, ["value"]))
216
- : (_unref(typeMap).get(__props.itemType) === 'password')
217
- ? (_openBlock(), _createBlock(_unref(InputPassword), _mergeProps({
218
- key: 8,
219
- value: myValue.value,
220
- "onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
221
- allowClear: "",
222
- type: "password"
223
- }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
224
- : (_openBlock(), _createBlock(_unref(Input), _mergeProps({
225
- key: 9,
226
- value: myValue.value,
227
- "onUpdate:value": _cache[10] || (_cache[10] = ($event) => ((myValue).value = $event)),
228
- allowClear: "",
229
- type: "text"
230
- }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
227
+ type: "password"
228
+ }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
229
+ : (_openBlock(), _createBlock(_unref(Input), _mergeProps({
230
+ key: 8,
231
+ value: myValue.value,
232
+ "onUpdate:value": _cache[9] || (_cache[9] = ($event) => ((myValue).value = $event)),
233
+ allowClear: "",
234
+ type: "text"
235
+ }, bindProps.value, { onChange: onChange }), null, 16 /* FULL_PROPS */, ["value"]))
231
236
  ]));
232
237
  };
233
238
  }
package/es/components.js CHANGED
@@ -1,9 +1,7 @@
1
- export { default as Map } from './AMap';
2
1
  export { default as BadgeStatus } from './BadgeStatus';
3
2
  export { default as CardSelect } from './CardSelect';
4
3
  export { default as CheckButton } from './CheckButton';
5
4
  export { default as ConfigProvider } from './ConfigProvider';
6
- export { default as Echarts } from './Echarts';
7
5
  export { default as Ellipsis } from './Ellipsis';
8
6
  export { default as Empty } from './Empty';
9
7
  export { default as FullPage } from './FullPage';
@@ -19,6 +17,4 @@ export { default as DragModal } from './DragModal';
19
17
  export { default as EditTable } from './EditTable';
20
18
  export { default as Markdown } from './Markdown';
21
19
  export { default as AutoComplete } from './AutoComplete';
22
- export { default as Title } from './Title';
23
- export { default as FlameGraph } from './FlameGraph';
24
- export { default as Skeleton } from './Skeleton';
20
+ export { default as Title } from './Title';
@@ -51,6 +51,9 @@ export default {
51
51
  alert: {
52
52
  cancelChoose: 'Cancel selection',
53
53
  selectItem: 'Select {0} items'
54
+ },
55
+ select: {
56
+ all: 'Select all'
54
57
  }
55
58
  },
56
59
  ProLayout: {
@@ -58,9 +61,6 @@ export default {
58
61
  back: 'Back'
59
62
  }
60
63
  },
61
- AMap: {
62
- description: 'Please configure the Amap key for Gaode'
63
- },
64
64
  EditTable: {
65
65
  serial: 'Serial',
66
66
  columns: {
@@ -114,9 +114,5 @@ export default {
114
114
  },
115
115
  PermissionButton: {
116
116
  hasPermission: 'No permission, please contact the administrator'
117
- },
118
- FlameGraph: {
119
- placeholder: 'Please input',
120
- revert: 'Revert'
121
117
  }
122
118
  };
@@ -51,6 +51,9 @@ export default {
51
51
  alert: {
52
52
  cancelChoose: '取消选择',
53
53
  selectItem: '已选择 {0} 项'
54
+ },
55
+ select: {
56
+ all: '全选'
54
57
  }
55
58
  },
56
59
  ProLayout: {
@@ -58,9 +61,6 @@ export default {
58
61
  back: '返回'
59
62
  }
60
63
  },
61
- AMap: {
62
- description: '请配置高德地图key'
63
- },
64
64
  EditTable: {
65
65
  serial: '序号',
66
66
  columns: {
@@ -114,9 +114,5 @@ export default {
114
114
  },
115
115
  PermissionButton: {
116
116
  hasPermission: '暂无权限,请联系管理员'
117
- },
118
- FlameGraph: {
119
- placeholder: '请输入',
120
- revert: '反转'
121
117
  }
122
118
  };
package/es/style/index.js CHANGED
@@ -1,3 +0,0 @@
1
- import '../ProLayout/style';
2
- import '../ProTable/style';
3
- import '../ProLayout/style';
@@ -0,0 +1,21 @@
1
+ import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
2
+ import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
3
+ import { genComponentStyleHook } from 'ant-design-vue/es/theme/internal';
4
+ import { theme } from 'ant-design-vue';
5
+ import variableToken from './variable';
6
+ var genCompoentStyle = function genCompoentStyle(styleFn) {
7
+ return genComponentStyleHook('jetlinks-components', function (_token) {
8
+ var _theme$useToken = theme.useToken(),
9
+ token = _theme$useToken.token,
10
+ hashId = _theme$useToken.hashId;
11
+ var componentToken = {
12
+ token: _objectSpread(_objectSpread({}, _token), variableToken),
13
+ hashId: hashId.value,
14
+ componentCls: ".".concat(_token.prefixCls)
15
+ };
16
+ return _toConsumableArray(styleFn.map(function (item) {
17
+ return item(componentToken);
18
+ }));
19
+ });
20
+ };
21
+ export default genCompoentStyle;
@@ -0,0 +1,4 @@
1
+ export default {
2
+ textColorTitle: '#000',
3
+ textColorSubtitle: '#263237'
4
+ };
package/es/style.js CHANGED
@@ -1,13 +0,0 @@
1
- import './Ellipsis/style';
2
- import './CheckButton/style';
3
- import './ProLayout/style';
4
- import './ProTable/style';
5
- import './Search/style';
6
- import './CardSelect/style';
7
- import './DragModal/style';
8
- import './EditTable/style';
9
- import './Scrollbar/style';
10
- import './Title/style';
11
- import './RadioButton/style';
12
- import './FlameGraph/style';
13
- import './Skeketon/style';
@@ -19,10 +19,10 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
19
19
  "AutoComplete": "setup-maybe-ref",
20
20
  "autoCompleteProps": "setup-maybe-ref",
21
21
  "ref": "setup-const",
22
- "defineOptions": "setup-const",
22
+ "watch": "setup-const",
23
23
  "props": "setup-reactive-const",
24
24
  "emit": "setup-const",
25
- "options": "setup-ref",
25
+ "_options": "setup-ref",
26
26
  "onSearch": "setup-const",
27
27
  "dropdownVisibleChange": "setup-const"
28
28
  } */
@@ -30,7 +30,7 @@ import { defineComponent as _defineComponent } from 'vue';
30
30
  import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
31
31
  import { AutoComplete } from 'ant-design-vue';
32
32
  import { autoCompleteProps } from 'ant-design-vue/lib/auto-complete';
33
- import { ref, } from 'vue';
33
+ import { ref, watch } from 'vue';
34
34
  const __sfc_main__ = _defineComponent({
35
35
  ...{
36
36
  name: 'JAutoComplete'
@@ -46,29 +46,33 @@ const __sfc_main__ = _defineComponent({
46
46
  setup(__props, { emit: __emit }) {
47
47
  const props = __props;
48
48
  const emit = __emit;
49
- const options = ref(props.options);
49
+ const _options = ref([]);
50
50
  /**
51
51
  * 根据关键词提示
52
52
  * @param searchText 关键词
53
53
  */
54
54
  const onSearch = (searchText) => {
55
- options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
56
- if (!options.value.length) {
57
- options.value.unshift({ label: searchText, value: searchText });
55
+ _options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
56
+ if (!_options.value.length) {
57
+ _options.value.unshift({ label: searchText, value: searchText });
58
58
  }
59
59
  };
60
60
  const dropdownVisibleChange = (open) => {
61
61
  if (!open) {
62
62
  // 关闭还原下拉options
63
63
  setTimeout(() => {
64
- options.value = props.options || [];
64
+ _options.value = props.options || [];
65
65
  });
66
66
  }
67
67
  };
68
+ watch(() => JSON.stringify(props.options), // 处理options变化
69
+ () => {
70
+ _options.value = props.options || [];
71
+ }, { immediate: true });
68
72
  return (_ctx, _cache) => {
69
73
  return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps(props, {
70
74
  style: { "width": "100%" },
71
- options: options.value,
75
+ options: _options.value,
72
76
  onSearch: onSearch,
73
77
  onDropdownVisibleChange: dropdownVisibleChange
74
78
  }), {
@@ -3,7 +3,6 @@
3
3
  "status": "props",
4
4
  "statusNames": "props",
5
5
  "computed": "setup-const",
6
- "defineOptions": "setup-const",
7
6
  "getHexColor": "setup-maybe-ref",
8
7
  "Badge": "setup-maybe-ref",
9
8
  "props": "setup-reactive-const",
@@ -11,7 +10,7 @@
11
10
  } */
12
11
  import { defineComponent as _defineComponent } from 'vue';
13
12
  import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock } from "vue";
14
- import { computed, } from 'vue';
13
+ import { computed } from 'vue';
15
14
  import { getHexColor } from './color';
16
15
  import { Badge } from 'ant-design-vue';
17
16
  const __sfc_main__ = _defineComponent({
@@ -14,9 +14,9 @@ var colorMap = {
14
14
  var getHexColor = exports.getHexColor = function getHexColor(code) {
15
15
  var pe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.1;
16
16
  var _color = colorMap[code] || colorMap.default;
17
- if (code === 'default') {
18
- pe = 0.1;
19
- }
17
+ // if (code === 'default') {
18
+ // pe = 0.1
19
+ // }
20
20
  return "rgba(".concat(_color, ", ").concat(pe, ")");
21
21
  };
22
22
  var _default = exports.default = colorMap;
@@ -10,21 +10,22 @@
10
10
  "computed": "setup-const",
11
11
  "ref": "setup-const",
12
12
  "watch": "setup-const",
13
- "defineOptions": "setup-const",
13
+ "genCompoentStyle": "setup-maybe-ref",
14
14
  "props": "setup-reactive-const",
15
15
  "emit": "setup-const",
16
16
  "selectKeys": "setup-ref",
17
+ "prefixCls": "setup-ref",
18
+ "wrapSSR": "setup-maybe-ref",
19
+ "hashId": "setup-maybe-ref",
17
20
  "CardSelectStyle": "setup-ref",
18
21
  "isMultiple": "setup-ref",
19
22
  "handleSelect": "setup-const"
20
23
  } */
21
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
24
+ import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle } from "vue";
22
25
  const _hoisted_1 = ["onClick"];
23
- const _hoisted_2 = { class: "j-card-select-item-content" };
24
- const _hoisted_3 = { class: "j-card-select-title" };
25
- const _hoisted_4 = { class: "j-card-select-describe" };
26
26
  import { has } from 'lodash-es';
27
- import { computed, ref, watch, } from 'vue';
27
+ import { computed, ref, watch } from 'vue';
28
+ import genCompoentStyle from './style';
28
29
  const __sfc_main__ = Object.assign({
29
30
  name: 'JCardSelect'
30
31
  }, {
@@ -63,6 +64,8 @@ const __sfc_main__ = Object.assign({
63
64
  const props = __props;
64
65
  const emit = __emit;
65
66
  const selectKeys = ref([]);
67
+ const prefixCls = computed(() => 'j-card-select');
68
+ const [wrapSSR, hashId] = genCompoentStyle(prefixCls);
66
69
  const CardSelectStyle = computed(() => {
67
70
  const _column = props.column > 0 && props.layout === 'horizontal' ? props.column : 1;
68
71
  return {
@@ -103,7 +106,7 @@ const __sfc_main__ = Object.assign({
103
106
  }, { immediate: true });
104
107
  return (_ctx, _cache) => {
105
108
  return (_openBlock(), _createElementBlock("div", {
106
- class: "j-card-select",
109
+ class: _normalizeClass(['j-card-select', _unref(hashId)]),
107
110
  style: _normalizeStyle(CardSelectStyle.value)
108
111
  }, [
109
112
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
@@ -111,19 +114,26 @@ const __sfc_main__ = Object.assign({
111
114
  class: _normalizeClass({
112
115
  'j-card-select-item': true,
113
116
  'disabled': __props.disabled || item.disabled,
114
- 'active': selectKeys.value.includes(item.value)
117
+ 'active': selectKeys.value.includes(item.value),
118
+ [_unref(hashId)]: true
115
119
  }),
116
120
  onClick: () => handleSelect(item.value, item)
117
121
  }, [
118
122
  _renderSlot(_ctx.$slots, "itemRender", { node: item }, () => [
119
- _createElementVNode("div", _hoisted_2, [
120
- _createElementVNode("div", _hoisted_3, _toDisplayString(item.label), 1 /* TEXT */),
121
- _createElementVNode("div", _hoisted_4, _toDisplayString(item.describe), 1 /* TEXT */)
122
- ])
123
+ _createElementVNode("div", {
124
+ class: _normalizeClass(['j-card-select-item-content', _unref(hashId)])
125
+ }, [
126
+ _createElementVNode("div", {
127
+ class: _normalizeClass(['j-card-select-title', _unref(hashId)])
128
+ }, _toDisplayString(item.label), 3 /* TEXT, CLASS */),
129
+ _createElementVNode("div", {
130
+ class: _normalizeClass(['j-card-select-describe', _unref(hashId)])
131
+ }, _toDisplayString(item.describe), 3 /* TEXT, CLASS */)
132
+ ], 2 /* CLASS */)
123
133
  ])
124
134
  ], 10 /* CLASS, PROPS */, _hoisted_1));
125
135
  }), 256 /* UNKEYED_FRAGMENT */))
126
- ], 4 /* STYLE */));
136
+ ], 6 /* CLASS, STYLE */));
127
137
  };
128
138
  }
129
139
  });