@jetlinks-web/components 2.6.22 → 2.6.24

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 (101) hide show
  1. package/es/CardSelect/style/index.css +24 -0
  2. package/es/CardSelect/style/index.less +26 -0
  3. package/es/CheckButton/style/index.css +37 -0
  4. package/es/CheckButton/style/index.less +40 -0
  5. package/es/DragModal/style/index.css +82 -0
  6. package/es/DragModal/style/index.less +97 -0
  7. package/es/EditTable/EditTable.js +1 -1
  8. package/es/EditTable/group.js +6 -4
  9. package/es/EditTable/style/body.less +66 -0
  10. package/es/EditTable/style/form.less +33 -0
  11. package/es/EditTable/style/group.less +32 -0
  12. package/es/EditTable/style/header.less +77 -0
  13. package/es/EditTable/style/index.css +267 -0
  14. package/es/EditTable/style/index.less +41 -0
  15. package/es/EditTable/style/menu.less +25 -0
  16. package/es/EditTable/style/table.less +47 -0
  17. package/es/Ellipsis/style/index.css +17 -0
  18. package/es/Ellipsis/style/index.less +20 -0
  19. package/es/FlameGraph/FlameGraph.js +3 -2
  20. package/es/FlameGraph/style/index.css +43 -0
  21. package/es/FlameGraph/style/index.less +52 -0
  22. package/es/MonacoEditor/style/index.css +4 -0
  23. package/es/MonacoEditor/style/index.less +4 -0
  24. package/es/PermissionButton/index.js +4 -4
  25. package/es/ProLayout/Basic/BasicLayout.less +66 -0
  26. package/es/ProLayout/Basic/Header.less +8 -0
  27. package/es/ProLayout/PageContainer/index.less +103 -0
  28. package/es/ProLayout/SiderMenu/BaseMenu.js +4 -4
  29. package/es/ProLayout/SiderMenu/index.less +231 -0
  30. package/es/ProLayout/TopHeader/index.less +174 -0
  31. package/es/ProLayout/style/default.less +4 -0
  32. package/es/ProLayout/style/style.less +7 -0
  33. package/es/ProTable/Content.js +11 -24
  34. package/es/ProTable/hooks/useTableInject.js +5 -0
  35. package/es/ProTable/hooks/useTableSelection.js +95 -0
  36. package/es/ProTable/style/ProTable.less +138 -0
  37. package/es/RadioButton/style/index.css +20 -0
  38. package/es/RadioButton/style/index.less +19 -0
  39. package/es/Scrollbar/style/index.css +65 -0
  40. package/es/Scrollbar/style/index.less +83 -0
  41. package/es/Search/style/Item.less +33 -0
  42. package/es/Search/style/Search.less +179 -0
  43. package/es/Title/style/index.css +23 -0
  44. package/es/Title/style/index.less +25 -0
  45. package/es/style/index.css +5237 -0
  46. package/es/style/variable.css +4 -0
  47. package/es/style/variable.less +4 -0
  48. package/lib/CardSelect/style/index.css +24 -0
  49. package/lib/CardSelect/style/index.less +26 -0
  50. package/lib/CheckButton/style/index.css +37 -0
  51. package/lib/CheckButton/style/index.less +40 -0
  52. package/lib/DragModal/style/index.css +82 -0
  53. package/lib/DragModal/style/index.less +97 -0
  54. package/lib/EditTable/EditTable.js +1 -1
  55. package/lib/EditTable/group.js +6 -4
  56. package/lib/EditTable/style/body.less +66 -0
  57. package/lib/EditTable/style/form.less +33 -0
  58. package/lib/EditTable/style/group.less +32 -0
  59. package/lib/EditTable/style/header.less +77 -0
  60. package/lib/EditTable/style/index.css +267 -0
  61. package/lib/EditTable/style/index.less +41 -0
  62. package/lib/EditTable/style/menu.less +25 -0
  63. package/lib/EditTable/style/table.less +47 -0
  64. package/lib/Ellipsis/style/index.css +17 -0
  65. package/lib/Ellipsis/style/index.less +20 -0
  66. package/lib/FlameGraph/FlameGraph.js +3 -2
  67. package/lib/FlameGraph/style/index.css +43 -0
  68. package/lib/FlameGraph/style/index.less +52 -0
  69. package/lib/Icon/icon.js +1 -2
  70. package/lib/MonacoEditor/style/index.css +4 -0
  71. package/lib/MonacoEditor/style/index.less +4 -0
  72. package/lib/PermissionButton/index.js +4 -4
  73. package/lib/ProLayout/Basic/BasicLayout.js +1 -2
  74. package/lib/ProLayout/Basic/BasicLayout.less +66 -0
  75. package/lib/ProLayout/Basic/Header.less +8 -0
  76. package/lib/ProLayout/PageContainer/index.less +103 -0
  77. package/lib/ProLayout/SiderMenu/BaseMenu.js +4 -4
  78. package/lib/ProLayout/SiderMenu/SiderMenu.js +1 -2
  79. package/lib/ProLayout/SiderMenu/index.less +231 -0
  80. package/lib/ProLayout/TopHeader/index.less +174 -0
  81. package/lib/ProLayout/style/default.less +4 -0
  82. package/lib/ProLayout/style/style.less +7 -0
  83. package/lib/ProTable/Content.js +11 -24
  84. package/lib/ProTable/hooks/useTableInject.js +11 -0
  85. package/lib/ProTable/hooks/useTableSelection.js +102 -0
  86. package/lib/ProTable/style/ProTable.less +138 -0
  87. package/lib/RadioButton/style/index.css +20 -0
  88. package/lib/RadioButton/style/index.less +19 -0
  89. package/lib/Scrollbar/style/index.css +65 -0
  90. package/lib/Scrollbar/style/index.less +83 -0
  91. package/lib/Search/style/Item.less +33 -0
  92. package/lib/Search/style/Search.less +179 -0
  93. package/lib/Title/style/index.css +23 -0
  94. package/lib/Title/style/index.less +25 -0
  95. package/lib/components.js +1 -2
  96. package/lib/index.js +1 -2
  97. package/lib/style/components.less +10 -0
  98. package/lib/style/index.css +5237 -0
  99. package/lib/style/variable.css +4 -0
  100. package/lib/style/variable.less +4 -0
  101. package/package.json +4 -4
