@luck-design-biz/luckda 0.0.22 → 0.0.23
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/LICENSE +21 -21
- package/README.md +40 -49
- package/es/components/Builder/index.js +4 -4
- package/es/components/LdAutoForm/index.js +7 -9
- package/es/components/LdCard/index.js +5 -6
- package/es/components/LdCard/model.js +1 -1
- package/es/components/LdCom/index.js +2 -2
- package/es/components/LdFormList/index.js +19 -17
- package/es/components/LdGrid/index.js +11 -12
- package/es/components/LdGrid/model.js +1 -1
- package/es/components/LdGridForm/index.js +10 -10
- package/es/components/LdGridForm/index.less +7 -7
- package/es/components/LdInfoPanel/index.js +2 -2
- package/es/components/LdRuntimeCom/index.js +42 -0
- package/es/components/LdTree/index.js +3 -4
- package/es/components/LdTree/index.less +36 -36
- package/es/helper/FromItems.js +1 -1
- package/es/helper/action.js +8 -8
- package/es/helper/form.js +16 -16
- package/es/helper/index.less +7 -7
- package/es/helper/ldBuilder.js +1 -1
- package/es/helper/ldComBuild.js +4 -4
- package/es/index.js +10 -9
- package/es/lowcode/constants/api-url.js +2 -0
- package/es/lowcode/constants/event-topics.js +23 -0
- package/es/lowcode/constants/index.js +12 -0
- package/es/lowcode/engine/factory/DataFactory.js +1 -0
- package/es/lowcode/engine/meta/button.props.default.json +8 -0
- package/es/lowcode/engine/meta/cardlist.props.default.json +10 -0
- package/es/lowcode/engine/meta/components/button.json +104 -0
- package/es/lowcode/engine/meta/components/card-list.json +143 -0
- package/es/lowcode/engine/meta/components/drawer.json +143 -0
- package/es/lowcode/engine/meta/components/form.json +116 -0
- package/es/lowcode/engine/meta/components/iframe.json +31 -0
- package/es/lowcode/engine/meta/components/image.json +113 -0
- package/es/lowcode/engine/meta/components/imex.json +81 -0
- package/es/lowcode/engine/meta/components/jsx.json +24 -0
- package/es/lowcode/engine/meta/components/layout.json +107 -0
- package/es/lowcode/engine/meta/components/link.json +111 -0
- package/es/lowcode/engine/meta/components/modal.json +120 -0
- package/es/lowcode/engine/meta/components/section.json +107 -0
- package/es/lowcode/engine/meta/components/split.json +71 -0
- package/es/lowcode/engine/meta/components/table.json +161 -0
- package/es/lowcode/engine/meta/components/tabs.json +140 -0
- package/es/lowcode/engine/meta/components/text.json +65 -0
- package/es/lowcode/engine/meta/components/tree.json +156 -0
- package/es/lowcode/engine/meta/components-list.json +122 -0
- package/es/lowcode/engine/meta/drawer.props.default.json +10 -0
- package/es/lowcode/engine/meta/form.props.default.json +5 -0
- package/es/lowcode/engine/meta/iframe.props.default.json +3 -0
- package/es/lowcode/engine/meta/image.props.default.json +8 -0
- package/es/lowcode/engine/meta/imex.props.default.json +4 -0
- package/es/lowcode/engine/meta/jsx.props.default.json +1 -0
- package/es/lowcode/engine/meta/layout.props.default.json +5 -0
- package/es/lowcode/engine/meta/link.props.default.json +6 -0
- package/es/lowcode/engine/meta/modal.props.default.json +11 -0
- package/es/lowcode/engine/meta/section.props.default.json +9 -0
- package/es/lowcode/engine/meta/split.props.default.json +5 -0
- package/es/lowcode/engine/meta/table.props.default.json +10 -0
- package/es/lowcode/engine/meta/tabs.props.default.json +10 -0
- package/es/lowcode/engine/meta/text.props.default.json +4 -0
- package/es/lowcode/engine/meta/tree.props.default.json +9 -0
- package/es/lowcode/engine/provider/ContextProvider.js +164 -0
- package/es/lowcode/engine/provider/EventBusProvider.js +120 -0
- package/es/lowcode/engine/tools/dataProcess.js +188 -0
- package/es/lowcode/engine/tools/helper.js +4 -0
- package/es/lowcode/engine/tools/lcid.js +16 -0
- package/es/lowcode/index.js +3 -0
- package/es/lowcode/painter/Components.js +104 -0
- package/es/lowcode/painter/Design.js +97 -0
- package/es/lowcode/painter/I18n.js +5 -0
- package/es/lowcode/painter/Outline.js +202 -0
- package/es/lowcode/painter/Panel.js +8 -0
- package/es/lowcode/painter/Ribbon.js +136 -0
- package/es/lowcode/painter/components/PanelItem.js +20 -0
- package/es/lowcode/painter/components/RuleInput.js +105 -0
- package/es/lowcode/painter/index.js +19 -0
- package/es/lowcode/painter/panel-section/LayoutRatio.js +123 -0
- package/es/lowcode/painter/panel-section/Radio.js +58 -0
- package/es/lowcode/painter/style/components.less +90 -0
- package/es/lowcode/painter/style/design.less +38 -0
- package/es/lowcode/painter/style/index.less +7 -0
- package/es/lowcode/painter/style/layout-ratio.less +51 -0
- package/es/lowcode/painter/style/outline.less +26 -0
- package/es/lowcode/painter/style/panel-item.less +21 -0
- package/es/lowcode/painter/style/panel.less +5 -0
- package/es/lowcode/painter/style/radio.less +24 -0
- package/es/lowcode/painter/style/ribbon.less +4 -0
- package/es/lowcode/painter/style/rule-input.less +13 -0
- package/es/lowcode/view/Canvas.js +135 -0
- package/es/lowcode/view/Loading.js +23 -0
- package/es/lowcode/view/Page.js +55 -0
- package/es/lowcode/view/index.js +18 -0
- package/es/lowcode/view/lc-components/Box/index.js +21 -0
- package/es/lowcode/view/lc-components/Button/index.js +37 -0
- package/es/lowcode/view/lc-components/CardList/index.js +20 -0
- package/es/lowcode/view/lc-components/Dialog/index.js +50 -0
- package/es/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/es/lowcode/view/lc-components/Drawer/index.js +46 -0
- package/es/lowcode/view/lc-components/Form/index.js +20 -0
- package/es/lowcode/view/lc-components/Iframe/index.js +20 -0
- package/es/lowcode/view/lc-components/ImEx/index.js +20 -0
- package/es/lowcode/view/lc-components/Image/index.js +20 -0
- package/es/lowcode/view/lc-components/JSX/index.js +20 -0
- package/es/lowcode/view/lc-components/Layout/index.js +24 -0
- package/es/lowcode/view/lc-components/Link/index.js +20 -0
- package/es/lowcode/view/lc-components/Section/index.js +34 -0
- package/es/lowcode/view/lc-components/Split/index.js +21 -0
- package/es/lowcode/view/lc-components/Table/index.js +23 -0
- package/es/lowcode/view/lc-components/Tabs/index.js +21 -0
- package/es/lowcode/view/lc-components/Text/index.js +23 -0
- package/es/lowcode/view/lc-components/Tree/index.js +20 -0
- package/es/lowcode/view/lc-components/Wrapper.js +45 -0
- package/es/lowcode/view/style/canvas.less +5 -0
- package/es/lowcode/view/style/loading.less +84 -0
- package/es/lowcode/view/style/page.less +6 -0
- package/es/services.js +1 -1
- package/es/upload/Form/gridForm.js +29 -7
- package/es/upload/Form/index.js +1 -1
- package/es/upload/Form/index.less +7 -7
- package/es/upload/FormItem/index.js +30 -18
- package/es/upload/index.js +3 -3
- package/es/utils/action.js +1 -1
- package/es/utils/form.js +26 -26
- package/es/utils/grid.js +22 -26
- package/es/utils/index.js +3 -3
- package/lib/components/Builder/index.js +3 -5
- package/lib/components/LdAutoForm/index.js +5 -8
- package/lib/components/LdCard/index.js +5 -7
- package/lib/components/LdCom/index.js +6 -11
- package/lib/components/LdFormList/index.js +15 -13
- package/lib/components/LdGrid/index.js +10 -12
- package/lib/components/LdGridForm/index.js +6 -7
- package/lib/components/LdGridForm/index.less +7 -7
- package/lib/components/LdInfoPanel/index.js +2 -3
- package/lib/components/LdPop/index.js +2 -4
- package/lib/components/LdRuntimeCom/index.js +49 -0
- package/lib/components/LdTree/index.js +2 -4
- package/lib/components/LdTree/index.less +36 -36
- package/lib/helper/FromItems.js +15 -29
- package/lib/helper/action.js +9 -11
- package/lib/helper/form.js +18 -20
- package/lib/helper/index.less +7 -7
- package/lib/helper/ldBuilder.js +1 -2
- package/lib/helper/ldComBuild.js +7 -11
- package/lib/index.js +9 -1
- package/lib/lowcode/constants/api-url.js +8 -0
- package/lib/lowcode/constants/event-topics.js +29 -0
- package/lib/lowcode/constants/index.js +18 -0
- package/lib/lowcode/engine/factory/DataFactory.js +3 -0
- package/lib/lowcode/engine/meta/button.props.default.json +8 -0
- package/lib/lowcode/engine/meta/cardlist.props.default.json +10 -0
- package/lib/lowcode/engine/meta/components/button.json +104 -0
- package/lib/lowcode/engine/meta/components/card-list.json +143 -0
- package/lib/lowcode/engine/meta/components/drawer.json +143 -0
- package/lib/lowcode/engine/meta/components/form.json +116 -0
- package/lib/lowcode/engine/meta/components/iframe.json +31 -0
- package/lib/lowcode/engine/meta/components/image.json +113 -0
- package/lib/lowcode/engine/meta/components/imex.json +81 -0
- package/lib/lowcode/engine/meta/components/jsx.json +24 -0
- package/lib/lowcode/engine/meta/components/layout.json +107 -0
- package/lib/lowcode/engine/meta/components/link.json +111 -0
- package/lib/lowcode/engine/meta/components/modal.json +120 -0
- package/lib/lowcode/engine/meta/components/section.json +107 -0
- package/lib/lowcode/engine/meta/components/split.json +71 -0
- package/lib/lowcode/engine/meta/components/table.json +161 -0
- package/lib/lowcode/engine/meta/components/tabs.json +140 -0
- package/lib/lowcode/engine/meta/components/text.json +65 -0
- package/lib/lowcode/engine/meta/components/tree.json +156 -0
- package/lib/lowcode/engine/meta/components-list.json +122 -0
- package/lib/lowcode/engine/meta/drawer.props.default.json +10 -0
- package/lib/lowcode/engine/meta/form.props.default.json +5 -0
- package/lib/lowcode/engine/meta/iframe.props.default.json +3 -0
- package/lib/lowcode/engine/meta/image.props.default.json +8 -0
- package/lib/lowcode/engine/meta/imex.props.default.json +4 -0
- package/lib/lowcode/engine/meta/jsx.props.default.json +1 -0
- package/lib/lowcode/engine/meta/layout.props.default.json +5 -0
- package/lib/lowcode/engine/meta/link.props.default.json +6 -0
- package/lib/lowcode/engine/meta/modal.props.default.json +11 -0
- package/lib/lowcode/engine/meta/section.props.default.json +9 -0
- package/lib/lowcode/engine/meta/split.props.default.json +5 -0
- package/lib/lowcode/engine/meta/table.props.default.json +10 -0
- package/lib/lowcode/engine/meta/tabs.props.default.json +10 -0
- package/lib/lowcode/engine/meta/text.props.default.json +4 -0
- package/lib/lowcode/engine/meta/tree.props.default.json +9 -0
- package/lib/lowcode/engine/provider/ContextProvider.js +172 -0
- package/lib/lowcode/engine/provider/EventBusProvider.js +128 -0
- package/lib/lowcode/engine/tools/dataProcess.js +201 -0
- package/lib/lowcode/engine/tools/helper.js +11 -0
- package/lib/lowcode/engine/tools/lcid.js +22 -0
- package/lib/lowcode/index.js +20 -0
- package/lib/lowcode/painter/Components.js +112 -0
- package/lib/lowcode/painter/Design.js +105 -0
- package/lib/lowcode/painter/I18n.js +12 -0
- package/lib/lowcode/painter/Outline.js +210 -0
- package/lib/lowcode/painter/Panel.js +16 -0
- package/lib/lowcode/painter/Ribbon.js +151 -0
- package/lib/lowcode/painter/components/PanelItem.js +26 -0
- package/lib/lowcode/painter/components/RuleInput.js +112 -0
- package/lib/lowcode/painter/index.js +26 -0
- package/lib/lowcode/painter/panel-section/LayoutRatio.js +131 -0
- package/lib/lowcode/painter/panel-section/Radio.js +65 -0
- package/lib/lowcode/painter/style/components.less +90 -0
- package/lib/lowcode/painter/style/design.less +38 -0
- package/lib/lowcode/painter/style/index.less +7 -0
- package/lib/lowcode/painter/style/layout-ratio.less +51 -0
- package/lib/lowcode/painter/style/outline.less +26 -0
- package/lib/lowcode/painter/style/panel-item.less +21 -0
- package/lib/lowcode/painter/style/panel.less +5 -0
- package/lib/lowcode/painter/style/radio.less +24 -0
- package/lib/lowcode/painter/style/ribbon.less +4 -0
- package/lib/lowcode/painter/style/rule-input.less +13 -0
- package/lib/lowcode/view/Canvas.js +150 -0
- package/lib/lowcode/view/Loading.js +30 -0
- package/lib/lowcode/view/Page.js +63 -0
- package/lib/lowcode/view/index.js +25 -0
- package/lib/lowcode/view/lc-components/Box/index.js +29 -0
- package/lib/lowcode/view/lc-components/Button/index.js +45 -0
- package/lib/lowcode/view/lc-components/CardList/index.js +28 -0
- package/lib/lowcode/view/lc-components/Dialog/index.js +58 -0
- package/lib/lowcode/view/lc-components/Dialog/index.less +3 -0
- package/lib/lowcode/view/lc-components/Drawer/index.js +54 -0
- package/lib/lowcode/view/lc-components/Form/index.js +28 -0
- package/lib/lowcode/view/lc-components/Iframe/index.js +28 -0
- package/lib/lowcode/view/lc-components/ImEx/index.js +28 -0
- package/lib/lowcode/view/lc-components/Image/index.js +28 -0
- package/lib/lowcode/view/lc-components/JSX/index.js +28 -0
- package/lib/lowcode/view/lc-components/Layout/index.js +32 -0
- package/lib/lowcode/view/lc-components/Link/index.js +28 -0
- package/lib/lowcode/view/lc-components/Section/index.js +42 -0
- package/lib/lowcode/view/lc-components/Split/index.js +29 -0
- package/lib/lowcode/view/lc-components/Table/index.js +31 -0
- package/lib/lowcode/view/lc-components/Tabs/index.js +29 -0
- package/lib/lowcode/view/lc-components/Text/index.js +31 -0
- package/lib/lowcode/view/lc-components/Tree/index.js +28 -0
- package/lib/lowcode/view/lc-components/Wrapper.js +52 -0
- package/lib/lowcode/view/style/canvas.less +5 -0
- package/lib/lowcode/view/style/loading.less +84 -0
- package/lib/lowcode/view/style/page.less +6 -0
- package/lib/upload/Form/gridForm.js +27 -6
- package/lib/upload/Form/index.js +1 -2
- package/lib/upload/Form/index.less +7 -7
- package/lib/upload/FormItem/index.js +30 -19
- package/lib/upload/GridCell/index.js +1 -2
- package/lib/utils/form.js +26 -29
- package/lib/utils/grid.js +23 -28
- package/lowcode.js +1 -0
- package/package.json +157 -78
- package/upload.js +1 -1
- package/utils.js +1 -1
- package/README.zh-CN.md +0 -51
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
+
var _createForOfIteratorHelper2 = _interopRequireDefault(require("@babel/runtime/helpers/createForOfIteratorHelper"));
|
|
11
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
12
|
+
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
13
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
14
|
+
var _antd = require("luck-design/antd");
|
|
15
|
+
var _ruleInput = _interopRequireDefault(require("../style/rule-input.less"));
|
|
16
|
+
var _excluded = ["onValueChange", "rules", "value"];
|
|
17
|
+
/**
|
|
18
|
+
* 带校验功能的输入组件。
|
|
19
|
+
*
|
|
20
|
+
* 此组件封装了antd的Input组件,并增加了输入值的校验功能。它允许开发者定义一组校验规则,
|
|
21
|
+
* 以确保用户输入符合特定要求。每条规则由一个校验函数和一个错误信息组成。如果用户的输入
|
|
22
|
+
* 不满足任何一条规则,将展示相应的错误信息提示。
|
|
23
|
+
*
|
|
24
|
+
* @component
|
|
25
|
+
* @example
|
|
26
|
+
* <RuleInput
|
|
27
|
+
* value="示例值"
|
|
28
|
+
* onValueChange={(e, newValue) => console.log('新值:', newValue)}
|
|
29
|
+
* rules={[
|
|
30
|
+
* { func: value => !!value, err: '输入不能为空' },
|
|
31
|
+
* { func: value => /^\d+$/.test(value), err: '只允许输入数字' }
|
|
32
|
+
* ]}
|
|
33
|
+
* />
|
|
34
|
+
*
|
|
35
|
+
* @param {Object} props 组件接收的props
|
|
36
|
+
* @param {string} props.value 输入框当前的值,可以由外部控制以实现受控组件。
|
|
37
|
+
* @param {Function} props.onValueChange 当输入值改变并通过所有校验时,触发的回调函数。
|
|
38
|
+
* 该函数接收原生的事件对象和新的输入值作为参数。
|
|
39
|
+
* @param {Array<{func: (value: string) => boolean, err: string}>} props.rules
|
|
40
|
+
* 定义输入校验规则的数组。每个元素是一个对象,其中`func`属性是一个函数,用于执行校验逻辑,
|
|
41
|
+
* 接收当前输入值作为参数,返回一个布尔值表示校验是否通过;`err`属性是一个字符串,指定当
|
|
42
|
+
* 校验失败时要显示的错误信息。
|
|
43
|
+
* @param {Object} rest 传递给内部Input组件的其他props,如`placeholder`、`disabled`等。
|
|
44
|
+
* @param {React.Ref} ref React ref对象,用于将ref传递给内部的Input DOM元素。
|
|
45
|
+
*
|
|
46
|
+
* @returns React元素,渲染一个带有校验功能的输入框和校验失败时的错误信息提示。
|
|
47
|
+
*/
|
|
48
|
+
var _default = exports.default = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
49
|
+
var onValueChange = _ref.onValueChange,
|
|
50
|
+
rules = _ref.rules,
|
|
51
|
+
value = _ref.value,
|
|
52
|
+
rest = (0, _objectWithoutProperties2.default)(_ref, _excluded);
|
|
53
|
+
var _useState = (0, _react.useState)(value),
|
|
54
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
55
|
+
inputValue = _useState2[0],
|
|
56
|
+
setInputValue = _useState2[1]; // 托管输入值的状态
|
|
57
|
+
var _useState3 = (0, _react.useState)(null),
|
|
58
|
+
_useState4 = (0, _slicedToArray2.default)(_useState3, 2),
|
|
59
|
+
err = _useState4[0],
|
|
60
|
+
setErr = _useState4[1];
|
|
61
|
+
|
|
62
|
+
// 使用useEffect钩子监听value的变化
|
|
63
|
+
(0, _react.useEffect)(function () {
|
|
64
|
+
setInputValue(value);
|
|
65
|
+
setErr(null);
|
|
66
|
+
}, [value]);
|
|
67
|
+
var handleInputChange = function handleInputChange(e) {
|
|
68
|
+
var value = e.target.value;
|
|
69
|
+
setInputValue(value); // 更新托管的输入值
|
|
70
|
+
|
|
71
|
+
if (value == '') onValueChange(e, value);
|
|
72
|
+
var error = null;
|
|
73
|
+
|
|
74
|
+
// 遍历rules,检查输入值是否满足条件
|
|
75
|
+
var _iterator = (0, _createForOfIteratorHelper2.default)(rules),
|
|
76
|
+
_step;
|
|
77
|
+
try {
|
|
78
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
79
|
+
var rule = _step.value;
|
|
80
|
+
if (!rule.func(value)) {
|
|
81
|
+
error = rule.err;
|
|
82
|
+
break;
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
} catch (err) {
|
|
86
|
+
_iterator.e(err);
|
|
87
|
+
} finally {
|
|
88
|
+
_iterator.f();
|
|
89
|
+
}
|
|
90
|
+
if (!error) {
|
|
91
|
+
setErr(null);
|
|
92
|
+
onValueChange(e, value);
|
|
93
|
+
} else {
|
|
94
|
+
setErr(error);
|
|
95
|
+
console.log('err', error);
|
|
96
|
+
}
|
|
97
|
+
};
|
|
98
|
+
var className = _ruleInput.default['lc-painter-components-ruleinput'];
|
|
99
|
+
if (err) className += ' ' + _ruleInput.default['err'];
|
|
100
|
+
return /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_antd.Tooltip, {
|
|
101
|
+
title: err,
|
|
102
|
+
visible: err
|
|
103
|
+
}, /*#__PURE__*/_react.default.createElement(_antd.Input, (0, _extends2.default)({
|
|
104
|
+
className: className,
|
|
105
|
+
size: "small",
|
|
106
|
+
value: inputValue // 绑定输入值
|
|
107
|
+
,
|
|
108
|
+
onChange: handleInputChange
|
|
109
|
+
}, rest, {
|
|
110
|
+
ref: ref
|
|
111
|
+
}))));
|
|
112
|
+
});
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.default = void 0;
|
|
8
|
+
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
9
|
+
var _react = _interopRequireDefault(require("react"));
|
|
10
|
+
var _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
+
var _EventBusProvider = _interopRequireDefault(require("../engine/provider/EventBusProvider"));
|
|
12
|
+
var _ContextProvider = _interopRequireDefault(require("../engine/provider/ContextProvider"));
|
|
13
|
+
var _Ribbon = _interopRequireDefault(require("./Ribbon"));
|
|
14
|
+
var _Design = _interopRequireDefault(require("./Design"));
|
|
15
|
+
var _Panel = _interopRequireDefault(require("./Panel"));
|
|
16
|
+
var _index = require("../constants/index");
|
|
17
|
+
var _index2 = _interopRequireDefault(require("./style/index.less"));
|
|
18
|
+
var Painter = function Painter(_ref) {
|
|
19
|
+
var className = _ref.className;
|
|
20
|
+
return /*#__PURE__*/_react.default.createElement(_EventBusProvider.default, {
|
|
21
|
+
runtime: _index.RUNTIME.DESIGN
|
|
22
|
+
}, /*#__PURE__*/_react.default.createElement(_ContextProvider.default, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
23
|
+
className: (0, _classnames.default)(_index2.default['lc-painter'], (0, _defineProperty2.default)({}, className, !!className))
|
|
24
|
+
}, /*#__PURE__*/_react.default.createElement(_Ribbon.default, null), /*#__PURE__*/_react.default.createElement(_Design.default, null), /*#__PURE__*/_react.default.createElement(_Panel.default, null))));
|
|
25
|
+
};
|
|
26
|
+
var _default = exports.default = Painter;
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _layoutRatio = _interopRequireDefault(require("../style/layout-ratio.less"));
|
|
12
|
+
var _utils = require("@luck-design-biz/base/utils");
|
|
13
|
+
var _RuleInput = _interopRequireDefault(require("../components/RuleInput"));
|
|
14
|
+
var _PanelItem = _interopRequireDefault(require("../components/PanelItem"));
|
|
15
|
+
var ratios = ['12', '6:6', '3:9', '9:3', '4:4:4', '3:6:3', '3:3:3:3', '2:2:2:2:2:2'];
|
|
16
|
+
var defaultRatio = '12';
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* 布局比例组件
|
|
20
|
+
*
|
|
21
|
+
* @param {string} value 默认值
|
|
22
|
+
* @param {Function} onChange 当合法数据变化时触发
|
|
23
|
+
* @returns
|
|
24
|
+
*/
|
|
25
|
+
var LayoutRatio = /*#__PURE__*/(0, _react.forwardRef)(function (_ref, ref) {
|
|
26
|
+
var value = _ref.value,
|
|
27
|
+
onChange = _ref.onChange;
|
|
28
|
+
var _useState = (0, _react.useState)(value || defaultRatio),
|
|
29
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
30
|
+
currentRatio = _useState2[0],
|
|
31
|
+
setCurrentRatio = _useState2[1];
|
|
32
|
+
var handleInputChange = function handleInputChange(_, value) {
|
|
33
|
+
console.log('value', value);
|
|
34
|
+
if (!value) value = defaultRatio;
|
|
35
|
+
setCurrentRatio(value);
|
|
36
|
+
};
|
|
37
|
+
var handGridClick = function handGridClick(selectedRadio) {
|
|
38
|
+
// console.log('selectedRadio', selectedRadio);
|
|
39
|
+
setCurrentRatio(selectedRadio);
|
|
40
|
+
if (onChange) onChange(selectedRadio);
|
|
41
|
+
};
|
|
42
|
+
(0, _react.useImperativeHandle)(ref, function () {
|
|
43
|
+
return {
|
|
44
|
+
getValue: function getValue() {
|
|
45
|
+
return currentRatio;
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
});
|
|
49
|
+
|
|
50
|
+
// 定义验证规则
|
|
51
|
+
var rules = [{
|
|
52
|
+
func: function func(value) {
|
|
53
|
+
// 首先,检查value是否为字符串
|
|
54
|
+
if (typeof value !== 'string') return false;
|
|
55
|
+
|
|
56
|
+
// 使用正则表达式检查字符串是否只包含数字和冒号,并且不以冒号开始或结束
|
|
57
|
+
if (!/^[0-9]+(:[0-9]+)*$/.test(value)) return false;
|
|
58
|
+
|
|
59
|
+
// 使用冒号分割字符串,并将分割后的每个元素转换为数字
|
|
60
|
+
var numbers = value.split(':').map(Number);
|
|
61
|
+
|
|
62
|
+
// 计算所有数字的总和
|
|
63
|
+
var sum = numbers.reduce(function (acc, cur) {
|
|
64
|
+
return acc + cur;
|
|
65
|
+
}, 0);
|
|
66
|
+
|
|
67
|
+
// 判断总和是否等于12
|
|
68
|
+
return sum === 12;
|
|
69
|
+
},
|
|
70
|
+
err: (0, _utils.formatMessage)({
|
|
71
|
+
id: 'luckda.lowcode.painter.panel-section.Layoutratio.err',
|
|
72
|
+
label: '必须是数字或者数字加:号的组合,且数字之和必须等于12'
|
|
73
|
+
})
|
|
74
|
+
}];
|
|
75
|
+
var isCurrentInRatios = ratios.includes(currentRatio);
|
|
76
|
+
var currentItemRatios = currentRatio.split(':');
|
|
77
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
78
|
+
className: _layoutRatio.default['lc-painter-panel-section-layoutratio']
|
|
79
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
80
|
+
className: _layoutRatio.default['ratio-view']
|
|
81
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
82
|
+
className: _layoutRatio.default['gridbox-container']
|
|
83
|
+
}, ratios.map(function (ratio) {
|
|
84
|
+
var itemRatios = ratio.split(':');
|
|
85
|
+
var isCurrent = ratio == currentRatio;
|
|
86
|
+
var className = _layoutRatio.default['gridbox'];
|
|
87
|
+
if (isCurrent) className = className + ' ' + _layoutRatio.default['current'];
|
|
88
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
89
|
+
className: className,
|
|
90
|
+
onClick: function onClick() {
|
|
91
|
+
return handGridClick(ratio);
|
|
92
|
+
}
|
|
93
|
+
}, itemRatios.map(function (itemRatio) {
|
|
94
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
95
|
+
className: _layoutRatio.default['girditem'],
|
|
96
|
+
style: {
|
|
97
|
+
gridColumn: 'span ' + itemRatio
|
|
98
|
+
}
|
|
99
|
+
});
|
|
100
|
+
}));
|
|
101
|
+
}), !isCurrentInRatios && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement("div", {
|
|
102
|
+
className: "".concat(_layoutRatio.default['gridbox'], " ").concat(_layoutRatio.default['current']),
|
|
103
|
+
onClick: function onClick() {
|
|
104
|
+
return handGridClick(ratio);
|
|
105
|
+
}
|
|
106
|
+
}, currentItemRatios.map(function (itemRatio) {
|
|
107
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
108
|
+
className: _layoutRatio.default['girditem'],
|
|
109
|
+
style: {
|
|
110
|
+
gridColumn: 'span ' + itemRatio
|
|
111
|
+
}
|
|
112
|
+
});
|
|
113
|
+
}))))), /*#__PURE__*/_react.default.createElement("div", {
|
|
114
|
+
className: _layoutRatio.default['ratio-input']
|
|
115
|
+
}, /*#__PURE__*/_react.default.createElement(_PanelItem.default, {
|
|
116
|
+
label: (0, _utils.formatMessage)({
|
|
117
|
+
id: 'luckda.lowcode.painter.panel-section.Layoutratio.label',
|
|
118
|
+
label: '列比例'
|
|
119
|
+
}),
|
|
120
|
+
component: /*#__PURE__*/_react.default.createElement(_RuleInput.default, {
|
|
121
|
+
placeholder: (0, _utils.formatMessage)({
|
|
122
|
+
id: 'luckda.lowcode.painter.panel-section.Layoutratio.placeholder',
|
|
123
|
+
label: '请输入列比例'
|
|
124
|
+
}),
|
|
125
|
+
rules: rules,
|
|
126
|
+
onValueChange: handleInputChange,
|
|
127
|
+
value: currentRatio
|
|
128
|
+
})
|
|
129
|
+
})));
|
|
130
|
+
});
|
|
131
|
+
var _default = exports.default = LayoutRatio;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
4
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.default = void 0;
|
|
9
|
+
var _slicedToArray2 = _interopRequireDefault(require("@babel/runtime/helpers/slicedToArray"));
|
|
10
|
+
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
+
var _radio = _interopRequireDefault(require("../style/radio.less"));
|
|
12
|
+
/**
|
|
13
|
+
* Radio组件允许用户从一组选项中选择一个。它接收一个`options`数组来渲染选项,以及一个可选的`onChange`回调函数,
|
|
14
|
+
* 当用户选择不同的选项时,`onChange`会被调用并传递当前选中的选项对象。
|
|
15
|
+
*
|
|
16
|
+
* @component
|
|
17
|
+
* @example
|
|
18
|
+
* const options = [
|
|
19
|
+
* { label: '小', value: 'small' },
|
|
20
|
+
* { label: '中', value: 'middle' },
|
|
21
|
+
* { label: '大', value: 'large' }
|
|
22
|
+
* ];
|
|
23
|
+
*
|
|
24
|
+
* function handleChange(option) {
|
|
25
|
+
* console.log(option);
|
|
26
|
+
* }
|
|
27
|
+
*
|
|
28
|
+
* <Radio options={options} onChange={handleChange} />
|
|
29
|
+
*
|
|
30
|
+
* @param {Object} props - 组件的props。
|
|
31
|
+
* @param {Object[]} props.options - 选项数组,每个对象都应包含`label`和`value`。
|
|
32
|
+
* @param {string} props.options[].label - 选项的显示文本。
|
|
33
|
+
* @param {string} props.options[].value - 选项的值,应唯一。
|
|
34
|
+
* @param {Function} [props.onChange] - 可选,当选项变化时调用的回调函数。传递当前选中的选项对象。
|
|
35
|
+
*/
|
|
36
|
+
var Radio = function Radio(_ref) {
|
|
37
|
+
var _options$;
|
|
38
|
+
var options = _ref.options,
|
|
39
|
+
onChange = _ref.onChange;
|
|
40
|
+
var _useState = (0, _react.useState)((_options$ = options[0]) === null || _options$ === void 0 ? void 0 : _options$.value),
|
|
41
|
+
_useState2 = (0, _slicedToArray2.default)(_useState, 2),
|
|
42
|
+
activeValue = _useState2[0],
|
|
43
|
+
setActiveValue = _useState2[1];
|
|
44
|
+
|
|
45
|
+
// 点击事件处理函数
|
|
46
|
+
var handleClick = function handleClick(option) {
|
|
47
|
+
// 设置当前激活的选项
|
|
48
|
+
setActiveValue(option.value);
|
|
49
|
+
if (onChange) {
|
|
50
|
+
onChange(option);
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
54
|
+
className: _radio.default['lc-painter-panel-section-radio']
|
|
55
|
+
}, options.map(function (option) {
|
|
56
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
57
|
+
key: option.value,
|
|
58
|
+
className: "".concat(_radio.default['radio-item'], " ").concat(activeValue === option.value ? 'active' : ''),
|
|
59
|
+
onClick: function onClick() {
|
|
60
|
+
return handleClick(option);
|
|
61
|
+
}
|
|
62
|
+
}, option.label);
|
|
63
|
+
}));
|
|
64
|
+
};
|
|
65
|
+
var _default = exports.default = Radio;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
.lc-painter-components {
|
|
2
|
+
.components-search {
|
|
3
|
+
padding: 0 20px;
|
|
4
|
+
}
|
|
5
|
+
|
|
6
|
+
.components-content {
|
|
7
|
+
border-top: 1px solid #e3e3e3;
|
|
8
|
+
margin-top: 20px;
|
|
9
|
+
padding-top: 10px;
|
|
10
|
+
display: flex;
|
|
11
|
+
flex-direction: row;
|
|
12
|
+
flex-wrap: wrap;
|
|
13
|
+
justify-content: flex-start;
|
|
14
|
+
align-items: flex-start;
|
|
15
|
+
|
|
16
|
+
.components-wrapper {
|
|
17
|
+
padding: 0 20px;
|
|
18
|
+
flex-basis: 100%;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: row;
|
|
21
|
+
flex-wrap: wrap;
|
|
22
|
+
align-items: center;
|
|
23
|
+
margin-bottom: 20px;
|
|
24
|
+
|
|
25
|
+
h3 {
|
|
26
|
+
width: 100%; // 使标题占满整行
|
|
27
|
+
margin-left: 0;
|
|
28
|
+
margin-bottom: 10px;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
.components-item {
|
|
33
|
+
display: flex;
|
|
34
|
+
width: 121px;
|
|
35
|
+
height: 37px;
|
|
36
|
+
align-items: center;
|
|
37
|
+
justify-content: center; // 水平居中对齐
|
|
38
|
+
padding: 10px;
|
|
39
|
+
border: 1px solid #ddd;
|
|
40
|
+
margin-right: 10px; // 添加右边距来分隔项
|
|
41
|
+
margin-bottom: 10px; // 添加底边距来分隔行
|
|
42
|
+
border-radius: 4px;
|
|
43
|
+
transition: border-color 0.3s;
|
|
44
|
+
box-sizing: border-box; // 确保边框和填充不会增加元素的宽度
|
|
45
|
+
|
|
46
|
+
&:hover {
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
border-color: #3478ff;
|
|
49
|
+
color: #3478ff; // 文本颜色
|
|
50
|
+
.icon-wrapper {
|
|
51
|
+
color: #3478ff; // Icon颜色(如果Icon组件接受color属性)
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.icon-wrapper {
|
|
56
|
+
display: flex;
|
|
57
|
+
font-size: 12px;
|
|
58
|
+
align-items: center;
|
|
59
|
+
margin-right: 10px;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
.text-content {
|
|
63
|
+
flex-grow: 1;
|
|
64
|
+
text-align: left;
|
|
65
|
+
|
|
66
|
+
span {
|
|
67
|
+
font-size: 12px;
|
|
68
|
+
color: #333;
|
|
69
|
+
white-space: nowrap; // 防止文字换行
|
|
70
|
+
overflow: hidden; // 隐藏溢出的文字
|
|
71
|
+
text-overflow: ellipsis; // 使用省略号表示溢出
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
p {
|
|
75
|
+
display: none; // 隐藏描述,因为在这个组件尺寸中无法显示
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
:global{
|
|
82
|
+
.ant-tabs-nav-scroll{
|
|
83
|
+
display: flex;
|
|
84
|
+
justify-content: center;
|
|
85
|
+
.ant-tabs-tab{
|
|
86
|
+
font-size: 14px!important;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
.box {
|
|
2
|
+
position: absolute;
|
|
3
|
+
width: 0;
|
|
4
|
+
height: 0;
|
|
5
|
+
top: 0;
|
|
6
|
+
left: 0;
|
|
7
|
+
display: none;
|
|
8
|
+
pointer-events: none;
|
|
9
|
+
cursor: pointer;
|
|
10
|
+
overflow: visible;
|
|
11
|
+
z-index: 9999;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.lc-painter-design {
|
|
15
|
+
position: relative;
|
|
16
|
+
flex: 1;
|
|
17
|
+
height: 100%;
|
|
18
|
+
overflow: auto;
|
|
19
|
+
|
|
20
|
+
.simulator {
|
|
21
|
+
:global {
|
|
22
|
+
.ant-form-item {
|
|
23
|
+
pointer-events: none;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
.detector {
|
|
29
|
+
border: 1px dashed var(--ant-primary-color);
|
|
30
|
+
background-color: color-mix(in sRGB, var(--ant-primary-color), transparent 95%);
|
|
31
|
+
.box();
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
.selector {
|
|
35
|
+
border: 2px solid var(--ant-primary-6);
|
|
36
|
+
.box();
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
.lc-painter-panel-section-layoutratio {
|
|
2
|
+
@gridbox-width: 66px; // 定义变量
|
|
3
|
+
@grid-gap: 10px; // 间隔变量
|
|
4
|
+
@grid-items-per-row: 4; // 每行的gridbox数量
|
|
5
|
+
|
|
6
|
+
margin: 0;
|
|
7
|
+
align-items: center;
|
|
8
|
+
|
|
9
|
+
.ratio-view {
|
|
10
|
+
display: flex;
|
|
11
|
+
justify-content: center;
|
|
12
|
+
align-items: flex-start;
|
|
13
|
+
|
|
14
|
+
.gridbox-container {
|
|
15
|
+
width: calc(@grid-items-per-row * @gridbox-width + (@grid-items-per-row - 1) * @grid-gap);
|
|
16
|
+
margin: 0 auto; // 保持这个居中
|
|
17
|
+
display: flex;
|
|
18
|
+
flex-direction: row;
|
|
19
|
+
flex-wrap: wrap;
|
|
20
|
+
gap: @grid-gap;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
.gridbox {
|
|
24
|
+
display: grid;
|
|
25
|
+
grid-template-columns: repeat(12, 1fr);
|
|
26
|
+
gap: 2px;
|
|
27
|
+
width: @gridbox-width;
|
|
28
|
+
height: 34px;
|
|
29
|
+
border-radius: 5px;
|
|
30
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
|
31
|
+
padding: 3px;
|
|
32
|
+
|
|
33
|
+
&:hover {
|
|
34
|
+
cursor: pointer;
|
|
35
|
+
border-color: #3478ff;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
&.current {
|
|
39
|
+
border-color: #3478ff;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
.girditem {
|
|
43
|
+
background-color: rgb(192, 194, 196);
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
.ratio-input {
|
|
49
|
+
margin-top: 20px;
|
|
50
|
+
}
|
|
51
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
.lc-painter-outline {
|
|
2
|
+
.page-node {
|
|
3
|
+
cursor: pointer;
|
|
4
|
+
display: flex;
|
|
5
|
+
-webkit-box-align: center;
|
|
6
|
+
align-items: center;
|
|
7
|
+
height: 32px;
|
|
8
|
+
box-sizing: border-box;
|
|
9
|
+
position: relative;
|
|
10
|
+
transform: translateZ(0);
|
|
11
|
+
padding: 0 5px;
|
|
12
|
+
}
|
|
13
|
+
.page-node:hover,
|
|
14
|
+
.page-node.page-node-active {
|
|
15
|
+
background-color: #f6f7f8;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
:global {
|
|
19
|
+
.ant-tree.ant-tree-show-line li:not(:last-child)::before {
|
|
20
|
+
height: calc(100% - 34px);
|
|
21
|
+
}
|
|
22
|
+
.ant-tree-switcher-noop svg {
|
|
23
|
+
display: none;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
.lc-painter-components-panelitem {
|
|
2
|
+
display: flex;
|
|
3
|
+
justify-content: space-between;
|
|
4
|
+
gap: 20px;
|
|
5
|
+
align-items: center;
|
|
6
|
+
min-height: 28px;
|
|
7
|
+
|
|
8
|
+
.item-label {
|
|
9
|
+
font-size: 12px;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
.item-component {
|
|
13
|
+
display: flex;
|
|
14
|
+
width: 215px;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
/* 使.item-component-box的直接子元素铺满 */
|
|
18
|
+
.item-component > * {
|
|
19
|
+
flex-grow: 1;
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
.lc-painter-panel-section-radio {
|
|
2
|
+
background-color: #f1f2f3;
|
|
3
|
+
border-radius: 6px;
|
|
4
|
+
height: 28px;
|
|
5
|
+
display: flex;
|
|
6
|
+
align-items: center;
|
|
7
|
+
|
|
8
|
+
.radio-item {
|
|
9
|
+
display: flex;
|
|
10
|
+
flex: 1;
|
|
11
|
+
text-align: center;
|
|
12
|
+
align-items: center;
|
|
13
|
+
justify-content: center;
|
|
14
|
+
height: 24px;
|
|
15
|
+
font-size: 12px;
|
|
16
|
+
margin: 2px;
|
|
17
|
+
border-radius: 6px;
|
|
18
|
+
cursor: pointer;
|
|
19
|
+
|
|
20
|
+
&.active{
|
|
21
|
+
background-color: #ffffff;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
.lc-painter-components-ruleinput {
|
|
2
|
+
&.err, &.err:hover {
|
|
3
|
+
border-color: #ff4d4f;
|
|
4
|
+
color: red;
|
|
5
|
+
}
|
|
6
|
+
&.err:focus {
|
|
7
|
+
border-color: #ff4d4f;
|
|
8
|
+
border-right-width: 1px !important;
|
|
9
|
+
outline: 0;
|
|
10
|
+
-webkit-box-shadow: 0 0 0 2px rgba(245,34,45,.2);
|
|
11
|
+
box-shadow: 0 0 0 2px rgba(245,34,45,.2);
|
|
12
|
+
}
|
|
13
|
+
}
|