|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<template>
|
|
|
|
|
<div class="ds-edit" @mouseover="showTooltip = true" @mouseleave="showTooltip = false">
|
|
|
|
|
<span class="label">{{ label }}:</span>
|
|
|
|
|
<span class="label"><span class="required" v-if="required">*</span>{{ label }}:</span>
|
|
|
|
|
<span class="state">{{ GetState() }}</span>
|
|
|
|
|
<span class="iconfont icon-bianji1" @click="CilckEdit" v-show="showTooltip"></span>
|
|
|
|
|
</div>
|
|
|
|
@ -26,6 +26,12 @@
|
|
|
|
|
type: Boolean,
|
|
|
|
|
},
|
|
|
|
|
label: { type: String },
|
|
|
|
|
required: {
|
|
|
|
|
type: Boolean,
|
|
|
|
|
default: () => {
|
|
|
|
|
return false
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
option: {
|
|
|
|
|
type: Array,
|
|
|
|
|
default: () => {
|
|
|
|
@ -141,6 +147,15 @@
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<style lang="less" scoped>
|
|
|
|
|
.required {
|
|
|
|
|
color: red;
|
|
|
|
|
display: inline-block;
|
|
|
|
|
margin-right: 4px;
|
|
|
|
|
color: #ff4d4f;
|
|
|
|
|
font-size: 14px;
|
|
|
|
|
font-family: SimSun, sans-serif;
|
|
|
|
|
line-height: 1;
|
|
|
|
|
}
|
|
|
|
|
.label {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
font-weight: 400;
|
|
|
|
|