@@ -0,0 +1,103 @@
1
+ @import '../style/default.less';
2
+
3
+ @pro-layout-page-container: ~'@{ant-prefix}-pro-page-container';
4
+
5
+ .@{pro-layout-page-container}-children-content {
6
+ margin: 24px 24px 0;
7
+ }
8
+
9
+ .@{pro-layout-page-container} {
10
+ &-warp {
11
+ background-color: @component-background;
12
+ .@{ant-prefix}-tabs-bar {
13
+ margin: 0;
14
+ }
15
+ }
16
+ &-ghost {
17
+ .@{pro-layout-page-container}-warp {
18
+ background-color: @component-background;
19
+ }
20
+ }
21
+ }
22
+
23
+ .@{pro-layout-page-container}-main {
24
+ .@{pro-layout-page-container}-detail {
25
+ display: flex;
26
+ }
27
+
28
+ .@{pro-layout-page-container}-row {
29
+ display: flex;
30
+ width: 100%;
31
+ }
32
+
33
+ .@{pro-layout-page-container}-title-content {
34
+ margin-bottom: 16px;
35
+ }
36
+
37
+ .@{pro-layout-page-container}-title,
38
+ .@{pro-layout-page-container}-content {
39
+ flex: auto;
40
+ }
41
+
42
+ .@{pro-layout-page-container}-extraContent,
43
+ .@{pro-layout-page-container}-main {
44
+ flex: 0 1 auto;
45
+ }
46
+
47
+ .@{pro-layout-page-container}-main {
48
+ width: 100%;
49
+ }
50
+
51
+ .@{pro-layout-page-container}-title {
52
+ margin-bottom: 16px;
53
+ }
54
+
55
+ .@{pro-layout-page-container}-logo {
56
+ margin-bottom: 16px;
57
+ }
58
+
59
+ .@{pro-layout-page-container}-extraContent {
60
+ min-width: 242px;
61
+ margin-left: 88px;
62
+ text-align: right;
63
+ }
64
+ }
65
+
66
+ @media screen and (max-width: @screen-xl) {
67
+ .@{pro-layout-page-container}-main {
68
+ .@{pro-layout-page-container}-extraContent {
69
+ margin-left: 44px;
70
+ }
71
+ }
72
+ }
73
+
74
+ @media screen and (max-width: @screen-lg) {
75
+ .@{pro-layout-page-container}-main {
76
+ .@{pro-layout-page-container}-extraContent {
77
+ margin-left: 20px;
78
+ }
79
+ }
80
+ }
81
+
82
+ @media screen and (max-width: @screen-md) {
83
+ .@{pro-layout-page-container}-main {
84
+ .@{pro-layout-page-container}-row {
85
+ display: block;
86
+ }
87
+
88
+ .@{pro-layout-page-container}-action,
89
+ .@{pro-layout-page-container}-extraContent {
90
+ margin-left: 0;
91
+ text-align: left;
92
+ }
93
+ }
94
+ }
95
+
96
+ @media screen and (max-width: @screen-sm) {
97
+ .@{pro-layout-page-container}-detail {
98
+ display: block;
99
+ }
100
+ .@{pro-layout-page-container}-extraContent {
101
+ margin-left: 0;
102
+ }
103
+ }
@@ -174,7 +174,7 @@ var MenuUtil = /*#__PURE__*/(0, _createClass2.default)(function MenuUtil(_props,
174
174
  });
