vendor: amis 6.13.0 base (fork root)

This commit is contained in:
2026-06-16 22:14:57 +08:00
commit 8c8e4247a9
3840 changed files with 2467374 additions and 0 deletions

View File

@@ -0,0 +1,55 @@
.editor-backTop {
position: fixed;
right: 30px;
bottom: 32px;
z-index: 10000;
width: 32px;
height: 32px;
margin: 0;
padding: 0;
box-sizing: border-box;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
cursor: pointer;
visibility: visible;
transition: all 0.3s;
&.hidden {
visibility: hidden;
}
}
.editor-backTop:empty {
display: none;
}
.backTop-content {
width: 40px;
height: 40px;
overflow: hidden;
color: #fff;
text-align: center;
background-color: rgba($Editor-theme, 0.85);
border-radius: 20px;
transition: all 0.3s;
}
.backTop-content:hover {
background-color: $Editor-theme;
transition: all 0.3s;
}
.backTop-icon {
font-size: 20px;
line-height: 40px;
}
@media screen and (max-width: 768px) {
.editor-backTop {
right: 60px;
}
}
@media screen and (max-width: 480px) {
.editor-backTop {
right: 20px;
}
}

View File

@@ -0,0 +1,154 @@
.ae-Breadcrumb {
flex: 0 0 22px;
padding: 0;
background: #fff;
box-sizing: border-box;
border-bottom: 1px solid $editor-border-color;
z-index: 1000;
padding: 0 16px;
.ae-Breadcrumb-content {
left: 0;
height: 100%;
width: max-content;
white-space: nowrap;
height: 22px;
line-height: 22px;
background: #fff;
letter-spacing: 0;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #5c5f66;
font-weight: 400;
user-select: none;
box-sizing: border-box;
transition: left ease-out 0.15s;
> ul {
list-style: none;
display: inline-block;
margin: 0;
padding: 0;
> li {
display: inline-block;
margin: 0 0 0 8px;
padding: 0;
position: relative;
&:first-child {
margin: 0;
}
> span {
display: inline-block;
padding-right: 8px;
line-height: 22px !important; // 避免被覆盖
cursor: pointer;
&:hover {
text-decoration: none;
}
}
// 同级元素选择弹层
> ul {
position: absolute;
top: 26px;
left: 0;
min-width: 100px;
max-height: 320px;
line-height: 20px; // 32 - 12
padding: 0;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #151b26;
font-weight: 400;
box-shadow: 0 2px 8px 0 rgba(7, 12, 20, 0.12);
border-radius: 4px;
background: #fff;
list-style: none;
z-index: 100000; // 设置一个最大的层级
visibility: hidden;
transition: all ease-out 0.15s;
> li > span {
display: block;
padding: 6px 12px;
cursor: pointer;
&:hover {
background: $active-bg-color;
text-decoration: none;
}
&.is-active {
color: $Editor-theme;
}
}
}
&:hover > ul,
& > ul:hover {
visibility: visible;
}
}
> li:not(:last-child):after {
color: #5e626a;
content: '\003E';
}
> li:last-child > span {
font-family: PingFangSC-Medium;
font-size: 12px;
color: #151b26;
line-height: 20px;
font-weight: 500;
text-decoration: none;
}
}
}
.ae-Breadcrumb-scrollLeft-btn,
.ae-Breadcrumb-scrollRight-btn {
position: absolute;
top: 0;
left: 0;
width: 40px;
height: 41px;
background-color: #fff;
box-sizing: border-box;
box-shadow: 2px 0 20px 0 rgb(0 0 0 / 10%);
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
visibility: hidden;
z-index: 100000;
svg {
color: #151b26;
width: 16px;
height: 16px;
transform: rotate(180deg);
&:hover {
color: $editor-active-color;
}
}
}
.ae-Breadcrumb-scrollRight-btn {
left: auto;
right: 0;
box-shadow: -2px 0 20px 0 rgb(0 0 0 / 10%);
svg.icon-editor-double-arrow {
transform: rotate(0deg);
}
}
&:hover {
.ae-Breadcrumb-scrollLeft-btn,
.ae-Breadcrumb-scrollRight-btn {
visibility: visible;
}
}
}

View File

@@ -0,0 +1,58 @@
.ae-ClassNamePicker-popover {
padding: 10px;
width: 610px;
max-height: min(calc(100% - 220px), 400px);
min-height: 220px;
overflow: auto;
&.ae-PopOver--leftBottomLeftTop {
margin-top: 1px;
}
&.ae-PopOver--leftTopLeftBottom {
margin-top: -1px;
}
}
.ae-ClassNameControl-group {
margin: 10px;
display: inline-block;
width: 265px;
&.w2x {
width: 550px;
}
.ae-ClassNameControl-group {
padding-left: 65px;
margin: 0;
display: block;
width: auto;
&:not(:last-child) {
margin: 0 0 10px 0;
}
.ae-ClassNameControl-groupLabel {
float: left;
border: none;
padding-top: 5px;
padding-bottom: 0;
text-align: right;
margin: 0 0 0 -60px;
font-size: 12px;
}
}
.ae-ButtonGroup + .ae-ButtonGroup {
margin-left: 5px;
}
}
.ae-ClassNameControl-groupLabel {
border-bottom: px2rem(1px) solid lighten($color: $borderColor, $amount: 5%);
display: block;
padding-bottom: 5px;
margin-bottom: 10px;
font-size: 14px;
}

View File

