Commit 419a1ab0 by liimin

feat(components): 重构工具箱组件,支持横竖屏自适应与拖拽定位

- 将 FAB 浮动按钮重构为半抽屉/侧边栏面板,适配横竖屏不同布局
- 新增拖拽功能,允许用户自由调整触发器位置
- 优化视觉设计,采用渐变背景与阴影增强层次感
- 移除调试日志,提升代码整洁度
1 parent 4843b03b
...@@ -286,10 +286,10 @@ async function getBase64(url: string): Promise<string> { ...@@ -286,10 +286,10 @@ async function getBase64(url: string): Promise<string> {
base64 = `data:image/png;base64,${uni.arrayBufferToBase64(data as ArrayBuffer)}`; base64 = `data:image/png;base64,${uni.arrayBufferToBase64(data as ArrayBuffer)}`;
} }
console.log("转换后的 base64:", `${base64.slice(0, 50) }...`); // console.log("转换后的 base64:", `${base64.slice(0, 50) }...`);
resolve(base64); resolve(base64);
} catch (error) { } catch (error) {
console.error("转换 base64 失败:", error, "res.data:", res.data); // console.error("转换 base64 失败:", error, "res.data:", res.data);
resolve(url); resolve(url);
} }
}, },
......
<template> <template>
<view class="tool-box"> <view class="tool-box" :style="toolBoxVars">
<!-- 使用 uview-plus 的 FAB 组件 --> <!-- 遮罩层(仅在竖屏半抽屉形态且展开时显示) -->
<un-fab v-model:active="show" <view v-if="!isLandscapeMode && show" class="mask" @click="hide"></view>
:direction="direction"
:expandable="true" <view class="tool-panel"
:offset-right="offsetRight" :class="[show ? 'tool-panel-open' : 'tool-panel-close', isLandscapeMode ? 'tool-panel-landscape' : 'tool-panel-portrait']"
:offset-top="offsetTop" :style="panelPositionStyle"
:position="position" @touchstart.stop
:size="fabSize" @touchmove.stop
:type="type" @touchend.stop>
@click="handleFabClick"> <view class="list-wrapper">
<template #trigger> <view class="panel-head">
<view :class="['custom-trigger', { expanded: show }]"> <text class="panel-title">{{ triggerText }}</text>
<un-icon :name="iconName" size="24" color="#fff"></un-icon> <view class="panel-close" @click="hide">
<text class="trigger-text">{{ triggerText }}</text> <text class="panel-close-text">×</text>
</view>
</template>
<template #default>
<view class="list-wrapper">
<!-- 动态数据项 -->
<view v-for="(item, index) in displayData"
:key="index"
:class="['fab-item', getFabItemClass(index)]"
@click="selectItem(item)">
<view class="icon-box">
<image v-if="item.shortTitleUrl"
class="btn-icon"
mode="aspectFill"
:src="item.shortTitleUrl" />
<text class="item-text">{{ item.shortTitle }}</text>
</view>
</view> </view>
</view>
<!-- 付款方式 --> <view class="panel-body"
<view v-if="showPayBtn" :style="scrollContainerStyle"
:class="['fab-item', getFabItemClass(displayData.length)]" @touchstart.stop
@click="toPay"> @touchmove.stop
<view class="icon-box"> @touchend.stop>
<view class="sprite-icon icon-tool-pay"></view> <view class="section-title">快捷操作</view>
<text class="item-text">付款方式</text> <view class="fixed-group">
<view class="action-row">
<view class="action-col" v-for="(action, idx) in fixedActionSlots" :key="'fixed-' + idx">
<view v-if="action != null"
class="fab-item fixed-item"
:class="{ 'fab-item-active': activeItemId == 'fixed-' + idx }"
@touchstart="handleActionTouchStart('fixed-' + idx)"
@touchend="handleActionTouchEnd"
@touchcancel="handleActionTouchEnd"
@click="onActionClick(action as ToolAction)">
<view :class="['icon-box', (action as ToolAction).kind == 'pay' ? 'fixed-pay' : 'fixed-finish']">
<view :class="['sprite-icon', (action as ToolAction).iconClass]"></view>
</view>
<text class="item-text">{{ (action as ToolAction).label }}</text>
</view>
</view>
</view> </view>
</view> </view>
<view class="section-title" style="margin-top: 10px;">功能工具</view>
<!-- 完成接待 --> <view class="dynamic-group">
<view v-if="type !== 'preview'" <view class="action-row" v-for="(row, rowIndex) in dynamicRows" :key="'row-' + rowIndex">
:class="['fab-item', getFabItemClass(displayData.length + (showPayBtn ? 1 : 0))]" <view class="action-col" v-for="(action, idx) in row" :key="'dynamic-' + rowIndex + '-' + idx">
@click="finish"> <view v-if="action != null"
<view class="icon-box"> class="fab-item dynamic-item"
<view class="sprite-icon icon-tool-finish"></view> :class="{ 'fab-item-active': activeItemId == 'dynamic-' + rowIndex + '-' + idx }"
<text class="item-text">完成接待</text> @touchstart="handleActionTouchStart('dynamic-' + rowIndex + '-' + idx)"
@touchend="handleActionTouchEnd"
@touchcancel="handleActionTouchEnd"
@click="onActionClick(action as ToolAction)">
<view class="icon-box">
<image v-if="(action as ToolAction).iconUrl != ''"
class="btn-icon"
mode="aspectFill"
:src="(action as ToolAction).iconUrl" />
<view v-else-if="(action as ToolAction).iconClass != ''"
:class="['sprite-icon', (action as ToolAction).iconClass]"></view>
</view>
<text class="item-text">{{ (action as ToolAction).label }}</text>
</view>
</view>
</view> </view>
</view> </view>
</view> </view>
</template> </view>
</un-fab> </view>
<view class="trigger-holder"
:style="triggerPositionStyle">
<view class="custom-trigger"
:class="{ 'custom-trigger-active': triggerDragging }"
@click="handleFabClick"
@touchstart="handleTriggerTouchStart"
@touchmove="handleTriggerTouchMove"
@touchend="handleTriggerTouchEnd">
<un-icon name="folder" :size="24" color="#e2e8f0"></un-icon>
<text class="trigger-text">{{ triggerText }}</text>
</view>
</view>
</view> </view>
</template> </template>
...@@ -72,19 +98,27 @@ type ToolItem = { ...@@ -72,19 +98,27 @@ type ToolItem = {
shortTitleUrl?: string shortTitleUrl?: string
} }
type ToolAction = {
key: string
kind: string
item: ToolItem | null
label: string
iconUrl: string
iconClass: string
}
// ============================================================================ // ============================================================================
// Props 定义 // Props 定义
// ============================================================================ // ============================================================================
interface Props { interface Props {
data: Array<any> data: Array<any>
id?: string | number | null id: string | number | null
type: string type: string
showPayBtn: boolean showPayBtn: boolean
idKey: string idKey: string
toolStyle: string toolStyle: string
// 配置项 direction: string
direction: 'top' | 'right' | 'bottom' | 'left' position: string
position: 'top-left' | 'top-right' | 'top-center' | 'bottom-left' | 'bottom-right' | 'bottom-center'
offsetTop: number offsetTop: number
offsetRight: number offsetRight: number
fabSize: number fabSize: number
...@@ -119,6 +153,23 @@ const emit = defineEmits([ ...@@ -119,6 +153,23 @@ const emit = defineEmits([
// 响应式状态 // 响应式状态
// ============================================================================ // ============================================================================
const show = ref<boolean>(false); // 初始收起 const show = ref<boolean>(false); // 初始收起
const triggerText = computed<string>(() => props.triggerText);
const windowWidth = ref<number>(uni.getWindowInfo().windowWidth);
const windowHeight = ref<number>(uni.getWindowInfo().windowHeight);
const currentOffsetTop = ref<number>(props.offsetTop);
const currentOffsetRight = ref<number>(props.offsetRight);
const dragStartX = ref<number>(0);
const dragStartY = ref<number>(0);
const dragOriginTop = ref<number>(0);
const dragOriginRight = ref<number>(0);
const triggerDragging = ref<boolean>(false);
const triggerMoved = ref<boolean>(false);
const syncWindowMetrics = (): void => {
const info = uni.getWindowInfo();
windowWidth.value = info.windowWidth;
windowHeight.value = info.windowHeight;
};
// ============================================================================ // ============================================================================
// 计算属性 // 计算属性
...@@ -151,6 +202,180 @@ const iconName = computed<string>(() => { ...@@ -151,6 +202,180 @@ const iconName = computed<string>(() => {
return show.value ? 'close' : 'folder'; return show.value ? 'close' : 'folder';
}); });
const isLandscapeMode = computed<boolean>(() => {
return windowWidth.value > windowHeight.value;
});
const isPadLike = computed<boolean>(() => {
return Math.max(windowWidth.value, windowHeight.value) >= 1024;
});
const visualFabSize = computed<number>(() => {
const base = props.fabSize > 0 ? props.fabSize : 56;
if (isPadLike.value && isLandscapeMode.value) {
return Math.max(base, 64);
}
return base;
});
const panelWidth = computed<number>(() => {
if (isPadLike.value) {
return 246;
}
return 224;
});
const itemGap = computed<number>(() => {
return isPadLike.value ? 20 : 16;
});
const panelPaddingV = computed<number>(() => {
return isPadLike.value ? 18 : 14;
});
const visibleItemCount = computed<number>(() => {
if (isPadLike.value && isLandscapeMode.value) {
return 8;
}
if (isLandscapeMode.value) {
return 6;
}
return 6;
});
const allActions = computed<Array<ToolAction>>(() => {
const list: Array<ToolAction> = [];
for (let i = 0; i < displayData.value.length; i++) {
const item = displayData.value[i];
list.push({
key: `dynamic-${i}`,
kind: "dynamic",
item,
label: `${item.shortTitle ?? ""}`,
iconUrl: `${item.shortTitleUrl ?? ""}`,
iconClass: ""
});
}
return list;
});
const dynamicActions = computed<Array<ToolAction>>(() => {
return allActions.value;
});
const fixedActionSlots = computed<Array<ToolAction | null>>(() => {
const left = props.showPayBtn
? {
key: "fixed-pay",
kind: "pay",
item: null,
label: "付款方式",
iconUrl: "",
iconClass: "icon-tool-pay"
} as ToolAction
: null;
const right = props.type !== "preview"
? {
key: "fixed-finish",
kind: "finish",
item: null,
label: "完成接待",
iconUrl: "",
iconClass: "icon-tool-finish"
} as ToolAction
: null;
return [left, right];
});
const dynamicRows = computed<Array<Array<ToolAction | null>>>(() => {
const rows: Array<Array<ToolAction | null>> = [];
for (let i = 0; i < dynamicActions.value.length; i += 2) {
const left = dynamicActions.value[i];
const right = (i + 1) < dynamicActions.value.length ? dynamicActions.value[i + 1] : null;
rows.push([left, right]);
}
return rows;
});
const viewportBasedMaxHeight = computed<number>(() => {
const rate = isLandscapeMode.value ? 0.7 : 0.52;
return Math.floor(windowHeight.value * rate);
});
const panelHeight = computed<number>(() => {
if (!isLandscapeMode.value) {
// 竖屏:半抽屉,不限制绝对高度,留给内容撑开,最高不超过屏幕 60%
return Math.floor(windowHeight.value * 0.6);
}
const edgeInset = isPadLike.value ? 24 : 20;
const fullHeight = windowHeight.value - (edgeInset * 2);
const minHeight = isPadLike.value ? 420 : 320;
if (fullHeight < minHeight) {
return minHeight;
}
return fullHeight;
});
const scrollContainerStyle = computed<UTSJSONObject>(() => {
if (!isLandscapeMode.value) {
// 竖屏下高度自适应内容
return {
"max-height": `${panelHeight.value - 52}px`
} as UTSJSONObject;
}
const bodyHeight = Math.max(240, panelHeight.value - 52);
return {
"min-height": `${bodyHeight}px`
} as UTSJSONObject;
});
const toolBoxVars = computed<UTSJSONObject>(() => {
const textSize = isPadLike.value ? 12 : 11;
return {
"--fab-size": `${visualFabSize.value}px`,
"--panel-width": `${panelWidth.value}px`,
"--fab-gap": `${itemGap.value}px`,
"--fab-panel-padding-v": `${panelPaddingV.value}px`,
"--fab-panel-padding-h": `${isPadLike.value ? 14 : 12}px`,
"--fab-text-size": `${textSize}px`,
"--fab-panel-height": `${panelHeight.value}px`
} as UTSJSONObject;
});
const triggerPositionStyle = computed<UTSJSONObject>(() => {
if (!isLandscapeMode.value) {
// 竖屏下,展开时触发器通常保持不动或隐藏,这里为了简单起见,展开时隐藏触发器,依靠遮罩关闭
return {
top: `${currentOffsetTop.value}px`,
right: `0px`,
display: show.value ? 'none' : 'block'
} as UTSJSONObject;
}
const rightOffset = show.value ? panelWidth.value : 0;
return {
top: `${currentOffsetTop.value}px`,
right: `${rightOffset}px`
} as UTSJSONObject;
});
const panelPositionStyle = computed<UTSJSONObject>(() => {
if (!isLandscapeMode.value) {
// 竖屏:底部抽屉
return {
bottom: `0px`,
left: `0px`,
right: `0px`,
width: `100%`
} as UTSJSONObject;
}
// 横屏:侧边抽屉
const topInset = isPadLike.value ? 24 : 20;
return {
top: `${topInset}px`,
right: `0px`
} as UTSJSONObject;
});
// ============================================================================ // ============================================================================
// 方法 // 方法
// ============================================================================ // ============================================================================
...@@ -165,14 +390,72 @@ const toggle = (): void => { ...@@ -165,14 +390,72 @@ const toggle = (): void => {
* 处理 FAB 按钮点击 * 处理 FAB 按钮点击
*/ */
const handleFabClick = (): void => { const handleFabClick = (): void => {
if (triggerMoved.value) {
triggerMoved.value = false;
return;
}
syncWindowMetrics();
toggle(); toggle();
}; };
const readTouchPoint = (event: TouchEvent): number[] => {
let touches = event.touches;
if (touches == null || touches.length == 0) {
touches = event.changedTouches;
}
if (touches != null && touches.length > 0) {
const first = touches[0];
const x = first.clientX;
const y = first.clientY;
return [x, y];
}
return [0, 0];
};
const handleTriggerTouchStart = (event: TouchEvent): void => {
if (show.value) {
triggerDragging.value = false;
triggerMoved.value = false;
return;
}
syncWindowMetrics();
const point = readTouchPoint(event);
dragStartX.value = point[0];
dragStartY.value = point[1];
dragOriginTop.value = currentOffsetTop.value;
dragOriginRight.value = currentOffsetRight.value;
triggerDragging.value = true;
triggerMoved.value = false;
};
const handleTriggerTouchMove = (event: TouchEvent): void => {
if (show.value) {
return;
}
if (!triggerDragging.value) {
return;
}
const point = readTouchPoint(event);
const deltaY = point[1] - dragStartY.value;
if (Math.abs(deltaY) > 2) {
triggerMoved.value = true;
}
const fabSize = visualFabSize.value;
const maxTop = Math.max(8, windowHeight.value - fabSize - 8);
const nextTop = Math.max(8, Math.min(maxTop, dragOriginTop.value + deltaY));
currentOffsetTop.value = nextTop;
currentOffsetRight.value = 0;
};
const handleTriggerTouchEnd = (): void => {
triggerDragging.value = false;
};
/** /**
* 选择工具项 * 选择工具项
* @param item - 选中的工具项 * @param item - 选中的工具项
*/ */
const selectItem = (item: any): void => { const selectItem = (item: ToolItem): void => {
show.value = false; // 自动收起 show.value = false; // 自动收起
emit('choose', item); emit('choose', item);
}; };
...@@ -191,6 +474,33 @@ const toPay = (): void => { ...@@ -191,6 +474,33 @@ const toPay = (): void => {
emit('toPay'); emit('toPay');
}; };
const activeItemId = ref<string>('');
const handleActionTouchStart = (id: string): void => {
activeItemId.value = id;
};
const handleActionTouchEnd = (): void => {
activeItemId.value = '';
};
const onActionClick = (action: ToolAction): void => {
activeItemId.value = '';
if (action.kind == "dynamic") {
if (action.item != null) {
selectItem(action.item);
}
return;
}
if (action.kind == "pay") {
toPay();
return;
}
if (action.kind == "finish") {
finish();
}
};
/** /**
* 隐藏工具栏 * 隐藏工具栏
*/ */
...@@ -198,36 +508,8 @@ const hide = (): void => { ...@@ -198,36 +508,8 @@ const hide = (): void => {
show.value = false; show.value = false;
}; };
/** syncWindowMetrics();
* 获取总数量(包括动态数据、付款按钮、完成接待按钮)
*/
const getTotalCount = (): number => {
let count = displayData.value.length;
if (props.showPayBtn) count++;
if (props.type !== 'preview') count++;
return count;
};
/**
* 获取 FAB 项的样式类(根据索引判断是否为首尾元素)
* @param index 当前索引
*/
const getFabItemClass = (index: number): string[] => {
const classes: string[] = ['fab-item'];
const totalCount = getTotalCount();
// 第一个元素
if (index === 0) {
classes.push('fab-item-first');
}
// 最后一个元素
if (index === totalCount - 1) {
classes.push('fab-item-last');
}
return classes;
};
// ============================================================================ // ============================================================================
// 暴露给父组件的方法 // 暴露给父组件的方法
...@@ -239,102 +521,274 @@ defineExpose({ ...@@ -239,102 +521,274 @@ defineExpose({
<style scoped lang="scss"> <style scoped lang="scss">
.tool-box { .tool-box {
position: relative; position: fixed;
left: 0;
top: 0;
width: 100%; width: 100%;
height: 100%; height: 100%;
pointer-events: none;
.mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.4);
z-index: 1000;
pointer-events: auto;
}
.tool-panel {
position: fixed;
z-index: 1001;
transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 220ms ease;
}
.tool-panel-open {
opacity: 1;
transform: translateX(0) translateY(0);
pointer-events: auto;
}
.tool-panel-landscape.tool-panel-close {
opacity: 0;
transform: translateX(calc(var(--panel-width) + 60px));
pointer-events: none;
}
.tool-panel-portrait.tool-panel-close {
opacity: 0;
transform: translateY(100%);
pointer-events: none;
}
.trigger-holder {
position: fixed;
pointer-events: auto;
z-index: 1002;
}
.custom-trigger { .custom-trigger {
width: 56px; width: 48px;
height: 56px; height: 56px;
background: linear-gradient(45deg, #ff6b6b, #4673ff); background: linear-gradient(145deg, rgba(38, 45, 59, 0.95), rgba(52, 62, 82, 0.9));
border-radius: 50%; border-radius: 16px 0 0 16px;
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2); box-shadow: -4px 8px 24px rgba(0, 0, 0, 0.25), inset 1px 1px 2px rgba(255, 255, 255, 0.15);
border: 1px solid rgba(255, 255, 255, 0.1);
border-right-width: 0;
flex-direction: column; flex-direction: column;
transition: transform 0.3s ease; transition: transform 0.22s ease, box-shadow 0.22s ease;
&.expanded {
transform: rotate(90deg);
}
.trigger-text { .trigger-text {
position: relative; position: relative;
font-size: 11px; font-size: 11px;
color: #fff; color: #e2e8f0;
text-align: center; text-align: center;
white-space: nowrap; white-space: normal;
width: 34px;
line-height: 12px;
z-index: 2; z-index: 2;
font-weight: 500; font-weight: 600;
margin-top: 2px; margin-top: 4px;
} }
} }
.custom-trigger-active {
transform: scale(0.96);
box-shadow: -2px 4px 12px rgba(0, 0, 0, 0.3), inset 1px 1px 4px rgba(255, 255, 255, 0.05);
}
.list-wrapper { .list-wrapper {
box-sizing: border-box;
display: flex;
flex-direction: column;
padding: var(--fab-panel-padding-v) var(--fab-panel-padding-h);
margin-bottom: 0;
align-items: stretch;
background: linear-gradient(145deg, rgba(30, 36, 48, 0.95), rgba(42, 50, 66, 0.92));
box-shadow: -8px 24px 48px rgba(0, 0, 0, 0.4), inset 1px 1px 2px rgba(255, 255, 255, 0.1);
border: 1px solid rgba(255, 255, 255, 0.08);
}
.tool-panel-landscape .list-wrapper {
width: var(--panel-width);
height: var(--fab-panel-height);
border-radius: 20px 0 0 20px;
border-right-width: 0;
}
.tool-panel-portrait .list-wrapper {
width: 100%;
height: auto;
border-radius: 20px 20px 0 0;
border-bottom-width: 0;
}
.panel-head {
display: flex;
flex-direction: row;
align-items: center;
justify-content: space-between;
height: 32px;
padding: 0 4px 0 8px;
margin-bottom: 4px;
}
.panel-title {
font-size: 13px;
font-weight: 600;
color: #e2e8f0;
letter-spacing: 0.5px;
}
.panel-close {
width: 24px;
height: 24px;
border-radius: 12px;
display: flex;
align-items: center;
justify-content: center;
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.05);
}
.panel-close-text {
font-size: 16px;
font-weight: 300;
color: #94a3b8;
line-height: 16px;
}
.panel-body {
width: 100%;
flex: 1;
flex-direction: column;
display: flex;
}
.section-title {
display: flex;
flex-direction: row;
width: 100%;
font-size: 11px;
font-weight: 600;
letter-spacing: 0.5px;
color: rgba(255, 255, 255, 0.45);
padding: 0 4px;
}
.dynamic-group {
display: flex;
flex-direction: column;
padding-bottom: 6px;
width: 100%;
}
.fixed-group {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 16px; padding: 8px 0 4px;
padding: 16px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.06);
width: 100%;
}
.action-row {
display: flex;
flex-direction: row;
width: 100%;
justify-content: space-between;
margin-bottom: 8px; margin-bottom: 8px;
}
.action-col {
display: flex;
flex-direction: column;
width: 48%; /* 给中间留出大约 4% 的间距 */
}
.fab-item {
box-sizing: border-box;
display: flex;
flex-direction: column;
align-items: center; align-items: center;
justify-content: center;
cursor: pointer;
transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
width: 100%;
border-radius: 12px;
padding: 10px 6px;
background: rgba(255, 255, 255, 0.03);
border: 1px solid rgba(255, 255, 255, 0.04);
}
.fab-item { .fab-item-active {
transform: scale(0.96);
background: rgba(255, 255, 255, 0.08);
border-color: rgba(255, 255, 255, 0.15);
}
.icon-box {
position: relative;
width: 42px;
height: 42px;
border-radius: 10px;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
background: linear-gradient(180deg, rgba(240, 244, 255, 0.96), rgba(220, 230, 248, 0.92));
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
flex-shrink: 0;
.btn-icon,
.sprite-icon {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 50%;
display: flex; display: flex;
align-items: center;
justify-content: center; justify-content: center;
cursor: pointer; z-index: 1;
// margin-bottom: 10px; }
transition: transform 0.2s ease;
.item-text {
&:active { display: none;
transform: scale(0.95);
}
&.fab-item-first .icon-box {
border-radius: 5px 5px 0 0;
}
&.fab-item-last .icon-box {
border-radius: 0 0 5px 5px;
}
.icon-box {
position: relative;
width: 56px;
height: 56px;
// border-radius: 50%;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
background: #ffffff;
display: flex;
align-items: center;
justify-content: center;
overflow: hidden;
.btn-icon,
.sprite-icon {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
z-index: 1;
}
.item-text {
position: relative;
font-size: 11px;
color: #333;
text-align: center;
white-space: nowrap;
z-index: 2;
font-weight: 500;
}
}
} }
} }
.item-text {
margin-left: 0;
margin-top: 8px;
font-size: 11px;
color: rgba(255, 255, 255, 0.85);
font-weight: 500;
line-height: 14px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.fixed-item {
width: 100%;
}
.dynamic-item {
width: 100%;
}
.fixed-pay {
background: linear-gradient(180deg, #f3f7ff, #cedcf1);
}
.fixed-finish {
background: linear-gradient(180deg, #fff7ee, #e7d7c6);
}
} }
</style> </style>
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!