175
175
  });
176
176
  (0, _defineProperty2.default)(this, "getMenuItem", function (item) {
177
- var _item$meta9, _item$meta10, _item$meta11, _item$meta12, _item$meta13;
177
+ var _item$meta9, _item$meta0, _item$meta1, _item$meta10, _item$meta11;
178
178
  var meta = (0, _objectSpread2.default)({}, item.meta);
179
179
  var target = meta.target || null;
180
180
  var hasUrl = _utils.regular.isUrl(item.path);
@@ -193,10 +193,10 @@ var MenuUtil = /*#__PURE__*/(0, _createClass2.default)(function MenuUtil(_props,
193
193
  locale = _this$props2.locale;
194
194
  var icon = ((_item$meta9 = item.meta) === null || _item$meta9 === void 0 ? void 0 : _item$meta9.icon) && (0, _vue.createVNode)(LazyIcon, {
195
195
  "iconUrl": _this.props.iconfontUrl,
196
- "icon": (_item$meta10 = item.meta) === null || _item$meta10 === void 0 ? void 0 : _item$meta10.icon
196
+ "icon": (_item$meta0 = item.meta) === null || _item$meta0 === void 0 ? void 0 : _item$meta0.icon
197
197
  }, null) || undefined;
198
- var menuTitle = locale && locale((_item$meta11 = item.meta) === null || _item$meta11 === void 0 ? void 0 : _item$meta11.title) || ((_item$meta12 = item.meta) === null || _item$meta12 === void 0 ? void 0 : _item$meta12.title);
199
- var defaultTitle = (_item$meta13 = item.meta) !== null && _item$meta13 !== void 0 && _item$meta13.icon ? (0, _vue.createVNode)(CustomTag, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, attrs), props), {}, {
198
+ var menuTitle = locale && locale((_item$meta1 = item.meta) === null || _item$meta1 === void 0 ? void 0 : _item$meta1.title) || ((_item$meta10 = item.meta) === null || _item$meta10 === void 0 ? void 0 : _item$meta10.title);
199
+ var defaultTitle = (_item$meta11 = item.meta) !== null && _item$meta11 !== void 0 && _item$meta11.icon ? (0, _vue.createVNode)(CustomTag, (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, attrs), props), {}, {
200
200
  "class": "".concat(prefixCls, "-menu-item")
201
201
  }), {
202
202
  default: function _default() {
@@ -17,8 +17,7 @@ var _vueTypes = _interopRequireDefault(require("ant-design-vue/lib/_util/vue-typ
17
17
  var _Icon = _interopRequireDefault(require("../../Icon"));
18
18
  var _RouteContext = require("../RouteContext");
19
19
  require("../typings");
20
- function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
21
- function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != _typeof(e) && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
20
+ function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, default: e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
22
21
  var siderMenuProps = exports.siderMenuProps = (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, _defaultSettings.defaultSettingProps), _BaseMenu.baseMenuProps), {}, {
23
22
  logo: {
24
23
  type: [Object, String, Function],
@@ -0,0 +1,231 @@
1
+ @import '../style/default.less';
2
+
3
+ @pro-layout-sider-menu-prefix-cls: ~'@{ant-prefix}-pro-sider';
4
+
5
+ @nav-header-height: @pro-layout-header-height;
6
+
7
+ .@{pro-layout-sider-menu-prefix-cls} {
8
+ position: relative;
9
+ background-color: @layout-sider-background;
10
+ border-right: 0;
11
+ // FIXME: 临时修正(可能不会做兼容)
12
+ z-index: 20;
13
+
14
+ // 这里关掉了动画,不然使用无法兼容
15
+ .@{ant-prefix}-menu {
16
+ background: transparent;
17
+ }
18
+
19
+ &.@{ant-prefix}-layout-sider-light {
20
+ .@{ant-prefix}-menu-item a {
21
+ color: @heading-color;
22
+ }
23
+ .@{ant-prefix}-menu-item-selected a,
24
+ .@{ant-prefix}-menu-item a:hover {
25
+ color: @primary-color;
26
+ }
27
+ }
28
+
29
+ &-logo {
30
+ position: relative;
31
+ display: flex;
32
+ align-items: center;
33
+ padding: 16px 16px;
34
+ cursor: pointer;
35
+ transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
36
+
37
+ > a {
38
+ display: flex;
39
+ align-items: center;
40
+ justify-content: center;
41
+ min-height: 32px;
42
+ }
43
+
44
+ img {
45
+ display: inline-block;
46
+ height: 32px;
47
+ vertical-align: middle;
48
+ }
49
+
50
+ h1 {
51
+ display: inline-block;
52
+ height: 32px;
53
+ margin: 0 0 0 12px;
54
+ color: white;
55
+ font-weight: 600;
56
+ font-size: 18px;
57
+ line-height: 32px;
58
+ vertical-align: middle;
59
+ animation: pro-layout-title-hide 0.3s;
60
+ }
61
+ }
62
+
63
+ &-logo-card {
64
+ padding: 16px 0;
65
+ justify-content: center;
66
+ }
67
+
68
+ &-extra {
69
+ margin-bottom: 16px;
70
+ padding: 0 16px;
71
+ &-no-logo {
72
+ margin-top: 16px;
73
+ }
74
+ }
75
+
76
+ &-menu {
77
+ position: relative;
78
+ z-index: 10;
79
+ min-height: 100%;
80
+ box-shadow: 2px 0 6px rgba(0, 21, 41, 0.35);
81
+ }
82
+
83
+ .@{ant-prefix}-layout-sider-children {
84
+ display: flex;
85
+ flex-direction: column;
86
+ height: 100%;
87
+
88
+ ::-webkit-scrollbar {
89
+ width: 6px;
90
+ height: 6px;
91
+ }
92
+
93
+ ::-webkit-scrollbar-track {
94
+ background: rgba(255, 255, 255, 0.15);
95
+ border-radius: 3px;
96
+ box-shadow: inset 0 0 5px rgba(37, 37, 37, 0.05);
97
+ }
98
+
99
+ /* 滚动条滑块 */
100
+ ::-webkit-scrollbar-thumb {
101
+ background: rgba(255, 255, 255, 0.2);
102
+ border-radius: 3px;
103
+ box-shadow: inset 0 0 5px rgba(255, 255, 255, 0.05);
104
+ }
105
+ }
106
+
107
+ &.@{ant-prefix}-layout-sider-collapsed {
108
+ .@{ant-prefix}-menu-inline-collapsed {
109
+ width: 48px;
110
+ }
111
+ .@{pro-layout-sider-menu-prefix-cls} {
112
+ &-logo {
113
+ padding: 16px 8px;
114
+ }
115
+ }
116
+ }
117
+
118
+ &.@{ant-prefix}-layout-sider.@{pro-layout-sider-menu-prefix-cls}-fixed {
119
+ position: fixed;
120
+ top: 0;
121
+ left: 0;
122
+ z-index: 99; // react pro-components: z-index: 100;
123
+ height: 100%;
124
+ overflow: auto;
125
+ overflow-x: hidden;
126
+ box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
127
+ > .@{ant-prefix}-menu-root {
128
+ :not(.@{pro-layout-sider-menu-prefix-cls}-link-menu) {
129
+ height: ~'calc(100vh - @{nav-header-height})';
130
+ overflow-y: auto;
131
+ }
132
+ }
133
+ }
134
+
135
+ &-light {
136
+ background-color: @component-background;
137
+ box-shadow: 2px 0 8px 0 rgba(29, 35, 41, 0.05);
138
+
139
+ .@{ant-prefix}-layout-sider-children {
140
+ ::-webkit-scrollbar-track {
141
+ background: rgba(0, 0, 0, 0.06);
142
+ border-radius: 3px;
143
+ box-shadow: inset 0 0 5px rgba(0, 21, 41, 0.05);
144
+ }
145
+
146
+ /* 滚动条滑块 */
147
+ ::-webkit-scrollbar-thumb {
148
+ background: rgba(0, 0, 0, 0.12);
149
+ border-radius: 3px;
150
+ box-shadow: inset 0 0 5px rgba(0, 21, 41, 0.05);
151
+ }
152
+ }
153
+
154
+ .@{pro-layout-sider-menu-prefix-cls}-logo {
155
+ h1 {
156
+ color: @primary-color;
157
+ }
158
+ }
159
+ .@{ant-prefix}-menu-light {
160
+ border-right-color: transparent;
161
+ }
162
+
163
+ .@{pro-layout-sider-menu-prefix-cls}-collapsed-button {
164
+ border-top: @border-width-base @border-style-base
165
+ @border-color-split;
166
+ }
167
+ }
168
+
169
+ &-icon {
170
+ width: 14px;
171
+ vertical-align: baseline;
172
+ }
173
+
174
+ &-links {
175
+ width: 100%;
176
+ ul.@{ant-prefix}-menu-root {
177
+ height: auto;
178
+ }
179
+ }
180
+
181
+ &-collapsed-button {
182
+ border-top: @border-width-base @border-style-base rgba(0, 0, 0, 0.25);
183
+ .anticon {
184
+ font-size: 16px;
185
+ }
186
+ }
187
+
188
+ .top-nav-menu li.@{ant-prefix}-menu-item {
189
+ height: 100%;
190
+ line-height: 1;
191
+ }
192
+ .drawer .drawer-content {
193
+ background: @layout-sider-background;
194
+ }
195
+ }
196
+
197
+ // 修正菜单 collapsed 时,icon 与 title 的间距
198
+ .@{ant-prefix}-pro-menu-item {
199
+ .anticon + .@{ant-prefix}-pro-menu-item-title {
200
+ margin-left: 10px;
201
+ }
202
+ }
203
+
204
+ .sider-app-menus {
205
+ width: 100px;
206
+ background-color: #fff;
207
+ cursor: pointer;
208
+ padding: 6px;
209
+ transition: all .3s;
210
+ border-radius: 4px;
211
+ color: #333;
212
+
213
+ &:hover {
214
+ background-color: #efefef;
215
+ }
216
+ }
217
+
218
+ @keyframes pro-layout-title-hide {
219
+ 0% {
220
+ display: none;
221
+ opacity: 0;
222
+ }
223
+ 80% {
224
+ display: none;
225
+ opacity: 0;
226
+ }
227
+ 100% {
228
+ display: unset;
229
+ opacity: 1;
230
+ }
231
+ }
@@ -0,0 +1,174 @@
1
+ @import '../style/default.less';
2
+
3
+ @top-nav-header-prefix-cls: ~'@{ant-prefix}-pro-top-nav-header';
4
+ @pro-layout-global-header-prefix-cls: ~'@{ant-prefix}-pro-global-header';
5
+
6
+ @pro-layout-header-bg: @component-background;
7
+ @pro-layout-header-hover-bg: @component-background;
8
+ @pro-layout-header-box-shadow: 0 1px 4px rgba(0, 21, 41, 0.08);
9
+
10
+ .@{pro-layout-global-header-prefix-cls} {
11
+ position: relative;
12
+ display: flex;
13
+ align-items: center;
14
+ height: 100%;
15
+ padding: 0 16px;
16
+ background: @pro-layout-header-bg;
17
+ box-shadow: @pro-layout-header-box-shadow;
18
+ > * {
19
+ height: 100%;
20
+ }
21
+
22
+ &-collapsed-button {
23
+ display: flex;
24
+ align-items: center;
25
+ margin-left: 16px;
26
+ font-size: 20px;
27
+ }
28
+
29
+ &-layout {
30
+ &-mix {
31
+ background-color: @layout-sider-background;
32
+ .@{pro-layout-global-header-prefix-cls}-logo {
33
+ h1 {
34
+ color: @btn-primary-color;
35
+ }
36
+ }
37
+ .anticon {
38
+ color: @btn-primary-color;
39
+ }
40
+ }
41
+ }
42
+
43
+ &-logo {
44
+ position: relative;
45
+ overflow: hidden;
46
+ a {
47
+ display: flex;
48
+ align-items: center;
49
+ height: 100%;
50
+ img {
51
+ height: 28px;
52
+ }
53
+ h1 {
54
+ height: 32px;
55
+ margin: 0 0 0 8px;
56
+ margin: 0 0 0 12px;
57
+ color: @primary-color;
58
+ font-weight: 600;
59
+ font-size: 18px;
60
+ line-height: 32px;
61
+ }
62
+ }
63
+ }
64
+
65
+ &-menu {
66
+ .anticon {
67
+ margin-right: 8px;
68
+ }
69
+ .@{ant-prefix}-dropdown-menu-item {
70
+ min-width: 160px;
71
+ }
72
+ }
73
+
74
+ .dark {
75
+ height: @pro-layout-header-height;
76
+ .action {
77
+ color: rgba(255, 255, 255, 0.85);
78
+ > i {
79
+ color: rgba(255, 255, 255, 0.85);
80
+ }
81
+ &:hover,
82
+ &.opened {
83
+ background: @primary-color;
84
+ }
85
+ .@{ant-prefix}-badge {
86
+ color: rgba(255, 255, 255, 0.85);
87
+ }
88
+ }
89
+ }
90
+ }
91
+
92
+ .@{top-nav-header-prefix-cls} {
93
+ position: relative;
94
+ width: 100%;
95
+ height: 100%;
96
+ box-shadow: 0 1px 4px 0 rgba(0, 21, 41, 0.12);
97
+ transition: background 0.3s, width 0.2s;
98
+
99
+ .@{ant-prefix}-menu {
100
+ background: transparent;
101
+ }
102
+
103
+ &.light {
104
+ background-color: @component-background;
105
+ .@{top-nav-header-prefix-cls}-logo {
106
+ h1 {
107
+ color: @heading-color;
108
+ }
109
+ }
110
+ .anticon {
111
+ color: inherit;
112
+ }
113
+ }
114
+
115
+ &-main {
116
+ display: flex;
117
+ height: 100%;
118
+ padding-left: 16px;
119
+ &-left {
120
+ display: flex;
121
+ min-width: 192px;
122
+ }
123
+ }
124
+
125
+ .anticon {
126
+ color: @btn-primary-color;
127
+ }
128
+
129
+ &-logo {
130
+ position: relative;
131
+ min-width: 165px;
132
+ height: 100%;
133
+ overflow: hidden;
134
+
135
+ img {
136
+ display: inline-block;
137
+ height: 32px;
138
+ vertical-align: middle;
139
+ }
140
+
141
+ h1 {
142
+ display: inline-block;
143
+ margin: 0 0 0 12px;
144
+ color: @btn-primary-color;
145
+ font-weight: 600;
146
+ font-size: 16px;
147
+ vertical-align: top;
148
+ }
149
+ }
150
+
151
+ &-menu {
152
+ min-width: 0;
153
+
154
+ .@{ant-prefix}-menu.@{ant-prefix}-menu-horizontal {
155
+ height: 100%;
156
+ border: none;
157
+
158
+ .@{ant-prefix}-menu-item {
159
+ height: 100%;
160
+
161
+ .@{ant-prefix}-badge {
162
+ color: unset;
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+
169
+ // replace sub.item
170
+ .@{ant-prefix}-pro-menu-popup {
171
+ .@{ant-prefix}-badge {
172
+ color: unset;
173
+ }
174
+ }
@@ -0,0 +1,4 @@
1
+ @import 'ant-design-vue/lib/style/themes/index.less';
2
+
3
+ @basicLayout-prefix-cls: ~'@{ant-prefix}-pro-basicLayout';
4
+ @pro-layout-header-height: 48px;
@@ -0,0 +1,7 @@
1
+ @import './default.less';
2
+
3
+ @import '../Basic/BasicLayout.less';
4
+ @import '../Basic/Header.less';
5
+ @import '../PageContainer/index.less';
6
+ @import '../SiderMenu/index.less';
7
+ @import '../TopHeader/index.less';
@@ -23,15 +23,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
23
23
  "get": "setup-maybe-ref",
24
24
  "omit": "setup-maybe-ref",
25
25
  "Empty": "setup-maybe-ref",
26
- "useTableInject": "setup-maybe-ref",
27
26
  "props": "setup-reactive-const",
28
27
  "slots": "setup-maybe-ref",
29
- "_rowSelection": "setup-maybe-ref",
30
28
  "_columns": "setup-ref",
31
29
  "_slots": "setup-ref",
32
30
  "_scroll": "setup-ref",
33
- "gridTemplateColumns": "setup-ref",
34
- "onClick": "setup-const"
31
+ "gridTemplateColumns": "setup-ref"
35
32
  } */
36
33
  import { defineComponent as _defineComponent } from 'vue';
37
34
  import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, mergeProps as _mergeProps, renderSlot as _renderSlot, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createCommentVNode as _createCommentVNode, unref as _unref, createVNode as _createVNode, normalizeProps as _normalizeProps, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createSlots as _createSlots, createBlock as _createBlock } from "vue";
@@ -40,8 +37,7 @@ const _hoisted_2 = {
40
37
  key: 0,
41
38
  class: "jtable-card"
42
39
  };
43
- const _hoisted_3 = ["onClick"];
44
- const _hoisted_4 = {
40
+ const _hoisted_3 = {
45
41
  key: 1,
46
42
  class: "j-table-empty"
47
43
  };
@@ -50,7 +46,6 @@ import { _contentProps } from "./setting";
50
46
  import { Table } from 'ant-design-vue/lib/';
51
47
  import { get, omit } from 'lodash-es';
52
48
  import Empty from '../Empty';
53
- import { useTableInject } from './hooks';
54
49
  const __sfc_main__ = _defineComponent({
55
50
  ...{
56
51
  name: 'Content'
@@ -65,7 +60,6 @@ const __sfc_main__ = _defineComponent({
65
60
  setup(__props) {
66
61
  const props = __props;
67
62
  const slots = useSlots();
68
- const _rowSelection = useTableInject();
69
63
  const _columns = computed(() => props.columns.filter((i) => !_optionalChain([i, 'optionalAccess', _2 => _2.hideInTable])));
70
64
  const _slots = computed(() => {
71
65
  return omit(slots, ['emptyText', 'bodyCell']);
@@ -85,12 +79,6 @@ const __sfc_main__ = _defineComponent({
85
79
  const gridTemplateColumns = computed(() => {
86
80
  return `repeat(${props.column}, 1fr)`;
87
81
  });
88
- const onClick = (item) => {
89
- if (_rowSelection && _rowSelection.value) {
90
- const _selected = _optionalChain([_rowSelection, 'access', _3 => _3.value, 'access', _4 => _4.selectedRowKeys, 'optionalAccess', _5 => _5.includes, 'call', _6 => _6(item[props.rowKey])]);
91
- _optionalChain([_rowSelection, 'access', _7 => _7.value, 'access', _8 => _8.onSelect, 'optionalCall', _9 => _9(item, !_selected)]);
92
- }
93
- };
94
82
  return (_ctx, _cache) => {
95
83
  return (_openBlock(), _createElementBlock("div", _hoisted_1, [
96
84
  (_ctx.mode === 'CARD')
@@ -104,35 +92,34 @@ const __sfc_main__ = _defineComponent({
104
92
  (_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_ctx.dataSource, (item) => {
105
93
  return (_openBlock(), _createElementBlock("div", {
106
94
  class: _normalizeClass(['jtable-card-item', props.cardBodyClass]),
107
- key: item[props.rowKey],
108
- onClick: ($event) => (onClick(item))
95
+ key: item[props.rowKey]
109
96
  }, [
110
97
  _renderSlot(_ctx.$slots, "card", _mergeProps({ ref_for: true }, item))
111
- ], 10 /* CLASS, PROPS */, _hoisted_3));
98
+ ], 2 /* CLASS */));
112
99
  }), 128 /* KEYED_FRAGMENT */))
113
100
  ], 4 /* STYLE */))
114
- : (_openBlock(), _createElementBlock("div", _hoisted_4, [
101
+ : (_openBlock(), _createElementBlock("div", _hoisted_3, [
115
102
  _renderSlot(_ctx.$slots, "emptyText", {}, () => [
116
103
  _createVNode(_unref(Empty))
117
104
  ])
118
105
  ]))
119
106
  ]))
120
107
  : (_openBlock(), _createBlock(_unref(Table), _mergeProps({ key: 1 }, props, {
121
- "row-selection": _ctx.rowSelection || _unref(_rowSelection),
108
+ "row-selection": _ctx.rowSelection,
122
109
  dataSource: _ctx.dataSource,
123
110
  columns: _columns.value,
124
111
  pagination: false,
125
112
  scroll: _scroll.value,
126
- class: { 'j-table-scroll': !_optionalChain([props, 'access', _10 => _10.scroll, 'optionalAccess', _11 => _11.y]) }
113
+ class: { 'j-table-scroll': !_optionalChain([props, 'access', _3 => _3.scroll, 'optionalAccess', _4 => _4.y]) }
127
114
  }), _createSlots({
128
115
  bodyCell: _withCtx(({ column, record, index }) => [
129
- ((_optionalChain([column, 'optionalAccess', _12 => _12.key]) || _optionalChain([column, 'optionalAccess', _13 => _13.dataIndex])) && _optionalChain([column, 'optionalAccess', _14 => _14.scopedSlots]) && (_optionalChain([_slots, 'access', _15 => _15.value, 'optionalAccess', _16 => _16[_optionalChain([column, 'optionalAccess', _17 => _17.dataIndex])]]) || _optionalChain([_slots, 'access', _18 => _18.value, 'optionalAccess', _19 => _19[_optionalChain([column, 'optionalAccess', _20 => _20.key])]])))
130
- ? _renderSlot(_ctx.$slots, _optionalChain([column, 'optionalAccess', _21 => _21.key]) || _optionalChain([column, 'optionalAccess', _22 => _22.dataIndex]), _mergeProps({ key: 0 }, record, {
116
+ ((_optionalChain([column, 'optionalAccess', _5 => _5.key]) || _optionalChain([column, 'optionalAccess', _6 => _6.dataIndex])) && _optionalChain([column, 'optionalAccess', _7 => _7.scopedSlots]) && (_optionalChain([_slots, 'access', _8 => _8.value, 'optionalAccess', _9 => _9[_optionalChain([column, 'optionalAccess', _10 => _10.dataIndex])]]) || _optionalChain([_slots, 'access', _11 => _11.value, 'optionalAccess', _12 => _12[_optionalChain([column, 'optionalAccess', _13 => _13.key])]])))
117
+ ? _renderSlot(_ctx.$slots, _optionalChain([column, 'optionalAccess', _14 => _14.key]) || _optionalChain([column, 'optionalAccess', _15 => _15.dataIndex]), _mergeProps({ key: 0 }, record, {
131
118
  index: index,
132
119
  column: column
133
120
  }))
134
121
  : (_openBlock(), _createElementBlock(_Fragment, { key: 1 }, [
135
- _createTextVNode(_toDisplayString(_unref(get)(record, _optionalChain([column, 'optionalAccess', _23 => _23.dataIndex]) || _optionalChain([column, 'optionalAccess', _24 => _24.key])) || '--'), 1 /* TEXT */)
122
+ _createTextVNode(_toDisplayString(_unref(get)(record, _optionalChain([column, 'optionalAccess', _16 => _16.dataIndex]) || _optionalChain([column, 'optionalAccess', _17 => _17.key])) || '--'), 1 /* TEXT */)
136
123
  ], 64 /* STABLE_FRAGMENT */))
137
124
  ]),
138
125
  emptyText: _withCtx(() => [
@@ -146,7 +133,7 @@ const __sfc_main__ = _defineComponent({
146
133
  return {
147
134
  name: slotKey,
148
135
  fn: _withCtx((slotProps) => [
149
- (!((_optionalChain([__props, 'access', _25 => _25.column, 'optionalAccess', _26 => _26.key]) || _optionalChain([__props, 'access', _27 => _27.column, 'optionalAccess', _28 => _28.dataIndex])) && _optionalChain([__props, 'access', _29 => _29.column, 'optionalAccess', _30 => _30.scopedSlots]) && (_optionalChain([_slots, 'access', _31 => _31.value, 'optionalAccess', _32 => _32[_optionalChain([__props, 'access', _33 => _33.column, 'optionalAccess', _34 => _34.dataIndex])]]) || _optionalChain([_slots, 'access', _35 => _35.value, 'optionalAccess', _36 => _36[_optionalChain([__props, 'access', _37 => _37.column, 'optionalAccess', _38 => _38.key])]]))))
136
+ (!((_optionalChain([__props, 'access', _18 => _18.column, 'optionalAccess', _19 => _19.key]) || _optionalChain([__props, 'access', _20 => _20.column, 'optionalAccess', _21 => _21.dataIndex])) && _optionalChain([__props, 'access', _22 => _22.column, 'optionalAccess', _23 => _23.scopedSlots]) && (_optionalChain([_slots, 'access', _24 => _24.value, 'optionalAccess', _25 => _25[_optionalChain([__props, 'access', _26 => _26.column, 'optionalAccess', _27 => _27.dataIndex])]]) || _optionalChain([_slots, 'access', _28 => _28.value, 'optionalAccess', _29 => _29[_optionalChain([__props, 'access', _30 => _30.column, 'optionalAccess', _31 => _31.key])]]))))
150
137
  ? _renderSlot(_ctx.$slots, slotKey, _normalizeProps(_mergeProps({ key: 0 }, slotProps)))
151
138
  : _createCommentVNode("v-if", true)
152
139
  ])
@@ -0,0 +1,11 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.useTableInject = void 0;
7
+ var _useTableSelection = require("./useTableSelection");
8
+ var _vue = require("vue");
9
+ var useTableInject = exports.useTableInject = function useTableInject() {
10
+ return (0, _vue.inject)(_useTableSelection.PROTABLE_ROW_SELECTION_KEY, null);
11
+ };