tiny-vue/examples/sites/demos/mobile-first/app/collapse/custom-collapse-title-right...

45 lines
1.4 KiB
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<template>
<tiny-collapse v-model="activeNames">
<tiny-collapse-item name="1">
<template #title>
<span>一致性 Consistency</span>
</template>
<template #title-right>
<span><icon-clock-work class="icon-clockWork"></icon-clock-work></span>
</template>
<div>与现实生活一致与现实生活的流程逻辑保持一致遵循用户习惯的语言和概念</div>
<div>在界面中一致所有的元素和结构需保持一致比如设计样式图标和文本元素的位置等</div>
</tiny-collapse-item>
<tiny-collapse-item title="反馈 Feedback" title-right="反馈 Feedback" name="2">
<div>控制反馈通过界面样式和交互动效让用户可以清晰的感知自己的操作</div>
<div>页面反馈操作后通过页面元素的变化清晰地展现当前状态</div>
</tiny-collapse-item>
</tiny-collapse>
</template>
<script>
import { Collapse, CollapseItem } from '@opentiny/vue'
import { IconClockWork } from '@opentiny/vue-icon'
export default {
components: {
TinyCollapse: Collapse,
TinyCollapseItem: CollapseItem,
IconClockWork: IconClockWork()
},
data() {
return {
activeNames: ['1']
}
}
}
</script>
<style scoped>
.icon-clockWork {
fill: #1890ff;
font-size: 18px;
margin-right: 10px;
}
</style>