@lingxiteam/assets 3.2.1-alpha.2 → 3.2.1-alpha.3
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/error/errorDisplay/Mobile/defaultGlobalConfig.js +1 -1
- package/es/error/errorDisplay/Web/Drawer/Drawer.js +2 -1
- package/es/error/errorDisplay/Web/ErrorMsg/index.js +4 -2
- package/es/error/errorDisplay/const.js +1 -1
- package/es/rootConfig/mobile/MobileModal.d.ts +30 -0
- package/es/rootConfig/mobile/MobileModal.js +42 -0
- package/es/rootConfig/todoActionList.d.ts +3 -0
- package/es/rootConfig/todoActionList.js +4 -1
- package/lib/error/errorDisplay/Web/Drawer/Drawer.js +2 -1
- package/lib/error/errorDisplay/Web/ErrorMsg/index.js +3 -1
- package/lib/error/errorDisplay/const.js +1 -1
- package/lib/rootConfig/mobile/MobileModal.d.ts +30 -0
- package/lib/rootConfig/mobile/MobileModal.js +42 -0
- package/lib/rootConfig/todoActionList.d.ts +3 -0
- package/lib/rootConfig/todoActionList.js +4 -1
- package/package.json +1 -1
|
@@ -47,7 +47,8 @@ var Drawer = /*#__PURE__*/forwardRef(function (props, ref) {
|
|
|
47
47
|
errorInfoProps = _props$errorInfoProps === void 0 ? {
|
|
48
48
|
tabs: []
|
|
49
49
|
} : _props$errorInfoProps,
|
|
50
|
-
subTitle = props.subTitle
|
|
50
|
+
subTitle = props.subTitle,
|
|
51
|
+
getLocale = props.getLocale;
|
|
51
52
|
var _useState = useState([]),
|
|
52
53
|
_useState2 = _slicedToArray(_useState, 2),
|
|
53
54
|
extraConts = _useState2[0],
|
|
@@ -19,7 +19,7 @@ import Notification, { notificationInstance } from '../Notification';
|
|
|
19
19
|
import { resolveRequestPath, debounce } from '../../compUtils';
|
|
20
20
|
import { drawerHandel } from '../Drawer';
|
|
21
21
|
import http from '../../http';
|
|
22
|
-
import { statusClrMap
|
|
22
|
+
import { statusClrMap } from '../../const';
|
|
23
23
|
import { defaultGlobalConfig, setGlobalConfig } from '../defaultGlobalConfig';
|
|
24
24
|
var isElm = function isElm(val) {
|
|
25
25
|
return ['number', 'string'].includes(_typeof(val)) || /*#__PURE__*/isValidElement(val);
|
|
@@ -200,6 +200,7 @@ var ErrorMsg = {
|
|
|
200
200
|
Notification.setOpenList(_toConsumableArray(getAllList));
|
|
201
201
|
var feedbackDrawerDom = document.getElementById("lx-feedback-drawer-".concat(_key));
|
|
202
202
|
if (feedbackDrawerDom) {
|
|
203
|
+
// eslint-disable-next-line max-len
|
|
203
204
|
feedbackDrawerDom.innerHTML = _state ? opts.getLocale(feedbackTxts[2].code, feedbackTxts[2].title) : opts.getLocale(feedbackTxts[1].code, feedbackTxts[1].title);
|
|
204
205
|
feedbackDrawerDom.classList.add(btnDisableClass[1]);
|
|
205
206
|
if (_error) {
|
|
@@ -246,6 +247,7 @@ var ErrorMsg = {
|
|
|
246
247
|
}(), 400);
|
|
247
248
|
renderTxt = function renderTxt(_state) {
|
|
248
249
|
if (_state) {
|
|
250
|
+
// eslint-disable-next-line max-len
|
|
249
251
|
return _state === loadingStates[0] ? opts.getLocale(feedbackTxts[2].code, feedbackTxts[2].title) : opts.getLocale(feedbackTxts[1].code, feedbackTxts[1].title);
|
|
250
252
|
}
|
|
251
253
|
return opts.getLocale(feedbackTxts[0].code, feedbackTxts[0].title);
|
|
@@ -354,7 +356,7 @@ var ErrorMsg = {
|
|
|
354
356
|
case 22:
|
|
355
357
|
renderSubTitle = function renderSubTitle() {
|
|
356
358
|
if (target.type === targetTypes[0] && (target === null || target === void 0 ? void 0 : target.id)) {
|
|
357
|
-
return "".concat(getLocale('serviceURL', '服务地址'), "\uFF1A").concat(target === null || target === void 0 ? void 0 : target.id);
|
|
359
|
+
return "".concat(opts.getLocale('serviceURL', '服务地址'), "\uFF1A").concat(target === null || target === void 0 ? void 0 : target.id);
|
|
358
360
|
}
|
|
359
361
|
return null;
|
|
360
362
|
};
|
|
@@ -91,5 +91,5 @@ export var getArticle = function getArticle(code) {
|
|
|
91
91
|
var getLocale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (t, p) {
|
|
92
92
|
return p !== null && p !== void 0 ? p : {};
|
|
93
93
|
};
|
|
94
|
-
return (_articleMap$code = articleMap[code]) !== null && _articleMap$code !== void 0 ? _articleMap$code : getLocale(
|
|
94
|
+
return (_articleMap$code = articleMap[code]) !== null && _articleMap$code !== void 0 ? _articleMap$code : getLocale('ErrorMsg.articleMap', defaultArticleMap)[code];
|
|
95
95
|
};
|
|
@@ -5,6 +5,8 @@ declare const _default: {
|
|
|
5
5
|
isContainer: boolean;
|
|
6
6
|
label: string;
|
|
7
7
|
props: {
|
|
8
|
+
width: string;
|
|
9
|
+
height: string;
|
|
8
10
|
catalogItemId: number;
|
|
9
11
|
ignoreLogin: boolean;
|
|
10
12
|
mode: string;
|
|
@@ -81,6 +83,34 @@ declare const _default: {
|
|
|
81
83
|
}[];
|
|
82
84
|
};
|
|
83
85
|
};
|
|
86
|
+
width: {
|
|
87
|
+
label: string;
|
|
88
|
+
groupsName: string;
|
|
89
|
+
type: string;
|
|
90
|
+
props: {
|
|
91
|
+
dependProps: {
|
|
92
|
+
mode: string[];
|
|
93
|
+
};
|
|
94
|
+
option: {
|
|
95
|
+
label: string;
|
|
96
|
+
value: string;
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
height: {
|
|
101
|
+
label: string;
|
|
102
|
+
groupsName: string;
|
|
103
|
+
type: string;
|
|
104
|
+
props: {
|
|
105
|
+
dependProps: {
|
|
106
|
+
mode: string[];
|
|
107
|
+
};
|
|
108
|
+
option: {
|
|
109
|
+
label: string;
|
|
110
|
+
value: string;
|
|
111
|
+
}[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
84
114
|
closeOnClickOverlay: {
|
|
85
115
|
label: string;
|
|
86
116
|
type: string;
|
|
@@ -12,6 +12,8 @@ export default {
|
|
|
12
12
|
isContainer: false,
|
|
13
13
|
label: '弹窗',
|
|
14
14
|
props: {
|
|
15
|
+
width: '50vw',
|
|
16
|
+
height: '50vh',
|
|
15
17
|
catalogItemId: -1,
|
|
16
18
|
ignoreLogin: false,
|
|
17
19
|
mode: 'alert',
|
|
@@ -120,6 +122,46 @@ export default {
|
|
|
120
122
|
}]
|
|
121
123
|
}
|
|
122
124
|
},
|
|
125
|
+
width: {
|
|
126
|
+
label: '宽度',
|
|
127
|
+
groupsName: '基础',
|
|
128
|
+
type: 'HeightInput',
|
|
129
|
+
props: {
|
|
130
|
+
dependProps: {
|
|
131
|
+
mode: ['alert', 'sliderLeft', 'sliderRight']
|
|
132
|
+
},
|
|
133
|
+
option: [{
|
|
134
|
+
label: 'px',
|
|
135
|
+
value: 'px'
|
|
136
|
+
}, {
|
|
137
|
+
label: '%',
|
|
138
|
+
value: '%'
|
|
139
|
+
}, {
|
|
140
|
+
label: 'vw',
|
|
141
|
+
value: 'vw'
|
|
142
|
+
}]
|
|
143
|
+
}
|
|
144
|
+
},
|
|
145
|
+
height: {
|
|
146
|
+
label: '高度',
|
|
147
|
+
groupsName: '基础',
|
|
148
|
+
type: 'HeightInput',
|
|
149
|
+
props: {
|
|
150
|
+
dependProps: {
|
|
151
|
+
mode: ['alert', 'popup', 'dropdown']
|
|
152
|
+
},
|
|
153
|
+
option: [{
|
|
154
|
+
label: 'px',
|
|
155
|
+
value: 'px'
|
|
156
|
+
}, {
|
|
157
|
+
label: '%',
|
|
158
|
+
value: '%'
|
|
159
|
+
}, {
|
|
160
|
+
label: 'vh',
|
|
161
|
+
value: 'vh'
|
|
162
|
+
}]
|
|
163
|
+
}
|
|
164
|
+
},
|
|
123
165
|
closeOnClickOverlay: {
|
|
124
166
|
label: '关闭方式',
|
|
125
167
|
type: 'Select',
|
|
@@ -3005,7 +3005,10 @@ var todoActionObject = {
|
|
|
3005
3005
|
todoOptions: [{
|
|
3006
3006
|
key: 'compToPrint',
|
|
3007
3007
|
label: '自定义打印区域(可选)',
|
|
3008
|
-
type: 'CompTree'
|
|
3008
|
+
type: 'CompTree',
|
|
3009
|
+
props: {
|
|
3010
|
+
selectType: 'free'
|
|
3011
|
+
}
|
|
3009
3012
|
}],
|
|
3010
3013
|
classification: [{
|
|
3011
3014
|
label: '页面类',
|
|
@@ -56,7 +56,8 @@ var Drawer = /*#__PURE__*/(0, _react.forwardRef)(function (props, ref) {
|
|
|
56
56
|
errorInfoProps = _props$errorInfoProps === void 0 ? {
|
|
57
57
|
tabs: []
|
|
58
58
|
} : _props$errorInfoProps,
|
|
59
|
-
subTitle = props.subTitle
|
|
59
|
+
subTitle = props.subTitle,
|
|
60
|
+
getLocale = props.getLocale;
|
|
60
61
|
var _useState = (0, _react.useState)([]),
|
|
61
62
|
_useState2 = _slicedToArray(_useState, 2),
|
|
62
63
|
extraConts = _useState2[0],
|
|
@@ -208,6 +208,7 @@ var ErrorMsg = {
|
|
|
208
208
|
_Notification.default.setOpenList(_toConsumableArray(getAllList));
|
|
209
209
|
var feedbackDrawerDom = document.getElementById("lx-feedback-drawer-".concat(_key));
|
|
210
210
|
if (feedbackDrawerDom) {
|
|
211
|
+
// eslint-disable-next-line max-len
|
|
211
212
|
feedbackDrawerDom.innerHTML = _state ? opts.getLocale(feedbackTxts[2].code, feedbackTxts[2].title) : opts.getLocale(feedbackTxts[1].code, feedbackTxts[1].title);
|
|
212
213
|
feedbackDrawerDom.classList.add(btnDisableClass[1]);
|
|
213
214
|
if (_error) {
|
|
@@ -254,6 +255,7 @@ var ErrorMsg = {
|
|
|
254
255
|
}(), 400);
|
|
255
256
|
renderTxt = function renderTxt(_state) {
|
|
256
257
|
if (_state) {
|
|
258
|
+
// eslint-disable-next-line max-len
|
|
257
259
|
return _state === loadingStates[0] ? opts.getLocale(feedbackTxts[2].code, feedbackTxts[2].title) : opts.getLocale(feedbackTxts[1].code, feedbackTxts[1].title);
|
|
258
260
|
}
|
|
259
261
|
return opts.getLocale(feedbackTxts[0].code, feedbackTxts[0].title);
|
|
@@ -362,7 +364,7 @@ var ErrorMsg = {
|
|
|
362
364
|
case 22:
|
|
363
365
|
renderSubTitle = function renderSubTitle() {
|
|
364
366
|
if (target.type === targetTypes[0] && (target === null || target === void 0 ? void 0 : target.id)) {
|
|
365
|
-
return "".concat(getLocale('serviceURL', '服务地址'), "\uFF1A").concat(target === null || target === void 0 ? void 0 : target.id);
|
|
367
|
+
return "".concat(opts.getLocale('serviceURL', '服务地址'), "\uFF1A").concat(target === null || target === void 0 ? void 0 : target.id);
|
|
366
368
|
}
|
|
367
369
|
return null;
|
|
368
370
|
};
|
|
@@ -102,6 +102,6 @@ var getArticle = function getArticle(code) {
|
|
|
102
102
|
var getLocale = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : function (t, p) {
|
|
103
103
|
return p !== null && p !== void 0 ? p : {};
|
|
104
104
|
};
|
|
105
|
-
return (_articleMap$code = articleMap[code]) !== null && _articleMap$code !== void 0 ? _articleMap$code : getLocale(
|
|
105
|
+
return (_articleMap$code = articleMap[code]) !== null && _articleMap$code !== void 0 ? _articleMap$code : getLocale('ErrorMsg.articleMap', defaultArticleMap)[code];
|
|
106
106
|
};
|
|
107
107
|
exports.getArticle = getArticle;
|
|
@@ -5,6 +5,8 @@ declare const _default: {
|
|
|
5
5
|
isContainer: boolean;
|
|
6
6
|
label: string;
|
|
7
7
|
props: {
|
|
8
|
+
width: string;
|
|
9
|
+
height: string;
|
|
8
10
|
catalogItemId: number;
|
|
9
11
|
ignoreLogin: boolean;
|
|
10
12
|
mode: string;
|
|
@@ -81,6 +83,34 @@ declare const _default: {
|
|
|
81
83
|
}[];
|
|
82
84
|
};
|
|
83
85
|
};
|
|
86
|
+
width: {
|
|
87
|
+
label: string;
|
|
88
|
+
groupsName: string;
|
|
89
|
+
type: string;
|
|
90
|
+
props: {
|
|
91
|
+
dependProps: {
|
|
92
|
+
mode: string[];
|
|
93
|
+
};
|
|
94
|
+
option: {
|
|
95
|
+
label: string;
|
|
96
|
+
value: string;
|
|
97
|
+
}[];
|
|
98
|
+
};
|
|
99
|
+
};
|
|
100
|
+
height: {
|
|
101
|
+
label: string;
|
|
102
|
+
groupsName: string;
|
|
103
|
+
type: string;
|
|
104
|
+
props: {
|
|
105
|
+
dependProps: {
|
|
106
|
+
mode: string[];
|
|
107
|
+
};
|
|
108
|
+
option: {
|
|
109
|
+
label: string;
|
|
110
|
+
value: string;
|
|
111
|
+
}[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
84
114
|
closeOnClickOverlay: {
|
|
85
115
|
label: string;
|
|
86
116
|
type: string;
|
|
@@ -18,6 +18,8 @@ var _default = {
|
|
|
18
18
|
isContainer: false,
|
|
19
19
|
label: '弹窗',
|
|
20
20
|
props: {
|
|
21
|
+
width: '50vw',
|
|
22
|
+
height: '50vh',
|
|
21
23
|
catalogItemId: -1,
|
|
22
24
|
ignoreLogin: false,
|
|
23
25
|
mode: 'alert',
|
|
@@ -126,6 +128,46 @@ var _default = {
|
|
|
126
128
|
}]
|
|
127
129
|
}
|
|
128
130
|
},
|
|
131
|
+
width: {
|
|
132
|
+
label: '宽度',
|
|
133
|
+
groupsName: '基础',
|
|
134
|
+
type: 'HeightInput',
|
|
135
|
+
props: {
|
|
136
|
+
dependProps: {
|
|
137
|
+
mode: ['alert', 'sliderLeft', 'sliderRight']
|
|
138
|
+
},
|
|
139
|
+
option: [{
|
|
140
|
+
label: 'px',
|
|
141
|
+
value: 'px'
|
|
142
|
+
}, {
|
|
143
|
+
label: '%',
|
|
144
|
+
value: '%'
|
|
145
|
+
}, {
|
|
146
|
+
label: 'vw',
|
|
147
|
+
value: 'vw'
|
|
148
|
+
}]
|
|
149
|
+
}
|
|
150
|
+
},
|
|
151
|
+
height: {
|
|
152
|
+
label: '高度',
|
|
153
|
+
groupsName: '基础',
|
|
154
|
+
type: 'HeightInput',
|
|
155
|
+
props: {
|
|
156
|
+
dependProps: {
|
|
157
|
+
mode: ['alert', 'popup', 'dropdown']
|
|
158
|
+
},
|
|
159
|
+
option: [{
|
|
160
|
+
label: 'px',
|
|
161
|
+
value: 'px'
|
|
162
|
+
}, {
|
|
163
|
+
label: '%',
|
|
164
|
+
value: '%'
|
|
165
|
+
}, {
|
|
166
|
+
label: 'vh',
|
|
167
|
+
value: 'vh'
|
|
168
|
+
}]
|
|
169
|
+
}
|
|
170
|
+
},
|
|
129
171
|
closeOnClickOverlay: {
|
|
130
172
|
label: '关闭方式',
|
|
131
173
|
type: 'Select',
|
|
@@ -3011,7 +3011,10 @@ var todoActionObject = {
|
|
|
3011
3011
|
todoOptions: [{
|
|
3012
3012
|
key: 'compToPrint',
|
|
3013
3013
|
label: '自定义打印区域(可选)',
|
|
3014
|
-
type: 'CompTree'
|
|
3014
|
+
type: 'CompTree',
|
|
3015
|
+
props: {
|
|
3016
|
+
selectType: 'free'
|
|
3017
|
+
}
|
|
3015
3018
|
}],
|
|
3016
3019
|
classification: [{
|
|
3017
3020
|
label: '页面类',
|