// 提示框组件 .guip-prompt-text { padding: 8px 13px; border-radius: 4px; .flex-text { display: flex; align-items: center; align-self: stretch; justify-content: space-between; z-index: 1; } .prompt-icon { width: 16px; height: 16px; ; margin-right: 8px; } .prompt-desc { color: #1E2226; letter-spacing: 0.08em; } .prompt-extra {} } .guip-prompt-text.info { background: #F2F7FF; border: 1px solid #BFDAFF; } .guip-prompt-text.notice { background: #FEFCE8; border: 1px solid rgba(255, 140, 0, 0.3); } .guip-prompt-text.warning { background: #FFF1F0; border: 1px solid #FFA39E; } // 实时预览外框组件 .guip-preview-container { max-width: 800px; min-width: 300px; margin: 0 auto; padding: 24px; border-radius: 4px; background: #FAFAFA; .preview_top { margin-bottom: 20px; } .preview-title { text-align: center; color: #1E2226; } .toggle-container { display: flex; height: 26px; justify-content: center; align-items: center; padding: 3px 6px; border-radius: 4px; background: #F2F3F5; } .toggle-button { padding: 1px 12px; border-radius: 2px; box-sizing: border-box; cursor: pointer; transition: all 0.3s ease; } .toggle-button.active { color: #006AFF; background: #FFFFFF; } .toggle-button.active:after { /* content: ''; position: absolute; bottom: -11px; left: 0; width: 100%; height: 2px; background-color: #1890ff; */ } .content-container { /* min-height: 300px; padding: 20px; border: 2px solid #ffd700; border-radius: 4px; background-color: #fff; */ } .desktop-view, .mobile-view { width: 100%; } } // 面包屑组件 .guip-breadcrumb-container { padding: 16px 12px; background-color: #f5f5f5; border-radius: 4px; .breadRight { a { text-decoration: none; color: #006AFF; } } .home-icon { width: 16px; height: 16px; } .breadcrumb { display: flex; flex-wrap: wrap; height: 22px; align-items: center; padding: 0; margin: 0; list-style: none; } .breadcrumb-item { display: flex; align-items: center; height: 100%; cursor: pointer; } .router-link-active { height: 100%; display: flex; align-items: center; } .breadcrumb-item a { color: #626573; text-decoration: none; &:hover { color: #006AFF; } } .breadcrumb-item.active span { color: #1E2226; ; } .separator { width: 12px; height: 12px; } } // 图标组件 svgicon1 .guip-svg-icon-wrapper1 { cursor: pointer; .svg-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--icon-color); transition: color 0.3s; } .svg-icon:hover { color: var(--icon-hover-color); } .svg-icon { display: inline-flex; } } // 图标组件 svgicon .guip-svg-icon-wrapper { display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.3s; .svg-icon { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--icon-color); transition: color 0.3s; } .svg-icon:hover { color: var(--icon-hover-color); } } .guip-svg-icon-wrapper .svg-icon ::v-deep path { fill: currentColor; } .guip-svg-icon-wrapper .svg-icon ::v-deep circle { fill: currentColor; } .guip-svg-icon-wrapper:hover { opacity: 0.8; } .guip-svg-icon-wrapper[disabled] { cursor: not-allowed; opacity: 0.5; } // .guip-svg-icon-wrapper .svg-icon ::v-deep svg { // fill: currentColor; // } // 表格组件 .guip-table { .custom-empty { text-align: center; display: flex; flex-direction: column; align-items: center; } .empty-image { width: 160px; height: 160px; } .empty-text { color: #626573; letter-spacing: 0.08em; height: 18px; line-height: 18px; } .el-empty { padding: 0; } } .guip-table ::v-deep .el-empty__description { line-height: 20px; margin-top: 0; } // switch组件 .guip_switchWrap { .fl { float: left; margin-right: 12px; } .fr { float: right; margin-left: 12px; } .switchDesc { font-size: 12px; font-weight: normal; line-height: 20px; letter-spacing: 0.08em; font-variation-settings: "opsz"auto; /* text/text_3 */ color: #626573; display: inline-block; } .error-msg { color: #f56c6c; font-size: 12px; margin-left: 10px; } } // 自定义下拉选择框组件 start .guip-custom-select { height: 38px; position: relative; font-family: Arial, sans-serif; .select-trigger { border-radius: 2px; opacity: 1; background: #FFFFFF; border: 1px solid #DFE2E6; width: 100%; height: 40px; box-sizing: border-box; padding: 10px 12px; cursor: pointer; display: flex; justify-content: space-between; align-items: center; } .is-open .select-trigger { border: 1px solid #006AFF; transition: all .5s; outline: 3px solid #D8E9FA; } .select-trigger:hover { border-color: #006AFF; transition: all .5s; } .arrow-icon { width: 12px; } .select-dropdown { position: absolute; top: 100%; right: 0; width: 100%; border: 1px solid #ccc; box-sizing: border-box; border-radius: 4px; background-color: #fff; box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); z-index: 1000; margin-top: 4px; max-height: 384px; overflow-y: auto; padding: 0 12px 12px 12px; } .dropdown-item { padding: 12px 10px; cursor: pointer; } .dropdown-item:hover { background: #F6F7FA; } .dropdown-item.is-selected { background-color: #F6F7FA; color: #006AFF; } /* 展开收起动画 */ .slide-fade-enter-active, .slide-fade-leave-active { transition: all 0.3s ease; } .slide-fade-enter-from, .slide-fade-leave-to { opacity: 0; transform: translateY(-10px); } } // 自定义下拉选择框组件 end // input 组件 start .guip-input { .unit { position: absolute; right: 12px; /* 根据需要调整位置 */ top: 50%; transform: translateY(-50%); pointer-events: none; /* 防止单位文本影响输入框的点击事件 */ } } // input 组件 end // 提示信息组件 start .guip-custom-message { position: fixed; z-index: 9999; display: flex; align-items: center; padding: 14px 21px; transition: all 0.3s; font-size: 14px; font-weight: normal; line-height: normal; letter-spacing: 0.08em; color: #626573; border-radius: 4px; background: #FFFFFF; /* 阴影/低阴影 */ box-shadow: 0px 3px 8px 0px rgba(0, 0, 0, 0.16); .message-image { width: 18px; height: 18px; margin-right: 10px; } } /* 位置样式 */ .guip-custom-message.top-center { top: 20px; left: 50%; transform: translateX(-50%); } .guip-custom-message.top-right { top: 20px; right: 20px; } .guip-custom-message.top-left { top: 20px; left: 20px; } .guip-custom-message.bottom-center { bottom: 20px; left: 50%; transform: translateX(-50%); } .guip-custom-message.bottom-right { bottom: 20px; right: 20px; } .guip-custom-message.bottom-left { bottom: 20px; left: 20px; } /* 动画效果 */ .fade-enter-active, .fade-leave-active { transition: opacity 0.3s, transform 0.3s; } .fade-enter, .fade-leave-to { opacity: 0; } .fade-enter.top-center, .fade-leave-to.top-center { transform: translate(-50%, -20px); } .fade-enter.top-right, .fade-leave-to.top-right, .fade-enter.top-left, .fade-leave-to.top-left { transform: translateY(-20px); } .fade-enter.bottom-center, .fade-leave-to.bottom-center { transform: translate(-50%, 20px); } .fade-enter.bottom-right, .fade-leave-to.bottom-right, .fade-enter.bottom-left, .fade-leave-to.bottom-left { transform: translateY(20px); } // 提示信息组件 end