Skip to content

Element UI to Element Plus - Forms validation #16747

Answered by warmthsea
jesspsilva asked this question in Q&A
Discussion options

You must be logged in to vote

elment-plus only expose out methods that are consistent with the documentation.

https://github.com/element-plus/element-plus/blob/d468b38494441d7eeabe7e029e184223f03487d2/packages/components/form/src/form.vue#L183C1-L204C3

You are using the implicit method of element-ui (The documentation does not explain), because vue2 throws all events directly, while element-plus uses defineExpose of vue > 3.2

You seem to want this, But I'm not sure it's good to expose fields out.
This requires view from the maintainer.

https://github.com/element-plus/element-plus/blob/d468b38494441d7eeabe7e029e184223f03487d2/packages/components/form/src/form.vue#L33C1-L33C37

Replies: 2 comments 10 replies

Comment options

You must be logged in to vote
6 replies
@btea
Comment options

@tolking
Comment options

@FrontEndDog
Comment options

@jesspsilva
Comment options

@warmthsea
Comment options

Answer selected by jesspsilva
Comment options

You must be logged in to vote
4 replies
@warmthsea
Comment options

@jesspsilva
Comment options

@warmthsea
Comment options

@warmthsea
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
5 participants