@@ -0,0 +1,109 @@
.context-menu-setting {
position: relative;
width: 260px;
background: #fff;
box-shadow: -2px 0 20px 0 rgba(0, 0, 0, 0.1);
z-index: 5;
// 搞点动画?
transition: width ease-in-out 0.2s;
transform: translateZ(0);
display: flex;
flex-direction: column;
.setting-header {
flex: 0 0 48px;
font-family: PingFangSC-Regular;
font-size: 14px;
color: #141a25;
line-height: 48px;
letter-spacing: 0;
font-weight: 400;
border-bottom: 1px solid #e6e6e8;
text-align: center;
}
.setting-body {
flex: 1 1 auto;
overflow-x: hidden;
overflow-y: auto;
padding: 12px 6px;
display: flex;
justify-content: flex-start;
align-content: flex-start;
flex-wrap: wrap;
.setting-item {
margin: 0 2px 12px 6px; // 兼容右侧可能出现滚动条情况
padding-top: 12px;
flex: 0 0 112px;
height: 62px;
cursor: pointer;
box-sizing: border-box;
border: 1px solid #ddd;
border-radius: 4px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: center;
.icon-box {
width: 24px;
height: 24px;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
> svg {
width: 24px;
height: 24px;
fill: #bcbcbc;
}
}
.setting-info {
margin-top: 4px;
flex: 1 1 auto;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #141a25;
font-weight: 400;
user-select: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
&:hover {
background: #e9effd;
border: 1px solid $Editor-theme-color;
border-radius: 4px;
.icon-box > svg {
fill: $Editor-theme-color;
}
.setting-info {
color: $Editor-theme-color;
}
}
&.disabled {
cursor: not-allowed;
// pointer-events: none;
background: rgba(#bdbdbd, 0.15);
border: 1px solid #ddd;
border-radius: 4px;
.icon-box > svg {
fill: #bdbdbd;
}
.setting-info {
color: #bdbdbd;
}
}
}
}
}

View File

@@ -0,0 +1,40 @@
.aeDataChain {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
min-height: 300px;
&-aside {
width: 60px;
flex-shrink: 0;
border-right: 1px solid #ccc;
margin-right: 10px;
padding-right: 10px;
> ul {
list-style: none;
margin: 0;
padding: 0;
> li {
display: block;
cursor: pointer;
text-align: center;
color: #999;
padding: 2px 5px;
font-size: 12px;
&.is-active {
color: #333;
background: darken(#f6f7fb, 2.5%);
}
}
}
}
&-main {
flex-grow: 1;
flex-basis: auto;
overflow-x: auto;
}
}

View File

@@ -0,0 +1,248 @@
.editor-left-panel {
position: relative;
flex: 0 0 308px; // 48px + 260px
// min-width: 308px;
background: #fff;
overflow: visible;
box-shadow: 2px 0 20px 0 rgba(0, 0, 0, 0.1);
z-index: 5;
// 搞点动画?
transition: width ease-in-out 0.2s;
transform: translateZ(0);
// 宽度可拖拽时不增加过渡,避免卡顿
&.width-draggable {
transition: none;
}
&.fixed-status {
position: fixed;
top: 0;
left: 0;
width: auto;
height: 100%;
}
// 悬浮icon
.editor-panel-btn {
position: absolute;
top: 12px;
right: 12px;
height: 16px;
width: 16px;
z-index: 100;
display: flex;
justify-content: center;
align-items: center;
.panel-btn {
width: 16px;
height: 16px;
fill: $default-icon-color;
color: $default-icon-color;
cursor: pointer;
&:hover {
fill: $Editor-theme;
color: $Editor-theme;
}
}
}
// 折叠状态
&.hidden-status {
flex: 0 0 48px;
min-width: 48px;
width: 48px;
> .editor-panel-btn {
display: none;
}
}
// 折叠收缩 icon
.left-panel-arrow {
position: absolute;
width: 16px;
height: 50px;
top: 50%;
right: -15px;
transform: translateY(-50%);
background-color: transparent;
box-sizing: border-box;
z-index: 10;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
&::before {
content: '';
position: absolute;
border-radius: 0 10px 10px 0;
box-sizing: border-box;
// border: 1px solid rgba(0, 0, 0, 0.1);
border-left: 0;
// box-shadow: -2px 2px 2px #f0f1f2;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #fff;
z-index: -1;
transform: perspective(50px) rotateY(30deg);
transition: all 0.15s;
}
&::after {
content: '';
position: absolute;
width: 6px;
height: 8px;
// right: 50%;
top: 50%;
-webkit-mask-image: url(../static/side_hide_left.svg);
-webkit-mask-size: 100% 100%;
mask-size: 100% 100%;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
background-color: #a1a6b3;
transform: translate(-50%, -50%) rotate(0deg);
transition: all 0.15s;
}
&.hidden-status {
&::after {
transform: translate(-50%, -50%) rotate(180deg);
}
}
}
.editorPanel-tabs {
position: relative;
height: 100%;
display: flex;
> [class$='Tabs-linksWrapper'] {
position: relative;
flex: 0 0 48px;
border: none;
border-right: 1px solid #e6e6e8;
height: 100%;
box-sizing: border-box;
}
.editorPanel-tabs-header {
padding-top: 20px;
> li {
margin: 0 0 12px 0 !important;
padding: 0;
overflow: visible; // 避免 tooltip被遮挡
width: 48px;
height: 48px;
box-sizing: border-box;
padding: 0 3px;
display: flex !important;
flex-direction: column;
justify-content: flex-start;
align-items: center;
> a {
position: relative;
display: inline-block;
width: 100%;
height: 100%;
margin: 0 !important;
padding: 0 !important;
border: none !important;
overflow: visible; // 避免 tooltip被遮挡
display: flex;
justify-content: center;
align-items: center;
// 用于设置自定义tab面板中的icon样式
.editor-tab-icon {
position: relative;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
> svg {
width: 48px;
height: 48px;
color: #151b26;
}
&.editor-tab-s-icon > svg {
width: 16px;
height: 16px;
}
}
}
&.is-active,
&:hover {
background: #eef3fe;
> a {
background: #eef3fe;
}
.editor-tab-icon > svg {
color: $editor-active-color !important;
}
}
// 选中态左侧边框高亮
&.is-active {
padding: 0 3px 0 0;
border-left: 3px solid $editor-active-color;
}
}
}
> .editorPanel-tabs-content {
position: relative;
flex: 1 1 auto;
height: 100%;
border: none;
.editorPanel-tabs-pane {
position: relative;
height: 100%;
padding: 0;
width: $Editor-aside-width;
box-sizing: border-box;
}
}
}
// 代码编辑面板
.ae-Editor-codePane {
position: relative;
height: 100%;
// transition: width ease-out 0.3s;
max-width: 800px;
// monaco-editor 里面的,会把内容撑开。
.overflowingContentWidgets {
margin-top: -99999px;
}
}
}
.editor-code-tabs,
.editor-code-tabs-cont,
.editor-code-tabs-cont .in {
height: 100%;
}
// 左侧面板悬浮模式时的占位,避免折叠状态遮挡内容区
.editor-left-panel-fixed-placeholder {
position: relative;
flex: 0 0 48px;
background: #fff;
}

View File

@@ -0,0 +1,104 @@
@mixin minScrollBar {
// 火狐浏览器
scrollbar-width: thin;
scrollbar-color: #d4d6d9 transparent;
&::-webkit-scrollbar {
// display: none;
background-color: transparent;
width: 6px;
overflow: visible;
height: 10px !important;
}
::-webkit-scrollbar-track {
background-color: transparent;
}
&::-webkit-scrollbar-thumb {
width: 6px;
background-color: #d4d6d9; // #babac0;
border-radius: 6px;
border: 4px solid transparent;
&:hover {
background-color: rgb(92, 95, 102, 0.5);
}
}
&::-webkit-scrollbar-button {
display: none;
}
}
@mixin flexBox(
$direction: row,
$justify-content: space-between,
$align-items: center,
$wrap: nowrap
) {
display: flex;
flex-flow: $direction $wrap;
justify-content: $justify-content;
align-items: $align-items;
}
@mixin panel-icon {
fill: var(--primary);
path {
fill: var(--primary);
}
}
@mixin panel-group-bg {
background: #fafafa;
padding: #{px2rem(10px)};
border-radius: #{$Editor-borderRadius};
}
@mixin collapse-header-text {
color: #070c14;
font-weight: 500;
font-size: 12px;
}
@mixin extend-more {
position: relative;
background-color: #f7f7f9;
border-radius: px2rem(2px);
padding: px2rem(12px) px2rem(8px);
&::after {
display: block;
content: '';
height: 12px;
width: 12px;
position: absolute;
top: -6px;
left: 12px;
transform: rotate(45deg);
background-color: #f7f7f9;
}
fieldset {
margin-bottom: var(--Form-item-gap);
.cxd-Collapse-content {
background-color: transparent;
}
}
&.right::after {
right: 12px;
left: auto;
}
}
@mixin panel-sm-content {
// @extend :root;
--fonts-size-7: #{$Editor-right-panel-font-size};
--Form-input-lineHeight: #{$Editor-right-panel-line-height};
--InputGroup-select-borderColor: #{$Editor-right-panel-border-color};
--Form-input-borderColor: #{$Editor-right-panel-border-color};
}

View File

@@ -0,0 +1,341 @@
@keyframes shake {
10%,
90% {
transform: translate3d(-1px, 0, 0);
}
20%,
80% {
transform: translate3d(2px, 0, 0);
}
30%,
50%,
70% {
transform: translate3d(-4px, 0, 0);
}
40%,
60% {
transform: translate3d(4px, 0, 0);
}
}
.shake {
animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
transform: translate3d(0, 0, 0);
backface-visibility: hidden;
perspective: 1000px;
}
.ae-Outline-panel {
display: flex;
flex-direction: column;
height: 100%;
.ae-outline-tabs {
flex: 1;
display: flex;
flex-direction: column;
min-height: 0;
.ae-outline-tabs-header {
padding: 0 12px;
}
.ae-outline-tabs-content {
flex: 1;
min-height: 0;
margin-top: 12px;
}
.ae-outline-tabs-panel.is-active {
display: flex;
flex-direction: column;
height: 100%;
padding: 0;
}
}
}
.ae-Outline {
// margin-top: 16px;
padding: 12px 10px 6px 10px;
--Tree-indent: 16px;
// width: $Editor-aside-width;
flex: 1 1 auto;
background: #fff;
&-list,
&-sublist {
list-style: none;
padding: 0;
margin: 0;
}
&-list {
// margin-left: 16px;
}
&-sublist {
// margin-left: 16px;
> .ae-Outline-node {
&::before,
&::after {
position: absolute;
content: '';
background: $editor-border-color;
display: block;
}
&::before {
width: 8px;
height: 1px;
left: calc(var(--indent) * var(--Tree-indent) - 9px);
top: 12px;
visibility: hidden; // 隐藏左侧连线(横线)
}
&::after {
width: 1px;
height: 100%;
left: calc(var(--indent) * var(--Tree-indent) - 9px);
top: 0;
visibility: hidden; // 隐藏左侧连线(竖线)
}
&:last-child::after {
height: 12px;
}
}
}
&:hover {
// hover时 显示连接线
.ae-Outline-node {
&::before,
&::after {
visibility: visible;
}
}
}
&-node {
position: relative;
padding: 0;
margin: 0;
> a {
padding: 0 8px;
padding-left: calc(var(--indent) * var(--Tree-indent));
min-width: 108px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: $editor-default-color;
line-height: 24px;
font-weight: 400;
text-decoration: none;
user-select: none;
cursor: pointer;
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
&:hover {
// color: $editor-default-color; // 避免被其他全局样式覆盖
// background: $hover-bg-color;
}
}
&.has-children > a {
margin-left: 0;
}
> a:hover,
&.is-hover > a {
color: $editor-active-color;
// border-radius: 2px;
}
&.is-active {
background: $active-bg-color;
> a {
color: $editor-active-color;
// border-radius: 2px;
}
}
&.is-folded > .ae-Outline-sublist {
display: none;
}
span.has-keywords {
color: $editor-active-color;
font-weight: 600;
}
}
&-textIndent {
display: inline-block;
width: 4px;
}
&-expander {
position: relative;
left: 0;
// top: 8px;
cursor: pointer;
z-index: 2;
display: inline-flex;
justify-content: center;
align-items: center;
> svg {
width: 16px;
height: 16px;
color: $default-icon-color;
transform: rotate(0deg);
transition: transform ease-out 0.1s;
}
// &:before {
// content: '';
// display: inline-block;
// width: 0;
// height: 0;
// border-style: solid;
// border-width: 4px 0 4px 6.9px;
// border-color: transparent transparent transparent $dark;
// transform: rotate(45deg);
// }
&.is-folded > svg {
transform: rotate(-90deg);
}
}
&-tip {
color: $success;
margin-bottom: 15px;
animation: shake 0.82s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
transform: translate3d(0, 0, 0);
backface-visibility: hidden;
perspective: 1000px;
}
&-dropNode {
padding: 25px 0 0 15px;
margin-bottom: 5px;
position: relative;
background: #fff;
&:after {
pointer-events: none;
content: '';
position: absolute;
z-index: 2;
top: 0;
left: 0;
right: 0;
bottom: 0;
border: 1px dashed $editor-border-color;
}
&.is-active {
&:after {
border: 1px dashed $editor-active-color;
z-index: 3;
}
color: $editor-default-color;
background: $active-bg-color;
}
> a {
color: $editor-default-color;
position: absolute;
display: block;
width: 100%;
left: 5px;
top: 2px;
font-size: 12px;
}
}
}
.ae-DialogList {
&-wrap {
padding: 0 10px;
}
list-style: none;
margin: 8px 0 0;
padding: 0;
li {
cursor: pointer;
margin: 4px 0;
padding: 4px 10px;
font-size: 12px;
display: flex;
justify-content: space-between;
gap: px2rem(5px);
align-items: center;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: var(--colors-neutral-text-2);
> span {
flex: 1;
min-width: 0;
overflow: hidden;
text-overflow: ellipsis;
}
a.ae-DialogList-iconBtn {
font-size: inherit;
color: var(--icon-color);
text-decoration: none;
cursor: pointer;
> svg {
top: px2rem(1px);
width: px2rem(16px);
height: px2rem(16px);
}
> svg.icon-copy {
top: 0;
width: px2rem(12px);
height: px2rem(12px);
}
&:hover {
color: var(--icon-onHover-color);
background: var(--colors-neutral-bg-2);
}
}
}
// li + li {
// border-top: var(--borderWidth) solid var(--borderColor);
// }
li:hover {
color: var(--Layout-fontColor--onHover);
background: $hover-bg-color;
// border-top: var(--borderWidth) solid var(--borderColor);
// border-bottom: var(--borderWidth) solid var(--borderColor);
}
&-placeholder {
color: #b4b6ba;
padding-top: px2rem(10px);
text-align: center;
vertical-align: middle;
}
}

View File

@@ -0,0 +1,491 @@
.ae-RendererList-tabs {
position: relative;
height: 100%;
padding: 0;
width: $Editor-aside-width;
overflow: hidden;
display: flex;
flex-direction: column;
justify-content: flex-start;
.ae-RendererList-tabs-header {
padding: 0 12px;
}
.ae-RendererList-tabs-content {
position: relative;
margin-top: 12px;
flex: 1 1 auto;
padding: 0 5px;
// overflow: auto;
height: 100%;
// max-height: calc(100% - 50px); // 确保不撑开
box-sizing: border-box;
// @include minScrollBar();
.ae-RendererList-tabs-panel {
position: relative;
padding: 0;
height: 100%;
}
}
}
.ae-RendererList {
height: 100%;
padding: 0 0 12px 0;
// width: $Editor-aside-width;
display: flex;
flex-direction: column;
justify-content: flex-start;
.ae-RendererList-tabs-header {
padding: 0 12px;
}
.ae-RendererList-tabs-content {
position: relative;
margin-top: 12px;
flex: 1 1 auto;
padding: 0 5px;
// overflow: auto;
height: 100%;
// max-height: calc(100% - 50px); // 确保不撑开
box-sizing: border-box;
// @include minScrollBar();
.ae-RendererList-tabs-panel {
position: relative;
padding: 0;
height: 100%;
}
}
}
.ae-RendererList {
height: 100%;
padding: 0 0 12px 0;
// width: $Editor-aside-width;
display: flex;
flex-direction: column;
&.only-base-component {
width: $Editor-aside-width;
.ae-RendererList-groupWrap {
margin: 0;
padding: 0 0 12px 0;
}
}
.ae-RendererList-tip {
padding: 0 12px;
color: $success;
}
// 用于提示类文本的样式
.ae-RendererList-group > span,
.ae-RendererList-groupWrap > span,
.ae-RendererList-placeholder {
display: inline-block;
margin: 12px;
}
&-groupWrap {
flex: 1 1 auto;
margin: 0 -5px; // 让右侧滚动条靠最右侧
padding: 0 0 12px 0;
background: #fff;
scrollbar-width: none !important; // 火狐浏览器中不显示滚动条,避免挤压组件列表
.collapse-header {
padding: 0 12px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #141a25;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
letter-spacing: 0;
height: 35px;
line-height: 35px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
// 折叠icon
.expander-icon {
> svg {
width: 10px;
height: 10px;
color: #333;
transform: rotate(90deg);
transition: transform ease-out 0.3s;
}
&.is-folded > svg {
transform: rotate(270deg);
}
}
}
}
&-group.collapse-content {
display: flex;
flex-wrap: wrap;
height: auto;
padding: 6px 0 4px 2px;
box-sizing: border-box;
// border-bottom: 1px solid $editor-border-color;
transition: height 0.3s;
&:last-child {
border-bottom: none;
}
&.is-folded {
height: 0;
padding: 0;
overflow: hidden;
&:last-child {
height: 0;
}
}
.ae-RendererList-item {
margin: 0 2px 12px 10px; // 兼容右侧可能出现滚动条情况
padding: 0 8px;
flex: 0 0 112px;
cursor: pointer;
width: 112px;
height: 32px;
border: 1px solid #e8e9eb;
border-radius: 4px;
box-sizing: border-box;
display: flex;
justify-content: flex-start;
align-items: center;
.icon-box {
width: 16px;
height: 16px;
box-sizing: border-box;
display: flex;
justify-content: center;
align-items: center;
> i {
font-size: 16px;
color: #b8babf;
}
// 新版 icon 使用 svg
svg {
width: 16px;
height: 16px;
color: #7c7d82; // icon 颜色深一点,会显得更清晰点
top: 0 !important; // 覆盖amis样式,避免未垂直居中
}
}
.ae-RendererInfo {
flex: 1 1 auto;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #151b26;
letter-spacing: 0;
line-height: 20px;
font-weight: 400;
max-width: 80px;
padding: 0 8px;
user-select: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.ae-RendererIcon {
flex: 0 0 16px;
color: $default-icon-color;
justify-content: center;
align-items: center;
display: none; // hover 时使用flex
> svg {
width: 16px;
height: 16px;
top: 0 !important; // 覆盖amis样式,避免未垂直居中
}
&:hover {
color: $editor-active-color;
}
}
&:hover {
border-color: $editor-active-color;
.ae-RendererInfo {
max-width: 64px;
}
.ae-RendererIcon {
display: flex !important;
}
}
}
}
}
// 左侧组件面板/info提示弹窗
.ae-RendererThumb {
max-width: 328px;
min-height: 70px;
padding: 5px;
font-size: 12px;
color: #151b26;
line-height: 20px;
background: #fff;
box-shadow: 0 4px 5px 0 rgba(0, 0, 0, 0.06), 0 1px 10px 0 rgba(0, 0, 0, 0.05),
0 2px 4px -1px rgba(0, 0, 0, 0.04);
transform: scale(1);
transform-origin: center top;
.ae-Renderer-title {
font-family: PingFangSC-Medium;
font-weight: 500;
font-size: 14px;
}
.ae-Renderer-info {
margin: 4px 0;
font-family: PingFangSC-Regular;
letter-spacing: 0;
font-weight: 400;
}
.ae-Renderer-preview {
position: relative;
max-height: 200px;
overflow: auto;
}
}
// 左侧插入和替换组件面板
.ae-InsertPanel-drawer {
// 右上角的关闭icon
svg.icon-close {
width: 22px;
height: 22px;
}
.ae-InsertPanel-footer {
> .action-btn {
padding: 4px 16px;
border-radius: 4px;
display: inline-flex;
justify-content: center;
align-items: center;
}
> .action-btn.action-btn-primary {
color: #fff;
background-color: #2468f2;
&:hover {
background-color: #5086f5;
}
}
> .action-btn.is-disabled {
color: #b4b6ba;
background-color: #e6e6e8;
border-color: #e6e6e8;
}
}
}
// 新版插入组件面板(抽屉弹出式)
.ae-InsertRendererPanel-drawer {
// 右上角的关闭icon
> svg.icon-close {
width: 22px;
height: 22px;
}
.ae-drawer-renderers {
width: 417px; // 确保能一行展示5个组件
border-radius: 0 !important;
.ae-drawer-title {
padding: 0 12px;
font-family: PingFangSC-Medium;
font-size: 18px;
color: #141a25;
letter-spacing: 0;
font-weight: 500;
height: 35px;
line-height: 35px;
cursor: pointer;
}
.ae-RendererList {
width: 100% !important;
}
}
.ae-RendererList-tabs {
width: 417px; // 确保能一行展示5个组件
}
}
.ae-RenderersPicker-list {
flex-grow: 1;
height: 0;
display: flex;
flex-direction: row;
margin-top: 10px;
margin-bottom: 10px;
> ul {
min-width: 40px;
margin: 0;
padding: 0;
margin-right: 20px;
user-select: none;
> li {
list-style: none;
display: block;
text-align: center;
white-space: nowrap;
&:not(:last-child) {
margin-bottom: 10px;
}
> a {
color: #666;
font-size: 14px;
cursor: pointer;
padding: 2px 10px;
border-radius: 5px;
}
&.is-active > a,
> a:hover {
text-decoration: none;
color: #333;
background: rgba(66, 133, 244, 0.1);
}
}
}
}
.ae-RenderersPicker-content {
flex-grow: 1;
width: 0;
overflow: auto;
@include minScrollBar();
> ul {
list-style: none;
margin: 0;
padding: 0;
> li {
border-radius: 4px;
margin: 0;
padding: 0;
display: flex;
flex-wrap: wrap;
flex-direction: row;
align-items: center;
border: 1px solid #e6e7e8;
color: #666;
font-size: 12px;
cursor: pointer;
&:not(:last-child) {
margin-bottom: 10px;
}
&:hover,
&.is-active {
background: rgba($Editor-hlbox--onActive-bg, 0.05);
}
&.is-active {
border: 1px solid $Editor-theme;
}
}
}
}
.ae-RenderersPicker-info {
flex-grow: 1;
width: 0;
padding: 10px;
align-self: flex-start;
user-select: none;
> h4 {
font-size: 14px;
color: #333;
padding: 0;
margin: 0 0 10px;
}
}
.ae-RendereresPicker-form {
height: 100%;
}
.ae-RenderersPicker {
height: 100%;
display: flex;
flex-direction: column;
}
.ae-RegionFilter {
margin: 10px 15px;
font-size: 12px;
color: #666;
> div {
display: inline-block;
cursor: pointer;
padding: 2px 10px;
border-radius: 5px;
&:hover,
&.is-active {
color: #333;
background: rgba(66, 133, 244, 0.1);
}
}
}
.ae-InsertPanel {
display: flex;
flex-direction: column;
padding: 15px;
width: 100%;
height: 100%;
&-title {
color: #333;
margin-bottom: 10px;
}
&-footer {
text-align: right;
> button + button,
> div + button {
margin-left: 5px;
}
}
}

View File

@@ -0,0 +1,507 @@
$right-panel-width: px2rem(280px);
$right-panel-sidetab-width: px2rem(62px);
$category-1-height: px2rem(44px);
$category-2-height: px2rem(32px);
$tooltip-bottom: '[data-tooltip][data-position=' bottom ']:hover:after';
.editor-right-panel {
position: relative;
flex: 0 0 auto;
width: $right-panel-width;
min-width: $right-panel-width;
max-width: 600px; // 避免过度拖拽
// width: 280px;
background: #fff;
box-shadow: -2px 0 20px 0 rgba(0, 0, 0, 0.1);
z-index: 5;
// 搞点动画?
transition: width ease-in-out 0.2s;
// transform: translateZ(0);
@include panel-sm-content();
// 宽度可拖拽时不增加过渡,避免卡顿
&.width-draggable {
transition: none;
}
// 用于避免右侧配置面板被超长的valueLabel撑开,导致样式异常
.#{$ns}SubForm-valueLabel {
word-break: break-all;
}
// 外层有多个tab面板
&.mul-tabs-panel {
width: calc(#{$right-panel-sidetab-width} + #{$right-panel-width});
min-width: calc(#{$right-panel-sidetab-width} + #{$right-panel-width});
// width: 328px;
// min-width: 328px; // 48px + 280px
}
// 悬浮icon
.editor-panel-btn {
position: absolute;
top: 0;
left: 0;
height: 16px;
width: 16px;
z-index: 100;
display: flex;
justify-content: center;
align-items: center;
display: none;
.panel-btn {
width: 16px;
height: 16px;
fill: $default-icon-color;
color: $default-icon-color;
cursor: pointer;
transform: rotate(-45deg);
&:hover {
fill: $Editor-theme;
color: $Editor-theme;
}
}
}
// 折叠状态
&.hidden-status {
width: 0 !important;
min-width: 0;
.editor-panel-btn {
display: none;
}
.width-draggable-icon.hasArrowIcon {
visibility: hidden;
}
.editorPanel-inner {
display: none;
}
}
&.fixed-status {
position: fixed;
top: 0;
right: 0;
width: 280px;
height: 100%;
&.mul-tabs-panel {
width: calc(#{$right-panel-sidetab-width} + #{$right-panel-width});
// width: 328px; // 48px + 280px
}
}
&.has-popover {
z-index: 1300;
}
.editorPanel-inner {
position: relative;
height: 100%;
&.has-popover {
z-index: 1300;
}
}
// 外层tabs
.editorPanel-tabs {
display: flex;
flex-direction: row-reverse;
height: 100%;
> [class$='Tabs-linksWrapper'] {
position: relative;
flex: 0 0 48px;
border: none;
}
.editorPanel-tabs-header {
padding-top: 20px;
// tab面板title
&:empty {
min-width: unset;
}
> li {
margin: 0 0 12px 0 !important;
padding: 0;
overflow: visible; // 避免 tooltip被遮挡
width: 48px;
height: 48px;
box-sizing: border-box;
padding: 0 3px;
display: flex !important;
flex-direction: column;
justify-content: flex-start;
align-items: center;
> a {
position: relative;
display: inline-block;
width: 100%;
height: 100%;
margin: 0 !important;
padding: 0 !important;
border: none !important;
overflow: visible; // 避免 tooltip被遮挡
display: flex;
justify-content: center;
align-items: center;
// 用于设置自定义tab面板中的icon样式
.editor-tab-icon {
position: relative;
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
i.fa {
font-size: 16px !important;
width: 16px;
height: auto;
margin-bottom: 0 !important;
color: #151b26;
}
> svg {
width: 16px;
height: 16px;
color: #151b26;
}
// 新版icon
> svg.pluginIcon {
width: 20px;
height: 20px;
color: #151b26;
}
}
}
&.is-active,
&:hover {
background: #eef3fe;
> a {
background: #eef3fe;
}
i.fa,
.editor-tab-icon > svg {
color: $editor-active-color !important;
}
}
// 选中态左侧边框高亮
&.is-active {
padding: 0 0 0 3px;
border-right: 3px solid $editor-active-color;
}
}
}
> .editorPanel-tabs-content {
position: relative;
flex: 1 1 auto;
height: 100%;
max-width: calc(100% - 48px); // 避免被内容元素撑开
border-left: none;
.editorPanel-tabs-pane {
position: relative;
height: 100%;
padding: 0;
box-sizing: border-box;
max-width: 100%;
}
}
}
// 属性配置表单面板
.ae-Settings-content {
position: relative;
height: 100%;
padding: 10px 12px;
// 带底部操作按钮的属性配置面板
&.with-actions {
position: relative;
.editor-prop-config-tabs {
padding-bottom: 45px;
&-links {
--fonts-size-7: 14px;
}
}
.ae-Settings-actions,
> input {
position: sticky;
left: 0;
bottom: -16px;
margin-bottom: 0;
width: 100%;
line-height: 1;
display: flex;
align-items: center;
justify-content: center;
}
}
}
// 右侧面板收起箭头
.right-panel-arrow {
position: absolute;
width: 16px;
height: 50px;
top: 50%;
left: -15px;
transform: translateY(-50%);
background-color: transparent;
box-sizing: border-box;
z-index: 10;
cursor: pointer;
&::before {
content: '';
position: absolute;
border-radius: 10px 0 0 10px;
box-sizing: border-box;
// border: 1px solid rgba(0, 0, 0, 0.1);
border-right: 0;
// box-shadow: -2px 2px 2px #f0f1f2;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: #fff;
z-index: -1;
transform: perspective(50px) rotateY(-30deg);
transition: all 0.15s;
}
&::after {
content: '';
position: absolute;
width: 6px;
height: 8px;
left: 55%;
top: 50%;
-webkit-mask-image: url(../static/side_hide_left.svg);
-webkit-mask-size: 100% 100%;
mask-size: 100% 100%;
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
background-color: #a1a6b3;
transform: translate(-50%, -50%) rotate(180deg);
transition: all 0.15s;
}
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
&.hidden-status {
&::after {
transform: translate(-50%, -50%) rotate(0deg);
}
}
}
}
.right-panel-pop {
@include panel-sm-content();
}
// 包裹样式
.config-wrapper-contanier {
position: relative;
margin: 0 auto 12px auto;
padding: 12px 8px;
background-color: #f7f7f9;
border-radius: 2px;
&::after {
display: block;
content: '';
height: 12px;
width: 12px;
position: absolute;
top: -6px;
left: 12px;
transform: rotate(45deg);
background-color: #f7f7f9;
}
&.hidden-tip {
&::after {
display: none;
}
}
&.tip-position-20p {
&::after {
left: 20%;
}
}
&.tip-position-30p {
&::after {
left: 30%;
}
}
&.tip-position-right-12 {
&::after {
left: auto;
right: 12px;
}
}
&.tip-position-right-55 {
&::after {
left: auto;
right: 55px;
}
}
&.tip-position-right-90 {
&::after {
left: auto;
right: 90px;
}
}
}
.ae-Settings-content {
padding: var(--gap-base);
#{$tooltip-bottom} {
margin-left: -10px;
animation-name: none;
}
.ae-Combo-item > div:first-child > #{$tooltip-bottom} {
margin-left: 15px;
}
// 内层tabs
.editor-prop-config-tabs {
display: block;
position: relative;
height: 100%;
padding: 0;
flex-direction: column;
justify-content: flex-start;
overflow: hidden;
margin: calc(0rem - (var(--gap-base)));
.old-action-tooltip-warpper {
display: block;
padding: 10px 12px 0;
// 老动作入口
.old-action-btn {
width: 100%;
}
}
// tab导航
ul[role='tablist'],
&-links {
margin: 0;
flex: 0;
border-bottom: 1px solid #d4d6d9;
display: flex;
justify-content: space-between;
z-index: 1; // 防止被panel body中的部分组件覆盖border
> li {
flex: 1;
display: flex;
height: $category-1-height;
justify-content: center;
border: 0 !important;
padding: 0 !important;
max-width: none;
align-items: stretch;
padding: 0 !important;
> a {
display: inline-block;
height: 100%;
width: 100%;
text-align: center;
padding: 2px 0 0 0 !important;
font-family: PingFangSC-Regular;
color: #84868c;
width: 100%;
--Tabs--line-active-fontSize: 14px;
--Tabs--line-fontSize: 14px;
--Tabs--line-hover-fontSize: 14px;
--Tabs--line-disabled-fontSize: 14px;
letter-spacing: 0;
font-weight: 400;
text-decoration: none;
border: none !important;
border-bottom: 2px solid #fff !important;
box-sizing: border-box;
display: flex !important;
justify-content: center !important;
align-items: center !important;
}
&.is-active > a {
color: $Editor-theme-color !important;
border-bottom: 2px solid $editor-active-color !important;
}
&:not(:last-child):after {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
content: '';
width: 1px;
height: 12px;
background-color: #d8d8d8;
}
&:not(:last-child):after {
position: absolute;
right: 0;
top: 50%;
transform: translateY(-50%);
content: '';
width: 1px;
height: 12px;
background-color: #d8d8d8;
}
}
}
// tab内容
&-cont {
height: calc(100% - 45px);
position: absolute;
width: 100%;
padding: 0;
overflow-y: overlay !important;
@include minScrollBar();
margin-top: -1px;
}
div.ae-switch-more-flex {
display: flex;
line-height: 25px;
}
}
}

View File

@@ -0,0 +1,244 @@
.editor-InputSearch-panel {
position: relative;
.editor-InputSearch-content {
position: absolute;
top: 36px;
left: 12px;
width: calc(100% - 24px);
min-height: 50px;
padding: 4px 12px;
background: #fff;
box-shadow: 0 4px 5px 0 rgba(62, 72, 99, 0.06),
0 1px 10px 0 rgba(62, 72, 99, 0.05), 0 2px 4px -1px rgba(62, 72, 99, 0.04);
border-radius: 4px;
z-index: 100;
visibility: visible;
transition: all 0.3s;
display: flex;
flex-direction: column;
justify-content: flex-start;
&.hidden-status {
visibility: hidden;
}
.search-history {
flex: 0 0 auto;
margin-bottom: 12px;
padding-bottom: 4px;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #080e1a;
line-height: 20px;
font-weight: 400;
&.has-border-bottom {
border-bottom: 1px solid #e6e6e8;
}
.header {
opacity: 0.5;
height: 32px;
line-height: 32px;
display: flex;
justify-content: space-between;
align-items: center;
.header-clear-icon {
cursor: pointer;
}
}
.history-cont {
position: relative;
margin: 0 -12px;
padding: 0 12px;
overflow: hidden;
// overflow-y: hidden;
display: flex;
flex-direction: column;
&.hasScrollBtn {
max-height: 192px;
&:hover {
overflow-y: auto;
padding: 0 6px 0 12px;
}
}
@include minScrollBar();
.history-item {
flex: 0 0 auto;
margin: 0 -12px;
padding: 0 12px;
opacity: 0.95;
height: 32px;
display: flex;
justify-content: space-between;
align-items: center;
&:hover {
opacity: 0.8;
background: #f0f0f0;
}
.history-keyword {
flex: 1 1 auto;
max-width: calc(100% - 16px);
color: #151a26;
user-select: none;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
cursor: pointer;
}
.delete-icon {
flex: 0 0 20px;
color: #080e1a;
display: flex;
justify-content: center;
align-items: center;
svg {
width: 12px;
height: 12px;
opacity: 0.5;
cursor: pointer;
&:hover {
fill: $Editor-theme-color;
}
}
}
}
}
}
.search-result-list {
position: relative;
flex: 0 0 auto;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #080e1a;
line-height: 20px;
font-weight: 400;
margin: 0 -12px;
padding: 0 12px;
max-height: 192px;
overflow: hidden;
&.hasScrollBtn {
max-height: 192px;
&:hover {
overflow-y: auto;
padding: 0 6px 0 12px;
}
}
@include minScrollBar();
.subRenderers-header {
// padding-right: 12px;
height: 32px;
line-height: 32px;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
svg {
width: 10px;
height: 10px;
opacity: 0.5;
transform: rotate(90deg);
transition: all 0.15s;
}
&.is-folded svg {
transform: rotate(270deg);
}
}
.multiple-subRenderers-list {
display: flex;
flex-direction: column;
}
.subRenderers-list {
display: flex;
flex-direction: column;
&.is-folded {
height: 0;
overflow: hidden;
}
.subRenderers-item {
flex: 0 0 32px;
padding-left: 12px;
line-height: 32px;
user-select: none;
cursor: pointer;
text-align: left;
opacity: 0.95;
&:hover {
background: #f0f0f0;
}
.is-keyword {
color: $Editor-theme-color;
}
}
// 仅有一个分类
&.only-one-tag .subRenderers-item {
margin: 0 -12px;
padding: 0 12px;
}
}
}
.tag-list {
flex: 0 0 auto;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #080e1a;
line-height: 20px;
font-weight: 400;
.header {
opacity: 0.5;
}
.tag-list-cont {
margin: 4px -4px;
display: flex;
flex-wrap: wrap;
justify-items: flex-start;
.tag-item {
margin: 4px;
flex: 0 0 auto;
padding: 2px 8px;
opacity: 0.95;
border: 1px solid #f2f3f3;
background-color: #f2f3f3;
border-radius: 2px;
cursor: pointer;
&:hover {
color: $Editor-theme-color;
}
}
}
}
}
}

View File

@@ -0,0 +1,31 @@
.ae-Editor-selectionCursor {
position: absolute;
background: rgba(#23b7e5, 0.2);
border: 1px solid rgba(#23b7e5, 1);
z-index: 999999;
}
.ae-Editor-list {
.ae-Editor-listItem,
.ae-Editor-eachItem {
position: relative !important;
&::after {
position: absolute;
content: '';
width: 100%;
height: 100%;
pointer-events: all;
background: rgba(22, 40, 60, 0.2) url(../static/indication.png) repeat;
z-index: 100;
top: 0;
left: 0;
cursor: not-allowed;
}
}
.ae-Editor-eachItem:first-child::after,
.cards-items > div:first-child > div::after {
display: none;
}
}

View File

@@ -0,0 +1,70 @@
// 快捷键展示面板
.shortcut-icon-btn {
display: inline-flex;
justify-content: center;
align-items: center;
color: $default-icon-color;
cursor: pointer;
&:hover {
color: $editor-active-color;
}
}
div.shortcut-list-modal {
padding: 24px;
.shortcut-modal-header {
display: flex;
flex-direction: row;
justify-content: space-between;
.shortcut-modal-title {
font-family: PingFangSC-Medium;
font-size: 16px;
color: #141a25;
letter-spacing: 0;
line-height: 22px;
font-weight: 500;
}
svg.shortcut-modal-icon {
width: 12px;
height: 12px;
}
}
.shortcut-modal-body {
padding-top: 20px;
.shortcut-list {
display: flex;
flex-direction: column;
.shortcut-item {
display: flex;
justify-content: space-between;
align-items: center;
font-size: 14px;
color: #828282;
letter-spacing: 0;
line-height: 30px;
.shortcut-letter {
margin: 0 2px;
display: inline-flex;
min-width: 12px;
height: 22px;
line-height: 22px;
border: 1px solid #1f38584d;
border-radius: 3px;
padding: 0 8px;
display: inline-flex;
justify-content: center;
align-items: center;
}
}
}
}
}

View File

@@ -0,0 +1,53 @@
/**
* table view 相关节点的编辑器扩展
*/
.ae-TableViewEditor {
position: relative;
&-rowLine {
position: absolute;
height: 7px;
left: 0;
right: 0;
cursor: row-resize;
user-select: none;
opacity: 0.5;
// &:hover {
// background: #4285f4;
// }
}
&-colLine {
position: absolute;
width: 7px;
top: 0;
bottom: 0;
cursor: col-resize;
user-select: none;
opacity: 0.5;
// &:hover {
// background: #4285f4;
// }
}
&-mergeIcon {
position: absolute;
bottom: -22px;
left: calc(50% - 3.5em);
color: #4285f4;
cursor: pointer;
}
td[data-selected] {
background: #cfe1fe;
}
// 这个按钮会导致单元格高宽发生变化
.ae-AddBtn {
position: absolute;
left: calc(50% - 10px);
top: calc(50% - 10px);
margin: 0;
}
}

View File

@@ -0,0 +1,30 @@
.ae-TargetName {
padding: 12px;
width: 15em;
&-list {
list-style: none;
padding: 0;
margin: 0;
user-select: none;
cursor: pointer;
}
&-node {
> span {
line-height: normal;
}
> a {
color: $text-color;
text-decoration: none;
}
&.is-active {
> a {
color: $primary;
}
}
&.is-hover {
> a {
color: $primary;
}
}
}
}

View File

@@ -0,0 +1,111 @@
// 页面设计器 3.0 UI
// 提示小气泡,带箭头
[editor-tooltip] {
position: relative;
// 默认右侧展示
&::after {
pointer-events: none;
left: calc(100% + 10px);
top: 50%;
transform: translateY(-50%);
position: absolute;
max-width: 300px;
padding: 4px 8px;
box-sizing: content-box;
content: attr(editor-tooltip);
font-family: PingFangSC-Regular;
font-size: 12px;
color: #fff;
text-align: center;
line-height: 20px;
font-weight: 400;
background: rgba(7, 12, 20, 0.85);
border: 1px solid rgba(7, 12, 20, 0.85);
border-radius: 4px;
box-shadow: 0 2px 8px 0 rgba(7, 12, 20, 0.12);
white-space: normal;
animation-fill-mode: both;
visibility: hidden;
z-index: 110; // 避免被组件搜索面板遮挡
white-space: nowrap;
}
// 默认右侧展示
&::before {
position: absolute;
content: '';
pointer-events: none;
left: calc(100% - 2px);
top: 50%;
transform: translateY(-50%);
width: 0;
margin: 0;
padding: 0;
box-sizing: content-box;
border: 6px solid rgba(7, 12, 20, 0.85);
border-color: transparent rgba(7, 12, 20, 0.85) transparent transparent;
visibility: hidden;
z-index: 100;
}
&:not(.is-disabled):hover::after,
&:not(.disabled):hover::after,
&:not(.is-disabled):hover::before,
&:not(.disabled):hover::before {
visibility: visible;
}
&.is-disabled:hover::after,
&.disabled:hover::after,
&.is-disabled:hover::before,
&.disabled:hover::before {
visibility: hidden !important;
}
&[tooltip-position='bottom']::after {
left: 50%;
top: calc(100% + 10px);
transform: translateX(-50%);
}
&[tooltip-position='bottom']::before {
left: 50%;
top: calc(100% - 2px);
transform: translateX(-50%);
border-color: transparent transparent rgba(7, 12, 20, 0.85) transparent;
}
&[tooltip-position='left']::after {
top: 50%;
right: calc(100% + 10px);
left: auto;
transform: translateY(-50%);
}
&[tooltip-position='left']::before {
top: 50%;
right: calc(100% - 2px);
left: auto;
transform: translateY(-50%);
border-color: transparent transparent transparent rgba(7, 12, 20, 0.85);
}
&[tooltip-position='top']::after {
left: 50%;
top: auto;
bottom: calc(100% + 9px);
transform: translateX(-50%);
}
&[tooltip-position='top']::before {
left: 50%;
top: auto;
bottom: calc(100% - 2px);
transform: translateX(-50%);
border-color: rgba(7, 12, 20, 0.85) transparent transparent transparent;
}
}

View File

@@ -0,0 +1,51 @@
// $Editor-btn-bg: #4285f4;
// $Editor-btn-border: darken($Editor-btn-bg, 5%);
// $Editor-btn-color: $white;
$body-bg: #f7f7f9;
// 编辑器内容区主题色
$Editor-theme: #205dd9; // #2468F2; // #4285f4;
$Editor-hlbox-bg: rgba($Editor-theme, 0.75);
$Editor-hlbox--onActive-bg: $Editor-theme; // #4285f4;
$Editor-hlbox--onActiveConfig-bg: #f39000;
$Editor-rgion-bg: $Editor-theme; // #23b7e5;
$Editor-theme-color: #2468f2;
$Editor-text-color: #141a25;
// 右侧面板
$Editor-right-panel-color: #151b26;
$Editor-right-panel-border-color: #e8e9eb;
$Editor-right-panel-font-size: 12px;
$Editor-right-panel-radios-line-height: 21px;
$Editor-right-panel-line-height: 1.6; // 32px
$Editor-aside-width: 260px;
$Editor-borderRadius: 5px;
// 页面设计器 3.0 UI 基础色调
$editor-default-color: #151b26; // 默认的字体色
$editor-active-color: #2468f2;
$editor-hover-color: #5086f5;
$editor-danger-color: #ff6966;
$editor-border-color: #e8e9eb; // 默认的边框色
$default-icon-color: #84868c; // 默认的icon颜色
$active-bg-color: #e6f0ff; // 激活态的背景色
$hover-bg-color: #f7f7f9; // 激活态的背景色
$disabled-color: #b8babf; // 禁用文字颜色
$disabled-bg-color: #f7f7f9; // 禁用背景颜色
$default-bg-color: #f7f7f9; // 默认背景颜色
// 修复 amis button 字体 14px问题
.editor-right-panel {
--button-size-md-font-size: 12px;
--button-size-default-font-size: 12px;
}
// 空容器的占位最小高度
$Editor-placehoder-height: 34px;

View File

@@ -0,0 +1,10 @@
.ae-ButtonLevel-MenuTpl {
height: 32px;
display: flex;
align-items: center;
button {
width: 100%;
height: 26px;
padding: 0;
}
}

View File

@@ -0,0 +1,166 @@
.ae-ApiControl {
position: relative;
&.border {
padding: #{px2rem(10px)};
border-radius: $Editor-borderRadius;
border: 1px solid #e6e6e8;
}
&-header {
@include flexBox();
height: #{px2rem(24px)};
position: absolute;
right: 0;
top: px2rem(-26px);
}
&-content {
@include flexBox();
align-items: stretch;
.ae-ApiControl-input {
background: var(--Form-input-bg);
border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
border-radius: var(--Form-input-borderRadius);
line-height: var(--Form-input-lineHeight);
padding: var(--Form-input-paddingY) var(--Form-input-paddingX);
font-size: var(--Form-input-fontSize);
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
flex: 1;
margin-right: #{px2rem(10px)};
// max-width: calc(100% - 52px);
height: var(--Button--sm-height);
& > input {
flex-basis: 5rem;
flex-grow: 1;
outline: 0;
background: transparent;
border: 0;
color: var(--Form-input-color);
width: 100%;
height: calc(var(--Form-input-lineHeight) * var(--Form-input-fontSize));
}
.ae-ApiControl-setting-button {
height: unset;
}
}
}
&-highlight {
width: 100%;
max-width: calc(100% - var(--fontSizeLg));
display: flex;
flex-flow: row nowrap;
justify-content: flex-start;
align-items: center;
&-tag {
display: inline-block;
background: #007bff;
padding: 3px 5px;
margin: 0 1px;
color: #fff;
font-size: 12px;
line-height: 14px;
height: 20px;
border-radius: #{px2rem(4px)};
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
max-width: 90%;
}
}
&-icon {
width: var(--fontSizeLg) !important;
height: var(--fontSizeLg) !important;
}
&-dialog {
&-body {
margin: #{px2rem(16px)} 0 #{px2rem(24px)};
.ae-ApiControl-form {
@include panel-sm-content();
.ae-ApiControl-tabContent {
max-height: 560px;
overflow-x: hidden;
overflow-y: auto;
border-bottom: 1px solid var(--borderColor);
}
.ae-ApiControl-title {
border-left: none;
font-weight: bold;
color: #333;
line-height: #{px2rem(20px)};
padding-left: 0;
}
}
}
}
&-picker {
&-dialog {
&-content {
height: 500px;
max-height: 500px;
overflow-x: hidden;
overflow-y: auto;
}
}
}
}
.ae-ApiControl-PickerBtn {
padding: 0;
&:hover > svg path {
stroke: var(--primary);
color: var(--primary);
}
}
.ae-AdaptorControl,
.ae-FunctionEditorControl {
&-func {
&-header,
&-footer {
padding-left: 8px;
font-size: 12px;
}
&-header {
margin-bottom: -20px;
}
&-footer {
margin-top: -20px;
}
&-arg {
padding: 0;
height: auto;
font-size: 12px;
vertical-align: baseline;
color: var(--primary);
}
&-editor {
margin-bottom: 0;
.cxd-EditorControl {
padding-top: 20px;
padding-bottom: 20px;
}
.cxd-MonacoEditor-placeholder {
line-height: 18px;
font-size: 12px;
}
}
}
&-desc-tooltip {
max-width: 500px;
}
}

View File

@@ -0,0 +1,47 @@
.ae-BadgeControl {
&-switch {
@include flexBox();
margin-bottom: var(--gap-base);
}
&-form {
@include panel-group-bg();
}
&-combo {
background: #fafafa;
padding: var(--gap-sm);
border: 1px dashed transparent;
border-radius: #{$Editor-borderRadius};
&:hover {
border-color: #{$Editor-theme-color};
}
}
&-buttonGroup {
> div {
align-items: center;
justify-content: space-between;
> div {
flex-grow: 0 !important;
min-width: auto !important;
}
}
}
&-position {
&--clockwise {
> i {
transform: rotate(45deg);
}
}
&--antiClockwise {
> i {
transform: rotate(-45deg);
}
}
}
}

View File

@@ -0,0 +1,174 @@
/**
* @file crud2-control.scss
* @desc CRUD2相关控件及样式
*/
.ae-CRUDConfigControl {
margin-bottom: var(--Form-item-gap);
&-list {
margin: 0;
padding: 0;
border-radius: 4px;
border: 1px solid #e8e9eb;
padding-top: 3px;
padding-bottom: 3px;
&-item {
display: flex;
align-items: center;
justify-content: space-between;
height: 30px;
padding: 0 var(--gap-sm);
&.is-draggable:hover {
background-color: #f9f9f9;
cursor: move;
}
&-dragger {
cursor: move;
margin: 0 var(--gap-sm) 0 0;
color: rgba(232, 233, 235, 1);
}
&-info {
display: flex;
align-items: center;
justify-content: flex-start;
max-width: 140px;
& > span {
max-width: 100%;
min-width: 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
font-weight: 500;
color: #151b26;
}
}
&-actions {
display: flex;
align-items: center;
justify-content: space-between;
margin-right: var(--gap-xs);
& > button {
color: #151b26;
margin: 0;
padding-left: 0;
padding-right: 0;
&:not(:last-child) {
margin-right: var(--gap-sm);
}
& > svg {
width: px2rem(16px);
height: px2rem(16px);
&.icon-share-link {
width: px2rem(14px);
height: px2rem(14px);
}
}
}
}
&-tag {
cursor: auto;
background-color: transparent;
border: 1px solid #2468f2;
color: #2468f2;
border-radius: 2px;
line-height: #{px2rem(18px)};
height: #{px2rem(20px)};
margin-right: #{px2rem(8px)};
scale: 0.9;
max-width: 80px;
&--cascading {
color: #531dab;
border-color: #531dab;
}
}
}
}
&-placeholder {
color: #b4b6ba;
padding-top: px2rem(10px);
text-align: center;
vertical-align: middle;
}
&-header {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
& > span:nth-child(1) {
margin-bottom: 0;
}
&-actions {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
&-switch {
margin-right: var(--gap-sm);
}
&-divider {
width: 1px;
height: 16px;
margin: 0 4px;
background-color: #dfdfdf;
}
}
}
&-dropdown {
/* margin-bottom: var(--Form-mode-default-labelGap); */
& > button {
color: #4c5664;
margin: 0;
padding-left: 0;
padding-right: 0;
font-weight: bold;
& > svg {
width: px2rem(14px);
height: px2rem(14px);
margin-right: var(--gap-xs);
}
}
}
&-footer {
display: flex;
flex-flow: row-reverse nowrap;
}
}
.ae-CRUDConfigControl-modal {
&-btn-loading {
--Spinner-color: #fff;
}
}
.ae-FieldSetting-footer {
position: absolute;
right: 0;
bottom: 35px;
&--form {
bottom: 55px;
}
}

View File

@@ -0,0 +1,98 @@
.ae-DataBindingList {
display: flex;
flex-flow: column nowrap;
justify-content: flex-start;
align-items: stretch;
height: px2rem(350px);
border: 1px solid rgba(232, 233, 235, 1);
border-radius: px2rem(4px);
overflow: scroll;
&-hint {
width: 100%;
line-height: 3;
text-align: center;
color: var(--text--muted-color);
}
&-searchBox {
width: auto;
padding: #{px2rem(12px)};
& > div {
width: 100% !important;
}
}
&-body {
@include minScrollBar();
flex: 1;
overflow-x: hidden;
overflow-y: auto;
}
&-collapse {
border: none;
background: #f7f7f9;
&-title {
display: block !important;
padding: #{px2rem(5px)} #{px2rem(12px)};
background: transparent !important;
font-size: var(--fontSizeSm);
font-weight: bold;
position: relative;
.expandIcon {
font-size: var(--fontSizeSm);
line-height: var(--fontSizeXl);
transform-origin: #{px2rem(7px)} #{px2rem(9px)};
transition: transform 0.2s;
position: absolute;
right: #{px2rem(6px)};
margin-top: 3px;
}
}
&-body {
background: #fff;
color: #303540;
> div {
padding: 5px 0;
}
}
}
&-item {
display: flex;
flex-direction: row;
align-items: baseline;
cursor: pointer;
padding: 0 var(--gap-xl); // 和标题对齐不好看,加个缩进
height: px2rem(32px);
line-height: px2rem(32px);
color: #303540;
font-weight: 400;
span {
flex-grow: 1;
}
&:hover {
background: var(--Tree-item-onHover-bg);
}
&.is-active {
color: var(--primary);
background: var(--Tree-item-onHover-bg);
}
}
&-empty {
color: #b4b6ba;
padding-top: px2rem(10px);
text-align: center;
vertical-align: middle;
}
}

View File

@@ -0,0 +1,117 @@
.ae-DateShortCutControl {
&-header {
@include flexBox();
width: 100%;
height: #{px2rem(24px)};
margin-bottom: #{px2rem(5px)};
label {
margin-right: #{px2rem(16px)};
font-size: #{px2rem(12px)};
color: #5e626a;
}
&-icon {
flex: 1;
text-align: right;
}
}
&-footer {
margin-top: #{px2rem(10px)};
&-btn {
display: inline-block;
width: 50%;
padding-right: #{px2rem(5px)};
&:last-child {
padding-left: #{px2rem(5px)};
padding-right: 0;
}
> div {
width: 100%;
}
button {
width: 100%;
}
ul {
width: 100%;
min-width: unset;
}
}
}
&-content {
@include flexBox(column, flex-start);
@include minScrollBar();
margin: 0;
padding: #{px2rem(3px)} 0;
border-radius: $Editor-borderRadius;
position: relative;
background: #f7f7f9;
&::before {
content: '';
position: absolute;
top: -6px;
left: 10px;
border-left: 9px solid transparent;
border-right: 9px solid transparent;
border-bottom: 9px solid #f7f7f9;
}
.ae-DateShortCutControlItem {
@include flexBox();
width: 100%;
padding: #{px2rem(5px)} #{px2rem(10px)};
min-height: #{px2rem(38px)};
align-items: baseline;
&:hover {
background: #e9effd;
}
&-dragging {
height: 0 !important;
padding: 0;
border-top: 2px solid var(--primary);
overflow: hidden;
background: #e9effd;
}
&-dragBar {
display: inline-flex;
margin-left: 0;
margin-right: var(--gap-sm);
margin-top: -4px;
cursor: move;
color: #8c8c8c;
}
&-content {
display: inline-block;
flex-grow: 1;
max-width: calc(100% - 32px);
text-align: left;
padding: 0 #{px2rem(5px)};
&-label {
line-height: var(--input-size-default-height);
}
}
&-close {
cursor: pointer;
}
}
}
&-empty {
@include flexBox(column, center);
height: #{px2rem(38px)};
}
}

View File

@@ -0,0 +1,515 @@
.ae-event-control {
font-size: #{px2rem(12px)};
&-header-oldentry {
height: 100px;
.add-event-dropdown {
top: 47px;
width: 100%;
}
}
&-header {
width: 100%;
padding: #{px2rem(12px)};
background: #fff;
z-index: 1;
margin-top: 1px;
.add-event-dropdown {
button {
top: 44px;
width: 100%;
color: #2468f2;
border: #{px2rem(1px)} solid #2468f2;
border-radius: #{px2rem(4px)};
span {
display: none;
}
}
.add-event-dropdown-global-event {
position: relative;
&::after {
position: absolute;
content: '全局事件';
display: flex;
align-items: center;
padding: 0 6px;
right: 4px;
top: 4px;
bottom: 4px;
font-size: 12px;
color: #fff;
background-color: #2468f2;
border-radius: 4px;
transform: scale(0.8);
transform-origin: center;
}
}
}
ul {
width: 100%;
}
}
&-header-m {
margin-top: #{px2rem(45px)} !important;
}
&-content-m {
margin-top: #{px2rem(97px)} !important;
}
&-content-l {
margin-top: #{px2rem(150px)} !important;
}
&-content {
padding: 0;
margin-top: 0;
.icon {
cursor: pointer;
color: #30343f;
width: #{px2rem(16px)};
height: #{px2rem(16px)};
&:hover {
color: #2468f2;
}
}
.event-item {
display: flex;
flex-direction: column;
&-header {
display: flex;
flex-direction: row;
justify-content: space-between;
background: #f2f2f4;
border: #{px2rem(1px)} solid #d4d6d9;
border-left: none;
border-right: none;
padding: 0 12px;
font-weight: 500;
align-items: center;
height: #{px2rem(32px)};
&-toolbar {
display: flex;
align-items: center;
& > div {
margin-right: #{px2rem(12px)};
&:last-child {
margin-right: 0;
}
}
}
.event-label {
display: flex;
align-items: center;
.event-label-key {
flex: 1;
max-width: 100px;
overflow: hidden;
text-overflow: ellipsis;
}
.global-event-tip {
width: 48px;
display: flex;
> span {
transform: scale(0.7);
transform-origin: left;
background-color: #2468f2;
border-radius: 4px;
font-size: 12px;
color: #fff;
padding: 4px 6px;
flex-shrink: 0;
text-align: center;
}
}
}
}
&-desc {
margin: #{px2rem(12px)};
color: #84868c;
button > svg {
width: #{px2rem(12px)};
height: #{px2rem(12px)};
}
}
&:last-child {
.event-item-header {
border-bottom: #{px2rem(1px)} solid #d4d6d9;
}
}
.no-bd-btm {
border-bottom: none;
}
.item-content {
@include flexBox(column, flex-start);
@include minScrollBar();
margin: 0;
padding-left: #{px2rem(12px)};
padding-right: #{px2rem(12px)};
padding-top: #{px2rem(12px)};
background: #ffffff;
list-style-type: none;
.ae-option-control-item {
background: #f7f7f9;
width: 100%;
padding: #{px2rem(8px)};
margin-bottom: #{px2rem(12px)};
border-radius: #{px2rem(4px)};
border: #{px2rem(1px)} solid transparent;
&:hover {
border: #{px2rem(1px)} solid #2468f2;
}
.action-control-header {
@include flexBox(row, space-between);
&-left,
&-right {
color: #303540;
display: flex;
align-items: center;
.icon {
color: #84868c;
&:hover {
color: #2468f2;
}
}
.action-item-actiontype {
max-width: #{px2rem(144px)};
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
&-right {
& > div {
margin-right: #{px2rem(8px)};
&:last-child {
margin-right: 0;
}
}
}
}
.action-control-content {
color: #84868c;
letter-spacing: 0;
line-height: #{px2rem(20px)};
font-weight: 400;
margin-top: #{px2rem(4px)};
padding-left: #{px2rem(20px)};
max-width: #{px2rem(224px)};
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
.action-desc {
display: flex;
.desc-tag {
max-width: 133px;
color: #2468f2;
display: inline-block;
margin-bottom: -5px;
}
.variable-left {
margin-left: #{px2rem(4px)};
}
.variable-right {
margin-right: #{px2rem(4px)};
}
.component-action-tag {
background-color: rgb(82, 142, 255);
display: inline-block;
color: #fff;
padding: 0 5px;
border-radius: 3px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 100%;
}
}
}
&--dragging {
height: 0 !important;
padding: 0;
border-top: 2px solid var(--primary);
overflow: hidden;
background: #e9effd;
}
&-dragBar {
display: inline-flex;
margin-left: 0;
line-height: 1;
margin-right: #{px2rem(4px)};
cursor: move;
color: #8c8c8c;
}
&-action {
padding-left: 0;
padding-right: 0;
&:not(:last-child) {
margin-right: #{px2rem(10px)};
}
&:hover {
& > svg,
& > svg path {
fill: var(--primary);
}
}
& > svg,
& > svg path {
fill: var(--text--muted-color);
}
}
}
}
}
.item-footer {
@include flexBox(row, flex-end);
padding: #{px2rem(5px)};
border-bottom-right-radius: $Editor-borderRadius;
border-bottom-left-radius: $Editor-borderRadius;
border-top: 1px solid #f2f7f3;
box-shadow: 0 0 5px rgb(8 14 26 / 6%);
clip-path: inset(-5px 0px 0px 0px);
}
}
.no-bd-btm {
border-bottom: none;
}
&-placeholder {
color: #84868c;
line-height: #{px2rem(24px)};
background: url('../static/empty.png');
text-align: center;
width: #{px2rem(124px)};
height: 100%;
padding-top: #{px2rem(300px)};
background-repeat: no-repeat;
background-size: #{px2rem(90px)} #{px2rem(90px)};
background-position: 50% 80%;
margin: 0 auto;
}
&-action-placeholder {
width: 100%;
min-height: #{px2rem(320px)};
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #84868c;
line-height: #{px2rem(24px)};
&.no-settings {
min-height: #{px2rem(160px)};
}
&-img {
width: #{px2rem(64px)};
height: #{px2rem(64px)};
background: url('../static/empty.png');
background-repeat: no-repeat;
background-size: 100%;
background-position: center;
}
}
&-action-js-editor {
max-width: #{px2rem(780px)};
}
}
.ae-action-config-dialog {
*:not(svg) {
font-size: 12px;
}
.common-actions {
position: absolute;
width: 80%;
top: #{px2rem(-41px)};
left: #{px2rem(128px)};
.common-actions-label {
line-height: #{px2rem(24px)};
margin-right: 4px;
}
}
.action-config-panel {
background: #ffffff;
border: 1px solid #e8e9eb;
border-radius: 4px;
height: #{px2rem(420px)};
max-height: #{px2rem(420px)};
width: 100%;
@include panel-sm-content();
.action-panel-title {
margin: 16px 16px 12px;
line-height: 18px;
font-weight: 500;
}
.action-tree-search {
margin: 0 16px 8px;
&-input {
& > div {
background: url('../static/search.svg') no-repeat right 12px center;
padding-right: 28px;
}
}
}
.action-search-list {
.search-result-label:hover {
background: var(--Tree-item-onHover-bg-pure);
}
}
.left-panel {
height: 100%;
padding-right: 0px;
border-right: 1px solid #e8e9eb;
max-width: #{px2rem(200px)};
.action-tree {
height: calc(100% - 88px);
border-top: 1px solid #e8e9eb;
.action-tree-control {
& > div {
max-height: 100%;
}
height: 100%;
max-height: 100%;
padding: 0;
& > div > div {
margin-top: 82px;
height: 64px;
background: url('../static/empty.png') center/contain no-repeat;
color: transparent;
}
}
.action-tree-control {
ul {
li {
& > div {
flex-direction: row-reverse;
padding-left: 16px;
height: 32px;
line-height: 32px;
span .is-matched {
color: #2468f2;
}
svg {
transform: rotate(180deg);
}
.is-folded > svg {
transform: rotate(0);
}
}
& > ul {
margin-left: 0;
li > div {
padding-left: #{px2rem(32px)};
}
li > div {
&:hover {
background-color: var(--Tree-item-onHover-bg-pure);
}
}
& > li .is-checked {
background: var(--Tree-item-onChekced-bg);
&:hover {
background-color: var(--Tree-item-onChekced-bg) !important;
}
}
}
}
li .is-checked::before {
content: '';
background: url('../static/check.svg') no-repeat center center;
height: var(--Tree-itemHeight);
line-height: var(--Tree-itemHeight);
width: 15px;
margin-right: 16px;
}
}
}
}
}
.right-panel {
overflow-y: auto;
height: 100%;
padding: 0 8px 0 0;
.action-desc {
margin-left: 16px;
color: var(--Form-item-color);
}
.cmpt-action-select,
.action-btn-width {
width: auto;
min-width: #{px2rem(320px)};
}
&-container {
// max-height: calc(100% - 46px);
margin: 0px 16px 16px;
.action-panel-title {
margin-left: 0;
}
.action-exec-on {
width: 100%;
}
}
.ae-BaseRemark {
margin-left: 0;
margin-top: 5px;
}
.event-action-combo-item {
.event-action-combo {
max-width: 380px;
.#{$ns}Form-row {
width: 380px;
}
.flex-1 {
max-width: 170px;
}
}
width: 380px;
}
}
}
}
.ae-event-item-header-tip {
background: #070c14d9 !important;
box-shadow: 0 px2rem(2px) px2rem(8px) 0 rgba(7, 12, 20, 0.12);
border: none;
div {
font-size: 12px;
color: #fff;
}
& > div {
&:after {
border-top-color: #070c14d9 !important;
border-bottom-color: #070c14d9 !important;
}
}
}
.ae-action-relation-panel {
width: 255px;
max-height: 360px;
overflow: auto;
.variables-select-panel-tree {
*:not(svg) {
font-size: 12px;
}
}
}

View File

@@ -0,0 +1,51 @@
.ae-ExpressionFormulaControl {
background-color: #fff;
.btn-configured,
.btn-set-expression {
width: 100%;
font-size: 12px;
}
.btn-configured {
position: relative;
justify-content: left;
padding: var(--button-size-sm-paddingTop) 32px
var(--button-size-sm-paddingBottom) 4px;
line-height: var(--button-size-sm-lineHeight);
height: var(--button-size-sm-height);
& > span {
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
background-color: #007bff;
padding: 4px 8px;
border-radius: 4px;
color: #fff;
}
.icon {
position: absolute;
top: 0;
bottom: 0;
right: var(--button-size-default-paddingRight);
margin: auto 0 !important;
width: 12px;
height: 12px;
fill: var(--Form-input-clearBtn-color);
&:hover {
fill: var(--Form-input-clearBtn-color-onHover);
}
}
}
}
.btn-configured-tooltip {
font-size: 12px;
width: 200px;
min-height: 40px;
.CodeMirror {
height: auto;
}
}

View File

@@ -0,0 +1,94 @@
.ae-FeatureControl {
&-features {
margin: 0;
padding: 0;
}
&Item {
display: flex;
height: 30px;
margin-bottom: 12px;
position: relative;
align-items: center;
:not(:last-child) {
margin-right: px2rem(8px);
}
&-content {
flex-grow: 1;
position: relative;
display: flex;
align-items: center;
justify-content: flex-start;
& > .ae-FeatureControlItem-go {
width: 100%;
}
}
&-label {
flex-grow: 1;
height: px2rem(32px);
display: block;
line-height: px2rem(32px);
padding: 0 px2rem(8px);
border: var(--Form-input-borderWidth) solid var(--Form-input-borderColor);
border-radius: var(--Form-input-borderRadius);
text-align: center;
}
&-action {
padding: 0 6px;
svg {
width: px2rem(16px);
height: px2rem(16px);
fill: #000;
}
&:hover {
svg {
fill: $Editor-theme;
}
}
}
&-dragBar {
position: absolute;
z-index: 2;
top: 50%;
transform: translateY(-50%);
left: 3px;
cursor: move;
& > svg {
fill: #e7e7e7;
color: #e7e7e7;
}
}
&:hover &-dragBar {
& > svg {
color: transparent;
fill: transparent;
}
}
}
&-action {
display: block;
width: 100%;
&--btn {
width: 100%;
border-color: $Editor-theme;
color: $Editor-theme;
}
&--menus {
/* width: calc(100% - 12px);
margin-left: 6px; */
text-align: center;
}
}
}

View File

@@ -0,0 +1,39 @@
.ap-Flex {
background: #ececec;
margin: 0;
padding: 6px 10px;
.ap-Flex-label {
font-size: 12px;
text-align: right;
}
.ap-Flex-item {
margin-top: 4px;
> .icon-ButtonList {
display: flex;
align-items: stretch;
justify-content: stretch;
> button {
flex: 1 1 auto;
display: flex;
justify-content: center;
align-items: center;
}
}
svg.scaleX-90 {
transform: rotate(90deg);
}
svg.scaleX-180 {
transform: rotate(180deg);
}
svg.scaleX-270 {
transform: rotate(270deg);
}
}
}

View File

@@ -0,0 +1,184 @@
/* 表单项配置面板 */
.ae-formItemControl {
&-label-tip {
display: inline-block;
}
div[data-role='form-item'] {
&.ae-ExtendMore {
> label {
flex: 0;
padding: 0;
}
}
> label {
line-height: 32px;
margin: 0;
padding-top: 0;
> span {
display: inline;
}
}
}
.ae-InputRangeValue-input-group {
&-delimiter {
border: none;
padding-left: 5px;
padding-right: 5px;
line-height: 30px;
}
}
.ae-sub-content {
@include extend-more();
margin-bottom: var(--Form-item-gap);
&.is-bottom {
margin-bottom: 0;
}
}
}
/* 面板 Collapse 样式覆写,为了提高优先级,用顶层类包裹 */
.ae-Outline-panel,
.ae-Settings-content {
.ae-formItemControl {
& > div:last-child {
.ae-formItemControl-header {
border-bottom: 1px solid #e5e5e5;
}
&.is-active {
.ae-formItemControl-header {
border-bottom: none;
}
}
}
div.ae-formItemControl-header.ae-Collapse-header {
width: 100%;
padding: #{px2rem(6px)} #{px2rem(12px)};
justify-content: space-between;
align-items: unset;
border-top: 1px solid #e5e5e5;
background: #f2f2f4;
border-radius: 0 !important;
@include collapse-header-text();
i {
transform-origin: px2rem(7px) px2rem(5px);
margin-top: px2rem(5px);
transition: transform 0.1s linear;
}
}
&-body {
--Form-item-gap: 12px;
padding: var(--gap-base);
> div:first-child {
padding-top: 0;
}
.fix-icon-picker-overflow {
input {
width: 0;
}
a {
display: inline-block;
position: relative;
left: -10px;
}
}
}
}
}
/* 状态配置控件 */
.ae-StatusControl {
position: relative;
&-switch {
position: absolute;
top: px2rem(-24px);
right: 0;
}
&-content {
padding-top: px2rem(12px);
> div {
@include extend-more();
}
}
}
/* 代码块 */
.ae-Code {
background: #ebf5ff;
color: #008dcd;
padding: #{px2rem(3px)} #{$Editor-borderRadius};
border-radius: #{px2rem(3px)};
}
.ae-ExtendMore {
@include extend-more();
}
/* 加强状态按钮,后续添加在AMIS中 */
.ae-Button--enhance {
color: #{$Editor-theme-color};
border: 1px solid #{$Editor-theme-color};
&:hover,
&:focus {
color: #4f86f4 !important;
border-color: #4f86f4 !important;
}
}
/* combo 组件样式调整, 后续amis中combo支持新增button自定义就可免去样式覆盖了*/
.ae-Combo-items {
@include extend-more();
margin-top: px2rem(8px);
> div {
background: inherit;
+ div {
margin-top: px2rem(12px) !important;
}
}
}
/* 设置面板 combo 多行模式样式调整 */
.cxd-Combo--ver:not(.cxd-Combo--noBorder) > .ae-Combo-items {
margin: px2rem(8px) 0;
padding: 0;
}
.cxd-Combo--ver:not(.cxd-Combo--noBorder) > .ae-Combo-items > .cxd-Combo-item {
margin: 0;
border: none;
&:hover {
border: none !important;
}
}
.ae-Combo-items + div {
padding-left: 0px !important;
margin-bottom: px2rem(12px);
> button,
> button:hover {
color: #528eff !important;
background: #ffffff !important;
border-color: #528eff !important;
width: 100%;
height: px2rem(32px);
}
}
.form-item-gap {
margin-bottom: var(--Form-item-gap);
}

View File

@@ -0,0 +1,216 @@
div.ae-editor-FormulaControl {
position: relative;
@include flexBox();
align-items: stretch;
max-width: 100%;
}
.ae-editor-FormulaControl {
& > &-buttonWrapper {
height: auto;
}
& > &-buttonWrapper > &-button {
height: 100%;
background-color: #f7f7f9;
padding: 4px 8px;
border-radius: 0 var(--button-size-sm-top-left-border-radius)
var(--button-size-sm-bottom-right-border-radius) 0;
border-left: 0;
&:not(:disabled):not(.is-disabled):hover {
border-color: #e6f0ff;
background-color: #e6f0ff;
border-left-width: 0;
}
&:not(:disabled):not(.is-disabled):active {
border-left-width: 1;
transition: var(--Button-transition);
}
}
& &-input {
flex: 1;
height: 32px;
border-radius: var(--input-default-default-top-left-border-radius) 0 0
var(--input-default-default-bottom-left-border-radius);
max-width: calc(100% - 29px); // 避免表达式内容太长撑开面板
&.is-clearable {
padding-right: 30px; // 避免间隙过大
}
svg {
width: 12px;
height: 12px;
}
}
&-select-style {
> div {
border-radius: var(--Form-select-borderRadius) 0 0
var(--Form-select-borderRadius);
}
}
// 当有提示时底部增加点外边距
&.is-has-tooltip {
margin-bottom: 5px;
}
// 底部提示
.desc-msg {
visibility: hidden;
position: absolute;
bottom: 0;
left: 0;
transform-origin: left top;
transform: translateY(90%) scale(0.8);
font-size: 10px;
max-width: 100%;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
&.info-msg {
color: $editor-active-color; // $default-icon-color;
}
&.error-msg {
visibility: visible; // 错误类提示 固定展示
color: #f33e3e;
transform: translateY(90%) scale(0.9);
}
}
&:hover .desc-msg {
visibility: visible; // 普通提示类信息,hover时展示
}
&-custom-renderer {
width: calc(100% - 35px);
flex: 1 1 auto;
border: none;
padding: 0;
> div {
min-height: 32px;
}
> div,
&:not(.border-wrapper) > div > div {
border-radius: var(--input-default-default-top-left-border-radius) 0 0
var(--input-default-default-bottom-left-border-radius);
}
&.border-wrapper {
padding: 2px 4px;
border: 1px dashed #e8e9eb;
}
}
&-ResultBox {
position: relative;
display: flex;
flex: 1;
overflow: hidden;
border: 1px solid var(--Form-input-borderColor);
border-radius: var(--input-default-default-top-left-border-radius) 0 0
var(--input-default-default-bottom-left-border-radius);
background: var(--Form-input-bg);
font-size: var(--Form-input-fontSize);
padding: 0 8px;
&::placeholder {
color: var(--Form-input-placeholderColor);
}
&:hover {
border-color: var(--Form-input-onHover-borderColor);
}
&-wrapper {
flex: 1 1;
width: 0px; // 通过flex-grow 展开宽度
border-radius: var(--Form-input-borderRadius);
}
&-editor {
& > .CodeMirror {
height: 100%;
color: var(--Form-input-color);
font-family: inherit;
// span[class^='cm-'] {
// color: var(--input-default-default-color);
// }
// 解决上下 pre标签中表达式浮层遮挡问题
.CodeMirror-measure + div {
z-index: inherit !important;
}
pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
z-index: initial;
}
.CodeMirror-sizer {
min-height: 30px !important;
}
.CodeMirror-hscrollbar {
display: none !important;
}
.CodeMirror-scrollbar-filler {
display: none !important;
}
.CodeMirror-vscrollbar {
display: none !important;
}
.CodeMirror-scroll {
overflow: hidden !important;
}
.CodeMirror-lines {
line-height: 20px;
padding: 5px 0;
}
}
}
.cm-expression {
background: #007bff;
padding: 0px 5px;
margin: 0 1px;
color: #fff;
font-size: 12px;
border-radius: 4px;
}
}
.input-clear-icon {
position: absolute;
top: 0;
bottom: 0;
right: 8px;
margin: auto;
height: 14px;
fill: var(--Form-input-clearBtn-color);
cursor: pointer;
&:hover {
fill: var(--Form-input-clearBtn-color-onHover);
}
}
&-icon {
top: 0 !important;
font-size: #{px2rem(14px)};
&:not(:last-child) {
margin-right: var(--fontSizeSm);
}
&.is-filled {
fill: var(--primary);
color: var(--primary);
}
}
}

View File

@@ -0,0 +1,63 @@
.ae-GlobalVarPanel {
display: flex;
flex-direction: column;
height: 100%;
> .panel-header {
flex-shrink: 0;
}
}
.ae-GlobalVarManager {
border-top: 1px solid #e8e9eb;
padding: 12px;
flex: 1;
min-height: 0;
overflow: auto;
@include minScrollBar();
& > ul {
list-style: none;
margin: 0;
padding: 0;
}
&-empty {
color: #b4b6ba;
text-align: center;
vertical-align: middle;
}
&-AddBtn {
margin-top: 12px;
// position: sticky;
// bottom: 0;
}
}
.ae-GlobalVarItem {
padding: 0;
display: flex;
height: 34px;
line-height: 32px;
margin: 0 0 12px;
&-info {
flex: 1;
overflow: hidden;
text-overflow: ellipsis;
border-radius: 4px;
padding: 0 10px;
border: 1px solid #e8e9eb;
margin-right: 10px;
}
&-actions {
width: 64px;
flex-shrink: 0;
& > button {
border: 0 !important;
}
}
}

View File

@@ -0,0 +1,35 @@
.ae-GoConfig {
height: 32px;
line-height: 32px;
position: relative;
background-color: #fff;
text-align: center;
font-size: $Editor-right-panel-font-size;
border: 1px solid #e6e6e8;
border-radius: $Editor-borderRadius;
&-trigger {
display: none;
width: 100%;
height: 100%;
position: absolute;
top: 0;
left: 0;
cursor: pointer;
color: #fff;
background-color: rgba($color: #000000, $alpha: 0.55);
}
&:hover {
border: none;
&.ae-FeatureControlItem-go {
color: transparent;
}
.ae-GoConfig-trigger {
display: block;
border-radius: $Editor-borderRadius;
}
}
}

View File

@@ -0,0 +1,27 @@
.icon-ButtonList {
button {
display: inline-flex;
align-items: center;
justify-content: center;
width: 42px;
background-color: #fff !important;
box-sizing: border-box;
svg {
margin: 0 !important;
padding: 0 !important;
width: 20px;
min-height: 20px;
}
&.is-active {
svg {
fill: $Editor-theme-color;
color: $Editor-theme-color;
}
i {
color: $Editor-theme-color;
}
}
}
}

View File

@@ -0,0 +1,13 @@
.inputFile-apiControl {
margin-top: 30px;
.ApiControl {
margin-bottom: 0;
&-header {
position: absolute;
right: 0;
top: -25px;
}
}
}

View File

@@ -0,0 +1,46 @@
.ae-KeyValMapControl-wrapper {
.ae-KeyValMapControlItem-Main {
width: 100%;
display: flex;
justify-content: space-between;
}
.ae-KeyValMapControlItem-flex {
width: 100%;
}
.ae-KeyValMapControlItem-input {
flex: 1;
margin-right: 10px;
}
.ae-ExtendMore {
position: relative;
.cxd-Container-body {
margin-top: 20px;
}
}
.ae-KeyValMapControlItem-closeBtn {
position: absolute;
top: 0;
right: 0;
font-size: 18px;
color: #151b26;
padding-right: 0.625rem;
z-index: 1;
}
.ae-KeyValMapControlItem-EditLabel {
margin-top: 10px;
}
.ae-KeyValMapControl-footer > * {
width: calc(50% - 0.375rem);
}
.ae-KeyValMapControl-footer > *:first-child {
margin-right: 0.75rem;
}
}

View File

@@ -0,0 +1,184 @@
.ae-NavControl {
&-header {
@include flexBox();
width: 100%;
height: #{px2rem(24px)};
margin-bottom: #{px2rem(12px)};
}
&-content {
@include flexBox(column, flex-start);
margin: 0;
padding: 0;
.ae-OptionControlItem {
display: block;
width: 100%;
border: 1px dashed #999;
padding: 15px;
margin-bottom: 10px;
position: relative;
.ae-closeBtn {
position: absolute;
top: 0;
right: 0;
width: 20px;
height: 20px;
font-size: 18px;
text-align: center;
line-height: 20px;
cursor: pointer;
}
.ae-navControlLinks {
display: flex;
align-items: center;
justify-content: space-between;
height: 40px;
input {
width: 120px;
}
}
}
}
&-placeholder {
display: none;
color: #999;
line-height: #{px2rem(24px)};
text-align: center;
vertical-align: middle;
width: 100%;
padding: #{px2rem(10px)};
}
&-footer {
margin-top: 10px;
}
&-footer > * {
width: calc(50% - #{px2rem(6px)});
&:first-child {
margin-right: px2rem(12px);
}
}
}
.nav-mode-gif {
width: 160px;
height: 120px;
background: url('../static/nav-mode.png');
background-repeat: no-repeat;
background-size: 100%;
margin: 10px auto 0;
}
.ae-BadgeControl {
.cxd-Form-groupColumn:nth-child(1) {
padding-right: 4px;
}
.cxd-Form-groupColumn:nth-child(2) {
padding-left: 4px;
}
.cxd-TextControl.is-focused > .cxd-TextControl-input {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
padding-left: 4px;
}
.cxd-TextControl-addOn:first-child {
border-left-width: 0.0625rem;
}
.cxd-TextControl-input {
padding: 4px;
}
}
// 自定义数据样式
.ae-NavControl-header {
display: flex;
flex-flow: row nowrap;
justify-content: space-between;
align-items: center;
width: 100%;
height: 1.5rem;
margin-bottom: 0.75rem;
}
.ae-NavControl-wrapper {
.nav-links {
&-parent {
width: 100%;
}
&-item {
height: 32px;
margin-bottom: 8px;
padding: 0 10px 0 8px;
border-radius: 2px;
background-color: #f7f7f9;
display: flex;
justify-content: space-between;
align-items: center;
font-family: PingFangSC-Regular;
font-size: 12px;
color: #151b26;
&-icon {
margin: 0 -2px 0 8px;
color: #151b26;
}
&-dragBar {
color: #151b26;
&:hover {
color: #2468f2;
}
}
&-label {
flex: 1;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
color: #151b26;
margin-left: 8px;
}
&-actions {
width: auto;
.icon {
color: #84868c;
font-size: 14px;
cursor: pointer;
&:hover {
color: #2468f2;
}
}
.icon-edit {
margin-left: 12px;
}
.icon-delete {
margin-left: 13px;
}
}
}
&-children {
margin-left: 24px;
}
}
}
.ae-NavControl-footer {
button {
width: 100%;
}
}
.ae-NavControl-dialog {
.cxd-IconPickerControl-valueWrap {
display: flex;
}
}

View File

@@ -0,0 +1,179 @@
.ae-OptionControl {
&-header {
@include flexBox();
width: 100%;
height: #{px2rem(24px)};
margin-bottom: #{px2rem(12px)};
}
&-content {
@include flexBox(column, flex-start);
margin: 0;
padding: 0;
.ae-OptionControlItem {
display: block;
width: 100%;
&-Main {
@include flexBox();
width: 100%;
background: #fff;
padding-bottom: px2rem(12px);
}
&--dragging {
height: 0 !important;
padding: 0;
border-top: 2px solid var(--primary);
overflow: hidden;
background: #e9effd;
}
&-dragBar {
display: inline-flex;
margin-left: 0;
margin-right: var(--gap-sm);
cursor: move;
color: #8c8c8c;
}
&-checkbox {
display: inline-flex;
align-items: center;
line-height: #{px2rem(24px)};
span {
color: #080e1a;
margin-left: #{px2rem(12px)};
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
max-width: 145px;
}
}
&-input {
flex: 1;
margin: 0;
margin-right: #{px2rem(12px)};
input {
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
&-dropdown i {
margin-right: 0px;
}
&-EditLabel {
flex: 0 0 2.25rem;
padding-right: 0;
}
&-EditValue {
padding-left: 0;
}
&-closeBtn {
position: absolute;
top: 0;
right: 0;
font-size: 18px;
color: #{$Editor-right-panel-color};
padding-right: px2rem(10px);
&:hover {
color: #{$Editor-theme};
}
}
.ae-ExtendMore {
padding-right: px2rem(30px);
}
&-action-delete {
color: #d4d6d9;
padding: 0px;
}
}
}
&-placeholder {
display: none;
color: #999;
line-height: #{px2rem(24px)};
text-align: center;
vertical-align: middle;
width: 100%;
padding: #{px2rem(10px)};
}
&-footer > * {
// @include flexBox(row, flex-end);
// // background: #f2f7f3;
// padding: #{px2rem(5px)};
// border-bottom-right-radius: $Editor-borderRadius;
// border-bottom-left-radius: $Editor-borderRadius;
// border-top: 1px solid #f2f7f3;
// box-shadow: 0 0 5px rgb(8 14 26 / 6%);
// clip-path: inset(-5px 0px 0px 0px);
width: calc(50% - #{px2rem(6px)});
&:first-child {
margin-right: px2rem(12px);
}
}
}
.ae-OptionControl-PopoverEdit {
@include flexBox(column, space-between, flex-start);
padding: #{px2rem(15px)} #{px2rem(20px)};
border: none;
width: 300px;
header {
@include flexBox();
width: 100%;
height: #{px2rem(24px)};
margin-bottom: #{px2rem(10px)};
.ae-OptionControl-PopoverEdit-title {
opacity: 0.95;
font-size: var(--fontSizeMd);
color: #080e1a;
line-height: #{px2rem(24px)};
font-weight: bold;
}
.ae-OptionControl-PopoverEdit-close {
float: right;
color: var(--text--muted-color);
line-height: inherit;
text-decoration: none;
vertical-align: middle;
svg {
width: #{px2rem(12px)};
height: #{px2rem(12px)};
fill: var(--text--muted-color);
}
&:not(.is-disabled) {
cursor: pointer;
&:hover {
text-decoration: none;
color: var(--text-color);
svg {
fill: var(--text-color);
}
}
}
}
}
}

View File

@@ -0,0 +1,75 @@
// 状态组件页面设计器
.ae-Status-label {
& > span {
display: flex;
align-items: center;
}
&-tip-icon {
margin-left: 0.25rem;
line-height: 14px;
display: inline-block;
cursor: pointer;
.icon {
width: 14px;
height: 14px;
fill: #84868c;
}
}
}
.ae-Status-default-icon {
&-tooltip {
max-width: none;
}
&-tip {
font-size: 12px;
}
}
.ae-Status-control {
.cxd-Combo-itemInner {
.cxd-Form-row {
margin-right: 0;
.cxd-Form-col {
padding-left: 2px;
padding-right: 2px;
&:first-child {
flex-grow: 0;
min-width: 55px;
// 新版图标选择 占位缩小处理
.cxd-IconSelectControl {
&-input {
padding-left: 6px;
}
&-clear {
right: 4px;
}
}
// iconfont 占位缩小处理
.cxd-IconPickerControl {
&-value {
width: 12px;
overflow: hidden;
}
&-clear {
position: absolute;
right: -5px;
top: 0;
}
}
}
&:last-child {
flex-grow: 0;
}
.cxd-IconSelectControl-input-icon-id {
display: none;
}
.Theme-ColorPicker-label-out {
width: 1.35rem;
height: 1.35rem;
position: relative;
top: 0.2rem;
}
}
}
}
}

View File

@@ -0,0 +1,124 @@
.ae-SwitchMore {
flex-grow: 1;
&-switch {
@include flexBox();
justify-content: flex-end;
height: px2rem(30px);
div {
@include flexBox(row, flex-end);
background-color: #fff !important;
flex: 1;
hr {
display: inline-block;
border: 0;
margin: 0;
border-left: 1px solid #e6e6e8;
height: #{px2rem(16px)};
vertical-align: middle;
margin: 0 #{px2rem(12px)};
}
svg.icon {
margin-bottom: #{px2rem(-2px)};
}
.ae-SwitchMore-icon {
fill: var(--primary);
path {
fill: var(--primary);
}
}
}
}
.cxd-DropDown,
.cxd-DropDown > .cxd-Button {
width: 100%;
}
.action-btn {
padding: 0;
}
.open-btn {
transition: transform var(--animation-duration);
color: #b8babf;
&.opening {
transform: rotate(180deg);
}
}
&-popover {
padding: #{px2rem(12px)};
border: none;
min-width: px2rem(300px);
max-width: px2rem(640px);
header {
@include flexBox(row, flex-end);
width: 100%;
height: #{px2rem(24px)};
margin-bottom: #{px2rem(10px)};
}
.ae-SwitchMore-title {
opacity: 0.95;
font-size: var(--fontSizeMd);
color: #080e1a;
line-height: #{px2rem(24px)};
font-weight: bold;
width: 100%;
margin: 0;
}
.ae-SwitchMore-close {
float: right;
color: var(--text--muted-color);
line-height: inherit;
text-decoration: none;
vertical-align: middle;
svg {
width: #{px2rem(12px)};
height: #{px2rem(12px)};
fill: var(--text--muted-color);
}
&:not(.is-disabled) {
cursor: pointer;
&:hover {
text-decoration: none;
color: var(--text-color);
svg {
fill: var(--text-color);
}
}
}
}
}
&-extend {
position: relative;
.ae-SwitchMore {
&-switch {
position: absolute;
top: px2rem(-32px);
right: 0;
}
&-content {
padding-top: px2rem(12px);
& > div {
@include extend-more();
}
}
}
}
}

View File

@@ -0,0 +1,13 @@
/**
* @file table-column-width-control.scss
* @desc 表格列宽控件
*/
.ae-columnWidthControl {
&-header {
display: flex;
flex-direction: row;
justify-content: space-between;
align-items: baseline;
}
}

View File

@@ -0,0 +1,229 @@
.ae-TextareaFormulaControl {
position: relative;
&-input {
textarea {
resize: none;
}
}
.ae-TextareaResultBox {
position: relative;
width: 100%;
height: 100%;
display: block;
border: 1px solid var(--Form-input-borderColor);
border-radius: var(--Form-input-borderRadius);
background: var(--Form-input-bg);
font-size: var(--Form-input-fontSize);
padding-bottom: 26px;
&::placeholder {
color: var(--Form-input-placeholderColor);
}
&:hover {
border-color: var(--Form-input-onHover-borderColor);
}
&-editor {
height: 100%;
border-radius: var(--Form-input-borderRadius);
overflow: auto;
padding-left: 8px;
& > .CodeMirror {
height: 100%;
font-family: inherit;
// span[class^='cm-'] {
// color: var(--input-default-default-color);
// }
// 解决上下 pre标签中表达式浮层遮挡问题
.CodeMirror-measure + div {
z-index: inherit !important;
}
pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
z-index: initial;
}
}
}
&-placeholder {
position: absolute;
line-height: 28px;
top: 0;
left: 13px;
font-size: 12px;
color: var(--text--muted-color);
pointer-events: none;
}
&-footer {
position: absolute;
width: 100%;
background: #f7f7f9;
bottom: 0px;
height: 26px;
margin: 0;
border-radius: 0 0 4px 4px;
list-style: none;
display: flex;
flex-direction: row-reverse;
align-items: center;
> li {
margin-right: 10px;
cursor: pointer;
&.is-loading {
display: flex;
cursor: unset;
}
}
&--fullscreen {
> a {
font-size: 12px;
}
}
&-fxIcon {
> a {
font-size: 14px;
}
}
}
&-overlay {
position: absolute;
top: 1px;
left: 1px;
width: calc(100% - 4px);
height: calc(100% - 4px);
cursor: pointer;
}
}
&.is-fullscreen {
margin: 0 !important;
position: fixed !important;
top: 0;
left: 0;
bottom: 0;
right: 0;
z-index: 2147483630 !important;
width: auto !important;
height: auto !important;
.ae-TextareaResultBox {
height: 100% !important;
&-editor {
& > .CodeMirror {
height: 100%;
padding: 10px 10px 48px;
.CodeMirror-vscrollbar {
margin-bottom: 48px;
}
}
}
&-footer {
height: 48px;
> li {
margin-right: 20px;
}
&-fullscreen {
> a {
font-size: 18px;
}
}
&-fxIcon {
> a {
font-size: 20px;
}
}
}
&-placeholder {
padding: 10px;
}
}
}
}
.cm-expression {
position: relative;
display: inline-block;
border-radius: 4px;
padding: 0 5px;
margin: 0 1px 1px;
background: var(--button-primary-default-bg-color);
&-text {
display: inline-block;
position: relative;
color: #fff !important;
cursor: pointer;
max-width: 80px;
min-width: 10px;
min-height: 18px;
overflow-x: hidden;
text-overflow: ellipsis;
white-space: nowrap;
vertical-align: middle;
line-height: 16px;
&:hover {
background: var(--button-primary-hover-bg-color);
& ~ .cm-expression-popover {
display: block;
}
}
}
&-close {
font-size: 12px;
color: white;
cursor: pointer;
margin-left: 4px;
}
&-popover {
position: absolute;
display: none;
left: 0;
bottom: -30px;
transform: translate(calc(24px - 50%));
font-size: 12px;
width: max-content;
color: #fff;
border-radius: 4px;
padding: 2px 8px;
background: var(--Tooltip-bg--dark);
border: none;
box-shadow: var(--Tooltip-boxShadow--dark);
z-index: 10;
&-arrow {
position: absolute;
display: block;
width: var(--Tooltip-arrow-width);
height: var(--Tooltip-arrow-height);
margin-left: calc(var(--Tooltip-arrow-width) * -1 / 2);
left: 50%;
top: calc(var(--Tooltip-arrow-height) * -1);
&::before,
&::after {
position: absolute;
display: block;
content: '';
border-color: transparent;
border-style: solid;
border-width: 0 calc(var(--Tooltip-arrow-width) / 2)
var(--Tooltip-arrow-height) calc(var(--Tooltip-arrow-width) / 2);
}
&::before {
border-width: 0;
}
&::after {
border-bottom-color: var(--Tooltip-arrow-color--dark);
}
}
}
}

View File

@@ -0,0 +1,83 @@
.ae-TimelineItemControl {
&-header {
@include flexBox();
width: 100%;
height: #{px2rem(24px)};
margin-bottom: #{px2rem(12px)};
}
&-content {
@include flexBox(column, flex-start);
margin: 0;
padding: 0;
.ae-TimelineItemControlItem {
display: block;
width: 100%;
&-input-title {
flex: 1;
margin-left: #{px2rem(20px)};
margin-right: #{px2rem(44px)};
input {
width: 100%;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
}
&-input {
flex: 1;
margin: 0;
margin-right: #{px2rem(12px)};
}
&-Main {
@include flexBox();
width: 100%;
background: #fff;
padding-bottom: px2rem(12px);
}
&--dragging {
height: 0 !important;
padding: 0;
border-top: 2px solid var(--primary);
overflow: hidden;
background: #e9effd;
}
&-dragBar {
display: inline-flex;
margin-left: 0;
margin-right: var(--gap-sm);
cursor: move;
color: #8c8c8c;
}
&-dropdown i {
margin-right: 0px;
}
}
.ae-TimelineItemControlItem-inputDate {
margin-bottom: 0;
}
}
&-border {
background-color: #e5e5e5;
width: 100%;
height: 1px;
margin-top: 12px;
margin-bottom: 12px;
}
&-footer > * {
width: calc(50% - #{px2rem(6px)});
&:first-child {
margin-right: px2rem(12px);
}
}
}

View File

@@ -0,0 +1,160 @@
.ae-TplFormulaControl {
position: relative;
width: 100%;
display: flex;
height: var(--input-size-default-height);
.ae-TplResultBox {
position: relative;
display: flex;
flex: 1;
overflow: hidden;
border: 1px solid var(--Form-input-borderColor);
border-radius: var(--input-default-default-top-left-border-radius) 0 0
var(--input-default-default-bottom-left-border-radius);
background: var(--Form-input-bg);
font-size: var(--Form-input-fontSize);
padding: 0 8px;
.input-clear-icon {
position: absolute;
top: 0;
bottom: 0;
right: 8px;
margin: auto;
height: 14px;
fill: var(--Form-input-clearBtn-color);
cursor: pointer;
&:hover {
fill: var(--Form-input-clearBtn-color-onHover);
}
}
&::placeholder {
color: var(--Form-input-placeholderColor);
}
&:hover {
border-color: var(--Form-input-onHover-borderColor);
}
&-editor {
flex: 1 1;
width: 0px; // 通过flex-grow 展开宽度
border-radius: var(--Form-input-borderRadius);
& > .CodeMirror {
height: 100%;
color: var(--Form-input-color);
font-family: inherit;
// span[class^='cm-'] {
// color: var(--input-default-default-color);
// }
// 解决上下 pre标签中表达式浮层遮挡问题
.CodeMirror-measure + div {
z-index: inherit !important;
}
pre.CodeMirror-line,
.CodeMirror pre.CodeMirror-line-like {
z-index: initial;
}
.CodeMirror-sizer {
min-height: 30px !important;
}
.CodeMirror-hscrollbar {
display: none !important;
}
.CodeMirror-scrollbar-filler {
display: none !important;
}
.CodeMirror-vscrollbar {
display: none !important;
}
.CodeMirror-scroll {
overflow: hidden !important;
}
.CodeMirror-lines {
line-height: 20px;
padding: 5px 0;
}
}
}
.cm-expression {
background: #007bff;
padding: 0px 5px;
margin: 0 1px;
color: #fff;
font-size: 12px;
border-radius: 4px;
}
}
&-buttonWrapper {
height: auto;
}
&-button,
&-buttonWrapper-button {
height: 100%;
background-color: #f7f7f9;
padding: 4px 8px;
border-radius: 0 var(--input-default-default-top-left-border-radius)
var(--input-default-default-bottom-left-border-radius) 0;
border-left: 0;
&:not(:disabled):not(.is-disabled) {
&:hover,
&:hover:active {
border-color: #e6f0ff;
background-color: #e6f0ff;
border-left-width: 0;
}
}
}
&-icon {
font-size: #{px2rem(14px)};
&:not(:last-child) {
margin-right: var(--fontSizeSm);
}
&.is-filled {
fill: var(--primary);
color: var(--primary);
}
}
&-placeholder {
position: absolute;
line-height: 30px;
top: 0;
left: 14px;
font-size: 12px;
color: var(--text--muted-color);
pointer-events: none;
}
&-tooltip {
position: absolute;
top: 6px;
height: 18px;
z-index: 1;
cursor: pointer;
}
&.clearable {
.ae-TplResultBox {
padding-right: 28px;
}
}
.cm-expression-text {
max-width: 48px;
}
}

View File

@@ -0,0 +1,67 @@
.ae-TreeOptionControl {
&-header {
@include flexBox();
width: 100%;
height: #{px2rem(24px)};
margin-bottom: #{px2rem(12px)};
}
&-footer > * {
width: 100%;
}
}
.ae-TreeOptionControl-Modal {
.ae-TreeOptionControl-content {
margin: 0;
padding: 0;
}
.ae-TreeOptionControlItem {
display: flex;
justify-content: space-between;
align-items: center;
&:not(:first-child) {
margin-top: var(--gap-sm);
}
&-parent {
margin-top: var(--gap-sm);
}
&-son {
margin-top: var(--gap-sm);
padding-left: #{px2rem(32px)};
}
&-dragging {
height: 0 !important;
padding: 0;
border-top: 2px solid var(--primary);
overflow: hidden;
background: #e9effd;
}
&-dragBar {
display: inline-flex;
margin-left: 0;
margin-right: var(--gap-sm);
cursor: move;
color: #8c8c8c;
}
// &-btns {
// }
&-input-label {
flex: 1;
margin-right: var(--gap-sm);
margin-bottom: 0;
}
&-input-value {
margin-right: var(--gap-sm);
}
&-dropdown {
margin-right: var(--gap-sm);
svg {
font-size: var(--Button--sm-fontSize);
}
.m-r-xs {
margin-right: 2px;
font-size: #{px2rem(12px)};
}
}
}
}

View File

@@ -0,0 +1,108 @@
.ae-ValidationControl {
position: relative;
min-height: 1px; // form-item空内容时有个margin,会导致collapse上的增加按钮偏移
&-dropdown {
@include flexBox(row, space-between);
position: absolute;
top: #{px2rem(-45px)};
right: #{px2rem(20px)};
height: $category-2-height;
&-btn {
color: #141a25;
background: transparent !important;
border: none !important;
}
}
header {
@include flexBox();
width: 100%;
height: #{px2rem(24px)};
margin-bottom: #{px2rem(10px)};
}
&-item {
@include flexBox(column, flex-start, flex-start);
width: 100%;
padding: 0;
&:not(:last-child) {
margin-bottom: #{px2rem(10px)};
}
section {
width: 100%;
}
.ae-ValidationControl-item-control {
@include flexBox(row, space-between);
margin-bottom: #{px2rem(10px)};
&.is-active {
margin-bottom: #{px2rem(5px)};
}
& > div {
@include flexBox(row, flex-end);
hr {
border: 0;
margin: 0;
border-left: 1px solid #e6e6e8;
height: #{px2rem(16px)};
vertical-align: middle;
margin: 0 #{px2rem(8px)};
}
}
.ae-ValidationControl-item-actions {
@include flexBox(row, flex-end);
.ae-ValidationControl-item-action {
position: relative;
top: #{px2rem(2px)};
right: 5px;
i {
color: #83868c;
font-size: #{px2rem(16px)};
&:hover {
color: var(--primary);
}
}
&:not(:last-child) {
margin-right: #{px2rem(10px)};
}
&:hover {
& > svg,
& > svg path {
fill: var(--primary);
}
}
& > svg,
& > svg path {
fill: #83868c;
}
}
}
}
.ae-ValidationControl-item-input {
@include flexBox(column, flex-start, flex-start);
@include panel-group-bg();
margin-top: px2rem(12px);
}
}
}
.ae-ValidationControl-label-code {
background-color: #666;
padding: 0 4px;
border-radius: 2px;
}

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,105 @@
.ae-border {
&-items {
width: 88px;
height: 88px;
flex-shrink: 0;
margin-right: 10px;
position: relative;
}
&-radius {
.ap-border-items {
height: 60px;
}
}
&-item {
position: absolute;
padding: 5px;
border-radius: 2px;
text-align: center;
cursor: pointer;
display: inline-block;
line-height: 1;
&.active {
background: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.2));
}
&.left {
left: 0;
top: 50%;
transform: translateY(-11px);
}
&.top-left {
left: 0;
top: 0;
}
&.right {
right: 0;
top: 50%;
transform: translateY(-11px);
}
&.top-right {
right: 0;
top: 0;
}
&.top {
left: 50%;
top: 0;
transform: translateX(-11px);
}
&.bottom {
left: 50%;
bottom: 0;
transform: translateX(-11px);
}
&.bottom-left {
left: 0;
bottom: 0;
}
&.bottom-right {
bottom: 0;
right: 0;
}
&.all {
left: 50%;
top: 50%;
transform: translateX(-11px) translateY(-11px);
}
}
&-settings {
label {
flex-shrink: 0;
margin-right: 8px;
color: var(--Form-item-color);
}
.flex {
margin-bottom: 6px;
}
.ae-border-input {
min-height: 28px;
width: 100%;
}
}
&-colorpicker > div {
padding-right: 3px;
font-size: 12px;
> span {
margin-left: -4px;
margin-right: 5px;
}
}
}

View File

@@ -0,0 +1,100 @@
.ae-BoxModel {
overflow: hidden;
background-color: #e0efff;
padding: 18px;
position: relative;
&-inner {
background-color: #fff;
width: 100%;
height: 100%;
padding: 2px;
min-height: 20px;
}
&-input {
position: absolute;
text-align: center;
padding: 0;
font-size: 12px;
border: none;
background: none;
transform: scale(0.8);
color: rgba(0, 0, 0, 0.85);
-webkit-appearance: none;
&:focus {
outline: none;
}
&.left {
left: -6px;
top: 0;
height: 100%;
width: 28px;
}
&.right {
right: -6px;
top: 0;
height: 100%;
width: 28px;
}
&.top {
top: 2px;
left: 0;
right: 0;
height: 14px;
width: 100%;
}
&.bottom {
bottom: 0;
left: 0;
right: 0;
height: 14px;
width: 100%;
}
}
&-title {
opacity: 0.6;
font-size: 8px;
color: #919eab;
transform: scale(0.7);
position: absolute;
left: 8px;
}
&-line {
width: 2px;
height: 50px;
background-color: #fff;
position: absolute;
&.lt {
transform: rotate(-45deg);
top: -24px;
left: 0;
}
&.lb {
transform: rotate(45deg);
bottom: -24px;
left: 0;
}
&.rt {
transform: rotate(45deg);
top: -24px;
right: 0;
}
&.rb {
transform: rotate(-45deg);
bottom: -24px;
right: 0;
}
}
}

View File

@@ -0,0 +1,12 @@
.ae-BoxShadow {
&-group {
> div {
align-items: center;
}
}
&-unit {
flex: 0.3;
padding-top: #{px2rem(16px)};
padding-bottom: #{px2rem(16px)};
}
}

View File

@@ -0,0 +1,30 @@
.ColCount {
display: flex;
background-color: #f7f7f9;
padding: 2px;
border-radius: 4px;
&-item {
text-align: center;
line-height: 30px;
flex: 1;
min-width: 0;
height: 30px;
cursor: pointer;
&:not(.is-disabled):hover {
background: #fff;
color: #2468f2;
}
}
.is-active {
background: #fff;
color: #2468f2;
border-radius: 4px;
}
.is-disabled {
cursor: not-allowed;
color: #ccc;
}
}
.LabelAlign {
width: 100%;
}

View File

@@ -0,0 +1,28 @@
.ColSize {
display: flex;
background-color: #f7f7f9;
padding: 2px;
border-radius: 4px;
&-item {
text-align: center;
line-height: 28px;
flex: 1;
min-width: 0;
width: 32px;
height: 28px;
cursor: pointer;
&:not(.is-disabled):hover {
background: #fff;
color: #2468f2;
}
}
.is-active {
background: #fff;
color: #2468f2;
border-radius: 4px;
}
.is-disabled {
cursor: not-allowed;
color: #ccc;
}
}

View File

@@ -0,0 +1,29 @@
.ae-FlexLayout {
&-wrap {
display: grid;
grid-row-gap: 10px;
grid-column-gap: 10px;
grid-template-columns: repeat(4, auto);
margin-bottom: 10px;
}
&-item {
display: flex;
flex-direction: row;
gap: 2px;
height: 36px;
border: 1px solid rgba(0, 0, 0, 0.2);
padding: 4px;
border-radius: 4px;
cursor: pointer;
&.active {
border-color: #528eff;
}
}
&-itemColumn {
height: 100%;
background-color: #ccc;
}
}

View File

@@ -0,0 +1,28 @@
.ae-Font {
&-group-lhs {
border-radius: #{px2rem(5px)} 0 0 #{px2rem(5px)};
}
&-group-rhs {
border-radius: 0 #{px2rem(5px)} #{px2rem(5px)} 0;
}
&-group-middle {
border-radius: 0;
}
&-relative-left {
position: relative;
left: 1px;
}
&-relative-right {
position: relative;
right: 1px;
}
&-relative-right-2 {
position: relative;
right: 2px;
}
}

View File

@@ -0,0 +1,83 @@
.ae-SingleThemeCssCode {
position: relative;
border: 1px solid #e8e9eb;
border-radius: var(--input-default-default-top-left-border-radius)
var(--input-default-default-top-right-border-radius)
var(--input-default-default-bottom-right-border-radius)
var(--input-default-default-bottom-left-border-radius);
&-label {
margin-bottom: px2rem(10px);
color: #5c5f66;
font-size: 12px;
}
&-header,
&-footer {
padding: 0 4px;
}
&-content {
height: 120px;
}
&-button {
position: absolute;
top: 4px;
right: 12px;
z-index: 100;
}
&-icon {
cursor: pointer;
color: #5c5f66;
&:hover {
color: #151b26;
}
}
}
.ae-SingleThemeCssCode-custom-editor {
.suggest-widget {
width: auto !important;
left: 16px !important;
right: 0 !important;
.monaco-sash:first-child {
display: none;
}
}
}
.ae-SingleThemeCssCode-panel {
height: auto;
width: px2rem(460px);
padding: px2rem(16px);
position: relative;
&-title {
font-size: 14px;
margin-bottom: px2rem(16px);
}
&-close {
position: absolute;
top: px2rem(14px);
right: px2rem(16px);
button {
height: px2rem(16px);
padding: 0;
margin: 0;
}
}
&-content {
height: px2rem(500px);
width: 100%;
border: 1px solid #e8e9eb;
.ae-SingleThemeCssCode-content {
height: px2rem(454px);
}
}
}

View File

@@ -0,0 +1,40 @@
.ae-style-size {
&-wrapper {
@include flexBox();
}
&-slider {
flex: 5;
}
&-text {
flex: 3;
height: #{px2rem(32px)};
border-top-left-radius: #{$Editor-borderRadius} !important;
border-bottom-left-radius: #{$Editor-borderRadius} !important;
}
&-unit {
flex: 1.3;
& > div {
text-align: center;
padding: #{px2rem(5px)};
background: #f5f5f5 !important;
&:first-child {
font-weight: bold;
}
span {
margin-right: 0;
position: relative;
top: 1px;
> svg {
width: #{px2rem(8px)};
}
}
}
}
}

View File

@@ -0,0 +1,22 @@
/**
* @file 样式控件通用属性
*/
.ae-selection-code {
width: 100%;
> span {
@include flexBox();
display: flex !important;
}
code {
display: inline-block;
}
}
.ae-Display {
&-group {
@include panel-group-bg();
}
}

View File

@@ -0,0 +1,113 @@
.ThemeCssCode {
position: relative;
&-button {
position: absolute;
top: 4px;
right: 12px;
z-index: 100;
}
&-icon {
cursor: pointer;
color: #5c5f66;
&:hover {
color: #151b26;
}
}
.is-group {
overflow: auto;
}
}
.icon-theme-css {
margin-right: 10px;
}
.ThemeCssCode-editor {
height: auto;
width: px2rem(460px);
padding: px2rem(16px);
position: relative;
&-title {
font-size: 14px;
margin-bottom: px2rem(16px);
}
&-close {
position: absolute;
top: px2rem(14px);
right: px2rem(16px);
button {
height: px2rem(16px);
padding: 0;
margin: 0;
}
}
&-content {
height: px2rem(500px);
width: 100%;
&-header {
display: flex;
margin-bottom: px2rem(10px);
border-bottom: 1px solid #e8e9eb;
&-title {
margin-right: px2rem(30px);
cursor: pointer;
padding-bottom: px2rem(10px);
}
&-title--active {
color: #2468f2;
border-bottom: 2px solid #2468f2;
}
}
&-main {
overflow: auto;
height: px2rem(460px);
}
&-body--hidden {
display: none;
}
&-body {
margin-bottom: px2rem(10px);
&-title {
margin-bottom: px2rem(10px);
margin-left: px2rem(16px);
font-size: 12px;
}
&-editor {
height: 200px;
margin-bottom: px2rem(10px);
border-bottom: 1px solid #e8e9eb;
}
}
}
&-wrap {
border: 1px solid #e8e9eb;
.cxd-MonacoEditor-placeholder {
left: 1rem;
}
}
}
.editorPanel-inner {
.Theme-FontEditor {
.Theme-Wrapper-header-left {
font-weight: 400;
color: #5c5f66;
}
}
.Theme-ShadowEditor {
.Theme-Wrapper-header-left {
font-weight: 400;
color: #5c5f66;
}
}
}
.cxd-ThemeCssCode-custom-editor {
.suggest-widget {
width: auto !important;
left: 16px !important;
right: 0 !important;
.monaco-sash:first-child {
display: none;
}
}
}