@fonixtree/magic-design 2.0.49 → 2.0.50
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/assets/fonts/.DS_Store +0 -0
- package/es/assets/fonts/magic-box-iconfont.css +22 -6
- package/es/assets/fonts/magic-box-iconfont.css.bak +28 -3
- package/es/assets/fonts/magic-box-iconfont.js +5 -1
- package/es/assets/fonts/magic-box-iconfont.js.bak +5 -1
- package/es/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff +0 -0
- package/es/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/es/assets/images/base64/index.js +10 -2
- package/es/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/es/common/ImagePicker/index.js +1 -1
- package/es/common/MyModal/index.js +413 -0
- package/es/common/MyModal/index.less +74 -0
- package/es/common/index.js +8 -0
- package/es/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/es/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/es/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/es/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/es/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/es/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/es/constants/component-types.js +9 -3
- package/es/constants/index.js +4 -0
- package/es/constants/layout.js +9 -1
- package/es/core/Designer/ToolBarModal/ToolBtn/index.js +9 -0
- package/es/core/Designer/ToolBarModal/index.js +55 -0
- package/es/core/Designer/ToolBarModal/index.less +3 -2
- package/es/core/Renderer/index.js +44 -3
- package/es/locale/en/en.json +2 -1
- package/es/locale/es/es.json +2 -1
- package/es/locale/id/id.json +2 -1
- package/es/meta-comp/components/Image/index.js +31 -25
- package/es/meta-comp/config-panels/ImageConfig/index.js +44 -42
- package/es/mobx/Frame.js +15 -1
- package/es/utils/businessUtil.js +2 -1
- package/lib/assets/fonts/.DS_Store +0 -0
- package/lib/assets/fonts/magic-box-iconfont.css +22 -6
- package/lib/assets/fonts/magic-box-iconfont.css.bak +28 -3
- package/lib/assets/fonts/magic-box-iconfont.js +5 -1
- package/lib/assets/fonts/magic-box-iconfont.js.bak +5 -1
- package/lib/assets/fonts/magic-box-iconfont.ttf +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff +0 -0
- package/lib/assets/fonts/magic-box-iconfont.woff2 +0 -0
- package/lib/assets/images/base64/index.js +10 -2
- package/lib/assets/images/layout-icon/walletNuriLayout1.png +0 -0
- package/lib/common/ImagePicker/index.js +1 -1
- package/lib/common/MyModal/index.js +413 -0
- package/lib/common/MyModal/index.less +74 -0
- package/lib/common/index.js +8 -0
- package/lib/composite-comp/bol/components/WalletNuri/defaultJSON.js +148 -0
- package/lib/composite-comp/bol/components/WalletNuri/index.js +84 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.js +366 -0
- package/lib/composite-comp/bol/components/WalletNuri/mobile/index.less +22 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.js +100 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/GroupList/index.less +72 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js +123 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/imgs/defaultImg.png +0 -0
- package/lib/composite-comp/bol/config-panels/WalletNuriConfig/index.js +61 -0
- package/lib/composite-comp/bol/second-config-panels/WalletNuriSecondConfig/index.js +152 -0
- package/lib/composite-comp/dito/components/SearchBar/mobile/index.js +1 -1
- package/lib/constants/component-types.js +9 -3
- package/lib/constants/index.js +4 -0
- package/lib/constants/layout.js +9 -1
- package/lib/core/Designer/ToolBarModal/ToolBtn/index.js +9 -0
- package/lib/core/Designer/ToolBarModal/index.js +55 -0
- package/lib/core/Designer/ToolBarModal/index.less +3 -2
- package/lib/core/Renderer/index.js +44 -3
- package/lib/locale/en/en.json +2 -1
- package/lib/locale/es/es.json +2 -1
- package/lib/locale/id/id.json +2 -1
- package/lib/meta-comp/components/Image/index.js +31 -25
- package/lib/meta-comp/config-panels/ImageConfig/index.js +44 -42
- package/lib/mobx/Frame.js +15 -1
- package/lib/utils/businessUtil.js +2 -1
- package/package.json +1 -1
package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.js
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _mobxReact = require("mobx-react");
|
|
11
|
+
|
|
12
|
+
var _coreUtil = require("../../../../../utils/coreUtil");
|
|
13
|
+
|
|
14
|
+
var _decorator = require("../../../../../decorator");
|
|
15
|
+
|
|
16
|
+
var _GroupList = _interopRequireDefault(require("../GroupList"));
|
|
17
|
+
|
|
18
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
19
|
+
|
|
20
|
+
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
21
|
+
|
|
22
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
23
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
24
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
25
|
+
__proto__: []
|
|
26
|
+
} instanceof Array && function (d, b) {
|
|
27
|
+
d.__proto__ = b;
|
|
28
|
+
} || function (d, b) {
|
|
29
|
+
for (var p in b) {
|
|
30
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
return _extendStatics(d, b);
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
return function (d, b) {
|
|
38
|
+
_extendStatics(d, b);
|
|
39
|
+
|
|
40
|
+
function __() {
|
|
41
|
+
this.constructor = d;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
45
|
+
};
|
|
46
|
+
}();
|
|
47
|
+
|
|
48
|
+
var __decorate = void 0 && (void 0).__decorate || function (decorators, target, key, desc) {
|
|
49
|
+
var c = arguments.length,
|
|
50
|
+
r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc,
|
|
51
|
+
d;
|
|
52
|
+
if ((typeof Reflect === "undefined" ? "undefined" : _typeof(Reflect)) === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);else for (var i = decorators.length - 1; i >= 0; i--) {
|
|
53
|
+
if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
54
|
+
}
|
|
55
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
var notice = 'error';
|
|
59
|
+
|
|
60
|
+
var WalletNuriConfigImageGroup =
|
|
61
|
+
/** @class */
|
|
62
|
+
function (_super) {
|
|
63
|
+
__extends(WalletNuriConfigImageGroup, _super);
|
|
64
|
+
|
|
65
|
+
function WalletNuriConfigImageGroup() {
|
|
66
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
67
|
+
|
|
68
|
+
_this.state = {};
|
|
69
|
+
|
|
70
|
+
_this.onClickItem = function (node) {
|
|
71
|
+
_this.props.store.setState({
|
|
72
|
+
clickedGroup: node.id
|
|
73
|
+
});
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
_this.reRender = function () {
|
|
77
|
+
(0, _coreUtil.renderPreview)();
|
|
78
|
+
|
|
79
|
+
_this.setState({});
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
return _this;
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
WalletNuriConfigImageGroup.prototype.render = function () {
|
|
86
|
+
var _a = this.props.source,
|
|
87
|
+
source = _a === void 0 ? [] : _a;
|
|
88
|
+
|
|
89
|
+
var _renderCard = function renderCard(src) {
|
|
90
|
+
var _a;
|
|
91
|
+
|
|
92
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
93
|
+
className: "card_wrap"
|
|
94
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
95
|
+
className: "name"
|
|
96
|
+
}, (_a = src.title) === null || _a === void 0 ? void 0 : _a.text));
|
|
97
|
+
};
|
|
98
|
+
|
|
99
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
100
|
+
className: "WALLET_image"
|
|
101
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
102
|
+
className: "node_list"
|
|
103
|
+
}, source.length === 0 ? /*#__PURE__*/_react["default"].createElement("span", {
|
|
104
|
+
className: "notice"
|
|
105
|
+
}, notice) : /*#__PURE__*/_react["default"].createElement(_GroupList["default"], {
|
|
106
|
+
onClickItem: this.onClickItem,
|
|
107
|
+
renderCard: function renderCard(v) {
|
|
108
|
+
return _renderCard(v);
|
|
109
|
+
},
|
|
110
|
+
reRender: this.reRender,
|
|
111
|
+
source: source
|
|
112
|
+
})));
|
|
113
|
+
};
|
|
114
|
+
|
|
115
|
+
WalletNuriConfigImageGroup.defaultProps = {
|
|
116
|
+
source: []
|
|
117
|
+
};
|
|
118
|
+
WalletNuriConfigImageGroup = __decorate([(0, _mobxReact.inject)('store'), _mobxReact.observer, _decorator.updateConfigDecorator], WalletNuriConfigImageGroup);
|
|
119
|
+
return WalletNuriConfigImageGroup;
|
|
120
|
+
}(_react["default"].Component);
|
|
121
|
+
|
|
122
|
+
var _default = WalletNuriConfigImageGroup;
|
|
123
|
+
exports["default"] = _default;
|
package/lib/composite-comp/bol/config-panels/WalletNuriConfig/WalletNuriConfigImageGroup/index.less
ADDED
|
File without changes
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = WalletNuriConfig;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _WalletNuriConfigImageGroup = _interopRequireDefault(require("./WalletNuriConfigImageGroup"));
|
|
11
|
+
|
|
12
|
+
var _Collapse = _interopRequireDefault(require("../../../../common/Collapse"));
|
|
13
|
+
|
|
14
|
+
var _BackgroundConfig = _interopRequireDefault(require("../../../common/config-panels/BackgroundConfig"));
|
|
15
|
+
|
|
16
|
+
var _CustomizeConfig = _interopRequireDefault(require("../../../common/config-panels/CustomizeConfig"));
|
|
17
|
+
|
|
18
|
+
var _layout = require("../../../../constants/layout");
|
|
19
|
+
|
|
20
|
+
var _SpacingConfig = _interopRequireDefault(require("../../../common/config-panels/SpacingConfig"));
|
|
21
|
+
|
|
22
|
+
var _locale = require("../../../../locale");
|
|
23
|
+
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
25
|
+
|
|
26
|
+
function WalletNuriConfig(props) {
|
|
27
|
+
var data = props.data;
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement("div", null, /*#__PURE__*/_react["default"].createElement(_Collapse["default"], {
|
|
29
|
+
divider: "bold",
|
|
30
|
+
headerSize: "large",
|
|
31
|
+
source: [{
|
|
32
|
+
key: 'walletNuri1',
|
|
33
|
+
name: (0, _locale.i18n)('GROUP'),
|
|
34
|
+
value: /*#__PURE__*/_react["default"].createElement(_WalletNuriConfigImageGroup["default"], {
|
|
35
|
+
source: data.groupSource
|
|
36
|
+
})
|
|
37
|
+
}, {
|
|
38
|
+
key: 'walletNuri2',
|
|
39
|
+
name: (0, _locale.i18n)('SPACING'),
|
|
40
|
+
value: /*#__PURE__*/_react["default"].createElement(_SpacingConfig["default"], {
|
|
41
|
+
data: data.spacing
|
|
42
|
+
})
|
|
43
|
+
}, {
|
|
44
|
+
key: 'walletNuri3',
|
|
45
|
+
name: (0, _locale.i18n)('CUSTOMIZE'),
|
|
46
|
+
value: /*#__PURE__*/_react["default"].createElement(_CustomizeConfig["default"], {
|
|
47
|
+
component: "wallet",
|
|
48
|
+
data: data.customize,
|
|
49
|
+
isHideAlign: true,
|
|
50
|
+
layoutSource: _layout.WalletNuriLayout
|
|
51
|
+
})
|
|
52
|
+
}, {
|
|
53
|
+
key: 'walletNuri4',
|
|
54
|
+
name: (0, _locale.i18n)('BACKGROUND'),
|
|
55
|
+
value: /*#__PURE__*/_react["default"].createElement(_BackgroundConfig["default"], {
|
|
56
|
+
data: data.background
|
|
57
|
+
})
|
|
58
|
+
}],
|
|
59
|
+
type: "triangle"
|
|
60
|
+
}));
|
|
61
|
+
}
|
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
|
|
10
|
+
var _locale = require("../../../../locale");
|
|
11
|
+
|
|
12
|
+
var _common = require("../../../../common");
|
|
13
|
+
|
|
14
|
+
var _TextConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/TextConfig"));
|
|
15
|
+
|
|
16
|
+
var _ImageConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/ImageConfig"));
|
|
17
|
+
|
|
18
|
+
var _BaseConfig = _interopRequireDefault(require("../../../../meta-comp/config-panels/BaseConfig"));
|
|
19
|
+
|
|
20
|
+
var _coreUtil = require("../../../../utils/coreUtil");
|
|
21
|
+
|
|
22
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
23
|
+
|
|
24
|
+
var __extends = void 0 && (void 0).__extends || function () {
|
|
25
|
+
var _extendStatics = function extendStatics(d, b) {
|
|
26
|
+
_extendStatics = Object.setPrototypeOf || {
|
|
27
|
+
__proto__: []
|
|
28
|
+
} instanceof Array && function (d, b) {
|
|
29
|
+
d.__proto__ = b;
|
|
30
|
+
} || function (d, b) {
|
|
31
|
+
for (var p in b) {
|
|
32
|
+
if (b.hasOwnProperty(p)) d[p] = b[p];
|
|
33
|
+
}
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return _extendStatics(d, b);
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
return function (d, b) {
|
|
40
|
+
_extendStatics(d, b);
|
|
41
|
+
|
|
42
|
+
function __() {
|
|
43
|
+
this.constructor = d;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
47
|
+
};
|
|
48
|
+
}();
|
|
49
|
+
|
|
50
|
+
var WalletSecondConfig =
|
|
51
|
+
/** @class */
|
|
52
|
+
function (_super) {
|
|
53
|
+
__extends(WalletSecondConfig, _super);
|
|
54
|
+
|
|
55
|
+
function WalletSecondConfig() {
|
|
56
|
+
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
57
|
+
|
|
58
|
+
_this.state = {};
|
|
59
|
+
|
|
60
|
+
_this.reRender = function () {
|
|
61
|
+
(0, _coreUtil.renderPreview)();
|
|
62
|
+
|
|
63
|
+
_this.setState({});
|
|
64
|
+
};
|
|
65
|
+
|
|
66
|
+
_this.getContentPanel = function () {
|
|
67
|
+
var panelProps = _this.props.panelProps;
|
|
68
|
+
|
|
69
|
+
var iconSetting = /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
70
|
+
title: ""
|
|
71
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
|
|
72
|
+
onChange: function onChange(icon) {
|
|
73
|
+
panelProps.tip.url = icon;
|
|
74
|
+
|
|
75
|
+
_this.reRender();
|
|
76
|
+
},
|
|
77
|
+
value: panelProps.tip.url
|
|
78
|
+
}));
|
|
79
|
+
|
|
80
|
+
var defaultSource = [{
|
|
81
|
+
key: panelProps.logo.id,
|
|
82
|
+
name: (0, _locale.i18n)('LOGO'),
|
|
83
|
+
value: /*#__PURE__*/_react["default"].createElement(_ImageConfig["default"], {
|
|
84
|
+
data: panelProps.logo,
|
|
85
|
+
needHover: false
|
|
86
|
+
}),
|
|
87
|
+
metaOption: panelProps.logo
|
|
88
|
+
}, {
|
|
89
|
+
key: panelProps.title.id,
|
|
90
|
+
name: (0, _locale.i18n)('TITLE'),
|
|
91
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
92
|
+
data: panelProps.title
|
|
93
|
+
}),
|
|
94
|
+
metaOption: panelProps.title
|
|
95
|
+
}, {
|
|
96
|
+
key: panelProps.amount.id,
|
|
97
|
+
name: (0, _locale.i18n)('AMOUNT'),
|
|
98
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
99
|
+
data: panelProps.amount
|
|
100
|
+
}),
|
|
101
|
+
metaOption: panelProps.amount
|
|
102
|
+
}, {
|
|
103
|
+
key: panelProps.text.id,
|
|
104
|
+
name: (0, _locale.i18n)('TEXT'),
|
|
105
|
+
value: /*#__PURE__*/_react["default"].createElement(_TextConfig["default"], {
|
|
106
|
+
data: panelProps.text
|
|
107
|
+
}),
|
|
108
|
+
metaOption: panelProps.text
|
|
109
|
+
}, {
|
|
110
|
+
key: panelProps.tip.id,
|
|
111
|
+
name: (0, _locale.i18n)('TIPS'),
|
|
112
|
+
value: iconSetting,
|
|
113
|
+
metaOption: panelProps.tip
|
|
114
|
+
}];
|
|
115
|
+
return /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
116
|
+
divider: "dashed",
|
|
117
|
+
headerSize: "middle",
|
|
118
|
+
onRefresh: function onRefresh() {
|
|
119
|
+
return (0, _coreUtil.renderPreview)();
|
|
120
|
+
},
|
|
121
|
+
showActiveColor: true,
|
|
122
|
+
source: defaultSource,
|
|
123
|
+
type: "switch"
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
|
|
127
|
+
return _this;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
WalletSecondConfig.prototype.render = function () {
|
|
131
|
+
var panelProps = this.props.panelProps;
|
|
132
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
133
|
+
className: "Wallet_second_conf_wrap"
|
|
134
|
+
}, /*#__PURE__*/_react["default"].createElement(_common.Collapse, {
|
|
135
|
+
divider: "bold",
|
|
136
|
+
headerSize: "large",
|
|
137
|
+
source: [{
|
|
138
|
+
key: panelProps.id || 'walletNuriContent',
|
|
139
|
+
name: (0, _locale.i18n)('CONTENT'),
|
|
140
|
+
value: this.getContentPanel()
|
|
141
|
+
}]
|
|
142
|
+
}));
|
|
143
|
+
};
|
|
144
|
+
|
|
145
|
+
WalletSecondConfig.defaultProps = {
|
|
146
|
+
panelProps: {}
|
|
147
|
+
};
|
|
148
|
+
return WalletSecondConfig;
|
|
149
|
+
}(_BaseConfig["default"]);
|
|
150
|
+
|
|
151
|
+
var _default = WalletSecondConfig;
|
|
152
|
+
exports["default"] = _default;
|
|
@@ -27,6 +27,8 @@ var _Video = _interopRequireDefault(require("../composite-comp/bol/components/Vi
|
|
|
27
27
|
|
|
28
28
|
var _Wallet = _interopRequireDefault(require("../composite-comp/bol/components/Wallet"));
|
|
29
29
|
|
|
30
|
+
var _WalletNuri = _interopRequireDefault(require("../composite-comp/bol/components/WalletNuri"));
|
|
31
|
+
|
|
30
32
|
var _CustomCode = _interopRequireDefault(require("../composite-comp/bol/components/CustomCode"));
|
|
31
33
|
|
|
32
34
|
var _Location = _interopRequireDefault(require("../composite-comp/bol/components/Location"));
|
|
@@ -71,6 +73,8 @@ var _LocationConfig = _interopRequireDefault(require("../composite-comp/bol/conf
|
|
|
71
73
|
|
|
72
74
|
var _WalletConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/WalletConfig"));
|
|
73
75
|
|
|
76
|
+
var _WalletNuriConfig = _interopRequireDefault(require("../composite-comp/bol/config-panels/WalletNuriConfig"));
|
|
77
|
+
|
|
74
78
|
var _FlashDealConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/FlashDealConfig"));
|
|
75
79
|
|
|
76
80
|
var _SearchBarConfig = _interopRequireDefault(require("../composite-comp/dito/config-panels/SearchBarConfig"));
|
|
@@ -103,6 +107,8 @@ var _VideoSecondConfig = _interopRequireDefault(require("../composite-comp/bol/s
|
|
|
103
107
|
|
|
104
108
|
var _WalletSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/WalletSecondConfig"));
|
|
105
109
|
|
|
110
|
+
var _WalletNuriSecondConfig = _interopRequireDefault(require("../composite-comp/bol/second-config-panels/WalletNuriSecondConfig"));
|
|
111
|
+
|
|
106
112
|
var _RecommendSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/RecommendSecondConfig"));
|
|
107
113
|
|
|
108
114
|
var _AffiliateRecommendSecondConfig = _interopRequireDefault(require("../composite-comp/dito/second-config-panels/AffiliateRecommendSecondConfig"));
|
|
@@ -119,17 +125,17 @@ var _a, _b, _c; // 组件
|
|
|
119
125
|
/**
|
|
120
126
|
* 渲染组件索引
|
|
121
127
|
*/
|
|
122
|
-
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
|
|
128
|
+
var componentMap = (_a = {}, _a[_Banner["default"].type] = _Banner["default"], _a[_Video["default"].type] = _Video["default"], _a[_Text["default"].type] = _Text["default"], _a[_FlashDeal["default"].type] = _FlashDeal["default"], _a[_SearchBar["default"].type] = _SearchBar["default"], _a[_SignBoard["default"].type] = _SignBoard["default"], _a[_ImageText["default"].type] = _ImageText["default"], _a[_Recommend["default"].type] = _Recommend["default"], _a[_AffiliateRecommend["default"].type] = _AffiliateRecommend["default"], _a[_MobileNavigation["default"].type] = _MobileNavigation["default"], _a[_PcNavigation["default"].type] = _PcNavigation["default"], _a[_Divider["default"].type] = _Divider["default"], _a[_ImageGallery["default"].type] = _ImageGallery["default"], _a[_Newsletter["default"].type] = _Newsletter["default"], _a[_Carousel["default"].type] = _Carousel["default"], _a[_Button["default"].type] = _Button["default"], _a[_Tag["default"].type] = _Tag["default"], _a[_Wallet["default"].type] = _Wallet["default"], _a[_WalletNuri["default"].type] = _WalletNuri["default"], _a[_CustomCode["default"].type] = _CustomCode["default"], _a[_Location["default"].type] = _Location["default"], _a);
|
|
123
129
|
/**
|
|
124
130
|
* 一级配置面板索引
|
|
125
131
|
*/
|
|
126
132
|
|
|
127
133
|
exports.componentMap = componentMap;
|
|
128
|
-
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
|
|
134
|
+
var configPanelMap = (_b = {}, _b[_Banner["default"].type] = _BannerConfig["default"], _b[_Video["default"].type] = _VideoConfig["default"], _b[_Text["default"].type] = _TextCompConfig["default"], _b[_FlashDeal["default"].type] = _FlashDealConfig["default"], _b[_SearchBar["default"].type] = _SearchBarConfig["default"], _b[_SignBoard["default"].type] = _SignBoardConfig["default"], _b[_ImageText["default"].type] = _ImageTextConfig["default"], _b[_Recommend["default"].type] = _RecommendConfig["default"], _b[_AffiliateRecommend["default"].type] = _AffiliateRecommendConfig["default"], _b[_MobileNavigation["default"].type] = _MobileNavigationConfig["default"], _b[_PcNavigation["default"].type] = _PcNavigationConfig["default"], _b[_Divider["default"].type] = _DividerConfig["default"], _b[_ImageGallery["default"].type] = _ImageGalleryConfig["default"], _b[_Newsletter["default"].type] = _NewsletterConfig["default"], _b[_Carousel["default"].type] = _CarouselConfig["default"], _b[_Button["default"].type] = _ButtonCompConfig["default"], _b[_Tag["default"].type] = _TagCompConfig["default"], _b[_Wallet["default"].type] = _WalletConfig["default"], _b[_WalletNuri["default"].type] = _WalletNuriConfig["default"], _b[_CustomCode["default"].type] = _CustomCodeConfig["default"], _b[_Location["default"].type] = _LocationConfig["default"], _b);
|
|
129
135
|
/**
|
|
130
136
|
* 二级配置面板索引
|
|
131
137
|
*/
|
|
132
138
|
|
|
133
139
|
exports.configPanelMap = configPanelMap;
|
|
134
|
-
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c);
|
|
140
|
+
var secondConfigPanelMap = (_c = {}, _c[_Banner["default"].type] = _BannerSecondConfig["default"], _c[_Video["default"].type] = _VideoSecondConfig["default"], _c[_Text["default"].type] = _TextSecondConfig["default"], _c[_ImageText["default"].type] = _ImageTextSecondConfig["default"], _c[_Recommend["default"].type] = _RecommendSecondConfig["default"], _c[_AffiliateRecommend["default"].type] = _AffiliateRecommendSecondConfig["default"], _c[_MobileNavigation["default"].type] = _MobileNavigationSecondConfig["default"], _c[_PcNavigation["default"].type] = _PcNavigationSecondConfig["default"], _c[_Carousel["default"].type] = _CarouselSecondConfig["default"], _c[_ImageGallery["default"].type] = _ImageGallerySecondConfig["default"], _c[_Tag["default"].type] = _TagSecondConfig["default"], _c[_Button["default"].type] = _ButtonSecondConfig["default"], _c[_Wallet["default"].type] = _WalletSecondConfig["default"], _c[_WalletNuri["default"].type] = _WalletNuriSecondConfig["default"], _c);
|
|
135
141
|
exports.secondConfigPanelMap = secondConfigPanelMap;
|
package/lib/constants/index.js
CHANGED
package/lib/constants/layout.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletLayout = void 0;
|
|
6
|
+
exports.videoPCLayout = exports.videoH5Layout = exports.searchLayout = exports.recommendLayoutPc = exports.recommendLayoutMobile = exports.pcNavigationLayout = exports.newsletterLayout = exports.mobileNavigationLayout = exports.locationLayout = exports.imageTextLayoutPc = exports.imageTextLayoutMobile = exports.imageGalleryLayout = exports.dividerLayout = exports.carouselLayout = exports.affiliateLayoutPc = exports.affiliateLayoutMobile = exports.WalletNuriLayout = exports.WalletLayout = void 0;
|
|
7
7
|
|
|
8
8
|
var _dividerLayout = _interopRequireDefault(require("../assets/images/layout-icon/dividerLayout.svg"));
|
|
9
9
|
|
|
@@ -13,6 +13,8 @@ var _imageGalleryLayout = _interopRequireDefault(require("../assets/images/layou
|
|
|
13
13
|
|
|
14
14
|
var _imageGalleryLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/imageGalleryLayout2.png"));
|
|
15
15
|
|
|
16
|
+
var _walletNuriLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletNuriLayout1.png"));
|
|
17
|
+
|
|
16
18
|
var _walletLayout = _interopRequireDefault(require("../assets/images/layout-icon/walletLayout1.png"));
|
|
17
19
|
|
|
18
20
|
var _walletLayout2 = _interopRequireDefault(require("../assets/images/layout-icon/walletLayout2.png"));
|
|
@@ -120,6 +122,12 @@ var WalletLayout = [{
|
|
|
120
122
|
image: _walletLayout2["default"]
|
|
121
123
|
}];
|
|
122
124
|
exports.WalletLayout = WalletLayout;
|
|
125
|
+
var WalletNuriLayout = [{
|
|
126
|
+
id: 'layout1',
|
|
127
|
+
name: 'layout1',
|
|
128
|
+
image: _walletNuriLayout["default"]
|
|
129
|
+
}];
|
|
130
|
+
exports.WalletNuriLayout = WalletNuriLayout;
|
|
123
131
|
var carouselLayout = [{
|
|
124
132
|
id: 'layout1',
|
|
125
133
|
name: 'layout1',
|
|
@@ -94,6 +94,15 @@ var iconTypeMap = {
|
|
|
94
94
|
return /*#__PURE__*/_react["default"].createElement(_ColorPickerBtn["default"], _extends({
|
|
95
95
|
type: "text-decoration-color"
|
|
96
96
|
}, props));
|
|
97
|
+
},
|
|
98
|
+
alignLeft: function alignLeft(props) {
|
|
99
|
+
return /*#__PURE__*/_react["default"].createElement(_OrderedPicker["default"], props);
|
|
100
|
+
},
|
|
101
|
+
alignCenter: function alignCenter(props) {
|
|
102
|
+
return /*#__PURE__*/_react["default"].createElement(_OrderedPicker["default"], props);
|
|
103
|
+
},
|
|
104
|
+
alignRight: function alignRight(props) {
|
|
105
|
+
return /*#__PURE__*/_react["default"].createElement(_OrderedPicker["default"], props);
|
|
97
106
|
}
|
|
98
107
|
};
|
|
99
108
|
|
|
@@ -11,6 +11,8 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
var _ToolBtn = _interopRequireDefault(require("./ToolBtn"));
|
|
13
13
|
|
|
14
|
+
var _Iconfont = _interopRequireDefault(require("../../../common/Iconfont"));
|
|
15
|
+
|
|
14
16
|
var _coreUtil = require("../../../utils/coreUtil");
|
|
15
17
|
|
|
16
18
|
var _UnderlineSelect = _interopRequireDefault(require("../../../meta-comp/config-panels/TextConfig/UnderlineSelect"));
|
|
@@ -82,6 +84,7 @@ function (_super) {
|
|
|
82
84
|
quillFormat: {}
|
|
83
85
|
};
|
|
84
86
|
_this.toolBarRef = /*#__PURE__*/_react["default"].createRef();
|
|
87
|
+
_this.selectedTextLength = 0;
|
|
85
88
|
|
|
86
89
|
_this.setToolBarPosition = function () {
|
|
87
90
|
var _a = _this.props.quillRef.container.getBoundingClientRect(),
|
|
@@ -101,6 +104,8 @@ function (_super) {
|
|
|
101
104
|
var range = _this.props.quillRef.getSelection();
|
|
102
105
|
|
|
103
106
|
if (range) {
|
|
107
|
+
_this.selectedTextLength = range.length;
|
|
108
|
+
|
|
104
109
|
var quillFormat = _this.props.quillRef.getFormat();
|
|
105
110
|
|
|
106
111
|
console.log('quillFormat: ', quillFormat);
|
|
@@ -108,6 +113,8 @@ function (_super) {
|
|
|
108
113
|
_this.setState({
|
|
109
114
|
quillFormat: quillFormat
|
|
110
115
|
});
|
|
116
|
+
} else {
|
|
117
|
+
if (_this.selectedTextLength === 0) _this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
|
|
111
118
|
}
|
|
112
119
|
};
|
|
113
120
|
|
|
@@ -155,6 +162,8 @@ function (_super) {
|
|
|
155
162
|
|
|
156
163
|
_this.props.quillRef.format('text-decoration-style', value);
|
|
157
164
|
} else if (type == 'bullet') {
|
|
165
|
+
_this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
|
|
166
|
+
|
|
158
167
|
_this.props.quillRef.format('list-style-type', value);
|
|
159
168
|
|
|
160
169
|
if (value === quillFormat['list-style-type']) {
|
|
@@ -163,6 +172,8 @@ function (_super) {
|
|
|
163
172
|
_this.props.quillRef.format('list', 'bullet');
|
|
164
173
|
}
|
|
165
174
|
} else if (type == 'ordered') {
|
|
175
|
+
_this.props.quillRef.setSelection(0, _this.props.quillRef.getLength());
|
|
176
|
+
|
|
166
177
|
_this.props.quillRef.format('list-style-type', value);
|
|
167
178
|
|
|
168
179
|
if (value === quillFormat['list-style-type']) {
|
|
@@ -304,6 +315,13 @@ function (_super) {
|
|
|
304
315
|
value: {
|
|
305
316
|
color: quillFormat['text-decoration-color']
|
|
306
317
|
}
|
|
318
|
+
}), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
319
|
+
color: "#8493AF",
|
|
320
|
+
onClick: function onClick() {
|
|
321
|
+
return _this.onToolBtnClick('text-decoration-color', '');
|
|
322
|
+
},
|
|
323
|
+
size: 12,
|
|
324
|
+
type: "icon-outlined-down"
|
|
307
325
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
308
326
|
className: "tooll-line"
|
|
309
327
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -336,6 +354,13 @@ function (_super) {
|
|
|
336
354
|
value: {
|
|
337
355
|
list: quillFormat['list-style-type']
|
|
338
356
|
}
|
|
357
|
+
}), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
358
|
+
color: "#8493AF",
|
|
359
|
+
onClick: function onClick() {
|
|
360
|
+
return _this.onToolBtnClick('text-decoration-color', '');
|
|
361
|
+
},
|
|
362
|
+
size: 12,
|
|
363
|
+
type: "icon-outlined-down"
|
|
339
364
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
340
365
|
className: "tool-item"
|
|
341
366
|
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
@@ -346,6 +371,36 @@ function (_super) {
|
|
|
346
371
|
value: {
|
|
347
372
|
list: quillFormat['list-style-type']
|
|
348
373
|
}
|
|
374
|
+
}), /*#__PURE__*/_react["default"].createElement(_Iconfont["default"], {
|
|
375
|
+
color: "#8493AF",
|
|
376
|
+
onClick: function onClick() {
|
|
377
|
+
return _this.onToolBtnClick('text-decoration-color', '');
|
|
378
|
+
},
|
|
379
|
+
size: 12,
|
|
380
|
+
type: "icon-outlined-down"
|
|
381
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
382
|
+
className: "tooll-line"
|
|
383
|
+
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
384
|
+
className: "tool-item"
|
|
385
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
386
|
+
onChange: function onChange(value) {
|
|
387
|
+
_this.onToolBtnClick('', value);
|
|
388
|
+
},
|
|
389
|
+
type: "alignLeft"
|
|
390
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
391
|
+
className: "tool-item"
|
|
392
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
393
|
+
onChange: function onChange(value) {
|
|
394
|
+
_this.onToolBtnClick('link', value);
|
|
395
|
+
},
|
|
396
|
+
type: "alignCenter"
|
|
397
|
+
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
398
|
+
className: "tool-item"
|
|
399
|
+
}, /*#__PURE__*/_react["default"].createElement(_ToolBtn["default"], {
|
|
400
|
+
onChange: function onChange(value) {
|
|
401
|
+
_this.onToolBtnClick('link', value);
|
|
402
|
+
},
|
|
403
|
+
type: "alignRight"
|
|
349
404
|
})), /*#__PURE__*/_react["default"].createElement("div", {
|
|
350
405
|
className: "tooll-line"
|
|
351
406
|
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
@@ -14,13 +14,14 @@
|
|
|
14
14
|
|
|
15
15
|
.tool-item {
|
|
16
16
|
margin: 0 5px;
|
|
17
|
+
display: flex;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.tooll-line {
|
|
20
21
|
display: inline-flex;
|
|
21
22
|
width: 1px;
|
|
22
|
-
height:
|
|
23
|
-
background-color:
|
|
23
|
+
height: 16px;
|
|
24
|
+
background-color: #C1C9D7;
|
|
24
25
|
margin: 0 5px;
|
|
25
26
|
}
|
|
26
27
|
|