element-plus / element-plus

🎉 A Vue.js 3 UI Library made by Element team
https://element-plus.org
MIT License
24.67k stars 16.83k forks source link

[Component] [date-picker] Directive doesnt accept inside on components #18507

Open Altinshaqiri opened 1 month ago

Altinshaqiri commented 1 month ago

Bug Type: Component

Environment

Reproduction

Related Component

Reproduction Link

Docs

Steps to reproduce

<el-date-picker v-directive-tip="{id:'end_date'}" class="text-center border-0 text-right flex-1" :prefix-icon="'el-icon'" :disabled-date="testPickerOption" :clearable="false" :default-value="test" format="MMM DD, YYYY" value-format="YYYY-MM-DD" type="date" v-model="end_date"

What is Expected?

need to be added a directive inside of components for example date-picker

What is actually happening?

doesnt accept directive is missing

Additional comments

<el-date-picker v-directive-tip="{id:'end_date'}" class="text-center border-0 text-right flex-1" :prefix-icon="'el-icon'" :disabled-date="testPickerOption" :clearable="false" :default-value="test" format="MMM DD, YYYY" value-format="YYYY-MM-DD" type="date" v-model="end_date"

im trying to wrapp with span but when i click inside components el-datepicker doesnt return any event .

AtdheUruqi commented 1 month ago