阅读量:0
antd-vue 在style里面 scoped修改默认样式-vue3
<a-form-item label="API选择" name="apiName" :rules="[{ required: true, message: '选择API' }]" > <a-input placeholder="选择API" v-model:value="formState.apiName" > <template #suffix> <span style="cursor:pointer;pointer-events: auto;color:#1890ff" @click="handleAdd"> 添加 </span> </template> </a-input> </a-form-item>
<style lang="less" scoped > ::v-deep .ant-form-item-label { padding:0px!important; } </style>