@jetlinks-web/components 3.3.12 → 3.3.13
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.
- package/es/CardSelect/style/index.js +3 -3
- package/es/CheckButton/style/index.js +9 -9
- package/es/DragModal/style/index.js +6 -6
- package/es/EditTable/FormItem.js +18 -15
- package/es/EditTable/components/Search/sort.js +15 -1
- package/es/EditTable/style/body.js +8 -6
- package/es/EditTable/style/group.js +3 -3
- package/es/EditTable/style/header.js +3 -3
- package/es/EditTable/style/menu.js +3 -3
- package/es/EditTable/style/table.js +3 -3
- package/es/FullPage/FullPage.js +15 -5
- package/es/ProLayout/SiderMenu/style.js +105 -26
- package/es/ProLayout/TopHeader/style.js +55 -11
- package/es/ProTable/ProTable.js +2 -4
- package/es/ProTable/style/index.js +11 -8
- package/es/RadioButton/style/index.js +3 -2
- package/es/Scrollbar/style/index.js +9 -9
- package/es/Search/style/search.js +5 -5
- package/es/Skeleton/components/Page.js +18 -5
- package/es/Skeleton/style/index.js +12 -6
- package/es/Title/style/index.js +2 -2
- package/es/VirtualTable/style/index.js +7 -4
- package/es/style/scrollbar.js +24 -0
- package/es/style/styleRegister.js +45 -11
- package/es/style/variable.js +1 -4
- package/lib/CardSelect/style/index.js +3 -3
- package/lib/CheckButton/style/index.js +9 -9
- package/lib/DragModal/style/index.js +6 -6
- package/lib/EditTable/FormItem.js +18 -15
- package/lib/EditTable/components/Search/sort.js +15 -1
- package/lib/EditTable/style/body.js +8 -6
- package/lib/EditTable/style/group.js +3 -3
- package/lib/EditTable/style/header.js +3 -3
- package/lib/EditTable/style/menu.js +3 -3
- package/lib/EditTable/style/table.js +3 -3
- package/lib/FullPage/FullPage.js +15 -5
- package/lib/ProLayout/SiderMenu/style.js +104 -25
- package/lib/ProLayout/TopHeader/style.js +55 -11
- package/lib/ProTable/ProTable.js +2 -4
- package/lib/ProTable/style/index.js +10 -7
- package/lib/RadioButton/style/index.js +3 -2
- package/lib/Scrollbar/style/index.js +8 -8
- package/lib/Search/style/search.js +5 -5
- package/lib/Skeleton/components/Page.js +18 -5
- package/lib/Skeleton/style/index.js +12 -6
- package/lib/Title/style/index.js +2 -2
- package/lib/VirtualTable/style/index.js +6 -3
- package/lib/style/scrollbar.js +30 -0
- package/lib/style/styleRegister.js +44 -10
- package/lib/style/variable.js +1 -4
- package/package.json +3 -3
|
@@ -8,8 +8,8 @@ var genCardSelectStyle = function genCardSelectStyle(config) {
|
|
|
8
8
|
gap: '12px'
|
|
9
9
|
}, "".concat(componentCls, "-item"), _defineProperty({
|
|
10
10
|
padding: '12px',
|
|
11
|
-
border:
|
|
12
|
-
borderRadius:
|
|
11
|
+
border: "".concat(token.lineWidth, "px solid ").concat(token.colorBorderSecondary),
|
|
12
|
+
borderRadius: token.borderRadius,
|
|
13
13
|
cursor: 'pointer',
|
|
14
14
|
'&.active': {
|
|
15
15
|
borderColor: token.colorPrimary
|
|
@@ -19,7 +19,7 @@ var genCardSelectStyle = function genCardSelectStyle(config) {
|
|
|
19
19
|
opacity: 0.7
|
|
20
20
|
}
|
|
21
21
|
}, "".concat(componentCls, "-describe"), {
|
|
22
|
-
color: token.
|
|
22
|
+
color: token.colorTextDescription
|
|
23
23
|
})));
|
|
24
24
|
};
|
|
25
25
|
export default genCompoentStyle([genCardSelectStyle]);
|
|
@@ -12,27 +12,27 @@ var genCheckButtonStyle = function genCheckButtonStyle(config) {
|
|
|
12
12
|
minWidth: 0,
|
|
13
13
|
padding: '8px',
|
|
14
14
|
borderRadius: token.borderRadius,
|
|
15
|
-
backgroundColor:
|
|
15
|
+
backgroundColor: token.colorFillTertiary,
|
|
16
16
|
transition: 'all 0.3s',
|
|
17
|
-
color:
|
|
17
|
+
color: token.colorText,
|
|
18
18
|
textAlign: 'center',
|
|
19
19
|
cursor: 'pointer',
|
|
20
20
|
'&:hover': {
|
|
21
|
-
backgroundColor: token.
|
|
21
|
+
backgroundColor: token.colorPrimaryHover,
|
|
22
22
|
opacity: 0.85,
|
|
23
|
-
color:
|
|
23
|
+
color: token.colorTextLightSolid
|
|
24
24
|
},
|
|
25
25
|
'&.selected': {
|
|
26
26
|
backgroundColor: token.colorPrimary,
|
|
27
|
-
color:
|
|
27
|
+
color: token.colorTextLightSolid
|
|
28
28
|
},
|
|
29
29
|
'&.disabled': {
|
|
30
|
-
backgroundColor:
|
|
31
|
-
color:
|
|
30
|
+
backgroundColor: token.colorBgContainerDisabled,
|
|
31
|
+
color: token.colorTextDisabled,
|
|
32
32
|
cursor: 'not-allowed',
|
|
33
33
|
'&:hover': {
|
|
34
|
-
backgroundColor:
|
|
35
|
-
color:
|
|
34
|
+
backgroundColor: token.colorBgContainerDisabled,
|
|
35
|
+
color: token.colorTextDisabled,
|
|
36
36
|
opacity: 1
|
|
37
37
|
}
|
|
38
38
|
}
|
|
@@ -14,19 +14,19 @@ var genDragModalStyle = function genDragModalStyle(config) {
|
|
|
14
14
|
flexDirection: 'column',
|
|
15
15
|
overflow: 'hidden',
|
|
16
16
|
zIndex: 23456765435,
|
|
17
|
-
backgroundColor:
|
|
17
|
+
backgroundColor: token.colorBgElevated,
|
|
18
18
|
borderRadius: 4,
|
|
19
|
-
border:
|
|
20
|
-
boxShadow:
|
|
19
|
+
border: "".concat(token.lineWidth, "px solid ").concat(token.colorPrimaryBorder),
|
|
20
|
+
boxShadow: token.boxShadowSecondary,
|
|
21
21
|
header: {
|
|
22
22
|
padding: '5px 15px',
|
|
23
23
|
fontSize: 18,
|
|
24
24
|
fontWeight: 700,
|
|
25
|
-
color:
|
|
25
|
+
color: token.colorTextHeading,
|
|
26
26
|
display: 'flex',
|
|
27
27
|
justifyContent: 'space-between',
|
|
28
28
|
alignItems: 'center',
|
|
29
|
-
borderBottom:
|
|
29
|
+
borderBottom: "".concat(token.lineWidth, "px solid ").concat(token.colorSplit),
|
|
30
30
|
cursor: 'move'
|
|
31
31
|
}
|
|
32
32
|
}, "".concat(componentCls, "-body"), {
|
|
@@ -35,7 +35,7 @@ var genDragModalStyle = function genDragModalStyle(config) {
|
|
|
35
35
|
overflowY: 'auto',
|
|
36
36
|
padding: '24px 20px'
|
|
37
37
|
}), "".concat(componentCls, "-footer"), {
|
|
38
|
-
borderTop:
|
|
38
|
+
borderTop: "".concat(token.lineWidth, "px solid ").concat(token.colorSplit),
|
|
39
39
|
padding: '5px 15px'
|
|
40
40
|
})), "".concat(componentCls, "-range"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
41
41
|
position: 'absolute',
|
package/es/EditTable/FormItem.js
CHANGED
|
@@ -30,6 +30,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
30
30
|
"Schema": "setup-maybe-ref",
|
|
31
31
|
"useInjectError": "setup-maybe-ref",
|
|
32
32
|
"useInjectForm": "setup-maybe-ref",
|
|
33
|
+
"useTableWrapper": "setup-maybe-ref",
|
|
33
34
|
"TABLE_FORM_ITEM_ERROR": "setup-maybe-ref",
|
|
34
35
|
"genEditTableStyle": "setup-maybe-ref",
|
|
35
36
|
"fieldPool": "setup-maybe-ref",
|
|
@@ -41,6 +42,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
41
42
|
"visible": "setup-ref",
|
|
42
43
|
"context": "setup-maybe-ref",
|
|
43
44
|
"globalErrorMessage": "setup-maybe-ref",
|
|
45
|
+
"tableWrapperRef": "setup-maybe-ref",
|
|
44
46
|
"hideTimer": "setup-let",
|
|
45
47
|
"cachedSchema": "setup-let",
|
|
46
48
|
"cachedRulesHash": "setup-let",
|
|
@@ -76,7 +78,7 @@ import { onBeforeUnmount, computed, shallowReactive, watch, provide, toRaw, onMo
|
|
|
76
78
|
import { get, isArray } from 'lodash-es';
|
|
77
79
|
import { useProvideFormItemContext } from 'ant-design-vue/lib/form/FormItemContext';
|
|
78
80
|
import Schema from 'async-validator';
|
|
79
|
-
import { useInjectError, useInjectForm } from "./hooks";
|
|
81
|
+
import { useInjectError, useInjectForm, useTableWrapper } from "./hooks";
|
|
80
82
|
import { TABLE_FORM_ITEM_ERROR } from "./consts";
|
|
81
83
|
import genEditTableStyle from './style';
|
|
82
84
|
import { fieldPool } from './fieldPool';
|
|
@@ -98,6 +100,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
98
100
|
const visible = ref(false);
|
|
99
101
|
const context = useInjectForm();
|
|
100
102
|
const globalErrorMessage = useInjectError();
|
|
103
|
+
const tableWrapperRef = useTableWrapper();
|
|
101
104
|
let hideTimer = null;
|
|
102
105
|
// 缓存 Schema 实例,避免重复创建
|
|
103
106
|
let cachedSchema = null;
|
|
@@ -145,7 +148,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
145
148
|
});
|
|
146
149
|
// 向下提供错误状态
|
|
147
150
|
provide(TABLE_FORM_ITEM_ERROR, errorState);
|
|
148
|
-
const popContainer = (e) => e;
|
|
151
|
+
const popContainer = (e) => _optionalChain([tableWrapperRef, 'optionalAccess', _4 => _4.value]) || e.parentElement || document.body;
|
|
149
152
|
const removeTimer = () => {
|
|
150
153
|
if (hideTimer) {
|
|
151
154
|
clearTimeout(hideTimer);
|
|
@@ -171,7 +174,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
171
174
|
return props.rules;
|
|
172
175
|
}
|
|
173
176
|
// 从 context 中获取规则
|
|
174
|
-
if (_optionalChain([context, 'access',
|
|
177
|
+
if (_optionalChain([context, 'access', _5 => _5.rules, 'optionalAccess', _6 => _6.value]) && fieldName.value) {
|
|
175
178
|
const rules = context.rules.value[fieldName.value];
|
|
176
179
|
if (Array.isArray(rules)) {
|
|
177
180
|
return rules;
|
|
@@ -210,7 +213,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
210
213
|
const schema = getSchema();
|
|
211
214
|
if (!schema) {
|
|
212
215
|
hideErrorTip();
|
|
213
|
-
_optionalChain([context, 'access',
|
|
216
|
+
_optionalChain([context, 'access', _7 => _7.removeFieldError, 'optionalCall', _8 => _8(eventKey.value)]);
|
|
214
217
|
resolve();
|
|
215
218
|
return;
|
|
216
219
|
}
|
|
@@ -221,12 +224,12 @@ const __sfc_main__ = _defineComponent({
|
|
|
221
224
|
if (errors && errors.length > 0) {
|
|
222
225
|
const errorMsg = errors[0].message || '校验失败';
|
|
223
226
|
showErrorTip(errorMsg);
|
|
224
|
-
_optionalChain([context, 'access',
|
|
227
|
+
_optionalChain([context, 'access', _9 => _9.addFieldError, 'optionalCall', _10 => _10(eventKey.value, errorMsg)]);
|
|
225
228
|
reject(errors);
|
|
226
229
|
}
|
|
227
230
|
else {
|
|
228
231
|
hideErrorTip();
|
|
229
|
-
_optionalChain([context, 'access',
|
|
232
|
+
_optionalChain([context, 'access', _11 => _11.removeFieldError, 'optionalCall', _12 => _12(eventKey.value)]);
|
|
230
233
|
resolve();
|
|
231
234
|
}
|
|
232
235
|
});
|
|
@@ -239,18 +242,18 @@ const __sfc_main__ = _defineComponent({
|
|
|
239
242
|
const promise = context.validateItem({ [fieldName.value]: fieldValue.value }, rowIndex.value);
|
|
240
243
|
promise.then(() => {
|
|
241
244
|
hideErrorTip();
|
|
242
|
-
_optionalChain([context, 'access',
|
|
245
|
+
_optionalChain([context, 'access', _13 => _13.removeFieldError, 'optionalCall', _14 => _14(eventKey.value)]);
|
|
243
246
|
}).catch((res) => {
|
|
244
|
-
const error = _optionalChain([res, 'optionalAccess',
|
|
247
|
+
const error = _optionalChain([res, 'optionalAccess', _15 => _15.filter, 'call', _16 => _16((item) => item.field === fieldName.value)]) || [];
|
|
245
248
|
if (error.length === 0) {
|
|
246
249
|
hideErrorTip();
|
|
247
|
-
_optionalChain([context, 'access',
|
|
250
|
+
_optionalChain([context, 'access', _17 => _17.removeFieldError, 'optionalCall', _18 => _18(eventKey.value)]);
|
|
248
251
|
}
|
|
249
252
|
else {
|
|
250
253
|
removeTimer();
|
|
251
|
-
errorState.message = _optionalChain([error, 'access',
|
|
254
|
+
errorState.message = _optionalChain([error, 'access', _19 => _19[0], 'optionalAccess', _20 => _20.message]) || errorState.message;
|
|
252
255
|
errorState.visible = !!error.length;
|
|
253
|
-
_optionalChain([context, 'access',
|
|
256
|
+
_optionalChain([context, 'access', _21 => _21.addFieldError, 'optionalCall', _22 => _22(eventKey.value, errorState.message)]);
|
|
254
257
|
}
|
|
255
258
|
});
|
|
256
259
|
return promise;
|
|
@@ -272,7 +275,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
272
275
|
}, { immediate: true });
|
|
273
276
|
watch(() => {
|
|
274
277
|
const key = currentEventKey.value;
|
|
275
|
-
return key ? _optionalChain([globalErrorMessage, 'optionalAccess',
|
|
278
|
+
return key ? _optionalChain([globalErrorMessage, 'optionalAccess', _23 => _23.value, 'optionalAccess', _24 => _24[key]]) : undefined;
|
|
276
279
|
}, (errorMsg) => {
|
|
277
280
|
if (errorMsg) {
|
|
278
281
|
showErrorTip(errorMsg);
|
|
@@ -294,7 +297,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
294
297
|
onFieldChange,
|
|
295
298
|
onFieldBlur,
|
|
296
299
|
}, computed(() => {
|
|
297
|
-
return get(_optionalChain([context, 'access',
|
|
300
|
+
return get(_optionalChain([context, 'access', _25 => _25.dataSource, 'optionalAccess', _26 => _26.value]), props.name);
|
|
298
301
|
}));
|
|
299
302
|
// 注册字段到父组件 - 使用字段池复用
|
|
300
303
|
let isRegistered = false;
|
|
@@ -307,7 +310,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
307
310
|
validateRules,
|
|
308
311
|
showErrorTip
|
|
309
312
|
});
|
|
310
|
-
_optionalChain([context, 'access',
|
|
313
|
+
_optionalChain([context, 'access', _27 => _27.addField, 'optionalCall', _28 => _28(eventKey.value, fieldInfo)]);
|
|
311
314
|
isRegistered = true;
|
|
312
315
|
}
|
|
313
316
|
};
|
|
@@ -318,7 +321,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
318
321
|
onBeforeUnmount(() => {
|
|
319
322
|
removeTimer();
|
|
320
323
|
if (isRegistered) {
|
|
321
|
-
_optionalChain([context, 'access',
|
|
324
|
+
_optionalChain([context, 'access', _29 => _29.removeField, 'optionalCall', _30 => _30(eventKey.value)]);
|
|
322
325
|
fieldPool.release(eventKey.value);
|
|
323
326
|
isRegistered = false;
|
|
324
327
|
}
|
|
@@ -22,16 +22,21 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
22
22
|
"active": "props",
|
|
23
23
|
"useTableTool": "setup-maybe-ref",
|
|
24
24
|
"useTableWrapper": "setup-maybe-ref",
|
|
25
|
+
"computed": "setup-const",
|
|
25
26
|
"ref": "setup-const",
|
|
26
27
|
"reactive": "setup-const",
|
|
28
|
+
"theme": "setup-maybe-ref",
|
|
27
29
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
28
30
|
"props": "setup-reactive-const",
|
|
29
31
|
"emit": "setup-const",
|
|
30
32
|
"contextLocale": "setup-maybe-ref",
|
|
31
33
|
"tableWrapperRef": "setup-maybe-ref",
|
|
32
34
|
"tableTool": "setup-maybe-ref",
|
|
35
|
+
"token": "setup-maybe-ref",
|
|
33
36
|
"visible": "setup-ref",
|
|
34
37
|
"mySelectedRowKeys": "setup-ref",
|
|
38
|
+
"sortIconColor": "setup-ref",
|
|
39
|
+
"sortIconActiveColor": "setup-ref",
|
|
35
40
|
"columns": "setup-reactive-const",
|
|
36
41
|
"visibleChange": "setup-const",
|
|
37
42
|
"onSelectChange": "setup-const",
|
|
@@ -40,13 +45,15 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
40
45
|
"onAsc": "setup-const",
|
|
41
46
|
"onDesc": "setup-const"
|
|
42
47
|
} */
|
|
48
|
+
import { useCssVars as _useCssVars } from 'vue';
|
|
43
49
|
import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, normalizeClass as _normalizeClass } from "vue";
|
|
44
50
|
const _hoisted_1 = { class: "jetlinks-table-sort-content" };
|
|
45
51
|
const _hoisted_2 = { class: "jetlinks-table-sort-title" };
|
|
46
52
|
const _hoisted_3 = { class: "table-sort-body" };
|
|
47
53
|
const _hoisted_4 = { class: "jetlinks-table-sort-footer" };
|
|
48
54
|
import { useTableTool, useTableWrapper } from "../../context";
|
|
49
|
-
import { ref, reactive } from 'vue';
|
|
55
|
+
import { computed, ref, reactive } from 'vue';
|
|
56
|
+
import { theme } from 'ant-design-vue';
|
|
50
57
|
import { useLocaleReceiver } from "../../../LocaleReciver";
|
|
51
58
|
const __sfc_main__ = Object.assign({
|
|
52
59
|
name: 'JEditTableSearchSort'
|
|
@@ -75,14 +82,21 @@ const __sfc_main__ = Object.assign({
|
|
|
75
82
|
},
|
|
76
83
|
emits: ['click'],
|
|
77
84
|
setup(__props, { emit: __emit }) {
|
|
85
|
+
_useCssVars(_ctx => ({
|
|
86
|
+
"1787815589145-sortIconColor": (sortIconColor.value),
|
|
87
|
+
"1787815589145-sortIconActiveColor": (sortIconActiveColor.value)
|
|
88
|
+
}));
|
|
78
89
|
const props = __props;
|
|
79
90
|
const emit = __emit;
|
|
80
91
|
const [contextLocale] = useLocaleReceiver('EditTable');
|
|
81
92
|
const tableWrapperRef = useTableWrapper();
|
|
82
93
|
const tableTool = useTableTool();
|
|
94
|
+
const { token } = theme.useToken();
|
|
83
95
|
const visible = ref(false);
|
|
84
96
|
const dataSource = ref([]);
|
|
85
97
|
const mySelectedRowKeys = ref([]);
|
|
98
|
+
const sortIconColor = computed(() => token.value.colorTextDisabled);
|
|
99
|
+
const sortIconActiveColor = computed(() => token.value.colorPrimary);
|
|
86
100
|
const columns = reactive([
|
|
87
101
|
{
|
|
88
102
|
dataIndex: 'name',
|
|
@@ -1,13 +1,15 @@
|
|
|
1
1
|
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _objectSpread from "@babel/runtime/helpers/esm/objectSpread2";
|
|
3
|
+
import { genTokenScrollbarStyle } from '../../style/scrollbar';
|
|
2
4
|
export var genEditTableBodyStyle = function genEditTableBodyStyle(config) {
|
|
3
5
|
var componentCls = config.componentCls,
|
|
4
6
|
token = config.token;
|
|
5
|
-
return _defineProperty(_defineProperty(_defineProperty({}, '.jetlinks-edit-table-body-viewport',
|
|
7
|
+
return _defineProperty(_defineProperty(_defineProperty({}, '.jetlinks-edit-table-body-viewport', _objectSpread(_objectSpread({
|
|
6
8
|
maxHeight: '100%',
|
|
7
9
|
width: '100%',
|
|
8
10
|
overflow: 'hidden auto',
|
|
9
11
|
position: 'relative'
|
|
10
|
-
}, '.jetlinks-edit-scrollbar', {
|
|
12
|
+
}, genTokenScrollbarStyle(token)), {}, _defineProperty(_defineProperty(_defineProperty({}, '.jetlinks-edit-scrollbar', {
|
|
11
13
|
position: 'absolute',
|
|
12
14
|
left: 0,
|
|
13
15
|
top: 0,
|
|
@@ -26,14 +28,14 @@ export var genEditTableBodyStyle = function genEditTableBodyStyle(config) {
|
|
|
26
28
|
display: 'flex',
|
|
27
29
|
alignItems: 'center',
|
|
28
30
|
transition: 'top .2s, height .2s, background-color .1s',
|
|
29
|
-
borderBottom:
|
|
31
|
+
borderBottom: "".concat(token.lineWidth, "px solid ").concat(token.colorBorderSecondary)
|
|
30
32
|
}, '.jetlinks-edit-table-cell', {
|
|
31
33
|
position: 'absolute',
|
|
32
34
|
minWidth: 0
|
|
33
35
|
}), '&:hover', {
|
|
34
|
-
backgroundColor:
|
|
36
|
+
backgroundColor: token.colorFillQuaternary
|
|
35
37
|
}), '&.jetlinks-edit-table-row-selected', {
|
|
36
|
-
backgroundColor:
|
|
38
|
+
backgroundColor: token.colorPrimaryBg
|
|
37
39
|
}), '.body-cell-box', {
|
|
38
40
|
padding: '0 12px',
|
|
39
41
|
position: 'relative'
|
|
@@ -44,7 +46,7 @@ export var genEditTableBodyStyle = function genEditTableBodyStyle(config) {
|
|
|
44
46
|
right: 0,
|
|
45
47
|
bottom: 0,
|
|
46
48
|
zIndex: 4
|
|
47
|
-
}))), '.jetlinks-edit-table-body-empty', {
|
|
49
|
+
})))), '.jetlinks-edit-table-body-empty', {
|
|
48
50
|
display: 'flex',
|
|
49
51
|
width: '100%',
|
|
50
52
|
justifyContent: 'center',
|
|
@@ -7,12 +7,12 @@ export var genEditTableGroupStyle = function genEditTableGroupStyle(config) {
|
|
|
7
7
|
overflow: 'hidden',
|
|
8
8
|
position: 'relative'
|
|
9
9
|
}), '.ant-tabs-tab-active', {
|
|
10
|
-
backgroundColor:
|
|
11
|
-
borderColor:
|
|
10
|
+
backgroundColor: "".concat(token.colorPrimaryBg, " !important"),
|
|
11
|
+
borderColor: "".concat(token.colorPrimaryBorder, " !important")
|
|
12
12
|
}), '.ant-tabs-nav-add', {
|
|
13
13
|
border: 'none'
|
|
14
14
|
}))), '.jetlinks-table-group-error-wrap', _defineProperty({
|
|
15
|
-
color:
|
|
15
|
+
color: "".concat(token.colorText, " !important")
|
|
16
16
|
}, '.table-group-error-target', {
|
|
17
17
|
position: 'absolute',
|
|
18
18
|
right: 0,
|
|
@@ -10,7 +10,7 @@ export var genEditTableHeaderStyle = function genEditTableHeaderStyle(config) {
|
|
|
10
10
|
float: 'left',
|
|
11
11
|
overflow: 'visible',
|
|
12
12
|
position: 'absolute',
|
|
13
|
-
background:
|
|
13
|
+
background: token.colorFillQuaternary,
|
|
14
14
|
top: 0
|
|
15
15
|
}, '.jetlinks-edit-table-header-cell-box', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
16
16
|
padding: '0 12px',
|
|
@@ -39,7 +39,7 @@ export var genEditTableHeaderStyle = function genEditTableHeaderStyle(config) {
|
|
|
39
39
|
width: '1px',
|
|
40
40
|
height: '1.6em',
|
|
41
41
|
pointerEvents: 'none',
|
|
42
|
-
backgroundColor:
|
|
42
|
+
backgroundColor: token.colorSplit,
|
|
43
43
|
transform: 'translateY(-50%)',
|
|
44
44
|
transition: 'background-color .3s',
|
|
45
45
|
content: '""'
|
|
@@ -53,6 +53,6 @@ export var genEditTableHeaderStyle = function genEditTableHeaderStyle(config) {
|
|
|
53
53
|
}, '.jetlinks-drag-modal-footer', {
|
|
54
54
|
display: 'none'
|
|
55
55
|
}), '.jetlinks-table-search-result-total', {
|
|
56
|
-
color:
|
|
56
|
+
color: token.colorPrimary
|
|
57
57
|
})));
|
|
58
58
|
};
|
|
@@ -3,12 +3,12 @@ export var genMenuStyle = function genMenuStyle(config) {
|
|
|
3
3
|
return {
|
|
4
4
|
'.jetlinks-edit-table-context-menu': {
|
|
5
5
|
position: 'fixed',
|
|
6
|
-
boxShadow: '0 0 12px rgba(0, 0, 0 ,.2)',
|
|
7
6
|
borderRadius: '4px',
|
|
8
7
|
overflow: 'hidden',
|
|
9
8
|
width: '192px',
|
|
10
9
|
padding: '4px',
|
|
11
|
-
backgroundColor:
|
|
10
|
+
backgroundColor: token.colorBgElevated,
|
|
11
|
+
boxShadow: token.boxShadowSecondary,
|
|
12
12
|
'.ant-menu': {
|
|
13
13
|
borderRight: 'none',
|
|
14
14
|
'.ant-menu-item': {
|
|
@@ -20,7 +20,7 @@ export var genMenuStyle = function genMenuStyle(config) {
|
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
22
|
'.ant-menu-item-active': {
|
|
23
|
-
backgroundColor:
|
|
23
|
+
backgroundColor: token.colorPrimaryBg
|
|
24
24
|
}
|
|
25
25
|
}
|
|
26
26
|
};
|
|
@@ -2,7 +2,7 @@ export var genTableStyle = function genTableStyle(config) {
|
|
|
2
2
|
var token = config.token;
|
|
3
3
|
return {
|
|
4
4
|
'.jetlinks-edit-table-wrapper': {
|
|
5
|
-
background:
|
|
5
|
+
background: token.colorBgContainer,
|
|
6
6
|
height: '100%',
|
|
7
7
|
position: 'relative',
|
|
8
8
|
'&.table-full-screen': {
|
|
@@ -13,7 +13,7 @@ export var genTableStyle = function genTableStyle(config) {
|
|
|
13
13
|
flexDirection: 'column',
|
|
14
14
|
flexGrow: 0,
|
|
15
15
|
flexShrink: 0,
|
|
16
|
-
background:
|
|
16
|
+
background: token.colorFillQuaternary,
|
|
17
17
|
transition: 'background-color .3s ease',
|
|
18
18
|
overflow: 'auto hidden',
|
|
19
19
|
'.jetlinks-edit-table-header': {
|
|
@@ -22,7 +22,7 @@ export var genTableStyle = function genTableStyle(config) {
|
|
|
22
22
|
position: 'relative'
|
|
23
23
|
},
|
|
24
24
|
'.jetlinks-edit-table-body': {
|
|
25
|
-
backgroundColor:
|
|
25
|
+
backgroundColor: token.colorBgContainer,
|
|
26
26
|
overflowY: 'hidden',
|
|
27
27
|
position: 'relative',
|
|
28
28
|
height: '100%',
|
package/es/FullPage/FullPage.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
/* Analyzed bindings: {
|
|
2
|
-
"
|
|
2
|
+
"computed": "setup-const",
|
|
3
3
|
"inject": "setup-const",
|
|
4
|
+
"ref": "setup-const",
|
|
5
|
+
"theme": "setup-maybe-ref",
|
|
4
6
|
"useElementBounding": "setup-maybe-ref",
|
|
5
7
|
"FullPageConfig": "setup-maybe-ref",
|
|
6
8
|
"config": "setup-maybe-ref",
|
|
7
9
|
"fullPage": "setup-ref",
|
|
8
|
-
"y": "setup-maybe-ref"
|
|
10
|
+
"y": "setup-maybe-ref",
|
|
11
|
+
"token": "setup-maybe-ref",
|
|
12
|
+
"wrapStyle": "setup-ref"
|
|
9
13
|
} */
|
|
10
14
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
|
-
import {
|
|
15
|
+
import { renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
12
16
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
13
|
-
import {
|
|
17
|
+
import { computed, inject, ref } from 'vue';
|
|
18
|
+
import { theme } from 'ant-design-vue';
|
|
14
19
|
import { useElementBounding } from '@vueuse/core';
|
|
15
20
|
import { FullPageConfig } from "../utils/constants";
|
|
16
21
|
const __sfc_main__ = _defineComponent({
|
|
@@ -21,12 +26,17 @@ const __sfc_main__ = _defineComponent({
|
|
|
21
26
|
const config = inject(FullPageConfig, { reduceHeight: 24 });
|
|
22
27
|
const fullPage = ref(null);
|
|
23
28
|
const { y } = useElementBounding(fullPage);
|
|
29
|
+
const { token } = theme.useToken();
|
|
30
|
+
const wrapStyle = computed(() => ({
|
|
31
|
+
minHeight: `calc(100vh - ${y.value + config.reduceHeight}px)`,
|
|
32
|
+
background: token.value.colorBgContainer,
|
|
33
|
+
}));
|
|
24
34
|
return (_ctx, _cache) => {
|
|
25
35
|
return (_openBlock(), _createElementBlock("div", {
|
|
26
36
|
class: "full-page-warp",
|
|
27
37
|
ref_key: "fullPage",
|
|
28
38
|
ref: fullPage,
|
|
29
|
-
style: _normalizeStyle(
|
|
39
|
+
style: _normalizeStyle(wrapStyle.value)
|
|
30
40
|
}, [
|
|
31
41
|
_createElementVNode("div", _hoisted_1, [
|
|
32
42
|
_renderSlot(_ctx.$slots, "default")
|