Commit f58b630c by liimin

feat(组件): 更新工具箱组件图标和样式

- 将固定操作项的图标从雪碧图替换为本地图片资源
- 隐藏工具箱面板标题以简化界面
- 调整面板头部布局对齐方式
- 新增付款方式、文件处理和完成接待的工具图标文件
1 parent 69d161ab
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
@touchend.stop> @touchend.stop>
<view class="list-wrapper"> <view class="list-wrapper">
<view class="panel-head"> <view class="panel-head">
<text class="panel-title">{{ triggerText }}</text> <!-- <text class="panel-title">{{ triggerText }}</text> -->
<view class="panel-close" @click="hide"> <view class="panel-close" @click="hide">
<text class="panel-close-text">×</text> <text class="panel-close-text">×</text>
</view> </view>
...@@ -33,7 +33,11 @@ ...@@ -33,7 +33,11 @@
@touchcancel="handleActionTouchEnd" @touchcancel="handleActionTouchEnd"
@click="onActionClick(action as ToolAction)"> @click="onActionClick(action as ToolAction)">
<view :class="['icon-box', (action as ToolAction).kind == 'pay' ? 'fixed-pay' : 'fixed-finish']"> <view :class="['icon-box', (action as ToolAction).kind == 'pay' ? 'fixed-pay' : 'fixed-finish']">
<view :class="['sprite-icon', (action as ToolAction).iconClass]"></view> <image v-if="(action as ToolAction).iconUrl != ''"
class="btn-icon"
mode="aspectFill"
:src="(action as ToolAction).iconUrl" />
<view :class="['sprite-icon', (action as ToolAction).iconClass]"></view>
</view> </view>
<text class="item-text">{{ (action as ToolAction).label }}</text> <text class="item-text">{{ (action as ToolAction).label }}</text>
</view> </view>
...@@ -270,7 +274,7 @@ const fixedActionSlots = computed<Array<ToolAction | null>>(() => { ...@@ -270,7 +274,7 @@ const fixedActionSlots = computed<Array<ToolAction | null>>(() => {
kind: "pay", kind: "pay",
item: null, item: null,
label: "付款方式", label: "付款方式",
iconUrl: "", iconUrl: "../../static/images/reception/toolbox/tool-pay.png",
iconClass: "icon-tool-pay" iconClass: "icon-tool-pay"
} as ToolAction } as ToolAction
: null; : null;
...@@ -280,7 +284,7 @@ const fixedActionSlots = computed<Array<ToolAction | null>>(() => { ...@@ -280,7 +284,7 @@ const fixedActionSlots = computed<Array<ToolAction | null>>(() => {
kind: "finish", kind: "finish",
item: null, item: null,
label: "完成接待", label: "完成接待",
iconUrl: "", iconUrl: "../../static/images/reception/toolbox/tool-finish.png",
iconClass: "icon-tool-finish" iconClass: "icon-tool-finish"
} as ToolAction } as ToolAction
: null; : null;
...@@ -632,7 +636,7 @@ defineExpose({ ...@@ -632,7 +636,7 @@ defineExpose({
display: flex; display: flex;
flex-direction: row; flex-direction: row;
align-items: center; align-items: center;
justify-content: space-between; // justify-content: space-between;
height: 32px; height: 32px;
padding: 0 4px 0 8px; padding: 0 4px 0 8px;
margin-bottom: 4px; margin-bottom: 4px;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!