@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
|
@@ -19,10 +19,10 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
19
19
|
"AutoComplete": "setup-maybe-ref",
|
|
20
20
|
"autoCompleteProps": "setup-maybe-ref",
|
|
21
21
|
"ref": "setup-const",
|
|
22
|
-
"
|
|
22
|
+
"watch": "setup-const",
|
|
23
23
|
"props": "setup-reactive-const",
|
|
24
24
|
"emit": "setup-const",
|
|
25
|
-
"
|
|
25
|
+
"_options": "setup-ref",
|
|
26
26
|
"onSearch": "setup-const",
|
|
27
27
|
"dropdownVisibleChange": "setup-const"
|
|
28
28
|
} */
|
|
@@ -30,7 +30,7 @@ import { defineComponent as _defineComponent } from 'vue';
|
|
|
30
30
|
import { renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, unref as _unref, mergeProps as _mergeProps, withCtx as _withCtx, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
31
31
|
import { AutoComplete } from 'ant-design-vue';
|
|
32
32
|
import { autoCompleteProps } from 'ant-design-vue/lib/auto-complete';
|
|
33
|
-
import { ref, } from 'vue';
|
|
33
|
+
import { ref, watch } from 'vue';
|
|
34
34
|
const __sfc_main__ = _defineComponent({
|
|
35
35
|
...{
|
|
36
36
|
name: 'JAutoComplete'
|
|
@@ -46,29 +46,33 @@ const __sfc_main__ = _defineComponent({
|
|
|
46
46
|
setup(__props, { emit: __emit }) {
|
|
47
47
|
const props = __props;
|
|
48
48
|
const emit = __emit;
|
|
49
|
-
const
|
|
49
|
+
const _options = ref([]);
|
|
50
50
|
/**
|
|
51
51
|
* 根据关键词提示
|
|
52
52
|
* @param searchText 关键词
|
|
53
53
|
*/
|
|
54
54
|
const onSearch = (searchText) => {
|
|
55
|
-
|
|
56
|
-
if (!
|
|
57
|
-
|
|
55
|
+
_options.value = _optionalChain([props, 'access', _2 => _2.options, 'optionalAccess', _3 => _3.filter, 'call', _4 => _4((item) => !!_optionalChain([item, 'access', _5 => _5[props.searchKey], 'optionalAccess', _6 => _6.includes, 'call', _7 => _7(searchText)]))]) || [];
|
|
56
|
+
if (!_options.value.length) {
|
|
57
|
+
_options.value.unshift({ label: searchText, value: searchText });
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
const dropdownVisibleChange = (open) => {
|
|
61
61
|
if (!open) {
|
|
62
62
|
// 关闭还原下拉options
|
|
63
63
|
setTimeout(() => {
|
|
64
|
-
|
|
64
|
+
_options.value = props.options || [];
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
67
|
};
|
|
68
|
+
watch(() => JSON.stringify(props.options), // 处理options变化
|
|
69
|
+
() => {
|
|
70
|
+
_options.value = props.options || [];
|
|
71
|
+
}, { immediate: true });
|
|
68
72
|
return (_ctx, _cache) => {
|
|
69
73
|
return (_openBlock(), _createBlock(_unref(AutoComplete), _mergeProps(props, {
|
|
70
74
|
style: { "width": "100%" },
|
|
71
|
-
options:
|
|
75
|
+
options: _options.value,
|
|
72
76
|
onSearch: onSearch,
|
|
73
77
|
onDropdownVisibleChange: dropdownVisibleChange
|
|
74
78
|
}), {
|
package/es/BadgeStatus/Badge.js
CHANGED
|
@@ -3,7 +3,6 @@
|
|
|
3
3
|
"status": "props",
|
|
4
4
|
"statusNames": "props",
|
|
5
5
|
"computed": "setup-const",
|
|
6
|
-
"defineOptions": "setup-const",
|
|
7
6
|
"getHexColor": "setup-maybe-ref",
|
|
8
7
|
"Badge": "setup-maybe-ref",
|
|
9
8
|
"props": "setup-reactive-const",
|
|
@@ -11,7 +10,7 @@
|
|
|
11
10
|
} */
|
|
12
11
|
import { defineComponent as _defineComponent } from 'vue';
|
|
13
12
|
import { unref as _unref, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
14
|
-
import { computed
|
|
13
|
+
import { computed } from 'vue';
|
|
15
14
|
import { getHexColor } from './color';
|
|
16
15
|
import { Badge } from 'ant-design-vue';
|
|
17
16
|
const __sfc_main__ = _defineComponent({
|
package/es/BadgeStatus/color.js
CHANGED
|
@@ -8,9 +8,9 @@ var colorMap = {
|
|
|
8
8
|
export var getHexColor = function getHexColor(code) {
|
|
9
9
|
var pe = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 0.1;
|
|
10
10
|
var _color = colorMap[code] || colorMap.default;
|
|
11
|
-
if (code === 'default') {
|
|
12
|
-
|
|
13
|
-
}
|
|
11
|
+
// if (code === 'default') {
|
|
12
|
+
// pe = 0.1
|
|
13
|
+
// }
|
|
14
14
|
return "rgba(".concat(_color, ", ").concat(pe, ")");
|
|
15
15
|
};
|
|
16
16
|
export default colorMap;
|
|
@@ -10,21 +10,22 @@
|
|
|
10
10
|
"computed": "setup-const",
|
|
11
11
|
"ref": "setup-const",
|
|
12
12
|
"watch": "setup-const",
|
|
13
|
-
"
|
|
13
|
+
"genCompoentStyle": "setup-maybe-ref",
|
|
14
14
|
"props": "setup-reactive-const",
|
|
15
15
|
"emit": "setup-const",
|
|
16
16
|
"selectKeys": "setup-ref",
|
|
17
|
+
"prefixCls": "setup-ref",
|
|
18
|
+
"wrapSSR": "setup-maybe-ref",
|
|
19
|
+
"hashId": "setup-maybe-ref",
|
|
17
20
|
"CardSelectStyle": "setup-ref",
|
|
18
21
|
"isMultiple": "setup-ref",
|
|
19
22
|
"handleSelect": "setup-const"
|
|
20
23
|
} */
|
|
21
|
-
import { renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString,
|
|
24
|
+
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle } from "vue";
|
|
22
25
|
const _hoisted_1 = ["onClick"];
|
|
23
|
-
const _hoisted_2 = { class: "j-card-select-item-content" };
|
|
24
|
-
const _hoisted_3 = { class: "j-card-select-title" };
|
|
25
|
-
const _hoisted_4 = { class: "j-card-select-describe" };
|
|
26
26
|
import { has } from 'lodash-es';
|
|
27
|
-
import { computed, ref, watch
|
|
27
|
+
import { computed, ref, watch } from 'vue';
|
|
28
|
+
import genCompoentStyle from './style';
|
|
28
29
|
const __sfc_main__ = Object.assign({
|
|
29
30
|
name: 'JCardSelect'
|
|
30
31
|
}, {
|
|
@@ -63,6 +64,8 @@ const __sfc_main__ = Object.assign({
|
|
|
63
64
|
const props = __props;
|
|
64
65
|
const emit = __emit;
|
|
65
66
|
const selectKeys = ref([]);
|
|
67
|
+
const prefixCls = computed(() => 'j-card-select');
|
|
68
|
+
const [wrapSSR, hashId] = genCompoentStyle(prefixCls);
|
|
66
69
|
const CardSelectStyle = computed(() => {
|
|
67
70
|
const _column = props.column > 0 && props.layout === 'horizontal' ? props.column : 1;
|
|
68
71
|
return {
|
|
@@ -103,7 +106,7 @@ const __sfc_main__ = Object.assign({
|
|
|
103
106
|
}, { immediate: true });
|
|
104
107
|
return (_ctx, _cache) => {
|
|
105
108
|
return (_openBlock(), _createElementBlock("div", {
|
|
106
|
-
class:
|
|
109
|
+
class: _normalizeClass(['j-card-select', _unref(hashId)]),
|
|
107
110
|
style: _normalizeStyle(CardSelectStyle.value)
|
|
108
111
|
}, [
|
|
109
112
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(__props.options, (item) => {
|
|
@@ -111,19 +114,26 @@ const __sfc_main__ = Object.assign({
|
|
|
111
114
|
class: _normalizeClass({
|
|
112
115
|
'j-card-select-item': true,
|
|
113
116
|
'disabled': __props.disabled || item.disabled,
|
|
114
|
-
'active': selectKeys.value.includes(item.value)
|
|
117
|
+
'active': selectKeys.value.includes(item.value),
|
|
118
|
+
[_unref(hashId)]: true
|
|
115
119
|
}),
|
|
116
120
|
onClick: () => handleSelect(item.value, item)
|
|
117
121
|
}, [
|
|
118
122
|
_renderSlot(_ctx.$slots, "itemRender", { node: item }, () => [
|
|
119
|
-
_createElementVNode("div",
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
+
_createElementVNode("div", {
|
|
124
|
+
class: _normalizeClass(['j-card-select-item-content', _unref(hashId)])
|
|
125
|
+
}, [
|
|
126
|
+
_createElementVNode("div", {
|
|
127
|
+
class: _normalizeClass(['j-card-select-title', _unref(hashId)])
|
|
128
|
+
}, _toDisplayString(item.label), 3 /* TEXT, CLASS */),
|
|
129
|
+
_createElementVNode("div", {
|
|
130
|
+
class: _normalizeClass(['j-card-select-describe', _unref(hashId)])
|
|
131
|
+
}, _toDisplayString(item.describe), 3 /* TEXT, CLASS */)
|
|
132
|
+
], 2 /* CLASS */)
|
|
123
133
|
])
|
|
124
134
|
], 10 /* CLASS, PROPS */, _hoisted_1));
|
|
125
135
|
}), 256 /* UNKEYED_FRAGMENT */))
|
|
126
|
-
],
|
|
136
|
+
], 6 /* CLASS, STYLE */));
|
|
127
137
|
};
|
|
128
138
|
}
|
|
129
139
|
});
|
|
@@ -1 +1,25 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import genCompoentStyle from '../../style/styleRegister';
|
|
3
|
+
var genCardSelectStyle = function genCardSelectStyle(config) {
|
|
4
|
+
var componentCls = config.componentCls,
|
|
5
|
+
token = config.token;
|
|
6
|
+
return _defineProperty({}, componentCls, _defineProperty({
|
|
7
|
+
display: 'grid',
|
|
8
|
+
gap: '12px'
|
|
9
|
+
}, "".concat(componentCls, "-item"), _defineProperty({
|
|
10
|
+
padding: '12px',
|
|
11
|
+
border: '1px solid #e6e6e6',
|
|
12
|
+
borderRadius: '@border-radius-base',
|
|
13
|
+
cursor: 'pointer',
|
|
14
|
+
'&.active': {
|
|
15
|
+
borderColor: token.colorPrimary
|
|
16
|
+
},
|
|
17
|
+
'&.disabled': {
|
|
18
|
+
cursor: 'not-allowed',
|
|
19
|
+
opacity: 0.7
|
|
20
|
+
}
|
|
21
|
+
}, "".concat(componentCls, "-describe"), {
|
|
22
|
+
color: token.textColorSubtitle
|
|
23
|
+
})));
|
|
24
|
+
};
|
|
25
|
+
export default genCompoentStyle([genCardSelectStyle]);
|
|
@@ -8,20 +8,24 @@
|
|
|
8
8
|
"computed": "setup-const",
|
|
9
9
|
"ref": "setup-const",
|
|
10
10
|
"watch": "setup-const",
|
|
11
|
-
"defineOptions": "setup-const",
|
|
12
11
|
"isArray": "setup-maybe-ref",
|
|
12
|
+
"useCheckButtonStyle": "setup-maybe-ref",
|
|
13
13
|
"props": "setup-reactive-const",
|
|
14
14
|
"emit": "setup-const",
|
|
15
|
+
"prefixCls": "setup-ref",
|
|
16
|
+
"wrapSSR": "setup-maybe-ref",
|
|
17
|
+
"hashId": "setup-maybe-ref",
|
|
15
18
|
"myValue": "setup-ref",
|
|
16
19
|
"optionsMap": "setup-ref",
|
|
17
20
|
"_options": "setup-ref",
|
|
18
21
|
"selected": "setup-const"
|
|
19
22
|
} */
|
|
20
23
|
import { defineComponent as _defineComponent } from 'vue';
|
|
21
|
-
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
|
+
import { unref as _unref, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, toDisplayString as _toDisplayString, normalizeClass as _normalizeClass, normalizeStyle as _normalizeStyle } from "vue";
|
|
22
25
|
const _hoisted_1 = ["onClick"];
|
|
23
|
-
import { computed, ref, watch
|
|
26
|
+
import { computed, ref, watch } from 'vue';
|
|
24
27
|
import { isArray } from '@jetlinks-web/utils';
|
|
28
|
+
import useCheckButtonStyle from './style';
|
|
25
29
|
const __sfc_main__ = _defineComponent({
|
|
26
30
|
...{
|
|
27
31
|
name: 'JCheckButton'
|
|
@@ -56,6 +60,9 @@ const __sfc_main__ = _defineComponent({
|
|
|
56
60
|
setup(__props, { emit: __emit }) {
|
|
57
61
|
const props = __props;
|
|
58
62
|
const emit = __emit;
|
|
63
|
+
// 使用样式
|
|
64
|
+
const prefixCls = computed(() => 'j-check-button');
|
|
65
|
+
const [wrapSSR, hashId] = useCheckButtonStyle(prefixCls);
|
|
59
66
|
const myValue = ref();
|
|
60
67
|
const optionsMap = ref(new Map());
|
|
61
68
|
const _options = computed(() => {
|
|
@@ -99,7 +106,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
99
106
|
};
|
|
100
107
|
return (_ctx, _cache) => {
|
|
101
108
|
return (_openBlock(), _createElementBlock("div", {
|
|
102
|
-
class: _normalizeClass(['j-check-button', props.class]),
|
|
109
|
+
class: _normalizeClass(['j-check-button', props.class, _unref(hashId)]),
|
|
103
110
|
style: _normalizeStyle(__props.style)
|
|
104
111
|
}, [
|
|
105
112
|
(_openBlock(true), _createElementBlock(_Fragment, null, _renderList(_options.value, (item) => {
|
|
@@ -109,6 +116,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
109
116
|
'j-check-button-item',
|
|
110
117
|
myValue.value.includes(item.value) ? 'selected' : '',
|
|
111
118
|
item.disabled ? 'disabled' : '',
|
|
119
|
+
_unref(hashId)
|
|
112
120
|
]),
|
|
113
121
|
onClick: () => {
|
|
114
122
|
selected(item.value, item.disabled);
|
|
@@ -1 +1,41 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import genComponentStyle from '../../style/styleRegister';
|
|
3
|
+
var genCheckButtonStyle = function genCheckButtonStyle(config) {
|
|
4
|
+
var componentCls = config.componentCls,
|
|
5
|
+
token = config.token;
|
|
6
|
+
return _defineProperty({}, componentCls, _defineProperty({
|
|
7
|
+
display: 'flex',
|
|
8
|
+
gap: '16px',
|
|
9
|
+
width: '100%'
|
|
10
|
+
}, "".concat(componentCls, "-item"), {
|
|
11
|
+
flex: 1,
|
|
12
|
+
minWidth: 0,
|
|
13
|
+
padding: '8px',
|
|
14
|
+
borderRadius: token.borderRadius,
|
|
15
|
+
backgroundColor: '#f2f3f5',
|
|
16
|
+
transition: 'all 0.3s',
|
|
17
|
+
color: '#333',
|
|
18
|
+
textAlign: 'center',
|
|
19
|
+
cursor: 'pointer',
|
|
20
|
+
'&:hover': {
|
|
21
|
+
backgroundColor: token.colorPrimary,
|
|
22
|
+
opacity: 0.85,
|
|
23
|
+
color: '#fff'
|
|
24
|
+
},
|
|
25
|
+
'&.selected': {
|
|
26
|
+
backgroundColor: token.colorPrimary,
|
|
27
|
+
color: '#fff'
|
|
28
|
+
},
|
|
29
|
+
'&.disabled': {
|
|
30
|
+
backgroundColor: '#f5f5f5',
|
|
31
|
+
color: '#ccc',
|
|
32
|
+
cursor: 'not-allowed',
|
|
33
|
+
'&:hover': {
|
|
34
|
+
backgroundColor: '#f5f5f5',
|
|
35
|
+
color: '#ccc',
|
|
36
|
+
opacity: 1
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
export default genComponentStyle([genCheckButtonStyle]);
|
|
@@ -23,12 +23,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
23
23
|
"footer": "props",
|
|
24
24
|
"ref": "setup-const",
|
|
25
25
|
"useSlots": "setup-const",
|
|
26
|
-
"defineOptions": "setup-const",
|
|
27
26
|
"computed": "setup-const",
|
|
28
27
|
"onMounted": "setup-const",
|
|
29
28
|
"watch": "setup-const",
|
|
30
29
|
"Button": "setup-maybe-ref",
|
|
31
30
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
31
|
+
"genDragModalStyle": "setup-maybe-ref",
|
|
32
32
|
"props": "setup-reactive-const",
|
|
33
33
|
"emits": "setup-const",
|
|
34
34
|
"slots": "setup-maybe-ref",
|
|
@@ -40,6 +40,9 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
40
40
|
"baseHeight": "setup-ref",
|
|
41
41
|
"baseLeft": "setup-ref",
|
|
42
42
|
"baseTop": "setup-ref",
|
|
43
|
+
"prefixCls": "setup-ref",
|
|
44
|
+
"wrapSSR": "setup-maybe-ref",
|
|
45
|
+
"hashId": "setup-maybe-ref",
|
|
43
46
|
"styles": "setup-ref",
|
|
44
47
|
"getFixed": "setup-const",
|
|
45
48
|
"onDrag": "setup-const",
|
|
@@ -49,18 +52,19 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
49
52
|
"onOk": "setup-const"
|
|
50
53
|
} */
|
|
51
54
|
import { defineComponent as _defineComponent } from 'vue';
|
|
52
|
-
import { toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, withCtx as _withCtx, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle,
|
|
55
|
+
import { unref as _unref, toDisplayString as _toDisplayString, createElementVNode as _createElementVNode, resolveComponent as _resolveComponent, createVNode as _createVNode, withModifiers as _withModifiers, withCtx as _withCtx, normalizeClass as _normalizeClass, openBlock as _openBlock, createElementBlock as _createElementBlock, createCommentVNode as _createCommentVNode, renderSlot as _renderSlot, normalizeStyle as _normalizeStyle, createTextVNode as _createTextVNode, Transition as _Transition } from "vue";
|
|
53
56
|
const _hoisted_1 = {
|
|
54
57
|
key: 0,
|
|
55
|
-
class: "header"
|
|
58
|
+
class: /*@__PURE__*/ _normalizeClass(["header"])
|
|
56
59
|
};
|
|
57
60
|
const _hoisted_2 = {
|
|
58
61
|
key: 1,
|
|
59
|
-
class: "jetlinks-drag-modal-footer"
|
|
62
|
+
class: /*@__PURE__*/ _normalizeClass(["jetlinks-drag-modal-footer"])
|
|
60
63
|
};
|
|
61
64
|
import { ref, useSlots, computed, onMounted, watch } from 'vue';
|
|
62
65
|
import { Button } from 'ant-design-vue';
|
|
63
66
|
import { useLocaleReceiver } from "../LocaleReciver/index";
|
|
67
|
+
import genDragModalStyle from './style';
|
|
64
68
|
const __sfc_main__ = _defineComponent({
|
|
65
69
|
...{
|
|
66
70
|
name: 'JDragModal'
|
|
@@ -104,6 +108,8 @@ const __sfc_main__ = _defineComponent({
|
|
|
104
108
|
const baseHeight = ref(props.height || 100);
|
|
105
109
|
const baseLeft = ref(100);
|
|
106
110
|
const baseTop = ref(100);
|
|
111
|
+
const prefixCls = computed(() => 'jetlinks-drag-modal');
|
|
112
|
+
const [wrapSSR, hashId] = genDragModalStyle(prefixCls);
|
|
107
113
|
const styles = computed(() => {
|
|
108
114
|
return {
|
|
109
115
|
top: getFixed(baseTop.value) + 'px',
|
|
@@ -244,7 +250,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
244
250
|
ref_key: "dialog",
|
|
245
251
|
ref: dialog,
|
|
246
252
|
style: _normalizeStyle(styles.value),
|
|
247
|
-
class: "jetlinks-drag-modal"
|
|
253
|
+
class: _normalizeClass(["jetlinks-drag-modal", _unref(hashId)])
|
|
248
254
|
}, [
|
|
249
255
|
_createVNode(_Transition, { name: "dialog" }, {
|
|
250
256
|
default: _withCtx(() => [
|
|
@@ -269,7 +275,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
269
275
|
]))
|
|
270
276
|
: _createCommentVNode("v-if", true),
|
|
271
277
|
_createElementVNode("div", {
|
|
272
|
-
class: "jetlinks-drag-modal-body",
|
|
278
|
+
class: _normalizeClass(["jetlinks-drag-modal-body"]),
|
|
273
279
|
style: _normalizeStyle(__props.bodyStyle)
|
|
274
280
|
}, [
|
|
275
281
|
_renderSlot(_ctx.$slots, "default")
|
|
@@ -307,10 +313,10 @@ const __sfc_main__ = _defineComponent({
|
|
|
307
313
|
_: 3 /* FORWARDED */
|
|
308
314
|
}),
|
|
309
315
|
_createElementVNode("div", {
|
|
310
|
-
class:
|
|
316
|
+
class: _normalizeClass(['jetlinks-drag-modal-range', 'drag-bottom-right']),
|
|
311
317
|
onMousedown: _cache[0] || (_cache[0] = _withModifiers(($event) => (rangeMove($event, "drag-bottom-right")), ["stop"]))
|
|
312
318
|
}, null, 32 /* NEED_HYDRATION */)
|
|
313
|
-
],
|
|
319
|
+
], 6 /* CLASS, STYLE */));
|
|
314
320
|
};
|
|
315
321
|
}
|
|
316
322
|
});
|
|
@@ -1 +1,64 @@
|
|
|
1
|
-
import
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import genCompoentStyle from '../../style/styleRegister';
|
|
3
|
+
var genDragModalStyle = function genDragModalStyle(config) {
|
|
4
|
+
var componentCls = config.componentCls,
|
|
5
|
+
token = config.token;
|
|
6
|
+
return _defineProperty({}, componentCls, _defineProperty(_defineProperty({
|
|
7
|
+
position: 'fixed',
|
|
8
|
+
zIndex: 1000
|
|
9
|
+
}, "".concat(componentCls, "-sprite"), _defineProperty(_defineProperty({
|
|
10
|
+
position: 'absolute',
|
|
11
|
+
width: '100%',
|
|
12
|
+
height: '100%',
|
|
13
|
+
display: 'flex',
|
|
14
|
+
flexDirection: 'column',
|
|
15
|
+
overflow: 'hidden',
|
|
16
|
+
zIndex: 23456765435,
|
|
17
|
+
backgroundColor: '#ffffff',
|
|
18
|
+
borderRadius: 4,
|
|
19
|
+
border: '1px solid #91CAFF',
|
|
20
|
+
boxShadow: '0 3px 8px 0 rgba(22, 119, 255, 0.24)',
|
|
21
|
+
header: {
|
|
22
|
+
padding: '5px 15px',
|
|
23
|
+
fontSize: 18,
|
|
24
|
+
fontWeight: 700,
|
|
25
|
+
color: '#333',
|
|
26
|
+
display: 'flex',
|
|
27
|
+
justifyContent: 'space-between',
|
|
28
|
+
alignItems: 'center',
|
|
29
|
+
borderBottom: '1px solid #f0f0f0',
|
|
30
|
+
cursor: 'move'
|
|
31
|
+
}
|
|
32
|
+
}, "".concat(componentCls, "-body"), {
|
|
33
|
+
flex: 1,
|
|
34
|
+
minHeight: 0,
|
|
35
|
+
overflowY: 'auto',
|
|
36
|
+
padding: '24px 20px'
|
|
37
|
+
}), "".concat(componentCls, "-footer"), {
|
|
38
|
+
borderTop: '1px solid #f0f0f0',
|
|
39
|
+
padding: '5px 15px'
|
|
40
|
+
})), "".concat(componentCls, "-range"), _defineProperty(_defineProperty(_defineProperty(_defineProperty({
|
|
41
|
+
position: 'absolute',
|
|
42
|
+
width: '16px',
|
|
43
|
+
height: '16px',
|
|
44
|
+
borderRadius: '100%',
|
|
45
|
+
zIndex: 23456765436
|
|
46
|
+
}, 'drag-bottom-right', _defineProperty({
|
|
47
|
+
bottom: '-6px',
|
|
48
|
+
right: '-6px'
|
|
49
|
+
}, '&:hover', {
|
|
50
|
+
cursor: 'nwse-resize'
|
|
51
|
+
})), 'drag-bottom-left', _defineProperty({
|
|
52
|
+
bottom: '-6px',
|
|
53
|
+
left: '-6px'
|
|
54
|
+
}, '&:hover', {
|
|
55
|
+
cursor: 'nesw-resize'
|
|
56
|
+
})), 'drag-top-right', {
|
|
57
|
+
top: '-6px',
|
|
58
|
+
right: '-6px'
|
|
59
|
+
}), 'drag-top-left', {
|
|
60
|
+
top: '-6px',
|
|
61
|
+
left: '-6px'
|
|
62
|
+
})));
|
|
63
|
+
};
|
|
64
|
+
export default genCompoentStyle([genDragModalStyle]);
|
package/es/EditTable/Body.js
CHANGED
|
@@ -32,8 +32,12 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
32
32
|
"nextTick": "setup-const",
|
|
33
33
|
"Empty": "setup-const",
|
|
34
34
|
"CellRender": "setup-const",
|
|
35
|
+
"genEditTableStyle": "setup-maybe-ref",
|
|
35
36
|
"props": "setup-reactive-const",
|
|
36
37
|
"emit": "setup-const",
|
|
38
|
+
"prefixCls": "setup-ref",
|
|
39
|
+
"wrapSSR": "setup-maybe-ref",
|
|
40
|
+
"hashId": "setup-maybe-ref",
|
|
37
41
|
"viewScrollRef": "setup-ref",
|
|
38
42
|
"tableCenterRef": "setup-ref",
|
|
39
43
|
"virtualRang": "setup-reactive-const",
|
|
@@ -51,7 +55,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
51
55
|
"rowClick": "setup-const",
|
|
52
56
|
"updateSelectedKeys": "setup-const"
|
|
53
57
|
} */
|
|
54
|
-
import {
|
|
58
|
+
import { unref as _unref, normalizeStyle as _normalizeStyle, createElementVNode as _createElementVNode, renderList as _renderList, Fragment as _Fragment, openBlock as _openBlock, createElementBlock as _createElementBlock, renderSlot as _renderSlot, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, createCommentVNode as _createCommentVNode, createBlock as _createBlock, withModifiers as _withModifiers, normalizeClass as _normalizeClass, createVNode as _createVNode } from "vue";
|
|
55
59
|
const _hoisted_1 = { style: { position: 'relative' } };
|
|
56
60
|
const _hoisted_2 = ["data-row-key", "onContextmenu", "onClick"];
|
|
57
61
|
const _hoisted_3 = {
|
|
@@ -74,6 +78,7 @@ import { bodyProps } from "./props";
|
|
|
74
78
|
import { ref, reactive, computed, watch, onMounted, onBeforeUnmount, nextTick } from 'vue';
|
|
75
79
|
import Empty from '../Empty/Empty.js';
|
|
76
80
|
import CellRender from './CellRender.js';
|
|
81
|
+
import genEditTableStyle from './style';
|
|
77
82
|
const __sfc_main__ = Object.assign({
|
|
78
83
|
name: 'JEditTableBody'
|
|
79
84
|
}, {
|
|
@@ -95,6 +100,8 @@ const __sfc_main__ = Object.assign({
|
|
|
95
100
|
setup(__props, { expose: __expose, emit: __emit }) {
|
|
96
101
|
const props = __props;
|
|
97
102
|
const emit = __emit;
|
|
103
|
+
const prefixCls = computed(() => 'jetlinks-edit-table');
|
|
104
|
+
const [wrapSSR, hashId] = genEditTableStyle(prefixCls);
|
|
98
105
|
const viewScrollRef = ref();
|
|
99
106
|
const tableCenterRef = ref();
|
|
100
107
|
const virtualRang = reactive({
|
|
@@ -212,7 +219,7 @@ const __sfc_main__ = Object.assign({
|
|
|
212
219
|
key: 0,
|
|
213
220
|
ref_key: "viewScrollRef",
|
|
214
221
|
ref: viewScrollRef,
|
|
215
|
-
class:
|
|
222
|
+
class: _normalizeClass(['jetlinks-edit-table-body-viewport', _unref(hashId)]),
|
|
216
223
|
style: _normalizeStyle({ ..._ctx.style, height: _ctx.height + 'px' }),
|
|
217
224
|
onScroll: onScroll
|
|
218
225
|
}, [
|
|
@@ -293,7 +300,7 @@ const __sfc_main__ = Object.assign({
|
|
|
293
300
|
: _createCommentVNode("v-if", true)
|
|
294
301
|
], 4 /* STYLE */)
|
|
295
302
|
])
|
|
296
|
-
],
|
|
303
|
+
], 38 /* CLASS, STYLE, NEED_HYDRATION */))
|
|
297
304
|
: _renderSlot(_ctx.$slots, "empty", { key: 1 }, () => [
|
|
298
305
|
_createElementVNode("div", _hoisted_6, [
|
|
299
306
|
_createVNode(Empty)
|
|
@@ -41,7 +41,6 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
41
41
|
"useSlots": "setup-const",
|
|
42
42
|
"ref": "setup-const",
|
|
43
43
|
"reactive": "setup-const",
|
|
44
|
-
"defineOptions": "setup-const",
|
|
45
44
|
"computed": "setup-const",
|
|
46
45
|
"watch": "setup-const",
|
|
47
46
|
"bodyProps": "setup-maybe-ref",
|
|
@@ -52,9 +51,13 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
52
51
|
"Body": "setup-const",
|
|
53
52
|
"Group": "setup-const",
|
|
54
53
|
"useLocaleReceiver": "setup-maybe-ref",
|
|
54
|
+
"useEditTableStyle": "setup-maybe-ref",
|
|
55
55
|
"emit": "setup-const",
|
|
56
56
|
"contextLocale": "setup-maybe-ref",
|
|
57
57
|
"props": "setup-reactive-const",
|
|
58
|
+
"prefixCls": "setup-ref",
|
|
59
|
+
"wrapSSR": "setup-maybe-ref",
|
|
60
|
+
"hashId": "setup-maybe-ref",
|
|
58
61
|
"slots": "setup-maybe-ref",
|
|
59
62
|
"myColumns": "setup-ref",
|
|
60
63
|
"tableWrapper": "setup-ref",
|
|
@@ -109,7 +112,6 @@ const _hoisted_3 = {
|
|
|
109
112
|
key: 0,
|
|
110
113
|
class: "jetlinks-table-horizontal-scroll"
|
|
111
114
|
};
|
|
112
|
-
const _hoisted_4 = /*#__PURE__*/ _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* HOISTED */);
|
|
113
115
|
import { FULL_SCREEN, RIGHT_MENU, TABLE_DATA_SOURCE, TABLE_ERROR, TABLE_GROUP_ACTIVE, TABLE_GROUP_ERROR, TABLE_GROUP_OPTIONS, TABLE_H_SCROLL, TABLE_OPEN_GROUP, TABLE_TOOL, TABLE_WRAPPER } from './consts';
|
|
114
116
|
import { handleColumnsWidth } from './utils';
|
|
115
117
|
import { useGroup, useResizeObserver, useValidate } from './hooks';
|
|
@@ -123,6 +125,7 @@ import Header from './Header.js';
|
|
|
123
125
|
import Body from './Body.js';
|
|
124
126
|
import Group from './group.js';
|
|
125
127
|
import { useLocaleReceiver } from "../LocaleReciver";
|
|
128
|
+
import useEditTableStyle from './style';
|
|
126
129
|
const defaultGroupId = 'group_1';
|
|
127
130
|
const __sfc_main__ = Object.assign({
|
|
128
131
|
name: 'JEditTable'
|
|
@@ -155,6 +158,8 @@ const __sfc_main__ = Object.assign({
|
|
|
155
158
|
const emit = __emit;
|
|
156
159
|
const [contextLocale] = useLocaleReceiver('EditTable');
|
|
157
160
|
const props = __props;
|
|
161
|
+
const prefixCls = computed(() => 'jetlinks-edit-table');
|
|
162
|
+
const [wrapSSR, hashId] = useEditTableStyle(prefixCls);
|
|
158
163
|
const slots = useSlots();
|
|
159
164
|
const myColumns = ref([]);
|
|
160
165
|
const tableWrapper = ref();
|
|
@@ -456,7 +461,8 @@ const __sfc_main__ = Object.assign({
|
|
|
456
461
|
return (_openBlock(), _createElementBlock("div", {
|
|
457
462
|
class: _normalizeClass({
|
|
458
463
|
'jetlinks-edit-table-wrapper': true,
|
|
459
|
-
'table-full-screen': _unref(isFullscreen)
|
|
464
|
+
'table-full-screen': _unref(isFullscreen),
|
|
465
|
+
[_unref(hashId)]: true
|
|
460
466
|
}),
|
|
461
467
|
ref_key: "tableWrapper",
|
|
462
468
|
ref: tableWrapper
|
|
@@ -515,18 +521,18 @@ const __sfc_main__ = Object.assign({
|
|
|
515
521
|
class: "jetlinks-table-horizontal-scroll-bar",
|
|
516
522
|
ref_key: "scrollBarRef",
|
|
517
523
|
ref: scrollBarRef,
|
|
518
|
-
style:
|
|
524
|
+
style: {
|
|
519
525
|
width: 'calc(100% - 15px)',
|
|
520
526
|
height: '100%',
|
|
521
527
|
overflowX: 'scroll'
|
|
522
|
-
}
|
|
528
|
+
},
|
|
523
529
|
onScroll: onHorizontalScroll
|
|
524
530
|
}, [
|
|
525
531
|
_createElementVNode("div", {
|
|
526
532
|
style: _normalizeStyle({ minWidth: horizontalScrollWidth.value + 'px', maxWidth: horizontalScrollWidth.value + 'px', height: '100%' })
|
|
527
533
|
}, null, 4 /* STYLE */)
|
|
528
|
-
],
|
|
529
|
-
|
|
534
|
+
], 544 /* NEED_HYDRATION, NEED_PATCH */),
|
|
535
|
+
_cache[1] || (_cache[1] = _createElementVNode("div", { style: { "width": "15px", "height": "100%", "overflow-x": "hidden" } }, null, -1 /* CACHED */))
|
|
530
536
|
]))
|
|
531
537
|
: _createCommentVNode("v-if", true),
|
|
532
538
|
(_ctx.dataSource.length && _ctx.openGroup)
|