@fonixtree/magic-design 0.0.143 → 0.0.144
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/composite-comp/bol/components/Text/index.js +1 -1
- package/es/composite-comp/bol/components/Text/index.less +1 -2
- package/es/meta-comp/components/Text/index.js +3 -0
- package/lib/composite-comp/bol/components/Text/index.js +1 -1
- package/lib/composite-comp/bol/components/Text/index.less +1 -2
- package/lib/meta-comp/components/Text/index.js +3 -0
- package/package.json +1 -1
|
@@ -62,7 +62,7 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
62
62
|
// import './index.less';
|
|
63
63
|
// less to css 在线地址 https://tool.oschina.net/less
|
|
64
64
|
// css 压缩地址 https://www.runoob.com/csspack
|
|
65
|
-
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;
|
|
65
|
+
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:10px 20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}';
|
|
66
66
|
|
|
67
67
|
var Text =
|
|
68
68
|
/** @class */
|
|
@@ -497,8 +497,10 @@ function (_super) {
|
|
|
497
497
|
// textDecorationColor: data?.underline.textDecorationColor,
|
|
498
498
|
// textDecorationStyle: data?.underline.textDecorationStyle,
|
|
499
499
|
// };
|
|
500
|
+
// mode == 'designer' && !readonly
|
|
500
501
|
|
|
501
502
|
|
|
503
|
+
console.log('!readonly: ', mode, readonly);
|
|
502
504
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
503
505
|
ref: this.textRef,
|
|
504
506
|
className: (0, _classnames["default"])('m-meta-text', className),
|
|
@@ -531,6 +533,7 @@ function (_super) {
|
|
|
531
533
|
|
|
532
534
|
Text.defaultProps = {
|
|
533
535
|
readonly: false,
|
|
536
|
+
mode: 'designer',
|
|
534
537
|
onTextInput: function onTextInput() {}
|
|
535
538
|
};
|
|
536
539
|
Text = __decorate([_decorator.metaDecorator], Text);
|
|
@@ -62,7 +62,7 @@ var __decorate = void 0 && (void 0).__decorate || function (decorators, target,
|
|
|
62
62
|
// import './index.less';
|
|
63
63
|
// less to css 在线地址 https://tool.oschina.net/less
|
|
64
64
|
// css 压缩地址 https://www.runoob.com/csspack
|
|
65
|
-
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;
|
|
65
|
+
var style = '.m-text{display: flex;flex-direction: column;}.m-text .title-wrap{font-weight:500;font-size:20px;}.m-text .sub-title{font-size:15px;color:#b7b7b7;margin-top:10px;}.m-text .group-content-wrap{width:100%;}.m-text .group-content-wrap .group-wrap-container{padding:10px 20px;}.m-text .group-content-wrap .group-wrap{display:flex;flex-direction:column;width:100%;}.m-text .group-content-wrap .group-wrap .group-title{font-size:14px;}.m-text .group-content-wrap.col-1 .group-wrap{width:100%;}.m-text .group-content-wrap.col-2{display:grid;grid-template-columns:50% 50%;}.m-text .group-content-wrap.col-3{display:grid;grid-template-columns:33.3% 33.3% 33.3%;}.m-text .group-content-wrap.mobile{display:block;}';
|
|
66
66
|
|
|
67
67
|
var Text =
|
|
68
68
|
/** @class */
|
|
@@ -497,8 +497,10 @@ function (_super) {
|
|
|
497
497
|
// textDecorationColor: data?.underline.textDecorationColor,
|
|
498
498
|
// textDecorationStyle: data?.underline.textDecorationStyle,
|
|
499
499
|
// };
|
|
500
|
+
// mode == 'designer' && !readonly
|
|
500
501
|
|
|
501
502
|
|
|
503
|
+
console.log('!readonly: ', mode, readonly);
|
|
502
504
|
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
503
505
|
ref: this.textRef,
|
|
504
506
|
className: (0, _classnames["default"])('m-meta-text', className),
|
|
@@ -531,6 +533,7 @@ function (_super) {
|
|
|
531
533
|
|
|
532
534
|
Text.defaultProps = {
|
|
533
535
|
readonly: false,
|
|
536
|
+
mode: 'designer',
|
|
534
537
|
onTextInput: function onTextInput() {}
|
|
535
538
|
};
|
|
536
539
|
Text = __decorate([_decorator.metaDecorator], Text);
|