@jetlinks-web/components 2.0.3 → 2.0.4-10

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 (88) hide show
  1. package/es/AMap/Map.js +5 -1
  2. package/es/AMap/index.js +3 -0
  3. package/es/BadgeStatus/Badge.js +3 -0
  4. package/es/BadgeStatus/index.js +3 -0
  5. package/es/CardSelect/CardSelect.js +4 -2
  6. package/es/CardSelect/index.js +3 -0
  7. package/es/CheckButton/CheckButton.js +4 -2
  8. package/es/CheckButton/index.js +3 -0
  9. package/es/CheckButton/style/index.css +37 -0
  10. package/es/CheckButton/style/index.less +40 -0
  11. package/es/ConfigProvider/index.js +3 -0
  12. package/es/Echarts/Echarts.js +3 -0
  13. package/es/Echarts/index.js +3 -0
  14. package/es/Ellipsis/Ellipsis.js +26 -23
  15. package/es/Ellipsis/index.js +3 -0
  16. package/es/Ellipsis/style/index.css +17 -0
  17. package/es/Ellipsis/style/index.less +20 -0
  18. package/es/Empty/Empty.js +3 -0
  19. package/es/Empty/index.js +3 -0
  20. package/es/FullPage/FullPage.js +4 -1
  21. package/es/FullPage/index.js +3 -0
  22. package/es/Icon/index.js +3 -0
  23. package/es/MonacoEditor/Monaco.js +4 -2
  24. package/es/MonacoEditor/index.js +3 -0
  25. package/es/PermissionButton/index.js +4 -1
  26. package/es/ProLayout/index.js +3 -0
  27. package/es/ProLayout/style/default.less +4 -4
  28. package/es/ProTable/index.js +4 -1
  29. package/es/ProTable/style/index.less +92 -92
  30. package/es/Scrollbar/index.js +3 -0
  31. package/es/Search/Advanced/SaveHistory.js +1 -1
  32. package/es/Search/Advanced/index.js +3 -0
  33. package/es/Search/Item.js +1 -1
  34. package/es/Search/Search.js +4 -1
  35. package/es/Search/index.js +3 -0
  36. package/es/ValueItem/ValueItem.js +3 -0
  37. package/es/ValueItem/index.js +3 -0
  38. package/es/components.js +17 -0
  39. package/es/index.js +13 -22
  40. package/es/style/index.css +287 -0
  41. package/es/style/index.less +6 -0
  42. package/es/style/variable.less +2 -2
  43. package/es/style.js +2 -0
  44. package/lib/AMap/Map.js +5 -1
  45. package/lib/AMap/index.js +3 -0
  46. package/lib/BadgeStatus/Badge.js +3 -0
  47. package/lib/BadgeStatus/index.js +3 -0
  48. package/lib/CardSelect/CardSelect.js +4 -2
  49. package/lib/CardSelect/index.js +3 -0
  50. package/lib/CheckButton/CheckButton.js +4 -2
  51. package/lib/CheckButton/index.js +3 -0
  52. package/lib/CheckButton/style/index.css +37 -0
  53. package/lib/CheckButton/style/index.less +40 -0
  54. package/lib/ConfigProvider/index.js +3 -0
  55. package/lib/Echarts/Echarts.js +3 -0
  56. package/lib/Echarts/index.js +3 -0
  57. package/lib/Ellipsis/Ellipsis.js +26 -23
  58. package/lib/Ellipsis/index.js +3 -0
  59. package/lib/Ellipsis/style/index.css +17 -0
  60. package/lib/Ellipsis/style/index.less +20 -0
  61. package/lib/Empty/Empty.js +3 -0
  62. package/lib/Empty/index.js +3 -0
  63. package/lib/FullPage/FullPage.js +4 -1
  64. package/lib/FullPage/index.js +3 -0
  65. package/lib/Icon/index.js +3 -0
  66. package/lib/MonacoEditor/Monaco.js +4 -2
  67. package/lib/MonacoEditor/index.js +3 -0
  68. package/lib/PermissionButton/index.js +4 -1
  69. package/lib/ProLayout/index.js +3 -0
  70. package/lib/ProLayout/style/default.less +4 -4
  71. package/lib/ProTable/index.js +4 -1
  72. package/lib/ProTable/style/index.less +92 -92
  73. package/lib/Scrollbar/index.js +3 -0
  74. package/lib/Search/Advanced/SaveHistory.js +1 -1
  75. package/lib/Search/Advanced/index.js +3 -0
  76. package/lib/Search/Item.js +1 -1
  77. package/lib/Search/Search.js +4 -1
  78. package/lib/Search/index.js +3 -0
  79. package/lib/ValueItem/ValueItem.js +3 -0
  80. package/lib/ValueItem/index.js +3 -0
  81. package/lib/components.js +134 -0
  82. package/lib/index.js +18 -138
  83. package/lib/style/components.less +2 -0
  84. package/lib/style/index.css +287 -0
  85. package/lib/style/index.less +6 -0
  86. package/lib/style/variable.less +2 -2
  87. package/lib/style.js +2 -0
  88. package/package.json +8 -9
