@fonixtree/magic-design 2.0.31 → 2.0.33
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/less/modal.less +1 -1
- package/es/common/LinkModal/FilteredProductModal/index.js +7 -3
- package/es/common/LinkModal/FilteredProductModal/index.less +1 -1
- package/es/common/LinkModal/index.js +1 -1
- package/es/common/ProductModal/index.js +23 -30
- package/es/composite-comp/bol/components/Banner/mobile/index.js +6 -0
- package/es/composite-comp/bol/components/Video/defaultJSON.js +24 -0
- package/es/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- package/es/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +0 -1
- package/es/composite-comp/common/components/ProductItem/index.js +8 -4
- package/es/composite-comp/common/components/ProductItem/index.less +30 -15
- package/es/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/es/composite-comp/dito/components/Recommend/mobile/index.js +14 -2
- package/es/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
- package/es/composite-comp/dito/components/SignBoard/mobile/index.js +33 -28
- package/es/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
- package/es/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
- package/es/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
- package/es/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +3 -3
- package/es/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
- package/es/core/Designer/LeftTitle/index.js +1 -1
- package/es/core/Designer/ToolBarModal/index.js +16 -4
- package/es/core/Designer/index.js +3 -0
- package/es/core/Renderer/index.js +4 -12
- package/es/decorator/index.js +24 -1
- package/es/locale/en/en.json +1 -1
- package/es/locale/es/es.json +1 -1
- package/es/locale/id/id.json +1 -1
- package/es/meta-comp/components/Button/index.js +7 -0
- package/es/meta-comp/components/Text/formats/fontStyle.js +58 -0
- package/es/meta-comp/components/Text/index.js +9 -0
- package/es/meta-comp/config-panels/ButtonConfig/index.js +30 -28
- package/es/utils/commonUtil.js +17 -3
- package/es/utils/currencyUtil.js +29 -10
- package/lib/assets/less/modal.less +1 -1
- package/lib/common/LinkModal/FilteredProductModal/index.js +7 -3
- package/lib/common/LinkModal/FilteredProductModal/index.less +1 -1
- package/lib/common/LinkModal/index.js +1 -1
- package/lib/common/ProductModal/index.js +23 -30
- package/lib/composite-comp/bol/components/Banner/mobile/index.js +6 -0
- package/lib/composite-comp/bol/components/Video/defaultJSON.js +24 -0
- package/lib/composite-comp/bol/config-panels/TagCompConfig/imgs/layout1.png +0 -0
- package/lib/composite-comp/bol/second-config-panels/VideoSecondConfig/index.js +0 -1
- package/lib/composite-comp/common/components/ProductItem/index.js +8 -4
- package/lib/composite-comp/common/components/ProductItem/index.less +30 -15
- package/lib/composite-comp/dito/components/Recommend/defaultJSON.js +1 -1
- package/lib/composite-comp/dito/components/Recommend/mobile/index.js +14 -2
- package/lib/composite-comp/dito/components/SignBoard/defaultJSON.js +41 -37
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.js +33 -28
- package/lib/composite-comp/dito/components/SignBoard/mobile/index.less +0 -14
- package/lib/composite-comp/dito/components/SignBoard/pc/index.js +8 -11
- package/lib/composite-comp/dito/config-panels/SignBoardConfig/SignBoardConfigContent/index.js +9 -47
- package/lib/composite-comp/dito/config-panels/SignBoardConfig/index.js +9 -2
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/AIRecommendation/index.js +3 -3
- package/lib/composite-comp/dito/second-config-panels/RecommendSecondConfig/index.js +14 -2
- package/lib/core/Designer/LeftTitle/index.js +1 -1
- package/lib/core/Designer/ToolBarModal/index.js +16 -4
- package/lib/core/Designer/index.js +3 -0
- package/lib/core/Renderer/index.js +4 -12
- package/lib/decorator/index.js +24 -1
- package/lib/locale/en/en.json +1 -1
- package/lib/locale/es/es.json +1 -1
- package/lib/locale/id/id.json +1 -1
- package/lib/meta-comp/components/Button/index.js +7 -0
- package/lib/meta-comp/components/Text/formats/fontStyle.js +58 -0
- package/lib/meta-comp/components/Text/index.js +9 -0
- package/lib/meta-comp/config-panels/ButtonConfig/index.js +30 -28
- package/lib/utils/commonUtil.js +17 -3
- package/lib/utils/currencyUtil.js +29 -10
- package/package.json +1 -1
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +0 -99
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +0 -54
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +0 -27
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +0 -27
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +0 -27
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +0 -96
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +0 -26
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +0 -101
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +0 -26
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +0 -99
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +0 -39
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +0 -93
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +0 -26
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +0 -27
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +0 -29
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +0 -49
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +0 -29
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +0 -26
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +0 -27
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +0 -31
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +0 -34
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +0 -41
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +0 -136
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +0 -25
- package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +0 -1
- package/es/core/Designer/TextEditModal/ToolBar/index.js +0 -219
- package/es/core/Designer/TextEditModal/ToolBar/index.less +0 -19
- package/es/core/Designer/TextEditModal/index.js +0 -100
- package/es/core/Designer/TextEditModal/index.less +0 -4
- package/es/core/Designer/TextEditModal_old/index.js +0 -142
- package/es/core/Designer/TextEditModal_old/index.less +0 -25
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.js +0 -99
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/AlignSelectPicker/index.less +0 -54
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignCenterSVG.js +0 -27
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js +0 -27
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignRightSVG.js +0 -27
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.js +0 -96
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/index.less +0 -26
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.js +0 -101
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/ColorPickerBtn/index.less +0 -26
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.js +0 -99
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/LinkInputPicker/index.less +0 -39
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.js +0 -93
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/components/LinkBtn/index.less +0 -26
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BackgroundSVG.js +0 -27
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/BoldSVG.js +0 -29
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/FontColorSVG.js +0 -49
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/ItalicSVG.js +0 -29
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/LinkSVG.js +0 -26
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/OrderSVG.js +0 -27
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/StrikeSVG.js +0 -31
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnderlineSVG.js +0 -34
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/images/UnorderSVG.js +0 -41
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.js +0 -136
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/index.less +0 -25
- package/lib/core/Designer/TextEditModal/ToolBar/ToolBtn/type.js +0 -1
- package/lib/core/Designer/TextEditModal/ToolBar/index.js +0 -219
- package/lib/core/Designer/TextEditModal/ToolBar/index.less +0 -19
- package/lib/core/Designer/TextEditModal/index.js +0 -100
- package/lib/core/Designer/TextEditModal/index.less +0 -4
- package/lib/core/Designer/TextEditModal_old/index.js +0 -142
- package/lib/core/Designer/TextEditModal_old/index.less +0 -25
|
@@ -11,6 +11,8 @@ var _antd = require("antd");
|
|
|
11
11
|
|
|
12
12
|
require("./index.less");
|
|
13
13
|
|
|
14
|
+
var _lodash = require("lodash");
|
|
15
|
+
|
|
14
16
|
var _locale = require("../../../locale");
|
|
15
17
|
|
|
16
18
|
var _SpacingConfig = _interopRequireDefault(require("../../../composite-comp/common/config-panels/SpacingConfig"));
|
|
@@ -104,11 +106,11 @@ function (_super) {
|
|
|
104
106
|
|
|
105
107
|
_this.updateAttr(data, 'hover', {
|
|
106
108
|
open: true,
|
|
107
|
-
buttonBorder: data.buttonBorder,
|
|
108
|
-
buttonIcon: data.buttonIcon,
|
|
109
|
-
buttonText: data.buttonText,
|
|
109
|
+
buttonBorder: (0, _lodash.cloneDeep)(data.buttonBorder),
|
|
110
|
+
buttonIcon: (0, _lodash.cloneDeep)(data.buttonIcon),
|
|
111
|
+
buttonText: (0, _lodash.cloneDeep)(data.buttonText),
|
|
110
112
|
content: {
|
|
111
|
-
backgroundColor: data.content.backgroundColor
|
|
113
|
+
backgroundColor: (0, _lodash.cloneDeep)(data.content.backgroundColor)
|
|
112
114
|
}
|
|
113
115
|
}); // console.log('--ffd, button hover first click', data);
|
|
114
116
|
|
|
@@ -162,7 +164,7 @@ function (_super) {
|
|
|
162
164
|
|
|
163
165
|
var fontSizeKey = window.magicDesign.device == 'pc' ? 'pcFontSize' : 'fontSize';
|
|
164
166
|
|
|
165
|
-
var ButtonTextSetting = function ButtonTextSetting(
|
|
167
|
+
var ButtonTextSetting = function ButtonTextSetting(_data) {
|
|
166
168
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
167
169
|
title: (0, _locale.i18n)('FONT_STYLE')
|
|
168
170
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
@@ -171,24 +173,24 @@ function (_super) {
|
|
|
171
173
|
return t.key == v;
|
|
172
174
|
});
|
|
173
175
|
|
|
174
|
-
_extends(
|
|
176
|
+
_extends(_data, __assign(__assign({}, findOne), {
|
|
175
177
|
sizeType: findOne === null || findOne === void 0 ? void 0 : findOne.key
|
|
176
178
|
}));
|
|
177
179
|
|
|
178
180
|
_this.selfRender();
|
|
179
181
|
},
|
|
180
|
-
value:
|
|
182
|
+
value: _data.sizeType
|
|
181
183
|
}, _TextConfig.sizeTypeList.map(function (sizeType) {
|
|
182
184
|
return /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
183
185
|
value: sizeType.key
|
|
184
186
|
}, sizeType.key);
|
|
185
|
-
}))),
|
|
187
|
+
}))), _data.sizeType == 'Customize font styles' && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
186
188
|
title: (0, _locale.i18n)('FONT_FAMILY')
|
|
187
189
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
188
190
|
onChange: function onChange(v) {
|
|
189
|
-
_this.updateAttr(
|
|
191
|
+
_this.updateAttr(_data, 'fontFamily', v);
|
|
190
192
|
},
|
|
191
|
-
value:
|
|
193
|
+
value: _data.fontFamily
|
|
192
194
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
193
195
|
value: "Montserrat"
|
|
194
196
|
}, "Montserrat"), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
@@ -197,9 +199,9 @@ function (_super) {
|
|
|
197
199
|
title: (0, _locale.i18n)('FONT_WEIGHT')
|
|
198
200
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select, {
|
|
199
201
|
onChange: function onChange(v) {
|
|
200
|
-
_this.updateAttr(
|
|
202
|
+
_this.updateAttr(_data, 'fontWeight', v);
|
|
201
203
|
},
|
|
202
|
-
value:
|
|
204
|
+
value: _data.fontWeight
|
|
203
205
|
}, /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
204
206
|
value: 400
|
|
205
207
|
}, (0, _locale.i18n)('REGULAR')), /*#__PURE__*/_react["default"].createElement(_antd.Select.Option, {
|
|
@@ -210,34 +212,34 @@ function (_super) {
|
|
|
210
212
|
onChange: function onChange(_a) {
|
|
211
213
|
var count = _a.count;
|
|
212
214
|
|
|
213
|
-
_this.updateAttr(
|
|
215
|
+
_this.updateAttr(_data, fontSizeKey, count);
|
|
214
216
|
},
|
|
215
217
|
unit: "px",
|
|
216
218
|
value: {
|
|
217
|
-
count:
|
|
219
|
+
count: _data[fontSizeKey]
|
|
218
220
|
}
|
|
219
221
|
}))), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
220
222
|
title: ""
|
|
221
223
|
}, /*#__PURE__*/_react["default"].createElement(_common.FontStyles, {
|
|
222
224
|
onChange: function onChange(value) {
|
|
223
|
-
_extends(
|
|
225
|
+
_extends(_data, value);
|
|
224
226
|
|
|
225
227
|
_this.selfRender();
|
|
226
228
|
},
|
|
227
|
-
value:
|
|
229
|
+
value: _data
|
|
228
230
|
})));
|
|
229
231
|
};
|
|
230
232
|
|
|
231
|
-
var ButtonBorderSetting = function ButtonBorderSetting(
|
|
233
|
+
var ButtonBorderSetting = function ButtonBorderSetting(_data) {
|
|
232
234
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
233
235
|
split: true,
|
|
234
236
|
title: (0, _locale.i18n)('BORDER_COLOR')
|
|
235
237
|
}, /*#__PURE__*/_react["default"].createElement(_common.ColorPickerInput, {
|
|
236
238
|
colorType: "rgba",
|
|
237
239
|
onChange: function onChange(value) {
|
|
238
|
-
_this.updateAttr(
|
|
240
|
+
_this.updateAttr(_data, 'borderColor', value);
|
|
239
241
|
},
|
|
240
|
-
value:
|
|
242
|
+
value: _data.borderColor
|
|
241
243
|
})), /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
242
244
|
title: (0, _locale.i18n)('BORDER_RADIUS')
|
|
243
245
|
}, /*#__PURE__*/_react["default"].createElement(_common.Slider, {
|
|
@@ -245,15 +247,15 @@ function (_super) {
|
|
|
245
247
|
onChange: function onChange(_a) {
|
|
246
248
|
var count = _a.count;
|
|
247
249
|
|
|
248
|
-
_this.updateAttr(
|
|
250
|
+
_this.updateAttr(_data, 'borderRadius', count);
|
|
249
251
|
},
|
|
250
252
|
value: {
|
|
251
|
-
count:
|
|
253
|
+
count: _data.borderRadius
|
|
252
254
|
}
|
|
253
255
|
})));
|
|
254
256
|
};
|
|
255
257
|
|
|
256
|
-
var ButtonIconSetting = function ButtonIconSetting(
|
|
258
|
+
var ButtonIconSetting = function ButtonIconSetting(_data) {
|
|
257
259
|
return /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
258
260
|
title: (0, _locale.i18n)('ICON')
|
|
259
261
|
}, /*#__PURE__*/_react["default"].createElement(_common.IconPicker, {
|
|
@@ -262,18 +264,18 @@ function (_super) {
|
|
|
262
264
|
},
|
|
263
265
|
onClick: function onClick() {
|
|
264
266
|
_this.setState({
|
|
265
|
-
isHover:
|
|
267
|
+
isHover: _data == _this.props._data.hover.buttonIcon
|
|
266
268
|
});
|
|
267
269
|
},
|
|
268
|
-
value:
|
|
269
|
-
})),
|
|
270
|
+
value: _data.iconUrl
|
|
271
|
+
})), _data.iconUrl && /*#__PURE__*/_react["default"].createElement(_common.Field, {
|
|
270
272
|
title: (0, _locale.i18n)('ICON_PLACEMENT')
|
|
271
273
|
}, /*#__PURE__*/_react["default"].createElement(_common.ButtonIconLayout, {
|
|
272
|
-
icon:
|
|
274
|
+
icon: _data.iconUrl,
|
|
273
275
|
onChange: function onChange(value) {
|
|
274
|
-
return _this.updateAttr(
|
|
276
|
+
return _this.updateAttr(_data, 'layout', value);
|
|
275
277
|
},
|
|
276
|
-
value:
|
|
278
|
+
value: _data.layout
|
|
277
279
|
})));
|
|
278
280
|
};
|
|
279
281
|
|
package/lib/utils/commonUtil.js
CHANGED
|
@@ -7,7 +7,7 @@ exports.addZero = exports.addUrlQuery = void 0;
|
|
|
7
7
|
exports.asyncDataURLtoImage = asyncDataURLtoImage;
|
|
8
8
|
exports.checkFileName = exports.calcLastTime = exports.asyncNextTick = void 0;
|
|
9
9
|
exports.commonFetch = commonFetch;
|
|
10
|
-
exports.compatibleNewPageData = void 0;
|
|
10
|
+
exports.convertCount = exports.compatibleNewPageData = void 0;
|
|
11
11
|
exports.convertImageUrl = convertImageUrl;
|
|
12
12
|
exports.convertToRem = void 0;
|
|
13
13
|
exports.copy2ClipBoard = copy2ClipBoard;
|
|
@@ -776,7 +776,7 @@ var pxToRem = function pxToRem(styleObj) {
|
|
|
776
776
|
if (typeof value === 'string' && value.endsWith('px')) {
|
|
777
777
|
remObj[key] = convertToRem(value.split('px')[0]);
|
|
778
778
|
} else if (typeof value === 'number') {
|
|
779
|
-
remObj[key] = ['opacity', 'lineHeight', 'zIndex'].includes(key) ? value : convertToRem(value);
|
|
779
|
+
remObj[key] = ['opacity', 'lineHeight', 'zIndex', 'fontWeight'].includes(key) ? value : convertToRem(value);
|
|
780
780
|
} else if ((key === 'padding' || key === 'margin') && typeof value === 'string') {
|
|
781
781
|
var paddingValues = value.split(' ');
|
|
782
782
|
var remPaddingValues = paddingValues.map(function (paddingValue) {
|
|
@@ -884,4 +884,18 @@ var downloadBase64Image = function downloadBase64Image(base64String, filename) {
|
|
|
884
884
|
link.click();
|
|
885
885
|
};
|
|
886
886
|
|
|
887
|
-
exports.downloadBase64Image = downloadBase64Image;
|
|
887
|
+
exports.downloadBase64Image = downloadBase64Image;
|
|
888
|
+
|
|
889
|
+
var convertCount = function convertCount(value) {
|
|
890
|
+
var newValue = value;
|
|
891
|
+
|
|
892
|
+
if (value >= 1000000) {
|
|
893
|
+
newValue = Number(value / 1000000).toFixed(1) + "M";
|
|
894
|
+
} else if (value >= 1000) {
|
|
895
|
+
newValue = Number(value / 1000).toFixed(1) + "K";
|
|
896
|
+
}
|
|
897
|
+
|
|
898
|
+
return newValue;
|
|
899
|
+
};
|
|
900
|
+
|
|
901
|
+
exports.convertCount = convertCount;
|
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.numberToFixed = exports.getPricePrefix = exports.getPrecision = exports.formatCurrencyWithSymbol = exports.formatCurrency = exports.currencyToFont = exports.calcFloatCount = exports.addSeparators = void 0;
|
|
6
|
+
exports.numberToFixed = exports.getPricePrefix = exports.getPrecision = exports.formatCurrencyWithSymbol = exports.formatCurrency = exports.formatBackendCurrency = exports.currencyToFont = exports.calcFloatCount = exports.addSeparators = void 0;
|
|
7
7
|
|
|
8
8
|
var _divide = _interopRequireDefault(require("lodash/divide"));
|
|
9
9
|
|
|
@@ -15,7 +15,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "d
|
|
|
15
15
|
|
|
16
16
|
/* eslint-disable */
|
|
17
17
|
var precision = (0, _commonUtil.ensure)(function () {
|
|
18
|
-
return window.
|
|
18
|
+
return window.systemParams.precision;
|
|
19
19
|
}, '0'); // 千分位展示
|
|
20
20
|
|
|
21
21
|
var addSeparators = function addSeparators(nStr, thousandsSep, decimalSep) {
|
|
@@ -42,7 +42,7 @@ exports.addSeparators = addSeparators;
|
|
|
42
42
|
|
|
43
43
|
var getPricePrefix = function getPricePrefix() {
|
|
44
44
|
var pricePrefix = (0, _commonUtil.ensure)(function () {
|
|
45
|
-
return window.
|
|
45
|
+
return window.systemParams.prefix;
|
|
46
46
|
}, 'Rp');
|
|
47
47
|
return pricePrefix;
|
|
48
48
|
};
|
|
@@ -51,23 +51,42 @@ exports.getPricePrefix = getPricePrefix;
|
|
|
51
51
|
|
|
52
52
|
var getPrecision = function getPrecision() {
|
|
53
53
|
var ret = (0, _commonUtil.ensure)(function () {
|
|
54
|
-
return window.
|
|
54
|
+
return window.systemParams.precision;
|
|
55
55
|
}, '0');
|
|
56
56
|
return Number(ret);
|
|
57
|
-
};
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* 前端数值转换为后端数值
|
|
60
|
+
* @param num
|
|
61
|
+
*/
|
|
58
62
|
|
|
59
63
|
|
|
60
64
|
exports.getPrecision = getPrecision;
|
|
61
65
|
|
|
66
|
+
var formatBackendCurrency = function formatBackendCurrency(num) {
|
|
67
|
+
var precision = (0, _commonUtil.ensure)(function () {
|
|
68
|
+
return window.systemParams.precision;
|
|
69
|
+
}, '0');
|
|
70
|
+
|
|
71
|
+
if (!num) {
|
|
72
|
+
return num;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
return num * Math.pow(10, precision);
|
|
76
|
+
}; // 格式化金额
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
exports.formatBackendCurrency = formatBackendCurrency;
|
|
80
|
+
|
|
62
81
|
var formatCurrency = function formatCurrency(num) {
|
|
63
82
|
var displayPrecision = (0, _commonUtil.ensure)(function () {
|
|
64
|
-
return window.
|
|
83
|
+
return window.systemParams.displayCurrencyPrecision;
|
|
65
84
|
}, '0');
|
|
66
85
|
var precision = (0, _commonUtil.ensure)(function () {
|
|
67
|
-
return window.
|
|
86
|
+
return window.systemParams.precision;
|
|
68
87
|
}, '0');
|
|
69
88
|
var pricePrefix = (0, _commonUtil.ensure)(function () {
|
|
70
|
-
return window.
|
|
89
|
+
return window.systemParams.prefix;
|
|
71
90
|
}, 'Rp');
|
|
72
91
|
var numVal = num;
|
|
73
92
|
|
|
@@ -162,7 +181,7 @@ var currencyToFont = function currencyToFont(value, customPrecision, customDispl
|
|
|
162
181
|
precision = Number(customPrecision);
|
|
163
182
|
} else {
|
|
164
183
|
precision = (0, _commonUtil.ensure)(function () {
|
|
165
|
-
return window.
|
|
184
|
+
return window.systemParams.precision;
|
|
166
185
|
}, '0');
|
|
167
186
|
}
|
|
168
187
|
|
|
@@ -180,7 +199,7 @@ var currencyToFont = function currencyToFont(value, customPrecision, customDispl
|
|
|
180
199
|
displayPrecision = Number(customDisplayPrecision);
|
|
181
200
|
} else {
|
|
182
201
|
displayPrecision = (0, _commonUtil.ensure)(function () {
|
|
183
|
-
return window.
|
|
202
|
+
return window.systemParams.displayCurrencyPrecision;
|
|
184
203
|
}, 'Rp');
|
|
185
204
|
}
|
|
186
205
|
|
package/package.json
CHANGED
|
@@ -1,99 +0,0 @@
|
|
|
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 _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
var _AlignLeftSVG = _interopRequireDefault(require("../images/AlignLeftSVG"));
|
|
13
|
-
|
|
14
|
-
var _AlignCenterSVG = _interopRequireDefault(require("../images/AlignCenterSVG"));
|
|
15
|
-
|
|
16
|
-
var _AlignRightSVG = _interopRequireDefault(require("../images/AlignRightSVG"));
|
|
17
|
-
|
|
18
|
-
require("./index.less");
|
|
19
|
-
|
|
20
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": 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 AlignSelectPicker =
|
|
49
|
-
/** @class */
|
|
50
|
-
function (_super) {
|
|
51
|
-
__extends(AlignSelectPicker, _super);
|
|
52
|
-
|
|
53
|
-
function AlignSelectPicker() {
|
|
54
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
AlignSelectPicker.prototype.render = function () {
|
|
58
|
-
var _a = this.props,
|
|
59
|
-
visibility = _a.visibility,
|
|
60
|
-
value = _a.value,
|
|
61
|
-
_onChange = _a.onChange;
|
|
62
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
63
|
-
className: "align-select-picker-panel"
|
|
64
|
-
}, visibility && /*#__PURE__*/_react["default"].createElement(_react["default"].Fragment, null, /*#__PURE__*/_react["default"].createElement("div", {
|
|
65
|
-
className: "panel-bg"
|
|
66
|
-
}), /*#__PURE__*/_react["default"].createElement("div", {
|
|
67
|
-
className: "select-modal-content"
|
|
68
|
-
}, /*#__PURE__*/_react["default"].createElement("span", {
|
|
69
|
-
className: (0, _classnames["default"])('select-item', {
|
|
70
|
-
active: value == 'left'
|
|
71
|
-
})
|
|
72
|
-
}, /*#__PURE__*/_react["default"].createElement(_AlignLeftSVG["default"], {
|
|
73
|
-
onChange: function onChange() {
|
|
74
|
-
return _onChange('');
|
|
75
|
-
}
|
|
76
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
77
|
-
className: (0, _classnames["default"])('select-item', {
|
|
78
|
-
active: value == 'center'
|
|
79
|
-
})
|
|
80
|
-
}, /*#__PURE__*/_react["default"].createElement(_AlignCenterSVG["default"], {
|
|
81
|
-
onChange: function onChange() {
|
|
82
|
-
return _onChange('center');
|
|
83
|
-
}
|
|
84
|
-
})), /*#__PURE__*/_react["default"].createElement("span", {
|
|
85
|
-
className: (0, _classnames["default"])('select-item', {
|
|
86
|
-
active: value == 'right'
|
|
87
|
-
})
|
|
88
|
-
}, /*#__PURE__*/_react["default"].createElement(_AlignRightSVG["default"], {
|
|
89
|
-
onChange: function onChange() {
|
|
90
|
-
return _onChange('right');
|
|
91
|
-
}
|
|
92
|
-
})))));
|
|
93
|
-
};
|
|
94
|
-
|
|
95
|
-
return AlignSelectPicker;
|
|
96
|
-
}(_react["default"].Component);
|
|
97
|
-
|
|
98
|
-
var _default = AlignSelectPicker;
|
|
99
|
-
exports["default"] = _default;
|
|
@@ -1,54 +0,0 @@
|
|
|
1
|
-
.align-select-picker-panel {
|
|
2
|
-
z-index: 999;
|
|
3
|
-
position: absolute;
|
|
4
|
-
top: 100%;
|
|
5
|
-
left: 0;
|
|
6
|
-
|
|
7
|
-
.panel-bg {
|
|
8
|
-
position: fixed;
|
|
9
|
-
z-index: 0;
|
|
10
|
-
top: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
right: 0;
|
|
13
|
-
bottom: 0;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
.select-modal-content {
|
|
17
|
-
display: flex;
|
|
18
|
-
align-items: center;
|
|
19
|
-
padding: 5px;
|
|
20
|
-
background-color: #fff;
|
|
21
|
-
border: 1px solid #E7E9E8;
|
|
22
|
-
box-shadow: 0 8px 16px 4px hsla(0, 0%, 0%, 0.04);
|
|
23
|
-
color: #262626;
|
|
24
|
-
border-radius: 6px;
|
|
25
|
-
|
|
26
|
-
.select-item {
|
|
27
|
-
width: 26px;
|
|
28
|
-
height: 26px;
|
|
29
|
-
display: flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
justify-content: center;
|
|
32
|
-
cursor: pointer;
|
|
33
|
-
border-radius: 6px;
|
|
34
|
-
padding: 0;
|
|
35
|
-
border: none;
|
|
36
|
-
transition: .2s all linear;
|
|
37
|
-
position: relative;
|
|
38
|
-
margin: 0 5px;
|
|
39
|
-
|
|
40
|
-
&:hover {
|
|
41
|
-
background: #f8f8f8;
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
&.active {
|
|
45
|
-
background: #E7E9E8;
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
svg {
|
|
49
|
-
height: 18px;
|
|
50
|
-
height: 18px;
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
|
-
var _default = function _default(_a) {
|
|
13
|
-
var onChange = _a.onChange;
|
|
14
|
-
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
15
|
-
id: "ne-t-alignment-center",
|
|
16
|
-
onClick: onChange,
|
|
17
|
-
viewBox: "0 0 256 256",
|
|
18
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
-
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
20
|
-
fill: "currentColor",
|
|
21
|
-
fillRule: "nonzero"
|
|
22
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
23
|
-
d: "M181 148c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L181 168H76c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L76 148h105ZM218 89c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 109H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 89h180ZM181 30c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L181 50H76c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L76 30h105ZM218 207c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 227H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 207h180Z"
|
|
24
|
-
})));
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports["default"] = _default;
|
package/es/core/Designer/TextEditModal/ToolBar/ToolBtn/components/AlignPicker/images/AlignLeftSVG.js
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
|
-
var _default = function _default(_a) {
|
|
13
|
-
var onChange = _a.onChange;
|
|
14
|
-
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
15
|
-
id: "ne-t-alignment-left",
|
|
16
|
-
onClick: onChange,
|
|
17
|
-
viewBox: "0 0 256 256",
|
|
18
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
-
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
20
|
-
fill: "currentColor",
|
|
21
|
-
fillRule: "nonzero"
|
|
22
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
23
|
-
d: "M143 148c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L143 168H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 148h105ZM218 89c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 109H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 89h180ZM143 30c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L143 50H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 30h105ZM218 207c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 227H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 207h180Z"
|
|
24
|
-
})));
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports["default"] = _default;
|
|
@@ -1,27 +0,0 @@
|
|
|
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
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
|
11
|
-
|
|
12
|
-
var _default = function _default(_a) {
|
|
13
|
-
var onChange = _a.onChange;
|
|
14
|
-
return /*#__PURE__*/_react["default"].createElement("svg", {
|
|
15
|
-
id: "ne-t-alignment-right",
|
|
16
|
-
onClick: onChange,
|
|
17
|
-
viewBox: "0 0 256 256",
|
|
18
|
-
xmlns: "http://www.w3.org/2000/svg"
|
|
19
|
-
}, /*#__PURE__*/_react["default"].createElement("g", {
|
|
20
|
-
fill: "currentColor",
|
|
21
|
-
fillRule: "nonzero"
|
|
22
|
-
}, /*#__PURE__*/_react["default"].createElement("path", {
|
|
23
|
-
d: "M218 148c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 168H113c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L113 148h105ZM218 89c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 109H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 89h180ZM218 30c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 50H113c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L113 30h105ZM218 207c5.523 0 10 4.477 10 10 0 5.43-4.327 9.848-9.72 9.996L218 227H38c-5.523 0-10-4.477-10-10 0-5.43 4.327-9.848 9.72-9.996L38 207h180Z"
|
|
24
|
-
})));
|
|
25
|
-
};
|
|
26
|
-
|
|
27
|
-
exports["default"] = _default;
|
|
@@ -1,96 +0,0 @@
|
|
|
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 _classnames = _interopRequireDefault(require("classnames"));
|
|
11
|
-
|
|
12
|
-
var _AlignLeftSVG = _interopRequireDefault(require("./images/AlignLeftSVG"));
|
|
13
|
-
|
|
14
|
-
var _AlignSelectPicker = _interopRequireDefault(require("./AlignSelectPicker"));
|
|
15
|
-
|
|
16
|
-
require("./index.less");
|
|
17
|
-
|
|
18
|
-
var _AlignRightSVG = _interopRequireDefault(require("./images/AlignRightSVG"));
|
|
19
|
-
|
|
20
|
-
var _AlignCenterSVG = _interopRequireDefault(require("./images/AlignCenterSVG"));
|
|
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 SvgMap = {
|
|
51
|
-
left: _AlignLeftSVG["default"],
|
|
52
|
-
center: _AlignCenterSVG["default"],
|
|
53
|
-
right: _AlignRightSVG["default"]
|
|
54
|
-
};
|
|
55
|
-
|
|
56
|
-
var AlignPicker =
|
|
57
|
-
/** @class */
|
|
58
|
-
function (_super) {
|
|
59
|
-
__extends(AlignPicker, _super);
|
|
60
|
-
|
|
61
|
-
function AlignPicker() {
|
|
62
|
-
var _this = _super !== null && _super.apply(this, arguments) || this;
|
|
63
|
-
|
|
64
|
-
_this.state = {
|
|
65
|
-
visibility: false
|
|
66
|
-
};
|
|
67
|
-
return _this;
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
AlignPicker.prototype.render = function () {
|
|
71
|
-
var _this = this;
|
|
72
|
-
|
|
73
|
-
var _a = this.props,
|
|
74
|
-
value = _a.value,
|
|
75
|
-
onChange = _a.onChange;
|
|
76
|
-
var visibility = this.state.visibility;
|
|
77
|
-
var align = (value === null || value === void 0 ? void 0 : value.align) || 'left';
|
|
78
|
-
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
79
|
-
className: (0, _classnames["default"])('tool-btn-wrap'),
|
|
80
|
-
onClick: function onClick() {
|
|
81
|
-
_this.setState({
|
|
82
|
-
visibility: !visibility
|
|
83
|
-
});
|
|
84
|
-
}
|
|
85
|
-
}, SvgMap[align]({}), /*#__PURE__*/_react["default"].createElement(_AlignSelectPicker["default"], {
|
|
86
|
-
onChange: onChange,
|
|
87
|
-
visibility: visibility
|
|
88
|
-
}));
|
|
89
|
-
};
|
|
90
|
-
|
|
91
|
-
AlignPicker.defaultProps = {};
|
|
92
|
-
return AlignPicker;
|
|
93
|
-
}(_react["default"].Component);
|
|
94
|
-
|
|
95
|
-
var _default = AlignPicker;
|
|
96
|
-
exports["default"] = _default;
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
.tool-btn-wrap {
|
|
2
|
-
width: 26px;
|
|
3
|
-
height: 26px;
|
|
4
|
-
display: flex;
|
|
5
|
-
align-items: center;
|
|
6
|
-
justify-content: center;
|
|
7
|
-
cursor: pointer;
|
|
8
|
-
border-radius: 6px;
|
|
9
|
-
padding: 0;
|
|
10
|
-
border: none;
|
|
11
|
-
transition: .2s all linear;
|
|
12
|
-
position: relative;
|
|
13
|
-
|
|
14
|
-
&:hover {
|
|
15
|
-
background: #f8f8f8;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
&.active {
|
|
19
|
-
background: #E7E9E8;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
svg {
|
|
23
|
-
height: 18px;
|
|
24
|
-
height: 18px;
|
|
25
|
-
}
|
|
26
|
-
}
|