步骤 KLSteps

基本用法

在表单中使用

<kl-steps current={current} steps={steps} />
<kl-button title="下一步" on-click={current = (current + 1) % steps.length}></kl-button>
var component = new NEKUI.Component({
template: template,
data: {
current: 0,
steps: [{
key: 0,
title: '提交订单',
description: '2017-08-18 提交提交成功',
}, {
key: 1,
title: '付款成功',
description: '订单付款完成,商品将会送出',
}, {
key: 2,
title: '等待收货',
description: '订单正在配送中,请准备签收',
}, {
key: 3,
title: '完成',
description: '订单完成,感谢使用考拉海购',
}]
}
});

竖式布局

在表单中使用

<kl-steps height="600" direction="vertical" current={current} steps={steps} />
<kl-button title="下一步" on-click={current = (current + 1) % steps.length}></kl-button>
var component = new NEKUI.Component({
template: template,
data: {
current: 0,
steps: [{
key: 0,
title: '提交订单',
description: '2017-08-18 提交提交成功',
}, {
key: 1,
title: '付款成功',
description: '订单付款完成,商品将会送出',
}, {
key: 2,
title: '等待收货',
description: '订单正在配送中,请准备签收',
}, {
key: 3,
title: '完成',
description: '订单完成,感谢使用考拉海购',
}]
}
});

基本用法小尺寸

在表单中使用

<kl-steps size="small" current={current} steps={steps} />
<kl-button title="下一步" on-click={current = (current + 1) % steps.length}></kl-button>
var component = new NEKUI.Component({
template: template,
data: {
current: 0,
steps: [{
key: 0,
title: '提交订单',
description: '2017-08-18 提交提交成功',
}, {
key: 1,
title: '付款成功',
description: '订单付款完成,商品将会送出',
}, {
key: 2,
title: '等待收货',
description: '订单正在配送中,请准备签收',
}, {
key: 3,
title: '完成',
description: '订单完成,感谢使用考拉海购',
}]
}
});

竖式布局小尺寸

在表单中使用

<kl-steps height="600" direction="vertical" size="small" current={current} steps={steps} />
<kl-button title="下一步" on-click={current = (current + 1) % steps.length}></kl-button>
var component = new NEKUI.Component({
template: template,
data: {
current: 0,
steps: [{
key: 0,
title: '提交订单',
description: '2017-08-18 提交提交成功',
}, {
key: 1,
title: '付款成功',
description: '订单付款完成,商品将会送出',
}, {
key: 2,
title: '等待收货',
description: '订单正在配送中,请准备签收',
}, {
key: 3,
title: '完成',
description: '订单完成,感谢使用考拉海购',
}]
}
});

API