package/es/AMap/Map.js CHANGED
@@ -9,6 +9,7 @@
9
9
  "WebKey": "props",
10
10
  "ref": "setup-const",
11
11
  "computed": "setup-const",
12
+ "inject": "setup-const",
12
13
  "initAMapApiLoader": "setup-maybe-ref",
13
14
  "ElAmap": "setup-maybe-ref",
14
15
  "getAMapUiPromise": "setup-maybe-ref",
@@ -28,7 +29,7 @@
28
29
  } */
29
30
  import { defineComponent as _defineComponent } from 'vue';
30
31
  import { renderSlot as _renderSlot, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, createElementBlock as _createElementBlock } from "vue";
31
- import { ref, computed } from 'vue';
32
+ import { ref, computed, inject } from 'vue';
32
33
  import { initAMapApiLoader, ElAmap } from '@vuemap/vue-amap';
33
34
  import { getAMapUiPromise } from '@jetlinks-web/utils';
34
35
  import { MapProps } from './util';
@@ -36,6 +37,9 @@ import { MAPConfig } from "@jetlinks-web/constants";
36
37
  import Empty from '../Empty';
37
38
  import '@vuemap/vue-amap/dist/style.css';
38
39
  const __sfc_main__ = _defineComponent({
40
+ ...{
41
+ name: 'JAMap'
42
+ },
39
43
  props: {
40
44
  ...MapProps(),
41
45
  style: Object,
package/es/AMap/index.js CHANGED
@@ -1,2 +1,5 @@
1
1
  import Map from './Map.js';
2
+ Map.install = function (app) {
3
+ app.component(Map.name, Map);
4
+ };
2
5
  export default Map;
@@ -12,6 +12,9 @@ import { resolveComponent as _resolveComponent, openBlock as _openBlock, createB
12
12
  import { computed } from 'vue';
13
13
  import { getHexColor } from './color';
14
14
  const __sfc_main__ = _defineComponent({
15
+ ...{
16
+ name: 'JBadgeStatus'
17
+ },
15
18
  props: {
16
19
  text: {
17
20
  type: String,
@@ -1,3 +1,6 @@
1
1
  import BadgeStatus from './Badge.js';
2
+ BadgeStatus.install = function (app) {
3
+ app.component(BadgeStatus.name, BadgeStatus);
4
+ };
2
5
  export * from './color';
3
6
  export default BadgeStatus;
@@ -20,7 +20,9 @@ const _hoisted_2 = { class: "j-card-select-item-content" };
20
20
  const _hoisted_3 = { class: "j-card-select-title" };
21
21
  const _hoisted_4 = { class: "j-card-select-describe" };
22
22
  import { has } from 'lodash-es';
23
- const __sfc_main__ = {
23
+ const __sfc_main__ = Object.assign({
24
+ name: 'JCardSelect'
25
+ }, {
24
26
  props: {
25
27
  layout: {
26
28
  type: String,
@@ -119,5 +121,5 @@ const __sfc_main__ = {
119
121
  ], 4 /* STYLE */));
120
122
  };
121
123
  }
122
- };
124
+ });
123
125
  export default __sfc_main__;
@@ -1,2 +1,5 @@
1
1
  import CardSelect from "./CardSelect.js";
2
+ CardSelect.install = function (app) {
3
+ app.component(CardSelect.name, CardSelect);
4
+ };
2
5
  export default CardSelect;
@@ -19,12 +19,14 @@
19
19
  "selected": "setup-const"
20
20
  } */
21
21
  import { defineComponent as _defineComponent } from 'vue';
22
- import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
23
- const _withScopeId = n => (_pushScopeId("data-v-1712546546166"), n = n(), _popScopeId(), n);
22
+ import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
24
23
  const _hoisted_1 = ["onClick"];
25
24
  import { computed, ref, watch } from 'vue';
26
25
  import { isArray } from '@jetlinks-web/utils';
27
26
  const __sfc_main__ = _defineComponent({
27
+ ...{
28
+ name: 'JCheckButton'
29
+ },
28
30
  props: {
29
31
  value: {
30
32
  type: [String, Array],
@@ -1,2 +1,5 @@
1
1
  import CheckButton from './CheckButton.js';
2
+ CheckButton.install = function (app) {
3
+ app.component(CheckButton.name, CheckButton);
4
+ };
2
5
  export default CheckButton;
@@ -0,0 +1,37 @@
1
+ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
2
+ /* stylelint-disable no-duplicate-selectors */
3
+ /* stylelint-disable */
4
+ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
5
+ .j-check-button {
6
+ display: flex;
7
+ gap: 16px;
8
+ width: 100%;
9
+ }
10
+ .j-check-button .j-check-button-item {
11
+ flex: 1;
12
+ min-width: 0;
13
+ padding: 8px;
14
+ border-radius: 6px;
15
+ background-color: #f2f3f5;
16
+ transition: all 0.3s;
17
+ color: #333;
18
+ text-align: center;
19
+ cursor: pointer;
20
+ }
21
+ .j-check-button .j-check-button-item:hover {
22
+ background-color: #315EFB;
23
+ opacity: 0.85;
24
+ color: #fff;
25
+ }
26
+ .j-check-button .j-check-button-item.selected {
27
+ background-color: #315EFB;
28
+ color: #fff;
29
+ }
30
+ .j-check-button .j-check-button-item.disabled {
31
+ cursor: not-allowed;
32
+ color: #00000060;
33
+ }
34
+ .j-check-button .j-check-button-item.disabled:hover {
35
+ background-color: #f2f3f5;
36
+ color: #00000060;
37
+ }
@@ -0,0 +1,40 @@
1
+ @import 'ant-design-vue/es/style/themes/index.less';
2
+
3
+ .j-check-button {
4
+ display: flex;
5
+ gap: 16px;
6
+ width: 100%;
7
+
8
+ .j-check-button-item {
9
+ flex: 1;
10
+ min-width: 0;
11
+ padding: 8px;
12
+ border-radius: @border-radius-base;
13
+ background-color: #f2f3f5;
14
+ transition: all 0.3s;
15
+ color: #333;
16
+ text-align: center;
17
+ cursor: pointer;
18
+
19
+ &:hover {
20
+ background-color: @primary-color;
21
+ opacity: 0.85;
22
+ color: #fff;
23
+ }
24
+
25
+ &.selected {
26
+ background-color: @primary-color;
27
+ color: #fff;
28
+ }
29
+
30
+ &.disabled {
31
+ cursor: not-allowed;
32
+ color: #00000060;
33
+
34
+ &:hover {
35
+ background-color: #f2f3f5;
36
+ color: #00000060;
37
+ }
38
+ }
39
+ }
40
+ }
@@ -28,4 +28,7 @@ var JConfigProvider = defineComponent({
28
28
  }
29
29
  });
30
30
  JConfigProvider.config = ConfigProvider.config;
31
+ JConfigProvider.install = function (app) {
32
+ app.component(JConfigProvider.name, JConfigProvider);
33
+ };
31
34
  export default JConfigProvider;
@@ -16,6 +16,9 @@ import { normalizeStyle as _normalizeStyle, openBlock as _openBlock, createEleme
16
16
  import { nextTick, ref, watch, } from 'vue';
17
17
  import { useECharts } from '@jetlinks-web/hooks';
18
18
  const __sfc_main__ = _defineComponent({
19
+ ...{
20
+ name: 'JEcharts'
21
+ },
19
22
  props: {
20
23
  options: {
21
24
  type: Object,
@@ -1,2 +1,5 @@
1
1
  import Echarts from './Echarts.js';
2
+ Echarts.install = function (app) {
3
+ app.component(Echarts.name, Echarts);
4
+ };
2
5
  export default Echarts;
@@ -25,14 +25,14 @@
25
25
  "syncCursorStyle": "setup-const",
26
26
  "getTooltipDisabled": "setup-const"
27
27
  } */
28
- import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, mergeProps as _mergeProps, createElementVNode as _createElementVNode, unref as _unref, withCtx as _withCtx, createBlock as _createBlock } from "vue";
28
+ import { renderSlot as _renderSlot, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, mergeProps as _mergeProps, unref as _unref, withCtx as _withCtx, createSlots as _createSlots, openBlock as _openBlock, createBlock as _createBlock } from "vue";
29
29
  import { Tooltip } from 'ant-design-vue';
30
30
  import { computed, mergeProps, ref, useAttrs } from 'vue';
31
31
  const jEllipsis = 'j-ellipsis';
32
32
  const jEllipsisCursorClass = 'j-ellipsis-cursor';
33
33
  const jEllipsisLineClampClass = 'j-ellipsis-line-clamp';
34
34
  const __sfc_main__ = Object.assign({
35
- name: 'Ellipsis',
35
+ name: 'JEllipsis',
36
36
  }, {
37
37
  props: {
38
38
  expandTrigger: {
@@ -154,35 +154,38 @@ const __sfc_main__ = Object.assign({
154
154
  ref_key: "tooltipRef",
155
155
  ref: tooltipRef,
156
156
  placement: "top"
157
- }, __props.tooltip, { visible: visible.value }), {
157
+ }, __props.tooltip, { visible: visible.value }), _createSlots({
158
158
  default: _withCtx(() => [
159
- (__props.tooltip)
160
- ? (_openBlock(), _createElementBlock("div", {
161
- key: 0,
162
- class: _normalizeClass([jEllipsisLineClampClass, jEllipsis, 'j-ellipsis-deep'])
163
- }, [
164
- _renderSlot(_ctx.$slots, "default"),
165
- _renderSlot(_ctx.$slots, "tooltip")
166
- ], 2 /* CLASS */))
167
- : _createCommentVNode("v-if", true),
168
159
  _createElementVNode("span", _mergeProps({
169
160
  ref_key: "triggerRef",
170
161
  ref: triggerRef
171
162
  }, triggerAttrs(), {
172
163
  onClick: _cache[0] || (_cache[0] = (...args) => (handleClickRef.value && handleClickRef.value(...args))),
173
164
  onMouseleave: _cache[1] || (_cache[1] = $event => (visible.value = false)),
174
- onMouseenter: _cache[2] || (_cache[2] = $event => {
175
- ;
176
- [
177
- props.expandTrigger === 'click'
178
- ? getTooltipDisabled()
179
- : showTooltip(),
180
- ];
181
- })
182
- }), null, 16 /* FULL_PROPS */)
165
+ onMouseenter: _cache[2] || (_cache[2] = $event => (props.expandTrigger === 'click'
166
+ ? getTooltipDisabled()
167
+ : showTooltip()))
168
+ }), [
169
+ _renderSlot(_ctx.$slots, "default")
170
+ ], 16 /* FULL_PROPS */)
183
171
  ]),
184
- _: 3 /* FORWARDED */
185
- }, 16 /* FULL_PROPS */, ["visible"]));
172
+ _: 2 /* DYNAMIC */
173
+ }, [
174
+ (__props.tooltip)
175
+ ? {
176
+ name: "title",
177
+ fn: _withCtx(() => [
178
+ _createElementVNode("div", {
179
+ class: _normalizeClass([jEllipsisLineClampClass, jEllipsis, 'j-ellipsis-deep'])
180
+ }, [
181
+ _renderSlot(_ctx.$slots, "default"),
182
+ _renderSlot(_ctx.$slots, "tooltip")
183
+ ], 2 /* CLASS */)
184
+ ]),
185
+ key: "0"
186
+ }
187
+ : undefined
188
+ ]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */, ["visible"]));
186
189
  };
187
190
  }
188
191
  });
@@ -1,2 +1,5 @@
1
1
  import Ellipsis from './Ellipsis.js';
2
+ Ellipsis.install = function (app) {
3
+ app.component(Ellipsis.name, Ellipsis);
4
+ };
2
5
  export default Ellipsis;
@@ -0,0 +1,17 @@
1
+ .j-ellipsis {
2
+ overflow: hidden;
3
+ vertical-align: bottom;
4
+ }
5
+ .j-ellipsis-cursor {
6
+ cursor: pointer;
7
+ }
8
+ .j-ellipsis-line-clamp {
9
+ display: -webkit-box;
10
+ -webkit-box-orient: vertical;
11
+ word-break: break-all;
12
+ }
13
+ .j-ellipsis-deep {
14
+ max-height: 380px;
15
+ -webkit-line-clamp: 17;
16
+ text-overflow: ellipsis;
17
+ }
@@ -0,0 +1,20 @@
1
+ .j-ellipsis {
2
+ overflow: hidden;
3
+ vertical-align: bottom;
4
+ }
5
+
6
+ .j-ellipsis-cursor {
7
+ cursor: pointer;
8
+ }
9
+
10
+ .j-ellipsis-line-clamp {
11
+ display: -webkit-box;
12
+ -webkit-box-orient: vertical;
13
+ word-break: break-all;
14
+ }
15
+
16
+ .j-ellipsis-deep {
17
+ max-height: 380px;
18
+ -webkit-line-clamp: 17;
19
+ text-overflow: ellipsis;
20
+ }
package/es/Empty/Empty.js CHANGED
@@ -18,6 +18,9 @@ import { useSlots } from 'vue';
18
18
  import NoData from './image';
19
19
  import { omit } from 'lodash-es';
20
20
  const __sfc_main__ = _defineComponent({
21
+ ...{
22
+ name: 'JEmpty'
23
+ },
21
24
  props: {
22
25
  description: {
23
26
  type: String,
package/es/Empty/index.js CHANGED
@@ -1,2 +1,5 @@
1
1
  import Empty from './Empty.js';
2
+ Empty.install = function (app) {
3
+ app.component(Empty.name, Empty);
4
+ };
2
5
  export default Empty;
@@ -6,11 +6,14 @@
6
6
  } */
7
7
  import { defineComponent as _defineComponent } from 'vue';
8
8
  import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
9
- const _withScopeId = n => (_pushScopeId("data-v-1712546547297"), n = n(), _popScopeId(), n);
9
+ const _withScopeId = n => (_pushScopeId("data-v-1713250344966"), n = n(), _popScopeId(), n);
10
10
  const _hoisted_1 = { class: "full-page-warp-content" };
11
11
  import { ref } from 'vue';
12
12
  import { useElementBounding } from '@vueuse/core';
13
13
  const __sfc_main__ = _defineComponent({
14
+ ...{
15
+ name: 'JFullPage'
16
+ },
14
17
  setup(__props) {
15
18
  const fullPage = ref(null);
16
19
  const { y } = useElementBounding(fullPage);
@@ -1,2 +1,5 @@
1
1
  import FullPage from './FullPage.js';
2
+ FullPage.install = function (app) {
3
+ app.component(FullPage.name, FullPage);
4
+ };
2
5
  export default FullPage;
package/es/Icon/index.js CHANGED
@@ -1,2 +1,5 @@
1
1
  import AIcon from './icon';
2
+ AIcon.install = function (app) {
3
+ app.component(AIcon.name, AIcon);
4
+ };
2
5
  export default AIcon;
@@ -51,7 +51,9 @@ import { openBlock as _openBlock, createElementBlock as _createElementBlock } fr
51
51
  import { ref, onMounted, watch, onUnmounted, toRaw, nextTick } from 'vue';
52
52
  import * as monaco from 'monaco-editor';
53
53
  import { omit } from 'lodash-es';
54
- const __sfc_main__ = {
54
+ const __sfc_main__ = Object.assign({
55
+ name: 'JMonacoEditor'
56
+ }, {
55
57
  props: {
56
58
  modelValue: [String, Number],
57
59
  theme: { type: String, default: 'vs-dark' },
@@ -234,5 +236,5 @@ const __sfc_main__ = {
234
236
  }, null, 512 /* NEED_PATCH */));
235
237
  };
236
238
  }
237
- };
239
+ });
238
240
  export default __sfc_main__;
@@ -1,2 +1,5 @@
1
1
  import Monaco from './Monaco.js';
2
+ Monaco.install = function (app) {
3
+ app.component(Monaco.name, Monaco);
4
+ };
2
5
  export default Monaco;
@@ -27,7 +27,7 @@ var definedProps = _objectSpread({
27
27
  }
28
28
  }, omit(buttonProps(), 'icon'));
29
29
  var PermissionButton = defineComponent({
30
- name: 'PermissionButton',
30
+ name: 'JPermissionButton',
31
31
  // @ts-ignore
32
32
  slots: ['button', 'icon'],
33
33
  props: definedProps,
@@ -114,4 +114,7 @@ var PermissionButton = defineComponent({
114
114
  };
115
115
  }
116
116
  });
117
+ PermissionButton.install = function (app) {
118
+ app.component(PermissionButton.name, PermissionButton);
119
+ };
117
120
  export default PermissionButton;
@@ -1,4 +1,7 @@
1
1
  import ProLayout from './Basic/BasicLayout';
2
2
  import PageContainer from './PageContainer';
3
+ ProLayout.install = function (app) {
4
+ app.component(ProLayout.name, ProLayout);
5
+ };
3
6
  export { PageContainer };
4
7
  export default ProLayout;
@@ -1,4 +1,4 @@
1
- @import 'ant-design-vue/es/style/themes/index.less';
2
-
3
- @basicLayout-prefix-cls: ~'@{ant-prefix}-pro-basicLayout';
4
- @pro-layout-header-height: 48px;
1
+ @import 'ant-design-vue/es/style/themes/index.less';
2
+
3
+ @basicLayout-prefix-cls: ~'@{ant-prefix}-pro-basicLayout';
4
+ @pro-layout-header-height: 48px;
@@ -111,7 +111,7 @@ var tableProps = function tableProps() {
111
111
  });
112
112
  };
113
113
  var ProTable = defineComponent({
114
- name: 'ProTable',
114
+ name: 'JProTable',
115
115
  slots: ['headerTitle', 'card', 'rightExtraRender', 'paginationRender' // 分页
116
116
  ],
117
117
  props: tableProps(),
@@ -408,4 +408,7 @@ var ProTable = defineComponent({
408
408
  };
409
409
  }
410
410
  });
411
+ ProTable.install = function (app) {
412
+ app.component(ProTable.name, ProTable);
413
+ };
411
414
  export default ProTable;
@@ -1,92 +1,92 @@
1
- @import '../../style/variable.less';
2
- //@import 'ant-design-vue/es/style/themes/variable.less';
3
-
4
- .jtable-body-spin {
5
- min-height: 100%;
6
- width: 100%;
7
- padding: 16px 24px 24px;
8
- background-color: #fff;
9
-
10
- .ant-spin-nested-loading {
11
- height: 100%;
12
- .ant-spin-container {
13
- height: 100%;
14
- }
15
- }
16
-
17
- .jtable-body {
18
- width: 100%;
19
- box-sizing: border-box;
20
- height: 100%;
21
- display: flex;
22
- flex-direction: column;
23
-
24
- .jtable-body-header {
25
- display: flex;
26
- justify-content: space-between;
27
- align-items: center;
28
-
29
- .jtable-body-header-right {
30
- display: flex;
31
- gap: 8px;
32
- align-items: center;
33
-
34
- .jtable-body-header-right-button {
35
- .right-button-icon {
36
- font-size: 16px;
37
- color: #d9d9d9;
38
- }
39
-
40
- .ant-radio-button-wrapper {
41
- padding: 0 8px;
42
- }
43
-
44
- .ant-radio-button-wrapper-checked {
45
- .right-button-icon {
46
- color: @primary-color;
47
- }
48
- }
49
- }
50
- }
51
- }
52
-
53
- .jtable-content {
54
- flex: 1;
55
- padding: 16px 0;
56
-
57
- .jtable-alert {
58
- margin-bottom: 16px;
59
- }
60
-
61
- .jtable-card {
62
- .jtable-card-items {
63
- display: grid;
64
- grid-gap: 26px;
65
-
66
- .jtable-card-item {
67
- display: flex;
68
- min-width: 0;
69
- }
70
- }
71
- }
72
- }
73
-
74
- .jtable-pagination {
75
- // position: absolute;
76
- // background-color: white;
77
- // padding: 10px 0;
78
- // right: 0;
79
- // bottom: 0;
80
- width: 100%;
81
- display: flex;
82
- justify-content: flex-end;
83
- }
84
-
85
- .j-table-empty {
86
- display: flex;
87
- justify-content: center;
88
- align-items: center;
89
- margin: 10% 0;
90
- }
91
- }
92
- }
1
+ @import '../../style/variable.less';
2
+ //@import 'ant-design-vue/es/style/themes/variable.less';
3
+
4
+ .jtable-body-spin {
5
+ min-height: 100%;
6
+ width: 100%;
7
+ padding: 16px 24px 24px;
8
+ background-color: #fff;
9
+
10
+ .ant-spin-nested-loading {
11
+ height: 100%;
12
+ .ant-spin-container {
13
+ height: 100%;
14
+ }
15
+ }
16
+
17
+ .jtable-body {
18
+ width: 100%;
19
+ box-sizing: border-box;
20
+ height: 100%;
21
+ display: flex;
22
+ flex-direction: column;
23
+
24
+ .jtable-body-header {
25
+ display: flex;
26
+ justify-content: space-between;
27
+ align-items: center;
28
+
29
+ .jtable-body-header-right {
30
+ display: flex;
31
+ gap: 8px;
32
+ align-items: center;
33
+
34
+ .jtable-body-header-right-button {
35
+ .right-button-icon {
36
+ font-size: 16px;
37
+ color: #d9d9d9;
38
+ }
39
+
40
+ .ant-radio-button-wrapper {
41
+ padding: 0 8px;
42
+ }
43
+
44
+ .ant-radio-button-wrapper-checked {
45
+ .right-button-icon {
46
+ color: @primary-color;
47
+ }
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ .jtable-content {
54
+ flex: 1;
55
+ padding: 16px 0;
56
+
57
+ .jtable-alert {
58
+ margin-bottom: 16px;
59
+ }
60
+
61
+ .jtable-card {
62
+ .jtable-card-items {
63
+ display: grid;
64
+ grid-gap: 26px;
65
+
66
+ .jtable-card-item {
67
+ display: flex;
68
+ min-width: 0;
69
+ }
70
+ }
71
+ }
72
+ }
73
+
74
+ .jtable-pagination {
75
+ // position: absolute;
76
+ // background-color: white;
77
+ // padding: 10px 0;
78
+ // right: 0;
79
+ // bottom: 0;
80
+ width: 100%;
81
+ display: flex;
82
+ justify-content: flex-end;
83
+ }
84
+
85
+ .j-table-empty {
86
+ display: flex;
87
+ justify-content: center;
88
+ align-items: center;
89
+ margin: 10% 0;
90
+ }
91
+ }
92
+ }
@@ -1,2 +1,5 @@
1
1
  import Scrollbar from './Scrollbar.js';
2
+ Scrollbar.install = function (app) {
3
+ app.component(Scrollbar.name, Scrollbar);
4
+ };
2
5
  export default Scrollbar;