@jetlinks-web/components 3.0.1-rc → 3.1.0
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/AutoComplete/AutoComplete.js +13 -9
- package/es/BadgeStatus/Badge.js +1 -2
- package/es/BadgeStatus/color.js +3 -3
- package/es/CardSelect/CardSelect.js +23 -13
- package/es/CardSelect/style/index.js +25 -1
- package/es/CheckButton/CheckButton.js +12 -4
- package/es/CheckButton/style/index.js +41 -1
- package/es/DragModal/DragModal.js +14 -8
- package/es/DragModal/style/index.js +64 -1
- package/es/EditTable/Body.js +10 -3
- package/es/EditTable/EditTable.js +13 -7
- package/es/EditTable/FormItem.js +18 -19
- package/es/EditTable/Header.js +16 -6
- package/es/EditTable/components/ContextMenu/Menu.js +11 -5
- package/es/EditTable/components/Search/search.js +1 -2
- package/es/EditTable/components/Search/sort.js +1 -3
- package/es/EditTable/group.js +23 -18
- package/es/EditTable/hooks/useValidate.js +1 -1
- package/es/EditTable/style/body.js +53 -0
- package/es/EditTable/style/form.js +24 -0
- package/es/EditTable/style/group.js +25 -0
- package/es/EditTable/style/header.js +58 -0
- package/es/EditTable/style/index.js +42 -1
- package/es/EditTable/style/menu.js +27 -0
- package/es/EditTable/style/table.js +46 -0
- package/es/EditTable/utils.js +30 -3
- package/es/Ellipsis/Ellipsis.js +10 -2
- package/es/Ellipsis/style/index.js +24 -1
- package/es/FullPage/FullPage.js +1 -2
- package/es/LocaleProvider/index.js +1 -2
- package/es/PermissionButton/index.js +6 -7
- package/es/ProLayout/Basic/BasicLayout.js +45 -41
- package/es/ProLayout/Basic/BasicLayoutStyle.js +39 -0
- package/es/ProLayout/Basic/Header.js +3 -7
- package/es/ProLayout/Basic/HeaderStyle.js +10 -0
- package/es/ProLayout/PageContainer/index.js +21 -17
- package/es/ProLayout/PageContainer/style.js +46 -0
- package/es/ProLayout/SiderMenu/BaseMenu.js +18 -42
- package/es/ProLayout/SiderMenu/SiderMenu.js +24 -36
- package/es/ProLayout/SiderMenu/style.js +166 -0
- package/es/ProLayout/TopHeader/index.js +13 -12
- package/es/ProLayout/TopHeader/style.js +126 -0
- package/es/ProLayout/style/index.js +7 -1
- package/es/ProLayout/util.js +5 -5
- package/es/ProTable/Alert.js +12 -4
- package/es/ProTable/Content.js +166 -45
- package/es/ProTable/Header.js +21 -11
- package/es/ProTable/Pagination.js +28 -11
- package/es/ProTable/ProTable.js +104 -46
- package/es/ProTable/hooks/index.js +2 -0
- package/es/ProTable/hooks/useTableInject.js +5 -0
- package/es/ProTable/hooks/useTableSelection.js +95 -0
- package/es/ProTable/setting.js +24 -1
- package/es/ProTable/style/index.js +109 -1
- package/es/RadioButton/RadioButton.js +10 -4
- package/es/RadioButton/style/index.js +23 -1
- package/es/Scrollbar/Scrollbar.js +10 -3
- package/es/Scrollbar/Thumb.js +36 -25
- package/es/Scrollbar/style/index.js +63 -1
- package/es/Search/Advanced/History.js +23 -16
- package/es/Search/Advanced/SaveHistory.js +1 -2
- package/es/Search/Advanced/index.js +212 -292
- package/es/Search/Item.js +175 -415
- package/es/Search/Search.js +78 -172
- package/es/Search/hooks/index.js +108 -1
- package/es/Search/hooks/useRouteQuery.js +57 -0
- package/es/Search/setting.js +132 -14
- package/es/Search/style/index.js +4 -2
- package/es/Search/style/item.js +28 -0
- package/es/Search/style/search.js +133 -0
- package/es/Search/util.js +116 -124
- package/es/Skeleton/components/DashBoardCard.js +19 -12
- package/es/Skeleton/components/DashBoardChart.js +48 -45
- package/es/Skeleton/components/Detail.js +27 -21
- package/es/Skeleton/components/Drawer.js +23 -14
- package/es/Skeleton/components/Item.js +9 -1
- package/es/Skeleton/components/List.js +0 -1
- package/es/Skeleton/components/ListCard.js +20 -13
- package/es/Skeleton/components/ListCardItem.js +12 -13
- package/es/Skeleton/components/ListTable.js +19 -10
- package/es/Skeleton/components/Page.js +0 -1
- package/es/Skeleton/components/Tree.js +21 -14
- package/es/Skeleton/skeleton.js +17 -8
- package/es/Skeleton/style/index.js +132 -1
- package/es/Title/style/index.js +29 -1
- package/es/Title/title.js +13 -5
- package/es/ValueItem/ValueItem.js +44 -39
- package/es/VirtualTable/VirtualTable.js +398 -0
- package/es/VirtualTable/data.js +36 -0
- package/es/VirtualTable/index.js +5 -0
- package/es/VirtualTable/style/index.js +32 -0
- package/es/components.js +1 -4
- package/es/locale/en-US.js +6 -8
- package/es/locale/zh-CN.js +6 -8
- package/es/style/index.js +0 -3
- package/es/style/styleRegister.js +21 -0
- package/es/style/variable.js +4 -0
- package/es/style.js +0 -13
- package/lib/AutoComplete/AutoComplete.js +13 -9
- package/lib/BadgeStatus/Badge.js +1 -2
- package/lib/BadgeStatus/color.js +3 -3
- package/lib/CardSelect/CardSelect.js +23 -13
- package/lib/CardSelect/style/index.js +30 -1
- package/lib/CheckButton/CheckButton.js +12 -4
- package/lib/CheckButton/style/index.js +46 -1
- package/lib/DragModal/DragModal.js +14 -8
- package/lib/DragModal/style/index.js +69 -1
- package/lib/EditTable/Body.js +10 -3
- package/lib/EditTable/EditTable.js +13 -7
- package/lib/EditTable/FormItem.js +18 -19
- package/lib/EditTable/Header.js +16 -6
- package/lib/EditTable/components/ContextMenu/Menu.js +11 -5
- package/lib/EditTable/components/Search/search.js +1 -2
- package/lib/EditTable/components/Search/sort.js +1 -3
- package/lib/EditTable/group.js +23 -18
- package/lib/EditTable/hooks/useValidate.js +1 -1
- package/lib/EditTable/style/body.js +60 -0
- package/lib/EditTable/style/form.js +31 -0
- package/lib/EditTable/style/group.js +32 -0
- package/lib/EditTable/style/header.js +65 -0
- package/lib/EditTable/style/index.js +47 -1
- package/lib/EditTable/style/menu.js +33 -0
- package/lib/EditTable/style/table.js +52 -0
- package/lib/EditTable/utils.js +31 -3
- package/lib/Ellipsis/Ellipsis.js +10 -2
- package/lib/Ellipsis/style/index.js +29 -1
- package/lib/FullPage/FullPage.js +1 -2
- package/lib/Icon/icon.js +1 -2
- package/lib/LocaleProvider/index.js +1 -2
- package/lib/PermissionButton/index.js +6 -7
- package/lib/ProLayout/Basic/BasicLayout.js +45 -42
- package/lib/ProLayout/Basic/BasicLayoutStyle.js +46 -0
- package/lib/ProLayout/Basic/Header.js +2 -6
- package/lib/ProLayout/Basic/HeaderStyle.js +17 -0
- package/lib/ProLayout/PageContainer/index.js +19 -15
- package/lib/ProLayout/PageContainer/style.js +53 -0
- package/lib/ProLayout/SiderMenu/BaseMenu.js +19 -42
- package/lib/ProLayout/SiderMenu/SiderMenu.js +24 -37
- package/lib/ProLayout/SiderMenu/style.js +173 -0
- package/lib/ProLayout/TopHeader/index.js +14 -12
- package/lib/ProLayout/TopHeader/style.js +133 -0
- package/lib/ProLayout/style/index.js +12 -1
- package/lib/ProLayout/util.js +5 -5
- package/lib/ProTable/Alert.js +12 -4
- package/lib/ProTable/Content.js +166 -45
- package/lib/ProTable/Header.js +21 -11
- package/lib/ProTable/Pagination.js +28 -11
- package/lib/ProTable/ProTable.js +104 -46
- package/lib/ProTable/hooks/index.js +27 -0
- package/lib/ProTable/hooks/useTableInject.js +11 -0
- package/lib/ProTable/hooks/useTableSelection.js +102 -0
- package/lib/ProTable/setting.js +24 -1
- package/lib/ProTable/style/index.js +114 -1
- package/lib/RadioButton/RadioButton.js +10 -4
- package/lib/RadioButton/style/index.js +28 -1
- package/lib/Scrollbar/Scrollbar.js +10 -3
- package/lib/Scrollbar/Thumb.js +36 -25
- package/lib/Scrollbar/style/index.js +68 -1
- package/lib/Search/Advanced/History.js +23 -16
- package/lib/Search/Advanced/SaveHistory.js +1 -2
- package/lib/Search/Advanced/index.js +212 -292
- package/lib/Search/Item.js +175 -415
- package/lib/Search/Search.js +78 -172
- package/lib/Search/hooks/index.js +130 -1
- package/lib/Search/hooks/useRouteQuery.js +64 -0
- package/lib/Search/setting.js +133 -15
- package/lib/Search/style/index.js +9 -2
- package/lib/Search/style/item.js +35 -0
- package/lib/Search/style/search.js +140 -0
- package/lib/Search/util.js +116 -124
- package/lib/Skeleton/components/DashBoardCard.js +19 -12
- package/lib/Skeleton/components/DashBoardChart.js +48 -45
- package/lib/Skeleton/components/Detail.js +27 -21
- package/lib/Skeleton/components/Drawer.js +23 -14
- package/lib/Skeleton/components/Item.js +9 -1
- package/lib/Skeleton/components/List.js +0 -1
- package/lib/Skeleton/components/ListCard.js +20 -13
- package/lib/Skeleton/components/ListCardItem.js +12 -13
- package/lib/Skeleton/components/ListTable.js +19 -10
- package/lib/Skeleton/components/Page.js +0 -1
- package/lib/Skeleton/components/Tree.js +21 -14
- package/lib/Skeleton/skeleton.js +17 -8
- package/lib/Skeleton/style/index.js +137 -1
- package/lib/Title/style/index.js +34 -1
- package/lib/Title/title.js +13 -5
- package/lib/ValueItem/ValueItem.js +44 -39
- package/lib/VirtualTable/VirtualTable.js +398 -0
- package/lib/VirtualTable/data.js +43 -0
- package/lib/VirtualTable/index.js +12 -0
- package/lib/VirtualTable/style/index.js +39 -0
- package/lib/components.js +8 -30
- package/lib/index.js +1 -2
- package/lib/locale/en-US.js +6 -8
- package/lib/locale/zh-CN.js +6 -8
- package/lib/style/components.less +0 -1
- package/lib/style/index.js +1 -4
- package/lib/style/styleRegister.js +28 -0
- package/lib/style/variable.js +10 -0
- package/lib/style.js +1 -15
- package/package.json +170 -173
- package/es/AMap/Map.js +0 -133
- package/es/AMap/index.js +0 -5
- package/es/AMap/util.js +0 -56
- package/es/CardSelect/style/index.css +0 -24
- package/es/CardSelect/style/index.less +0 -26
- package/es/CheckButton/style/index.css +0 -37
- package/es/CheckButton/style/index.less +0 -40
- package/es/DragModal/style/index.css +0 -82
- package/es/DragModal/style/index.less +0 -97
- package/es/Echarts/Echarts.js +0 -48
- package/es/Echarts/index.js +0 -5
- package/es/EditTable/style/body.less +0 -66
- package/es/EditTable/style/form.less +0 -33
- package/es/EditTable/style/group.less +0 -32
- package/es/EditTable/style/header.less +0 -77
- package/es/EditTable/style/index.css +0 -267
- package/es/EditTable/style/index.less +0 -41
- package/es/EditTable/style/menu.less +0 -25
- package/es/EditTable/style/table.less +0 -47
- package/es/Ellipsis/style/index.css +0 -17
- package/es/Ellipsis/style/index.less +0 -20
- package/es/FlameGraph/FlameGraph.js +0 -136
- package/es/FlameGraph/index.js +0 -5
- package/es/FlameGraph/style/index.css +0 -43
- package/es/FlameGraph/style/index.js +0 -1
- package/es/FlameGraph/style/index.less +0 -52
- package/es/ProLayout/Basic/BasicLayout.less +0 -66
- package/es/ProLayout/Basic/Header.less +0 -8
- package/es/ProLayout/PageContainer/index.less +0 -103
- package/es/ProLayout/SiderMenu/index.less +0 -231
- package/es/ProLayout/TopHeader/index.less +0 -174
- package/es/ProLayout/style/default.less +0 -4
- package/es/ProLayout/style/style.less +0 -7
- package/es/ProTable/style/ProTable.less +0 -139
- package/es/RadioButton/style/index.css +0 -20
- package/es/RadioButton/style/index.less +0 -19
- package/es/Scrollbar/style/index.css +0 -65
- package/es/Scrollbar/style/index.less +0 -83
- package/es/Search/style/Item.less +0 -33
- package/es/Search/style/Search.less +0 -179
- package/es/Skeleton/style/Skeleton.less +0 -166
- package/es/Title/style/index.css +0 -27
- package/es/Title/style/index.less +0 -27
- package/es/style/index.css +0 -5375
- package/es/style/index.less +0 -14
- package/es/style/variable.css +0 -4
- package/es/style/variable.less +0 -4
- package/lib/AMap/Map.js +0 -133
- package/lib/AMap/index.js +0 -12
- package/lib/AMap/util.js +0 -62
- package/lib/CardSelect/style/index.css +0 -24
- package/lib/CardSelect/style/index.less +0 -26
- package/lib/CheckButton/style/index.css +0 -37
- package/lib/CheckButton/style/index.less +0 -40
- package/lib/DragModal/style/index.css +0 -82
- package/lib/DragModal/style/index.less +0 -97
- package/lib/Echarts/Echarts.js +0 -48
- package/lib/Echarts/index.js +0 -12
- package/lib/EditTable/style/body.less +0 -66
- package/lib/EditTable/style/form.less +0 -33
- package/lib/EditTable/style/group.less +0 -32
- package/lib/EditTable/style/header.less +0 -77
- package/lib/EditTable/style/index.css +0 -267
- package/lib/EditTable/style/index.less +0 -41
- package/lib/EditTable/style/menu.less +0 -25
- package/lib/EditTable/style/table.less +0 -47
- package/lib/Ellipsis/style/index.css +0 -17
- package/lib/Ellipsis/style/index.less +0 -20
- package/lib/FlameGraph/FlameGraph.js +0 -136
- package/lib/FlameGraph/index.js +0 -12
- package/lib/FlameGraph/style/index.css +0 -43
- package/lib/FlameGraph/style/index.js +0 -3
- package/lib/FlameGraph/style/index.less +0 -52
- package/lib/ProLayout/Basic/BasicLayout.less +0 -66
- package/lib/ProLayout/Basic/Header.less +0 -8
- package/lib/ProLayout/PageContainer/index.less +0 -103
- package/lib/ProLayout/SiderMenu/index.less +0 -231
- package/lib/ProLayout/TopHeader/index.less +0 -174
- package/lib/ProLayout/style/default.less +0 -4
- package/lib/ProLayout/style/style.less +0 -7
- package/lib/ProTable/style/ProTable.less +0 -139
- package/lib/RadioButton/style/index.css +0 -20
- package/lib/RadioButton/style/index.less +0 -19
- package/lib/Scrollbar/style/index.css +0 -65
- package/lib/Scrollbar/style/index.less +0 -83
- package/lib/Search/style/Item.less +0 -33
- package/lib/Search/style/Search.less +0 -179
- package/lib/Skeleton/style/Skeleton.less +0 -166
- package/lib/Title/style/index.css +0 -27
- package/lib/Title/style/index.less +0 -27
- package/lib/style/index.css +0 -5375
- package/lib/style/index.less +0 -14
- package/lib/style/variable.css +0 -4
- package/lib/style/variable.less +0 -4
package/es/EditTable/FormItem.js
CHANGED
|
@@ -21,7 +21,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
21
21
|
"computed": "setup-const",
|
|
22
22
|
"reactive": "setup-const",
|
|
23
23
|
"watch": "setup-const",
|
|
24
|
-
"defineOptions": "setup-const",
|
|
25
24
|
"provide": "setup-const",
|
|
26
25
|
"get": "setup-maybe-ref",
|
|
27
26
|
"isArray": "setup-maybe-ref",
|
|
@@ -29,8 +28,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
29
28
|
"useInjectError": "setup-maybe-ref",
|
|
30
29
|
"useInjectForm": "setup-maybe-ref",
|
|
31
30
|
"TABLE_FORM_ITEM_ERROR": "setup-maybe-ref",
|
|
31
|
+
"genEditTableStyle": "setup-maybe-ref",
|
|
32
32
|
"props": "setup-reactive-const",
|
|
33
33
|
"emit": "setup-const",
|
|
34
|
+
"prefixCls": "setup-ref",
|
|
35
|
+
"wrapSSR": "setup-maybe-ref",
|
|
36
|
+
"hashId": "setup-maybe-ref",
|
|
34
37
|
"context": "setup-maybe-ref",
|
|
35
38
|
"globalErrorMessage": "setup-maybe-ref",
|
|
36
39
|
"hideTimer": "setup-let",
|
|
@@ -47,18 +50,15 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
47
50
|
"onFieldBlur": "setup-const",
|
|
48
51
|
"onFieldChange": "setup-const"
|
|
49
52
|
} */
|
|
50
|
-
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot,
|
|
53
|
+
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, unref as _unref, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, renderSlot as _renderSlot, Fragment as _Fragment } from "vue";
|
|
51
54
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
52
|
-
const _hoisted_2 =
|
|
53
|
-
key: 0,
|
|
54
|
-
class: "jetlinks-table-form-error-target"
|
|
55
|
-
};
|
|
56
|
-
const _hoisted_3 = ["id"];
|
|
55
|
+
const _hoisted_2 = ["id"];
|
|
57
56
|
import { onBeforeUnmount, computed, reactive, watch, provide } from "vue";
|
|
58
57
|
import { get, isArray } from 'lodash-es';
|
|
59
58
|
import { useProvideFormItemContext } from 'ant-design-vue/es/form/FormItemContext';
|
|
60
59
|
import { useInjectError, useInjectForm } from "./hooks";
|
|
61
60
|
import { TABLE_FORM_ITEM_ERROR } from "./consts";
|
|
61
|
+
import genEditTableStyle from './style';
|
|
62
62
|
const __sfc_main__ = Object.assign({
|
|
63
63
|
name: 'JEditTableFormItem'
|
|
64
64
|
}, {
|
|
@@ -76,6 +76,8 @@ const __sfc_main__ = Object.assign({
|
|
|
76
76
|
setup(__props, { emit: __emit }) {
|
|
77
77
|
const props = __props;
|
|
78
78
|
const emit = __emit;
|
|
79
|
+
const prefixCls = computed(() => 'jetlinks-edit-table');
|
|
80
|
+
const [wrapSSR, hashId] = genEditTableStyle(prefixCls);
|
|
79
81
|
const context = useInjectForm();
|
|
80
82
|
const globalErrorMessage = useInjectError();
|
|
81
83
|
let hideTimer;
|
|
@@ -89,18 +91,12 @@ const __sfc_main__ = Object.assign({
|
|
|
89
91
|
});
|
|
90
92
|
const filedId = computed(() => {
|
|
91
93
|
const names = isArray(props.name) ? props.name : [props.name];
|
|
92
|
-
|
|
94
|
+
const [index, ...extra] = names;
|
|
95
|
+
return `${index}-${extra.join('.')}`;
|
|
93
96
|
});
|
|
94
97
|
const filedName = computed(() => {
|
|
95
98
|
const names = isArray(props.name) ? props.name : [props.name];
|
|
96
|
-
|
|
97
|
-
let tempKey = undefined;
|
|
98
|
-
for (const key of names) {
|
|
99
|
-
if (key in _rules) {
|
|
100
|
-
tempKey = key;
|
|
101
|
-
}
|
|
102
|
-
}
|
|
103
|
-
return tempKey;
|
|
99
|
+
return [...names].pop();
|
|
104
100
|
});
|
|
105
101
|
const filedValue = computed(() => {
|
|
106
102
|
return get(context.dataSource.value, props.name);
|
|
@@ -194,7 +190,10 @@ const __sfc_main__ = Object.assign({
|
|
|
194
190
|
]),
|
|
195
191
|
default: _withCtx(() => [
|
|
196
192
|
(errorMap.visible)
|
|
197
|
-
? (_openBlock(), _createElementBlock("div",
|
|
193
|
+
? (_openBlock(), _createElementBlock("div", {
|
|
194
|
+
key: 0,
|
|
195
|
+
class: _normalizeClass(['jetlinks-table-form-error-target', _unref(hashId), 'hashId'])
|
|
196
|
+
}, null, 2 /* CLASS */))
|
|
198
197
|
: _createCommentVNode("v-if", true)
|
|
199
198
|
]),
|
|
200
199
|
_: 1 /* STABLE */
|
|
@@ -202,10 +201,10 @@ const __sfc_main__ = Object.assign({
|
|
|
202
201
|
_createElementVNode("div", {
|
|
203
202
|
id: eventKey.value,
|
|
204
203
|
style: { "position": "relative" },
|
|
205
|
-
class: _normalizeClass({ 'jetlinks-edit-table-form-has-error': errorMap.message })
|
|
204
|
+
class: _normalizeClass({ 'jetlinks-edit-table-form-has-error': errorMap.message, [_unref(hashId)]: true })
|
|
206
205
|
}, [
|
|
207
206
|
_renderSlot(_ctx.$slots, "default")
|
|
208
|
-
], 10 /* CLASS, PROPS */,
|
|
207
|
+
], 10 /* CLASS, PROPS */, _hoisted_2)
|
|
209
208
|
], 64 /* STABLE_FRAGMENT */));
|
|
210
209
|
};
|
|
211
210
|
}
|
package/es/EditTable/Header.js
CHANGED
|
@@ -22,18 +22,22 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
22
22
|
"SearchModal": "setup-maybe-ref",
|
|
23
23
|
"Sort": "setup-maybe-ref",
|
|
24
24
|
"reactive": "setup-const",
|
|
25
|
-
"
|
|
25
|
+
"computed": "setup-const",
|
|
26
26
|
"useHScroll": "setup-maybe-ref",
|
|
27
27
|
"useTableTool": "setup-maybe-ref",
|
|
28
28
|
"HeaderItemRender": "setup-const",
|
|
29
|
+
"useEditTableStyle": "setup-maybe-ref",
|
|
29
30
|
"props": "setup-reactive-const",
|
|
31
|
+
"prefixCls": "setup-ref",
|
|
32
|
+
"wrapSSR": "setup-maybe-ref",
|
|
33
|
+
"hashId": "setup-maybe-ref",
|
|
30
34
|
"tableTool": "setup-maybe-ref",
|
|
31
35
|
"hScroll": "setup-maybe-ref",
|
|
32
36
|
"searchData": "setup-reactive-const",
|
|
33
37
|
"showFilter": "setup-const",
|
|
34
38
|
"sortClick": "setup-const"
|
|
35
39
|
} */
|
|
36
|
-
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent,
|
|
40
|
+
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, mergeProps as _mergeProps, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
|
|
37
41
|
const _hoisted_1 = ["id"];
|
|
38
42
|
const _hoisted_2 = { class: "table-header-cell-title" };
|
|
39
43
|
const _hoisted_3 = { class: "cell-title-box" };
|
|
@@ -47,9 +51,10 @@ const _hoisted_6 = {
|
|
|
47
51
|
class: "table-header-cell-trigger"
|
|
48
52
|
};
|
|
49
53
|
import { SearchModal, Sort } from './components/Search';
|
|
50
|
-
import { reactive, } from 'vue';
|
|
54
|
+
import { reactive, computed } from 'vue';
|
|
51
55
|
import { useHScroll, useTableTool } from "./hooks";
|
|
52
56
|
import HeaderItemRender from './HeaderRender.js';
|
|
57
|
+
import useEditTableStyle from './style';
|
|
53
58
|
const __sfc_main__ = Object.assign({
|
|
54
59
|
name: 'JEditTableHeader'
|
|
55
60
|
}, {
|
|
@@ -73,6 +78,8 @@ const __sfc_main__ = Object.assign({
|
|
|
73
78
|
},
|
|
74
79
|
setup(__props) {
|
|
75
80
|
const props = __props;
|
|
81
|
+
const prefixCls = computed(() => 'jetlinks-edit-table');
|
|
82
|
+
const [wrapSSR, hashId] = useEditTableStyle(prefixCls);
|
|
76
83
|
const tableTool = useTableTool();
|
|
77
84
|
const hScroll = useHScroll();
|
|
78
85
|
const searchData = reactive({
|
|
@@ -89,7 +96,7 @@ const __sfc_main__ = Object.assign({
|
|
|
89
96
|
return (_ctx, _cache) => {
|
|
90
97
|
const _component_AIcon = _resolveComponent("AIcon");
|
|
91
98
|
return (_openBlock(), _createElementBlock("div", {
|
|
92
|
-
class:
|
|
99
|
+
class: _normalizeClass(['jetlinks-edit-table-header-container', _unref(hashId)]),
|
|
93
100
|
style: _normalizeStyle(__props.style)
|
|
94
101
|
}, [
|
|
95
102
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.columns, (item, index) => {
|
|
@@ -126,7 +133,10 @@ const __sfc_main__ = Object.assign({
|
|
|
126
133
|
}, null, 8 /* PROPS */, ["onClick"]))
|
|
127
134
|
: _createCommentVNode("v-if", true),
|
|
128
135
|
(item.sort)
|
|
129
|
-
? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({
|
|
136
|
+
? (_openBlock(), _createBlock(_unref(Sort), _mergeProps({
|
|
137
|
+
key: 1,
|
|
138
|
+
ref_for: true
|
|
139
|
+
}, item.sort, {
|
|
130
140
|
key: item.dataIndex,
|
|
131
141
|
active: _unref(tableTool).sortData.dataIndex === item.dataIndex,
|
|
132
142
|
selectedRowKeys: _unref(tableTool).sortData.dataIndex === item.dataIndex ? _unref(tableTool).sortData.orderKeys : [],
|
|
@@ -147,7 +157,7 @@ const __sfc_main__ = Object.assign({
|
|
|
147
157
|
onClose: _cache[0] || (_cache[0] = $event => (searchData.visible = false))
|
|
148
158
|
}, null, 8 /* PROPS */, ["searchKey", "columns"]))
|
|
149
159
|
: _createCommentVNode("v-if", true)
|
|
150
|
-
],
|
|
160
|
+
], 6 /* CLASS, STYLE */));
|
|
151
161
|
};
|
|
152
162
|
}
|
|
153
163
|
});
|
|
@@ -23,13 +23,16 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
23
23
|
"onMounted": "setup-const",
|
|
24
24
|
"ref": "setup-const",
|
|
25
25
|
"nextTick": "setup-const",
|
|
26
|
-
"defineOptions": "setup-const",
|
|
27
26
|
"AIcon": "setup-maybe-ref",
|
|
28
27
|
"Menu": "setup-maybe-ref",
|
|
29
28
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
29
|
+
"useEditTableStyle": "setup-maybe-ref",
|
|
30
30
|
"MenuItem": "setup-maybe-ref",
|
|
31
31
|
"props": "setup-reactive-const",
|
|
32
32
|
"contextMenu": "setup-ref",
|
|
33
|
+
"prefixCls": "setup-maybe-ref",
|
|
34
|
+
"wrapSSR": "setup-maybe-ref",
|
|
35
|
+
"hashId": "setup-maybe-ref",
|
|
33
36
|
"contextLocale": "setup-maybe-ref",
|
|
34
37
|
"showDetail": "setup-maybe-ref",
|
|
35
38
|
"showPaste": "setup-maybe-ref",
|
|
@@ -37,11 +40,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
37
40
|
"clickFunc": "setup-const",
|
|
38
41
|
"close": "setup-const"
|
|
39
42
|
} */
|
|
40
|
-
import { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
41
|
-
import { onMounted, ref, nextTick
|
|
43
|
+
import { unref as _unref, createVNode as _createVNode, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
44
|
+
import { onMounted, ref, nextTick } from "vue";
|
|
42
45
|
import { AIcon } from '../../../components';
|
|
43
46
|
import { Menu } from 'ant-design-vue';
|
|
44
47
|
import { useLocaleReceiver } from "../../../LocaleReciver";
|
|
48
|
+
import useEditTableStyle from '../../style';
|
|
45
49
|
const __sfc_main__ = Object.assign({
|
|
46
50
|
name: 'JEditTableContextMenu'
|
|
47
51
|
}, {
|
|
@@ -56,6 +60,8 @@ const __sfc_main__ = Object.assign({
|
|
|
56
60
|
const MenuItem = Menu.Item;
|
|
57
61
|
const props = __props;
|
|
58
62
|
const contextMenu = ref(null);
|
|
63
|
+
const prefixCls = computed(() => 'jetlinks-edit-table');
|
|
64
|
+
const [wrapSSR, hashId] = useEditTableStyle(prefixCls);
|
|
59
65
|
const [contextLocale] = useLocaleReceiver('EditTable');
|
|
60
66
|
const showDetail = computed(() => {
|
|
61
67
|
return !props.data.id;
|
|
@@ -85,7 +91,7 @@ const __sfc_main__ = Object.assign({
|
|
|
85
91
|
});
|
|
86
92
|
return (_ctx, _cache) => {
|
|
87
93
|
return (_openBlock(), _createElementBlock("div", {
|
|
88
|
-
class:
|
|
94
|
+
class: _normalizeClass(['jetlinks-edit-table-context-menu', _unref(hashId)]),
|
|
89
95
|
ref_key: "contextMenu",
|
|
90
96
|
ref: contextMenu,
|
|
91
97
|
tabindex: "-1",
|
|
@@ -151,7 +157,7 @@ const __sfc_main__ = Object.assign({
|
|
|
151
157
|
]),
|
|
152
158
|
_: 1 /* STABLE */
|
|
153
159
|
})
|
|
154
|
-
],
|
|
160
|
+
], 34 /* CLASS, NEED_HYDRATION */));
|
|
155
161
|
};
|
|
156
162
|
}
|
|
157
163
|
});
|
|
@@ -24,7 +24,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
24
24
|
"useGroupOptions": "setup-maybe-ref",
|
|
25
25
|
"ref": "setup-const",
|
|
26
26
|
"computed": "setup-const",
|
|
27
|
-
"defineOptions": "setup-const",
|
|
28
27
|
"Ellipsis": "setup-const",
|
|
29
28
|
"DragModal": "setup-const",
|
|
30
29
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
@@ -68,7 +67,7 @@ const _hoisted_6 = { key: 1 };
|
|
|
68
67
|
const _hoisted_7 = { class: "jetlinks-table-search-result-total" };
|
|
69
68
|
import Table from '../../EditTable.js';
|
|
70
69
|
import { useTableDataSource, useTableOpenGroup, useTableTool, useGroupOptions } from "../../context";
|
|
71
|
-
import { ref, computed
|
|
70
|
+
import { ref, computed } from "vue";
|
|
72
71
|
import Ellipsis from '../../../Ellipsis/Ellipsis.js';
|
|
73
72
|
import DragModal from '../../../DragModal/DragModal.js';
|
|
74
73
|
import { useLocaleReceiver } from "../../../LocaleReciver/index";
|
|
@@ -22,7 +22,6 @@ 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
|
-
"defineOptions": "setup-const",
|
|
26
25
|
"ref": "setup-const",
|
|
27
26
|
"reactive": "setup-const",
|
|
28
27
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
@@ -41,8 +40,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
41
40
|
"onAsc": "setup-const",
|
|
42
41
|
"onDesc": "setup-const"
|
|
43
42
|
} */
|
|
44
|
-
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
|
|
45
|
-
const _withScopeId = n => (_pushScopeId("data-v-1747107046052"), n = n(), _popScopeId(), n);
|
|
43
|
+
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";
|
|
46
44
|
const _hoisted_1 = { class: "jetlinks-table-sort-content" };
|
|
47
45
|
const _hoisted_2 = { class: "jetlinks-table-sort-title" };
|
|
48
46
|
const _hoisted_3 = { class: "table-sort-body" };
|
package/es/EditTable/group.js
CHANGED
|
@@ -24,8 +24,8 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
24
24
|
"useTableGroupError": "setup-maybe-ref",
|
|
25
25
|
"useTableWrapper": "setup-maybe-ref",
|
|
26
26
|
"ref": "setup-const",
|
|
27
|
-
"defineOptions": "setup-const",
|
|
28
27
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
28
|
+
"genEditTableStyle": "setup-maybe-ref",
|
|
29
29
|
"props": "setup-reactive-const",
|
|
30
30
|
"emit": "setup-const",
|
|
31
31
|
"contextLocale": "setup-maybe-ref",
|
|
@@ -37,6 +37,9 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
37
37
|
"addIndex": "setup-ref",
|
|
38
38
|
"formRef": "setup-ref",
|
|
39
39
|
"formData": "setup-maybe-ref",
|
|
40
|
+
"prefixCls": "setup-maybe-ref",
|
|
41
|
+
"wrapSSR": "setup-maybe-ref",
|
|
42
|
+
"hashId": "setup-maybe-ref",
|
|
40
43
|
"onAdd": "setup-const",
|
|
41
44
|
"onEdit": "setup-const",
|
|
42
45
|
"onCancel": "setup-const",
|
|
@@ -46,23 +49,21 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
46
49
|
"popContainer": "setup-const",
|
|
47
50
|
"modalContainer": "setup-const"
|
|
48
51
|
} */
|
|
49
|
-
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock,
|
|
50
|
-
const _hoisted_1 = { class: "jetlinks-table-group-warp" };
|
|
51
|
-
const _hoisted_2 = {
|
|
52
|
-
const _hoisted_3 = {
|
|
53
|
-
const _hoisted_4 = /*#__PURE__*/ _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* HOISTED */);
|
|
54
|
-
const _hoisted_5 = {
|
|
52
|
+
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, resolveComponent as _resolveComponent, withCtx as _withCtx, createVNode as _createVNode, createElementVNode as _createElementVNode, createBlock as _createBlock, createCommentVNode as _createCommentVNode, vShow as _vShow, withDirectives as _withDirectives, normalizeClass as _normalizeClass } from "vue";
|
|
53
|
+
const _hoisted_1 = { class: "jetlinks-table-group-error-warp" };
|
|
54
|
+
const _hoisted_2 = { style: { "color": "#1d2129" } };
|
|
55
|
+
const _hoisted_3 = {
|
|
55
56
|
key: 1,
|
|
56
57
|
class: "jetlinks-table-group-error-warp"
|
|
57
58
|
};
|
|
58
|
-
const
|
|
59
|
-
const _hoisted_7 = /*#__PURE__*/ _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* HOISTED */);
|
|
59
|
+
const _hoisted_4 = { style: { "color": "#1d2129" } };
|
|
60
60
|
import { Modal } from "ant-design-vue";
|
|
61
61
|
import { randomNumber } from "@jetlinks-web/utils";
|
|
62
62
|
import { isFullScreen } from "./utils";
|
|
63
63
|
import { useTableGroupError, useTableWrapper } from './context';
|
|
64
|
-
import { ref
|
|
64
|
+
import { ref } from 'vue';
|
|
65
65
|
import { useLocaleReceiver } from "../LocaleReciver";
|
|
66
|
+
import genEditTableStyle from './style';
|
|
66
67
|
const __sfc_main__ = Object.assign({
|
|
67
68
|
name: 'JEditTableGroup'
|
|
68
69
|
}, {
|
|
@@ -95,6 +96,8 @@ const __sfc_main__ = Object.assign({
|
|
|
95
96
|
const formData = reactive({
|
|
96
97
|
label: undefined
|
|
97
98
|
});
|
|
99
|
+
const prefixCls = computed(() => 'jetlinks-edit-table');
|
|
100
|
+
const [wrapSSR, hashId] = genEditTableStyle(prefixCls);
|
|
98
101
|
const onAdd = (targetKey, action) => {
|
|
99
102
|
// if(props.readonly) return
|
|
100
103
|
if (action === 'add') {
|
|
@@ -212,7 +215,9 @@ const __sfc_main__ = Object.assign({
|
|
|
212
215
|
const _component_a_button = _resolveComponent("a-button");
|
|
213
216
|
const _component_a_form = _resolveComponent("a-form");
|
|
214
217
|
const _component_a_modal = _resolveComponent("a-modal");
|
|
215
|
-
return (_openBlock(), _createElementBlock("div",
|
|
218
|
+
return (_openBlock(), _createElementBlock("div", {
|
|
219
|
+
class: _normalizeClass(['jetlinks-table-group-warp', _unref(hashId)])
|
|
220
|
+
}, [
|
|
216
221
|
_createVNode(_component_a_tabs, {
|
|
217
222
|
type: "editable-card",
|
|
218
223
|
activeKey: myActiveKey.value,
|
|
@@ -257,7 +262,7 @@ const __sfc_main__ = Object.assign({
|
|
|
257
262
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick"])
|
|
258
263
|
]),
|
|
259
264
|
default: _withCtx(() => [
|
|
260
|
-
_createElementVNode("div",
|
|
265
|
+
_createElementVNode("div", _hoisted_1, [
|
|
261
266
|
_createTextVNode(_toDisplayString(item.label) + " (" + _toDisplayString(item.effective) + ") ", 1 /* TEXT */),
|
|
262
267
|
(_unref(errorMap)[item.value])
|
|
263
268
|
? (_openBlock(), _createBlock(_component_a_tooltip, {
|
|
@@ -267,10 +272,10 @@ const __sfc_main__ = Object.assign({
|
|
|
267
272
|
"get-popup-container": popContainer
|
|
268
273
|
}, {
|
|
269
274
|
title: _withCtx(() => [
|
|
270
|
-
_createElementVNode("span",
|
|
275
|
+
_createElementVNode("span", _hoisted_2, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
|
|
271
276
|
]),
|
|
272
277
|
default: _withCtx(() => [
|
|
273
|
-
|
|
278
|
+
_cache[2] || (_cache[2] = _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* CACHED */))
|
|
274
279
|
]),
|
|
275
280
|
_: 1 /* STABLE */
|
|
276
281
|
}))
|
|
@@ -279,7 +284,7 @@ const __sfc_main__ = Object.assign({
|
|
|
279
284
|
]),
|
|
280
285
|
_: 2 /* DYNAMIC */
|
|
281
286
|
}, 1032 /* PROPS, DYNAMIC_SLOTS */, ["getPopupContainer", "disabled"]))
|
|
282
|
-
: (_openBlock(), _createElementBlock("div",
|
|
287
|
+
: (_openBlock(), _createElementBlock("div", _hoisted_3, [
|
|
283
288
|
_createTextVNode(_toDisplayString(item.label) + " (" + _toDisplayString(item.effective) + ") ", 1 /* TEXT */),
|
|
284
289
|
(_unref(errorMap)[item.value])
|
|
285
290
|
? (_openBlock(), _createBlock(_component_a_tooltip, {
|
|
@@ -289,10 +294,10 @@ const __sfc_main__ = Object.assign({
|
|
|
289
294
|
getContainer: popContainer
|
|
290
295
|
}, {
|
|
291
296
|
title: _withCtx(() => [
|
|
292
|
-
_createElementVNode("span",
|
|
297
|
+
_createElementVNode("span", _hoisted_4, _toDisplayString(_unref(contextLocale).Group.validate), 1 /* TEXT */)
|
|
293
298
|
]),
|
|
294
299
|
default: _withCtx(() => [
|
|
295
|
-
|
|
300
|
+
_cache[3] || (_cache[3] = _createElementVNode("div", { class: "jetlinks-table-group-error-target" }, null, -1 /* CACHED */))
|
|
296
301
|
]),
|
|
297
302
|
_: 1 /* STABLE */
|
|
298
303
|
}))
|
|
@@ -348,7 +353,7 @@ const __sfc_main__ = Object.assign({
|
|
|
348
353
|
]),
|
|
349
354
|
_: 1 /* STABLE */
|
|
350
355
|
}, 8 /* PROPS */, ["visible", "title"])
|
|
351
|
-
]));
|
|
356
|
+
], 2 /* CLASS */));
|
|
352
357
|
};
|
|
353
358
|
}
|
|
354
359
|
});
|
|
@@ -18,7 +18,7 @@ export var useValidate = function useValidate(dataSource, columns, rowKey) {
|
|
|
18
18
|
firstFields: true,
|
|
19
19
|
index: index
|
|
20
20
|
}, function (err) {
|
|
21
|
-
if (err
|
|
21
|
+
if (err !== null && err !== void 0 && err.length) {
|
|
22
22
|
reject(err.map(function (item) {
|
|
23
23
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
24
24
|
__serial: data.__serial,
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
export var genEditTableBodyStyle = function genEditTableBodyStyle(config) {
|
|
3
|
+
var componentCls = config.componentCls,
|
|
4
|
+
token = config.token;
|
|
5
|
+
return _defineProperty(_defineProperty({}, '.jetlinks-edit-table-body-viewport', _defineProperty(_defineProperty(_defineProperty({
|
|
6
|
+
maxHeight: '100%',
|
|
7
|
+
width: '100%',
|
|
8
|
+
overflow: 'hidden auto',
|
|
9
|
+
position: 'relative'
|
|
10
|
+
}, '.jetlinks-edit-scrollbar', {
|
|
11
|
+
position: 'absolute',
|
|
12
|
+
left: 0,
|
|
13
|
+
top: 0,
|
|
14
|
+
right: 0,
|
|
15
|
+
zIndex: -1
|
|
16
|
+
}), '.jetlinks-edit-table-body-container', {
|
|
17
|
+
overflow: 'hidden',
|
|
18
|
+
height: '100%'
|
|
19
|
+
}), '.jetlinks-edit-table-center', _defineProperty(_defineProperty({
|
|
20
|
+
position: 'relative',
|
|
21
|
+
flex: '1 1 auto',
|
|
22
|
+
minWidth: 0,
|
|
23
|
+
height: '100%'
|
|
24
|
+
}, '.jetlinks-edit-table-row', _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
25
|
+
width: '100%',
|
|
26
|
+
display: 'flex',
|
|
27
|
+
alignItems: 'center',
|
|
28
|
+
transition: 'top .2s, height .2s, background-color .1s',
|
|
29
|
+
borderBottom: '1px solid #eebebeb'
|
|
30
|
+
}, '.jetlinks-edit-table-cell', {
|
|
31
|
+
position: 'absolute',
|
|
32
|
+
minWidth: 0
|
|
33
|
+
}), '&:hover', {
|
|
34
|
+
backgroundColor: 'rgb(248, 248, 248)'
|
|
35
|
+
}), '&.jetlinks-edit-table-row-selected', {
|
|
36
|
+
backgroundColor: 'var(--ant-primary-1)'
|
|
37
|
+
}), '.body-cell-box', {
|
|
38
|
+
padding: '0 12px',
|
|
39
|
+
position: 'relative'
|
|
40
|
+
})), '.readonly-mask', {
|
|
41
|
+
position: 'absolute',
|
|
42
|
+
top: 0,
|
|
43
|
+
left: 0,
|
|
44
|
+
right: 0,
|
|
45
|
+
bottom: 0,
|
|
46
|
+
zIndex: 4
|
|
47
|
+
}))), '.jetlinks-edit-table-body-empty', {
|
|
48
|
+
display: 'flex',
|
|
49
|
+
width: '100%',
|
|
50
|
+
justifyContent: 'center',
|
|
51
|
+
paddingTop: 24
|
|
52
|
+
});
|
|
53
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
export var genEditTableFormItemStyle = function genEditTableFormItemStyle(config) {
|
|
3
|
+
var componentCls = config.componentCls,
|
|
4
|
+
token = config.token;
|
|
5
|
+
return _defineProperty(_defineProperty({}, '.jetlinks-table-form-error-target', {
|
|
6
|
+
position: 'absolute',
|
|
7
|
+
right: '2px',
|
|
8
|
+
top: '-9px',
|
|
9
|
+
border: '16px solid transparent',
|
|
10
|
+
borderTopColor: token.colorError,
|
|
11
|
+
borderRightWidth: 0,
|
|
12
|
+
borderBottomWidth: 0
|
|
13
|
+
}), '.jetlinks-edit-table-form-has-error', _defineProperty(_defineProperty(_defineProperty({}, '.select-no-value', _defineProperty({}, '.ant-select-selector', _defineProperty({
|
|
14
|
+
borderColor: "".concat(token.colorError, " !important")
|
|
15
|
+
}, '&:focus', {
|
|
16
|
+
boxShadow: '0 0 0 2px var(--ant-error-color-outlined) !important'
|
|
17
|
+
}))), '> input', _defineProperty({
|
|
18
|
+
borderColor: "".concat(token.colorError, " !important")
|
|
19
|
+
}, '&:focus', {
|
|
20
|
+
boxShadow: '0 0 0 2px var(--ant-error-color-outlined) !important'
|
|
21
|
+
})), '.jetlinks-table-form-required-aicon', {
|
|
22
|
+
color: token.colorError
|
|
23
|
+
}));
|
|
24
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
export var genEditTableGroupStyle = function genEditTableGroupStyle(config) {
|
|
3
|
+
var token = config.token;
|
|
4
|
+
return _defineProperty(_defineProperty({}, '.jetlinks-table-group-wrap', _defineProperty({}, '.ant-tabs-nav', _defineProperty(_defineProperty(_defineProperty({
|
|
5
|
+
marginBottom: 0
|
|
6
|
+
}, '.ant-tabs-tab', {
|
|
7
|
+
overflow: 'hidden',
|
|
8
|
+
position: 'relative'
|
|
9
|
+
}), '.ant-tabs-tab-active', {
|
|
10
|
+
backgroundColor: '#BAE0FF !important',
|
|
11
|
+
borderColor: '#91CAFF !important'
|
|
12
|
+
}), '.ant-tabs-nav-add', {
|
|
13
|
+
border: 'none'
|
|
14
|
+
}))), '.jetlinks-table-group-error-wrap', _defineProperty({
|
|
15
|
+
color: '#1a1a1a !important'
|
|
16
|
+
}, '.table-group-error-target', {
|
|
17
|
+
position: 'absolute',
|
|
18
|
+
right: 0,
|
|
19
|
+
top: 0,
|
|
20
|
+
border: '16px solid transparent',
|
|
21
|
+
borderTopColor: token.colorError,
|
|
22
|
+
borderRightWidth: 0,
|
|
23
|
+
borderBottomWidth: 0
|
|
24
|
+
}));
|
|
25
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
export var genEditTableHeaderStyle = function genEditTableHeaderStyle(config) {
|
|
3
|
+
var token = config.token;
|
|
4
|
+
return _defineProperty(_defineProperty({}, '.jetlinks-edit-table-header-container', _defineProperty({
|
|
5
|
+
height: '100%',
|
|
6
|
+
position: 'relative'
|
|
7
|
+
}, '.jetlinks-edit-table-header-cell', _defineProperty({
|
|
8
|
+
height: '100%',
|
|
9
|
+
display: 'inline-flex',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
float: 'left',
|
|
12
|
+
overflow: 'visible',
|
|
13
|
+
position: 'absolute',
|
|
14
|
+
top: 0
|
|
15
|
+
}, '.jetlinks-edit-table-header-cell-box', _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
16
|
+
padding: '0 12px',
|
|
17
|
+
width: '100%'
|
|
18
|
+
}, '&.header-cell-box-tool', {
|
|
19
|
+
display: 'flex',
|
|
20
|
+
justifyContent: 'space-between',
|
|
21
|
+
alignItems: 'center'
|
|
22
|
+
}), '.table-header-cell-title', _defineProperty({
|
|
23
|
+
flex: 1,
|
|
24
|
+
display: 'flex',
|
|
25
|
+
alignItems: 'center',
|
|
26
|
+
fontWeight: 600,
|
|
27
|
+
gap: 4
|
|
28
|
+
}, '.cell-title-box', {
|
|
29
|
+
flex: '1 1 auto'
|
|
30
|
+
})), '.header-cell-required', {
|
|
31
|
+
color: token.colorError,
|
|
32
|
+
paddingLeft: 8,
|
|
33
|
+
transform: 'translateY(3px)',
|
|
34
|
+
fontWeight: 500
|
|
35
|
+
}), '&::before', {
|
|
36
|
+
position: 'absolute',
|
|
37
|
+
top: '50%',
|
|
38
|
+
right: '1px',
|
|
39
|
+
width: '1px',
|
|
40
|
+
height: '1.6em',
|
|
41
|
+
pointerEvents: 'none',
|
|
42
|
+
backgroundColor: 'rgba(0,0,0,.06)',
|
|
43
|
+
transform: 'translateY(-50%)',
|
|
44
|
+
transition: 'background-color .3s',
|
|
45
|
+
content: '""'
|
|
46
|
+
}), '&:not(:last-child)', {
|
|
47
|
+
'&::before': {
|
|
48
|
+
backgroundColor: 'transparent'
|
|
49
|
+
}
|
|
50
|
+
})))), 'jetlinks-table-search', _defineProperty({}, '.jetlinks-table-search-header', _defineProperty(_defineProperty({
|
|
51
|
+
display: 'flex',
|
|
52
|
+
justifyContent: 'space-between'
|
|
53
|
+
}, '.jetlinks-drag-modal-footer', {
|
|
54
|
+
display: 'none'
|
|
55
|
+
}), '.jetlinks-table-search-result-total', {
|
|
56
|
+
color: '@primary-color'
|
|
57
|
+
})));
|
|
58
|
+
};
|
|
@@ -1 +1,42 @@
|
|
|
1
|
-
import "./
|
|
1
|
+
import { genEditTableBodyStyle } from "./body";
|
|
2
|
+
import { genEditTableFormItemStyle } from './form';
|
|
3
|
+
import { genEditTableGroupStyle } from './group';
|
|
4
|
+
import { genEditTableHeaderStyle } from './header';
|
|
5
|
+
import { genTableStyle } from './table';
|
|
6
|
+
import { genMenuStyle } from './menu';
|
|
7
|
+
import genCompoentStyle from "../../style/styleRegister";
|
|
8
|
+
var genEditTableStyle = function genEditTableStyle(config) {
|
|
9
|
+
var token = config.token;
|
|
10
|
+
return {
|
|
11
|
+
'.edit-table-search-header': {
|
|
12
|
+
display: 'flex',
|
|
13
|
+
justifyContent: 'space-between'
|
|
14
|
+
},
|
|
15
|
+
'.edit-table-search-result-total': {
|
|
16
|
+
color: token.colorPrimary
|
|
17
|
+
},
|
|
18
|
+
'.jetlinks-edit-table-horizontal-scroll': {
|
|
19
|
+
height: 17,
|
|
20
|
+
width: 100,
|
|
21
|
+
display: 'flex',
|
|
22
|
+
position: 'relative',
|
|
23
|
+
zIndex: 4,
|
|
24
|
+
'.jetlinks-edit-table-horizontal-scroll-viewport': {
|
|
25
|
+
overflowY: 'hidden',
|
|
26
|
+
overflowX: 'scroll',
|
|
27
|
+
position: 'relative',
|
|
28
|
+
flex: '1 1 0',
|
|
29
|
+
height: '17px',
|
|
30
|
+
width: '100%',
|
|
31
|
+
'> div': {
|
|
32
|
+
height: '17px'
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
'.jetlinks-edit-table-horizontal-scroll-hidden': {
|
|
36
|
+
height: '100%',
|
|
37
|
+
overflowX: 'hidden'
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
};
|
|
42
|
+
export default genCompoentStyle([genEditTableStyle, genEditTableBodyStyle, genEditTableFormItemStyle, genEditTableGroupStyle, genEditTableHeaderStyle, genTableStyle, genMenuStyle]);
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export var genMenuStyle = function genMenuStyle(config) {
|
|
2
|
+
var token = config.token;
|
|
3
|
+
return {
|
|
4
|
+
'.jetlinks-edit-table-context-menu': {
|
|
5
|
+
position: 'fixed',
|
|
6
|
+
boxShadow: '0 0 12px rgba(0, 0, 0 ,.2)',
|
|
7
|
+
borderRadius: '4px',
|
|
8
|
+
overflow: 'hidden',
|
|
9
|
+
width: '192px',
|
|
10
|
+
padding: '4px',
|
|
11
|
+
backgroundColor: '#fff',
|
|
12
|
+
'.ant-menu': {
|
|
13
|
+
borderRight: 'none',
|
|
14
|
+
'.ant-menu-item': {
|
|
15
|
+
margin: 0,
|
|
16
|
+
height: '32px',
|
|
17
|
+
'&.danger': {
|
|
18
|
+
color: token.colorError
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
'.ant-menu-item-active': {
|
|
23
|
+
backgroundColor: 'var(--ant-primary-1)'
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
};
|
|
27
|
+
};
|