@jetlinks-web/components 2.4.13 → 2.4.14
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/AMap/Map.js +6 -2
- package/es/ConfigProvider/context.js +3 -0
- package/es/ConfigProvider/index.js +5 -2
- package/es/DragModal/DragModal.js +7 -3
- package/es/EditTable/FormItem.js +1 -1
- package/es/Empty/Empty.js +23 -13
- package/es/FullPage/FullPage.js +1 -1
- package/es/LocaleProvider/index.js +33 -0
- package/es/LocaleReciver/index.js +12 -0
- package/es/ProLayout/PageContainer/index.js +6 -2
- package/es/ProTable/Alert.js +11 -3
- package/es/ProTable/Pagination.js +10 -1
- package/es/RadioButton/RadioButton.js +1 -1
- package/es/Scrollbar/style/index.css +61 -0
- package/es/Scrollbar/style/index.js +1 -0
- package/es/Scrollbar/style/index.less +82 -0
- package/es/Search/Advanced/History.js +10 -6
- package/es/Search/Advanced/SaveHistory.js +15 -11
- package/es/Search/Advanced/index.js +11 -7
- package/es/Search/Item.js +15 -11
- package/es/Search/Search.js +7 -5
- package/es/Search/setting.js +63 -57
- package/es/Search/util.js +4 -4
- package/es/index.js +1 -0
- package/es/locale/en-US.js +77 -0
- package/es/locale/zh-CN.js +77 -0
- package/es/style/index.css +61 -0
- package/es/style/index.less +11 -10
- package/es/style.js +2 -1
- package/lib/AMap/Map.js +6 -2
- package/lib/ConfigProvider/context.js +3 -0
- package/lib/ConfigProvider/index.js +5 -2
- package/lib/DragModal/DragModal.js +7 -3
- package/lib/EditTable/FormItem.js +1 -1
- package/lib/Empty/Empty.js +23 -13
- package/lib/FullPage/FullPage.js +1 -1
- package/lib/LocaleProvider/index.js +33 -0
- package/lib/LocaleReciver/index.js +19 -0
- package/lib/ProLayout/PageContainer/index.js +6 -1
- package/lib/ProTable/Alert.js +11 -3
- package/lib/ProTable/Pagination.js +10 -1
- package/lib/RadioButton/RadioButton.js +1 -1
- package/lib/Scrollbar/style/index.css +61 -0
- package/lib/Scrollbar/style/index.js +3 -0
- package/lib/Scrollbar/style/index.less +82 -0
- package/lib/Search/Advanced/History.js +10 -6
- package/lib/Search/Advanced/SaveHistory.js +15 -11
- package/lib/Search/Advanced/index.js +11 -7
- package/lib/Search/Item.js +15 -11
- package/lib/Search/Search.js +7 -5
- package/lib/Search/setting.js +63 -57
- package/lib/Search/util.js +4 -4
- package/lib/index.js +1 -0
- package/lib/locale/en-US.js +83 -0
- package/lib/locale/zh-CN.js +83 -0
- package/lib/style/components.less +1 -0
- package/lib/style/index.css +61 -0
- package/lib/style/index.less +11 -10
- package/lib/style.js +2 -1
- package/package.json +2 -2
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
DragModal: {
|
|
3
|
+
cancel: '取消',
|
|
4
|
+
confirm: '确定'
|
|
5
|
+
},
|
|
6
|
+
Search: {
|
|
7
|
+
search: {
|
|
8
|
+
reset: '重置',
|
|
9
|
+
search: '搜索'
|
|
10
|
+
},
|
|
11
|
+
advanced: {
|
|
12
|
+
search: '搜索',
|
|
13
|
+
reset: '重置',
|
|
14
|
+
more: '更多筛选',
|
|
15
|
+
saveHistory: {
|
|
16
|
+
searchName: '搜索名称',
|
|
17
|
+
placeholder: '请输入名称',
|
|
18
|
+
ruleName: '最多64个字符',
|
|
19
|
+
save: '保存',
|
|
20
|
+
success: '操作成功',
|
|
21
|
+
fail: '操作失败'
|
|
22
|
+
},
|
|
23
|
+
history: {
|
|
24
|
+
confirmDelete: '确认删除吗?',
|
|
25
|
+
search: '搜索'
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
item: {
|
|
29
|
+
firstGroup: '第一组',
|
|
30
|
+
secondGroup: '第二组',
|
|
31
|
+
placeholder: '请选择'
|
|
32
|
+
},
|
|
33
|
+
setting: {
|
|
34
|
+
or: '或者',
|
|
35
|
+
and: '并且',
|
|
36
|
+
include: '包含',
|
|
37
|
+
exclude: '不包含',
|
|
38
|
+
in: '在...之中',
|
|
39
|
+
notIn: '不在...之中',
|
|
40
|
+
between: '在...之间',
|
|
41
|
+
notBetween: '不在...之间'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
Empty: {
|
|
45
|
+
description: '暂无数据'
|
|
46
|
+
},
|
|
47
|
+
ProTable: {
|
|
48
|
+
pagination: {
|
|
49
|
+
total: "\u7B2C {0} - {1} \u6761/\u603B\u5171 {2} \u6761"
|
|
50
|
+
},
|
|
51
|
+
alert: {
|
|
52
|
+
cancelChoose: '取消选择',
|
|
53
|
+
selectItem: '已选择 {0} 项'
|
|
54
|
+
},
|
|
55
|
+
pageContainer: {
|
|
56
|
+
back: '返回'
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
AMap: {
|
|
60
|
+
description: '请配置高德地图key'
|
|
61
|
+
},
|
|
62
|
+
EditTable: {
|
|
63
|
+
contextMenu: {
|
|
64
|
+
add: '新增行',
|
|
65
|
+
copy: '复制行',
|
|
66
|
+
paste: '粘贴行',
|
|
67
|
+
detail: '查看详情',
|
|
68
|
+
delete: '删除'
|
|
69
|
+
}
|
|
70
|
+
},
|
|
71
|
+
ValueItem: {
|
|
72
|
+
placeholder: '请输入链接',
|
|
73
|
+
cancel: '取消',
|
|
74
|
+
confirm: '确定',
|
|
75
|
+
title: '编辑'
|
|
76
|
+
}
|
|
77
|
+
};
|
package/es/style/index.css
CHANGED
|
@@ -5039,3 +5039,64 @@ span.ant-radio + * {
|
|
|
5039
5039
|
min-height: 50px;
|
|
5040
5040
|
height: 100%;
|
|
5041
5041
|
}
|
|
5042
|
+
.j-scrollbar {
|
|
5043
|
+
overflow: hidden;
|
|
5044
|
+
position: relative;
|
|
5045
|
+
height: 100%;
|
|
5046
|
+
}
|
|
5047
|
+
.j-scrollbar__wrap {
|
|
5048
|
+
overflow: auto;
|
|
5049
|
+
height: 100%;
|
|
5050
|
+
}
|
|
5051
|
+
.j-scrollbar__wrap--hidden-default {
|
|
5052
|
+
scrollbar-width: none;
|
|
5053
|
+
}
|
|
5054
|
+
.j-scrollbar__wrap--hidden-default::-webkit-scrollbar {
|
|
5055
|
+
display: none;
|
|
5056
|
+
}
|
|
5057
|
+
.j-scrollbar__thumb {
|
|
5058
|
+
position: relative;
|
|
5059
|
+
display: block;
|
|
5060
|
+
width: 0;
|
|
5061
|
+
height: 0;
|
|
5062
|
+
cursor: pointer;
|
|
5063
|
+
border-radius: inherit;
|
|
5064
|
+
background-color: #909399;
|
|
5065
|
+
transition: 0.3s background-color;
|
|
5066
|
+
opacity: 0.3;
|
|
5067
|
+
}
|
|
5068
|
+
.j-scrollbar__thumb:hover {
|
|
5069
|
+
background-color: #909399;
|
|
5070
|
+
opacity: 0.5;
|
|
5071
|
+
}
|
|
5072
|
+
.j-scrollbar__bar {
|
|
5073
|
+
position: absolute;
|
|
5074
|
+
right: 2px;
|
|
5075
|
+
bottom: 2px;
|
|
5076
|
+
z-index: 1;
|
|
5077
|
+
border-radius: 4px;
|
|
5078
|
+
}
|
|
5079
|
+
.j-scrollbar__bar--vertical {
|
|
5080
|
+
width: 6px;
|
|
5081
|
+
top: 2px;
|
|
5082
|
+
}
|
|
5083
|
+
.j-scrollbar__bar--vertical > div {
|
|
5084
|
+
width: 100%;
|
|
5085
|
+
}
|
|
5086
|
+
.j-scrollbar__bar--horizontal {
|
|
5087
|
+
height: 6px;
|
|
5088
|
+
left: 2px;
|
|
5089
|
+
}
|
|
5090
|
+
.j-scrollbar__bar--horizontal > div {
|
|
5091
|
+
height: 100%;
|
|
5092
|
+
}
|
|
5093
|
+
.j-scrollbar-fade-enter-active {
|
|
5094
|
+
transition: opacity 340ms ease-out;
|
|
5095
|
+
}
|
|
5096
|
+
.j-scrollbar-fade-leave-active {
|
|
5097
|
+
transition: opacity 120ms ease-out;
|
|
5098
|
+
}
|
|
5099
|
+
.j-scrollbar-fade-enter-from,
|
|
5100
|
+
.j-scrollbar-fade-leave-active {
|
|
5101
|
+
opacity: 0;
|
|
5102
|
+
}
|
package/es/style/index.less
CHANGED
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
@import '../Ellipsis/style/index.less';
|
|
2
|
-
@import '../CheckButton/style/index.less';
|
|
3
|
-
@import '../ProLayout/style/style.less';
|
|
4
|
-
@import '../ProTable/style/ProTable.less';
|
|
5
|
-
@import '../Search/style/Search.less';
|
|
6
|
-
@import '../Search/style/Item.less';
|
|
7
|
-
@import '../CardSelect/style/index.less';
|
|
8
|
-
@import '../DragModal/style/index.less';
|
|
9
|
-
@import "../EditTable/style/index.less";
|
|
10
|
-
@import "../MonacoEditor/style/index.less";
|
|
1
|
+
@import '../Ellipsis/style/index.less';
|
|
2
|
+
@import '../CheckButton/style/index.less';
|
|
3
|
+
@import '../ProLayout/style/style.less';
|
|
4
|
+
@import '../ProTable/style/ProTable.less';
|
|
5
|
+
@import '../Search/style/Search.less';
|
|
6
|
+
@import '../Search/style/Item.less';
|
|
7
|
+
@import '../CardSelect/style/index.less';
|
|
8
|
+
@import '../DragModal/style/index.less';
|
|
9
|
+
@import "../EditTable/style/index.less";
|
|
10
|
+
@import "../MonacoEditor/style/index.less";
|
|
11
|
+
@import '../Scrollbar/style/index.less';
|
package/es/style.js
CHANGED
package/lib/AMap/Map.js
CHANGED
|
@@ -17,8 +17,10 @@
|
|
|
17
17
|
"MapProps": "setup-maybe-ref",
|
|
18
18
|
"MAPConfig": "setup-maybe-ref",
|
|
19
19
|
"Empty": "setup-maybe-ref",
|
|
20
|
+
"useLocaleReceiver": "setup-maybe-ref",
|
|
20
21
|
"emit": "setup-const",
|
|
21
22
|
"props": "setup-reactive-const",
|
|
23
|
+
"contextLocale": "setup-maybe-ref",
|
|
22
24
|
"config": "setup-maybe-ref",
|
|
23
25
|
"_mapStyle": "setup-ref",
|
|
24
26
|
"hasAMapKey": "setup-ref",
|
|
@@ -37,6 +39,7 @@ import { MapProps } from './util';
|
|
|
37
39
|
import { MAPConfig } from "../utils/constants";
|
|
38
40
|
import Empty from '../Empty';
|
|
39
41
|
import '@vuemap/vue-amap/dist/style.css';
|
|
42
|
+
import { useLocaleReceiver } from "../LocaleReciver/index";
|
|
40
43
|
const __sfc_main__ = _defineComponent({
|
|
41
44
|
...{
|
|
42
45
|
name: 'JAMap'
|
|
@@ -61,6 +64,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
61
64
|
setup(__props, { emit: __emit }) {
|
|
62
65
|
const emit = __emit;
|
|
63
66
|
const props = __props;
|
|
67
|
+
const [contextLocale] = useLocaleReceiver('AMap');
|
|
64
68
|
const config = inject(MAPConfig);
|
|
65
69
|
const _mapStyle = computed(() => {
|
|
66
70
|
if (props.mapStyle) {
|
|
@@ -119,9 +123,9 @@ const __sfc_main__ = _defineComponent({
|
|
|
119
123
|
}, 16 /* FULL_PROPS */, ["map-style"]))
|
|
120
124
|
: (_openBlock(), _createBlock(_unref(Empty), {
|
|
121
125
|
key: 1,
|
|
122
|
-
description:
|
|
126
|
+
description: _unref(contextLocale).description,
|
|
123
127
|
style: { "padding": "20%" }
|
|
124
|
-
}))
|
|
128
|
+
}, null, 8 /* PROPS */, ["description"]))
|
|
125
129
|
], 6 /* CLASS, STYLE */));
|
|
126
130
|
};
|
|
127
131
|
}
|
|
@@ -10,6 +10,7 @@ var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/obje
|
|
|
10
10
|
var _context = require("./context");
|
|
11
11
|
var _constants = require("../utils/constants");
|
|
12
12
|
var _antDesignVue = require("ant-design-vue");
|
|
13
|
+
var _index = _interopRequireDefault(require("../LocaleProvider/index.js"));
|
|
13
14
|
var _lodashEs = require("lodash");
|
|
14
15
|
var _Empty = _interopRequireDefault(require("../Empty"));
|
|
15
16
|
var JConfigProvider = (0, _vue.defineComponent)({
|
|
@@ -29,13 +30,15 @@ var JConfigProvider = (0, _vue.defineComponent)({
|
|
|
29
30
|
(0, _vue.provide)(_constants.PermissionButtonConfig, _PermissionButtonConfig); // 权限组件
|
|
30
31
|
(0, _vue.provide)(_constants.FullPageConfig, _FullPageConfig); // 权限组件
|
|
31
32
|
return function () {
|
|
32
|
-
return (0, _vue.h)(_antDesignVue.ConfigProvider, (0, _objectSpread2.default)({}, (0, _lodashEs.omit)(props, ['IconConfig', 'MapConfig', 'SearchConfig'])), {
|
|
33
|
+
return (0, _vue.h)(_antDesignVue.ConfigProvider, (0, _objectSpread2.default)({}, (0, _lodashEs.omit)(props, ['IconConfig', 'MapConfig', 'SearchConfig'])), [(0, _vue.h)(_index.default, {
|
|
34
|
+
locale: props.componentsLocale
|
|
35
|
+
}, {
|
|
33
36
|
default: slots.default,
|
|
34
37
|
renderEmpty: function renderEmpty() {
|
|
35
38
|
var _slots$renderEmpty;
|
|
36
39
|
return ((_slots$renderEmpty = slots.renderEmpty) === null || _slots$renderEmpty === void 0 ? void 0 : _slots$renderEmpty.call(slots)) || (0, _vue.createVNode)(_Empty.default, null, null);
|
|
37
40
|
}
|
|
38
|
-
});
|
|
41
|
+
})]);
|
|
39
42
|
};
|
|
40
43
|
}
|
|
41
44
|
});
|
|
@@ -28,9 +28,11 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
28
28
|
"onMounted": "setup-const",
|
|
29
29
|
"watch": "setup-const",
|
|
30
30
|
"Button": "setup-maybe-ref",
|
|
31
|
+
"useLocaleReceiver": "setup-maybe-ref",
|
|
31
32
|
"props": "setup-reactive-const",
|
|
32
33
|
"emits": "setup-const",
|
|
33
34
|
"slots": "setup-maybe-ref",
|
|
35
|
+
"contextLocale": "setup-maybe-ref",
|
|
34
36
|
"ele": "setup-maybe-ref",
|
|
35
37
|
"dialog": "setup-ref",
|
|
36
38
|
"header": "setup-ref",
|
|
@@ -47,7 +49,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
47
49
|
"onOk": "setup-const"
|
|
48
50
|
} */
|
|
49
51
|
import { defineComponent as _defineComponent } from 'vue';
|
|
50
|
-
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,
|
|
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, unref as _unref, createTextVNode as _createTextVNode, Transition as _Transition } from "vue";
|
|
51
53
|
const _hoisted_1 = {
|
|
52
54
|
key: 0,
|
|
53
55
|
class: "header"
|
|
@@ -58,6 +60,7 @@ const _hoisted_2 = {
|
|
|
58
60
|
};
|
|
59
61
|
import { ref, useSlots, computed, onMounted, watch } from 'vue';
|
|
60
62
|
import { Button } from 'ant-design-vue';
|
|
63
|
+
import { useLocaleReceiver } from "../LocaleReciver/index";
|
|
61
64
|
const __sfc_main__ = _defineComponent({
|
|
62
65
|
...{
|
|
63
66
|
name: 'JDragModal'
|
|
@@ -93,6 +96,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
93
96
|
const props = __props;
|
|
94
97
|
const emits = __emit;
|
|
95
98
|
const slots = useSlots();
|
|
99
|
+
const [contextLocale] = useLocaleReceiver('Search');
|
|
96
100
|
const ele = document.body;
|
|
97
101
|
const dialog = ref();
|
|
98
102
|
const header = ref();
|
|
@@ -276,7 +280,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
276
280
|
onClick: _withModifiers(onCancel, ["stop"])
|
|
277
281
|
}, {
|
|
278
282
|
default: _withCtx(() => [
|
|
279
|
-
_createTextVNode(
|
|
283
|
+
_createTextVNode(_toDisplayString(_unref(contextLocale).DragModal.cancel), 1 /* TEXT */)
|
|
280
284
|
]),
|
|
281
285
|
_: 1 /* STABLE */
|
|
282
286
|
}),
|
|
@@ -285,7 +289,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
285
289
|
onClick: _withModifiers(onOk, ["stop"])
|
|
286
290
|
}, {
|
|
287
291
|
default: _withCtx(() => [
|
|
288
|
-
_createTextVNode(
|
|
292
|
+
_createTextVNode(_toDisplayString(_unref(contextLocale).DragModal.confirm), 1 /* TEXT */)
|
|
289
293
|
]),
|
|
290
294
|
_: 1 /* STABLE */
|
|
291
295
|
})
|
|
@@ -48,7 +48,7 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
48
48
|
"onFieldChange": "setup-const"
|
|
49
49
|
} */
|
|
50
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, normalizeClass as _normalizeClass, Fragment as _Fragment, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
51
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
51
|
+
const _withScopeId = n => (_pushScopeId("data-v-1735798898715"), n = n(), _popScopeId(), n);
|
|
52
52
|
const _hoisted_1 = { style: { "color": "#1d2129" } };
|
|
53
53
|
const _hoisted_2 = {
|
|
54
54
|
key: 0,
|
package/lib/Empty/Empty.js
CHANGED
|
@@ -6,17 +6,22 @@
|
|
|
6
6
|
"useSlots": "setup-const",
|
|
7
7
|
"NoData": "setup-maybe-ref",
|
|
8
8
|
"omit": "setup-maybe-ref",
|
|
9
|
+
"useLocaleReceiver": "setup-maybe-ref",
|
|
10
|
+
"LocaleProvider": "setup-const",
|
|
9
11
|
"slots": "setup-maybe-ref",
|
|
10
12
|
"renderArr": "setup-maybe-ref",
|
|
13
|
+
"contextLocale": "setup-maybe-ref",
|
|
11
14
|
"props": "setup-reactive-const",
|
|
12
15
|
"baseProps": "setup-maybe-ref"
|
|
13
16
|
} */
|
|
14
17
|
import { defineComponent as _defineComponent } from 'vue';
|
|
15
|
-
import { unref as _unref, renderSlot as _renderSlot, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
18
|
+
import { unref as _unref, renderSlot as _renderSlot, normalizeProps as _normalizeProps, guardReactiveProps as _guardReactiveProps, withCtx as _withCtx, renderList as _renderList, createSlots as _createSlots, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock } from "vue";
|
|
16
19
|
import { Empty } from 'ant-design-vue';
|
|
17
20
|
import { useSlots } from 'vue';
|
|
18
21
|
import NoData from './image';
|
|
19
22
|
import { omit } from 'lodash-es';
|
|
23
|
+
import { useLocaleReceiver } from "../LocaleReciver/index";
|
|
24
|
+
import LocaleProvider from "../LocaleProvider/index.js";
|
|
20
25
|
const __sfc_main__ = _defineComponent({
|
|
21
26
|
...{
|
|
22
27
|
name: 'JEmpty'
|
|
@@ -24,7 +29,6 @@ const __sfc_main__ = _defineComponent({
|
|
|
24
29
|
props: {
|
|
25
30
|
description: {
|
|
26
31
|
type: String,
|
|
27
|
-
default: '暂无数据',
|
|
28
32
|
},
|
|
29
33
|
image: {
|
|
30
34
|
type: String,
|
|
@@ -40,19 +44,25 @@ const __sfc_main__ = _defineComponent({
|
|
|
40
44
|
setup(__props) {
|
|
41
45
|
const slots = useSlots();
|
|
42
46
|
const renderArr = Object.keys(slots);
|
|
47
|
+
const [contextLocale] = useLocaleReceiver('Empty');
|
|
43
48
|
const props = __props;
|
|
44
|
-
const baseProps = omit(props, ...renderArr);
|
|
49
|
+
const baseProps = omit({ ...props, description: props.description || contextLocale.value.description }, ...renderArr);
|
|
45
50
|
return (_ctx, _cache) => {
|
|
46
|
-
return (_openBlock(), _createBlock(
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
51
|
+
return (_openBlock(), _createBlock(LocaleProvider, null, {
|
|
52
|
+
default: _withCtx(() => [
|
|
53
|
+
_createVNode(_unref(Empty), _normalizeProps(_guardReactiveProps(_unref(baseProps))), _createSlots({ _: 2 /* DYNAMIC */ }, [
|
|
54
|
+
_renderList(_unref(renderArr), (item) => {
|
|
55
|
+
return {
|
|
56
|
+
name: item,
|
|
57
|
+
fn: _withCtx((scope) => [
|
|
58
|
+
_renderSlot(_ctx.$slots, item, { scope: scope })
|
|
59
|
+
])
|
|
60
|
+
};
|
|
61
|
+
})
|
|
62
|
+
]), 1040 /* FULL_PROPS, DYNAMIC_SLOTS */)
|
|
63
|
+
]),
|
|
64
|
+
_: 3 /* FORWARDED */
|
|
65
|
+
}));
|
|
56
66
|
};
|
|
57
67
|
}
|
|
58
68
|
});
|
package/lib/FullPage/FullPage.js
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
} */
|
|
10
10
|
import { defineComponent as _defineComponent } from 'vue';
|
|
11
11
|
import { unref as _unref, renderSlot as _renderSlot, createElementVNode as _createElementVNode, normalizeStyle as _normalizeStyle, openBlock as _openBlock, createElementBlock as _createElementBlock, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
12
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
12
|
+
const _withScopeId = n => (_pushScopeId("data-v-1735798899378"), n = n(), _popScopeId(), n);
|
|
13
13
|
const _hoisted_1 = { class: "full-page-warp-content" };
|
|
14
14
|
import { ref, inject } from 'vue';
|
|
15
15
|
import { useElementBounding } from '@vueuse/core';
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/* Analyzed bindings: {
|
|
2
|
+
"locale": "props",
|
|
3
|
+
"provide": "setup-const",
|
|
4
|
+
"reactive": "setup-const",
|
|
5
|
+
"defaultLocal": "setup-maybe-ref",
|
|
6
|
+
"props": "setup-reactive-const",
|
|
7
|
+
"state": "setup-reactive-const"
|
|
8
|
+
} */
|
|
9
|
+
import { defineComponent as _defineComponent } from 'vue';
|
|
10
|
+
import { renderSlot as _renderSlot } from "vue";
|
|
11
|
+
import { provide, reactive } from "vue";
|
|
12
|
+
import defaultLocal from '../locale/zh-CN';
|
|
13
|
+
const __sfc_main__ = _defineComponent({
|
|
14
|
+
props: {
|
|
15
|
+
locale: {
|
|
16
|
+
type: Object,
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
setup(__props) {
|
|
20
|
+
const props = __props;
|
|
21
|
+
const state = reactive({
|
|
22
|
+
antLocale: {
|
|
23
|
+
...props.locale || defaultLocal || {},
|
|
24
|
+
exist: true,
|
|
25
|
+
},
|
|
26
|
+
});
|
|
27
|
+
provide('componentLocaleData', state);
|
|
28
|
+
return (_ctx, _cache) => {
|
|
29
|
+
return _renderSlot(_ctx.$slots, "default");
|
|
30
|
+
};
|
|
31
|
+
}
|
|
32
|
+
});
|
|
33
|
+
export default __sfc_main__;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useLocaleReceiver = useLocaleReceiver;
|
|
8
|
+
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
9
|
+
var _vue = require("vue");
|
|
10
|
+
function useLocaleReceiver(componentName, defaultLocale, propsLocale) {
|
|
11
|
+
var localeData = (0, _vue.inject)('componentLocaleData', {});
|
|
12
|
+
var componentLocale = (0, _vue.computed)(function () {
|
|
13
|
+
var antLocale = localeData.antLocale;
|
|
14
|
+
var locale = (0, _vue.unref)(defaultLocale) || [componentName || 'global'];
|
|
15
|
+
var localeFromContext = componentName && antLocale ? antLocale[componentName] : {};
|
|
16
|
+
return (0, _objectSpread2.default)((0, _objectSpread2.default)((0, _objectSpread2.default)({}, typeof locale === 'function' ? locale() : locale), localeFromContext || {}), (0, _vue.unref)(propsLocale) || {});
|
|
17
|
+
});
|
|
18
|
+
return [componentLocale];
|
|
19
|
+
}
|
|
@@ -7,6 +7,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
exports.pageHeaderTabConfig = exports.pageContainerProps = exports.default = void 0;
|
|
8
8
|
var _vue = require("vue");
|
|
9
9
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
10
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
11
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
11
12
|
var _objectSpread2 = _interopRequireDefault(require("@babel/runtime/helpers/objectSpread2"));
|
|
12
13
|
var _type = require("ant-design-vue/es/_util/type");
|
|
@@ -16,6 +17,7 @@ var _RouteContext = require("../RouteContext");
|
|
|
16
17
|
var _util = require("../util");
|
|
17
18
|
require("ant-design-vue/es/_util/vue-types");
|
|
18
19
|
var _defaultSettings = require("../defaultSettings");
|
|
20
|
+
var _LocaleReciver = require("../../LocaleReciver");
|
|
19
21
|
var _excluded = ["title", "tabList", "tabActiveKey", "content", "pageHeaderRender", "header", "extraContent", "prefixedClassName", "prefixCls", "fixedHeader", "showBack"];
|
|
20
22
|
function _isSlot(s) {
|
|
21
23
|
return typeof s === 'function' || Object.prototype.toString.call(s) === '[object Object]' && !(0, _vue.isVNode)(s);
|
|
@@ -212,6 +214,9 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
212
214
|
showBack = props.showBack,
|
|
213
215
|
restProps = (0, _objectWithoutProperties2.default)(props, _excluded);
|
|
214
216
|
var value = (0, _RouteContext.useRouteContext)();
|
|
217
|
+
var _useLocaleReceiver = (0, _LocaleReciver.useLocaleReceiver)('ProTable'),
|
|
218
|
+
_useLocaleReceiver2 = (0, _slicedToArray2.default)(_useLocaleReceiver, 1),
|
|
219
|
+
contextLocale = _useLocaleReceiver2[0];
|
|
215
220
|
if (pageHeaderRender === false) {
|
|
216
221
|
return null;
|
|
217
222
|
}
|
|
@@ -232,7 +237,7 @@ var ProPageHeader = function ProPageHeader(props) {
|
|
|
232
237
|
// @ts-ignore
|
|
233
238
|
backProps.backIcon = (0, _vue.createVNode)(_antDesignVue.Button, null, {
|
|
234
239
|
default: function _default() {
|
|
235
|
-
return [
|
|
240
|
+
return [contextLocale.value.pageContainer.back];
|
|
236
241
|
}
|
|
237
242
|
});
|
|
238
243
|
backProps.onBack = function () {
|
package/lib/ProTable/Alert.js
CHANGED
|
@@ -19,17 +19,20 @@ function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]
|
|
|
19
19
|
"Button": "setup-maybe-ref",
|
|
20
20
|
"computed": "setup-const",
|
|
21
21
|
"_alertProps": "setup-maybe-ref",
|
|
22
|
+
"useLocaleReceiver": "setup-maybe-ref",
|
|
23
|
+
"contextLocale": "setup-maybe-ref",
|
|
22
24
|
"props": "setup-reactive-const",
|
|
23
25
|
"emits": "setup-const",
|
|
24
26
|
"_message": "setup-ref",
|
|
25
27
|
"onClose": "setup-const"
|
|
26
28
|
} */
|
|
27
29
|
import { defineComponent as _defineComponent } from 'vue';
|
|
28
|
-
import { renderSlot as _renderSlot,
|
|
30
|
+
import { renderSlot as _renderSlot, unref as _unref, toDisplayString as _toDisplayString, createTextVNode as _createTextVNode, withCtx as _withCtx, createVNode as _createVNode, openBlock as _openBlock, createElementBlock as _createElementBlock } from "vue";
|
|
29
31
|
const _hoisted_1 = { class: "jtable-alert" };
|
|
30
32
|
import { Alert, Button } from 'ant-design-vue';
|
|
31
33
|
import { computed } from "vue";
|
|
32
34
|
import { _alertProps } from "./setting";
|
|
35
|
+
import { useLocaleReceiver } from "../LocaleReciver/index";
|
|
33
36
|
const __sfc_main__ = _defineComponent({
|
|
34
37
|
...{
|
|
35
38
|
name: 'Alert'
|
|
@@ -37,10 +40,15 @@ const __sfc_main__ = _defineComponent({
|
|
|
37
40
|
props: { ..._alertProps },
|
|
38
41
|
emits: ['close'],
|
|
39
42
|
setup(__props, { emit: __emit }) {
|
|
43
|
+
const [contextLocale] = useLocaleReceiver('ProTable');
|
|
40
44
|
const props = __props;
|
|
41
45
|
const emits = __emit;
|
|
42
46
|
const _message = computed(() => {
|
|
43
|
-
|
|
47
|
+
let locale = contextLocale.value.alert.selectItem;
|
|
48
|
+
[_optionalChain([props, 'access', _2 => _2.rowSelection, 'optionalAccess', _3 => _3.selectedRowKeys, 'optionalAccess', _4 => _4.length]) || 0].forEach((item, index) => {
|
|
49
|
+
locale = locale.replace(`{${index}}`, item);
|
|
50
|
+
});
|
|
51
|
+
return locale;
|
|
44
52
|
});
|
|
45
53
|
const onClose = () => {
|
|
46
54
|
emits('close');
|
|
@@ -58,7 +66,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
58
66
|
onClick: onClose
|
|
59
67
|
}, {
|
|
60
68
|
default: _withCtx(() => [
|
|
61
|
-
_createTextVNode(
|
|
69
|
+
_createTextVNode(_toDisplayString(_unref(contextLocale).alert.cancelChoose), 1 /* TEXT */)
|
|
62
70
|
]),
|
|
63
71
|
_: 1 /* STABLE */
|
|
64
72
|
})
|
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
"Pagination": "setup-maybe-ref",
|
|
3
3
|
"_paginationProps": "setup-maybe-ref",
|
|
4
4
|
"computed": "setup-const",
|
|
5
|
+
"useLocaleReceiver": "setup-maybe-ref",
|
|
5
6
|
"props": "setup-reactive-const",
|
|
6
7
|
"emits": "setup-const",
|
|
8
|
+
"contextLocale": "setup-maybe-ref",
|
|
7
9
|
"className": "setup-ref",
|
|
8
10
|
"_showTotal": "setup-const",
|
|
9
11
|
"onChange": "setup-const"
|
|
@@ -14,6 +16,7 @@ const _hoisted_1 = { class: "jtable-pagination" };
|
|
|
14
16
|
import { Pagination } from 'ant-design-vue';
|
|
15
17
|
import { _paginationProps } from "./setting";
|
|
16
18
|
import { computed } from 'vue';
|
|
19
|
+
import { useLocaleReceiver } from "../LocaleReciver/index";
|
|
17
20
|
const __sfc_main__ = _defineComponent({
|
|
18
21
|
...{
|
|
19
22
|
name: 'Pagination'
|
|
@@ -23,6 +26,7 @@ const __sfc_main__ = _defineComponent({
|
|
|
23
26
|
setup(__props, { emit: __emit }) {
|
|
24
27
|
const props = __props;
|
|
25
28
|
const emits = __emit;
|
|
29
|
+
const [contextLocale] = useLocaleReceiver('ProTable');
|
|
26
30
|
const className = computed(() => {
|
|
27
31
|
return {
|
|
28
32
|
'show-content': !props.isShowContent,
|
|
@@ -31,7 +35,12 @@ const __sfc_main__ = _defineComponent({
|
|
|
31
35
|
const _showTotal = (num) => {
|
|
32
36
|
const minSize = props.pageIndex * props.pageSize + 1;
|
|
33
37
|
const MaxSize = (props.pageIndex + 1) * props.pageSize;
|
|
34
|
-
return `第 ${minSize} - ${MaxSize > num ? num : MaxSize} 条/总共 ${num}
|
|
38
|
+
// return `第 ${minSize} - ${ MaxSize > num ? num : MaxSize } 条/总共 ${num} 条`
|
|
39
|
+
let locale = contextLocale.value.pagination.total;
|
|
40
|
+
[minSize, MaxSize > num ? num : MaxSize, num].forEach((item, index) => {
|
|
41
|
+
locale = locale.replace(`{${index}}`, item);
|
|
42
|
+
});
|
|
43
|
+
return locale;
|
|
35
44
|
};
|
|
36
45
|
const onChange = (page, size) => {
|
|
37
46
|
emits('change', page, size);
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"onClick": "setup-const"
|
|
11
11
|
} */
|
|
12
12
|
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, pushScopeId as _pushScopeId, popScopeId as _popScopeId } from "vue";
|
|
13
|
-
const _withScopeId = n => (_pushScopeId("data-v-
|
|
13
|
+
const _withScopeId = n => (_pushScopeId("data-v-1735798900616"), n = n(), _popScopeId(), n);
|
|
14
14
|
const _hoisted_1 = ["onClick"];
|
|
15
15
|
const __sfc_main__ = Object.assign({
|
|
16
16
|
name: 'JRadioButton',
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
.j-scrollbar {
|
|
2
|
+
overflow: hidden;
|
|
3
|
+
position: relative;
|
|
4
|
+
height: 100%;
|
|
5
|
+
}
|
|
6
|
+
.j-scrollbar__wrap {
|
|
7
|
+
overflow: auto;
|
|
8
|
+
height: 100%;
|
|
9
|
+
}
|
|
10
|
+
.j-scrollbar__wrap--hidden-default {
|
|
11
|
+
scrollbar-width: none;
|
|
12
|
+
}
|
|
13
|
+
.j-scrollbar__wrap--hidden-default::-webkit-scrollbar {
|
|
14
|
+
display: none;
|
|
15
|
+
}
|
|
16
|
+
.j-scrollbar__thumb {
|
|
17
|
+
position: relative;
|
|
18
|
+
display: block;
|
|
19
|
+
width: 0;
|
|
20
|
+
height: 0;
|
|
21
|
+
cursor: pointer;
|
|
22
|
+
border-radius: inherit;
|
|
23
|
+
background-color: #909399;
|
|
24
|
+
transition: 0.3s background-color;
|
|
25
|
+
opacity: 0.3;
|
|
26
|
+
}
|
|
27
|
+
.j-scrollbar__thumb:hover {
|
|
28
|
+
background-color: #909399;
|
|
29
|
+
opacity: 0.5;
|
|
30
|
+
}
|
|
31
|
+
.j-scrollbar__bar {
|
|
32
|
+
position: absolute;
|
|
33
|
+
right: 2px;
|
|
34
|
+
bottom: 2px;
|
|
35
|
+
z-index: 1;
|
|
36
|
+
border-radius: 4px;
|
|
37
|
+
}
|
|
38
|
+
.j-scrollbar__bar--vertical {
|
|
39
|
+
width: 6px;
|
|
40
|
+
top: 2px;
|
|
41
|
+
}
|
|
42
|
+
.j-scrollbar__bar--vertical > div {
|
|
43
|
+
width: 100%;
|
|
44
|
+
}
|
|
45
|
+
.j-scrollbar__bar--horizontal {
|
|
46
|
+
height: 6px;
|
|
47
|
+
left: 2px;
|
|
48
|
+
}
|
|
49
|
+
.j-scrollbar__bar--horizontal > div {
|
|
50
|
+
height: 100%;
|
|
51
|
+
}
|
|
52
|
+
.j-scrollbar-fade-enter-active {
|
|
53
|
+
transition: opacity 340ms ease-out;
|
|
54
|
+
}
|
|
55
|
+
.j-scrollbar-fade-leave-active {
|
|
56
|
+
transition: opacity 120ms ease-out;
|
|
57
|
+
}
|
|
58
|
+
.j-scrollbar-fade-enter-from,
|
|
59
|
+
.j-scrollbar-fade-leave-active {
|
|
60
|
+
opacity: 0;
|
|
61
|
+
}
|