Business needs, to disable the clear button of the date selector, the official tutorial is to control whether the date select box displays the clear button through clearable
The solution is as follows
Add: clearable="false"
<el-date-picker
:clearable="false"
v-model="ny"
type="month"
format="yyyy-MM"
value-format='yyyy-MM'
placeholder="选择年月">
</el-date-picker>
Show the
effect