@tmagic/editor 1.6.0 → 1.7.0-beta.0
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/dist/style.css +72 -13
- package/dist/tmagic-editor.js +607 -534
- package/dist/tmagic-editor.umd.cjs +605 -532
- package/package.json +9 -9
- package/src/components/ToolButton.vue +13 -6
- package/src/fields/DataSourceFieldSelect/Index.vue +0 -1
- package/src/fields/DisplayConds.vue +2 -2
- package/src/fields/StyleSetter/Index.vue +15 -10
- package/src/fields/StyleSetter/components/BackgroundPosition.vue +9 -1
- package/src/fields/StyleSetter/components/Border.vue +3 -2
- package/src/fields/StyleSetter/components/Box.vue +5 -2
- package/src/fields/StyleSetter/components/Position.vue +5 -2
- package/src/fields/StyleSetter/pro/Background.vue +6 -2
- package/src/fields/StyleSetter/pro/Border.vue +7 -3
- package/src/fields/StyleSetter/pro/Font.vue +6 -2
- package/src/fields/StyleSetter/pro/Layout.vue +10 -2
- package/src/fields/StyleSetter/pro/Position.vue +6 -2
- package/src/layouts/page-bar/PageList.vue +15 -13
- package/src/layouts/sidebar/ComponentListPanel.vue +15 -6
- package/src/services/editor.ts +1 -2
- package/src/theme/component-list-panel.scss +11 -0
- package/src/theme/data-source-field-select.scss +4 -0
- package/src/theme/nav-menu.scss +6 -0
- package/src/theme/page-bar.scss +5 -0
- package/src/theme/props-panel.scss +0 -5
- package/src/theme/style-setter/background.scss +10 -3
- package/src/theme/style-setter/index.scss +16 -3
- package/src/utils/props.ts +19 -2
- package/types/index.d.ts +100 -61
package/dist/style.css
CHANGED
|
@@ -119,6 +119,17 @@
|
|
|
119
119
|
display: inline-flex;
|
|
120
120
|
}
|
|
121
121
|
|
|
122
|
+
.m-form-container.has-tip {
|
|
123
|
+
display: flex;
|
|
124
|
+
align-items: baseline;
|
|
125
|
+
}
|
|
126
|
+
.m-form-container.has-tip .tmagic-design-form-item {
|
|
127
|
+
flex: 1;
|
|
128
|
+
}
|
|
129
|
+
.m-form-container .tmagic-design-form-item.show-diff {
|
|
130
|
+
background: #f7dadd;
|
|
131
|
+
}
|
|
132
|
+
|
|
122
133
|
.m-form-dialog .el-dialog__body {
|
|
123
134
|
padding: 0 !important;
|
|
124
135
|
}
|
|
@@ -156,23 +167,38 @@
|
|
|
156
167
|
max-width: 50%;
|
|
157
168
|
height: 100%;
|
|
158
169
|
}
|
|
159
|
-
.m-form .
|
|
170
|
+
.m-form .tmagic-design-table .cell > div.m-form-container {
|
|
160
171
|
display: block;
|
|
161
172
|
}
|
|
162
|
-
.m-form .
|
|
173
|
+
.m-form .tmagic-design-table .cell > div.m-form-container.has-tip {
|
|
174
|
+
display: flex;
|
|
175
|
+
}
|
|
176
|
+
.m-form .tmagic-design-tabs {
|
|
163
177
|
margin-bottom: 10px;
|
|
164
178
|
}
|
|
165
|
-
.m-form .
|
|
179
|
+
.m-form .tmagic-design-form-item.tmagic-form-hidden > .el-form-item__label {
|
|
166
180
|
display: none;
|
|
167
181
|
}
|
|
168
182
|
.m-form .t-form__item.tmagic-form-hidden > .t-form__label {
|
|
169
183
|
display: none;
|
|
170
184
|
}
|
|
185
|
+
.m-form .t-form__item.tmagic-form-hidden > .t-form__controls {
|
|
186
|
+
margin-left: 0 !important;
|
|
187
|
+
}
|
|
188
|
+
.m-form.t-form:not(.t-form-inline) .t-form__item:last-of-type {
|
|
189
|
+
margin-bottom: var(--td-comp-margin-xxl);
|
|
190
|
+
}
|
|
171
191
|
|
|
172
192
|
.magic-datetime-picker-popper .el-picker-panel__footer button:first-child {
|
|
173
193
|
display: none;
|
|
174
194
|
}
|
|
175
195
|
|
|
196
|
+
.m-fields-text {
|
|
197
|
+
display: flex;
|
|
198
|
+
align-items: center;
|
|
199
|
+
width: 100%;
|
|
200
|
+
}
|
|
201
|
+
|
|
176
202
|
.m-form-validate__warning {
|
|
177
203
|
color: var(--el-color-warning);
|
|
178
204
|
font-size: 12px;
|
|
@@ -431,6 +457,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
431
457
|
}
|
|
432
458
|
.m-editor-nav-menu > div {
|
|
433
459
|
display: flex;
|
|
460
|
+
gap: 3px;
|
|
434
461
|
height: 100%;
|
|
435
462
|
z-index: 1;
|
|
436
463
|
align-items: center;
|
|
@@ -479,6 +506,10 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
479
506
|
.m-editor-nav-menu .menu-item.rule .el-icon {
|
|
480
507
|
transform: rotate(-90deg);
|
|
481
508
|
}
|
|
509
|
+
.m-editor-nav-menu .menu-item .t-button {
|
|
510
|
+
padding-left: 1px;
|
|
511
|
+
padding-right: 1px;
|
|
512
|
+
}
|
|
482
513
|
|
|
483
514
|
.m-editor {
|
|
484
515
|
display: flex;
|
|
@@ -652,6 +683,15 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
652
683
|
border-bottom: 1px solid #d9dbdd;
|
|
653
684
|
margin-bottom: 10px;
|
|
654
685
|
}
|
|
686
|
+
.ui-component-panel.tmagic-design-collapse .tmagic-design-collapse-item > .el-collapse-item__header {
|
|
687
|
+
padding: 0 10px;
|
|
688
|
+
box-sizing: border-box;
|
|
689
|
+
}
|
|
690
|
+
.ui-component-panel.tmagic-design-collapse .el-collapse-item__title {
|
|
691
|
+
display: flex;
|
|
692
|
+
align-items: center;
|
|
693
|
+
gap: 3px;
|
|
694
|
+
}
|
|
655
695
|
.ui-component-panel.tmagic-design-collapse .el-collapse-item__header,
|
|
656
696
|
.ui-component-panel.tmagic-design-collapse .t-collapse-panel__header {
|
|
657
697
|
background: #ffffff;
|
|
@@ -881,6 +921,10 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
881
921
|
.page-bar-popover.tmagic-design-popper {
|
|
882
922
|
padding: 4px 0;
|
|
883
923
|
}
|
|
924
|
+
.page-bar-popover .page-bar-popover-wrapper {
|
|
925
|
+
max-height: calc(100vh - 32px - 20px);
|
|
926
|
+
overflow: auto;
|
|
927
|
+
}
|
|
884
928
|
.page-bar-popover .menu-item {
|
|
885
929
|
cursor: pointer;
|
|
886
930
|
transition: all 0.2s ease 0s;
|
|
@@ -964,10 +1008,6 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
964
1008
|
align-items: center;
|
|
965
1009
|
border-bottom: 2px solid #d9dbdd;
|
|
966
1010
|
}
|
|
967
|
-
.m-editor-props-panel .m-editor-props-style-panel .tmagic-design-form {
|
|
968
|
-
padding-right: 10px;
|
|
969
|
-
padding-left: 10px;
|
|
970
|
-
}
|
|
971
1011
|
.m-editor-props-panel .m-editor-props-panel-src-icon {
|
|
972
1012
|
position: absolute;
|
|
973
1013
|
right: 15px;
|
|
@@ -1492,6 +1532,10 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1492
1532
|
.m-fields-data-source-field-select .m-editor-data-source-field-select .tmagic-design-cascader {
|
|
1493
1533
|
flex: 2;
|
|
1494
1534
|
}
|
|
1535
|
+
.m-fields-data-source-field-select .tmagic-design-button {
|
|
1536
|
+
margin-left: 5px;
|
|
1537
|
+
padding: 5px 8px;
|
|
1538
|
+
}
|
|
1495
1539
|
|
|
1496
1540
|
.border-box-container {
|
|
1497
1541
|
display: flex;
|
|
@@ -1743,12 +1787,16 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1743
1787
|
width: 80px;
|
|
1744
1788
|
height: auto;
|
|
1745
1789
|
}
|
|
1746
|
-
.background-position-container .presets-value-list .
|
|
1790
|
+
.background-position-container .presets-value-list .tmagic-design-button + .tmagic-design-button {
|
|
1747
1791
|
margin-left: 2px;
|
|
1748
1792
|
}
|
|
1749
|
-
.background-position-container .presets-value-list .
|
|
1793
|
+
.background-position-container .presets-value-list .tmagic-design-button:nth-child(3n+1) {
|
|
1750
1794
|
margin-left: 0 !important;
|
|
1751
1795
|
}
|
|
1796
|
+
.background-position-container .presets-value-list .t-button--variant-text {
|
|
1797
|
+
padding-left: 2px;
|
|
1798
|
+
padding-right: 2px;
|
|
1799
|
+
}
|
|
1752
1800
|
.background-position-container .presets-value-list .position-icon {
|
|
1753
1801
|
position: relative;
|
|
1754
1802
|
width: 14px;
|
|
@@ -1756,7 +1804,7 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1756
1804
|
border: 1px solid #1d1f24;
|
|
1757
1805
|
}
|
|
1758
1806
|
.background-position-container .presets-value-list .position-icon.active {
|
|
1759
|
-
background-color: var(
|
|
1807
|
+
background-color: var(#2882e0);
|
|
1760
1808
|
}
|
|
1761
1809
|
.background-position-container .presets-value-list .position-icon.active::after {
|
|
1762
1810
|
border: 1px solid #fff;
|
|
@@ -1831,11 +1879,22 @@ fieldset.m-fieldset .m-form-tip {
|
|
|
1831
1879
|
}
|
|
1832
1880
|
.m-fields-style-setter .tmagic-design-collapse-item > .el-collapse-item__header {
|
|
1833
1881
|
background-color: #f2f3f7;
|
|
1834
|
-
height:
|
|
1835
|
-
|
|
1882
|
+
height: 26px;
|
|
1883
|
+
min-height: 26px;
|
|
1884
|
+
line-height: 26px;
|
|
1885
|
+
padding: 0 20px;
|
|
1886
|
+
box-sizing: border-box;
|
|
1836
1887
|
}
|
|
1837
1888
|
.m-fields-style-setter .tmagic-design-collapse-item .el-collapse-item__wrap {
|
|
1838
|
-
padding:
|
|
1889
|
+
padding: 10px 20px;
|
|
1890
|
+
}
|
|
1891
|
+
.m-fields-style-setter .tmagic-design-collapse-item .el-collapse-item__title {
|
|
1892
|
+
display: flex;
|
|
1893
|
+
align-items: center;
|
|
1894
|
+
gap: 3px;
|
|
1895
|
+
}
|
|
1896
|
+
.m-fields-style-setter .tmagic-design-collapse-item .el-collapse-item__content {
|
|
1897
|
+
padding: 0;
|
|
1839
1898
|
}
|
|
1840
1899
|
|
|
1841
1900
|
.text-align-list {
|