|
|
@@ -2,12 +2,9 @@
|
|
|
<view :class="classes">
|
|
|
<view class="nut-step-head">
|
|
|
<view class="nut-step-line"></view>
|
|
|
- <view
|
|
|
- class="nut-step-icon"
|
|
|
- :class="[!dot ? (icon ? 'is-icon' : 'is-text') : '']"
|
|
|
- >
|
|
|
+ <view class="nut-step-icon" :class="[!dot ? (icon ? 'is-icon' : 'is-text') : '']">
|
|
|
<template v-if="icon">
|
|
|
- <nut-icon class="nut-step-icon-inner" :name="icon" :size="size" />
|
|
|
+ <nut-icon class="nut-step-icon-inner" :color="iconColor" :name="icon" :size="size" />
|
|
|
</template>
|
|
|
<template v-else-if="dot"></template>
|
|
|
<template v-else>
|
|
|
@@ -25,14 +22,7 @@
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
-import {
|
|
|
- reactive,
|
|
|
- computed,
|
|
|
- inject,
|
|
|
- toRefs,
|
|
|
- getCurrentInstance,
|
|
|
- ComponentInternalInstance
|
|
|
-} from 'vue';
|
|
|
+import { reactive, computed, inject, toRefs, getCurrentInstance, ComponentInternalInstance } from 'vue';
|
|
|
import { createComponent } from '../../utils/create';
|
|
|
const { create, componentName } = createComponent('step');
|
|
|
|
|
|
@@ -50,6 +40,10 @@ export default create({
|
|
|
type: String,
|
|
|
default: null
|
|
|
},
|
|
|
+ iconColor: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
+ },
|
|
|
size: {
|
|
|
type: [String, Number],
|
|
|
default: '12px'
|