update 订单详情
This commit is contained in:
24
src/components/noTemplateComponents/textOnlyComponent.js
Normal file
24
src/components/noTemplateComponents/textOnlyComponent.js
Normal file
@@ -0,0 +1,24 @@
|
||||
export default {
|
||||
props: {
|
||||
modelValue: {
|
||||
type: String | Number,
|
||||
required: true,
|
||||
},
|
||||
useBuiltin: {
|
||||
type: Boolean,
|
||||
default: true,
|
||||
},
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
orderStatusMap: ["等待", "确认", "生产", "暂停", "结束", "接受", "拒绝"],
|
||||
};
|
||||
},
|
||||
render: function (h) {
|
||||
return h(
|
||||
"span",
|
||||
{ style: { display: "block", marginTop: "0" } },
|
||||
this.useBuiltin ? this.orderStatusMap[this.modelValue] ?? "-" : this.modelValue.toString().trim() === "" ? "-" : this.modelValue.toString()
|
||||
);
|
||||
},
|
||||
};
|
||||
Reference in New Issue
Block a user