Open nelhop opened 6 years ago
It would be great if the vue-frame and iframe would have css-classes matching its states, as known from vue-router.
vue-frame
iframe
frame-link
frame-link-active
frame
vue-frame-loading
vue-frame-loaded
Hi @nelhop, that's an excellent idea you're proposing. I'll start by doing the events, then the dynamic class change will come.
It would be great if the
vue-frame
andiframe
would have css-classes matching its states, as known from vue-router.Handy classes for the
vue-frame
would be:frame-link
: as general classframe-link-active
: when the link is currently opened in theiframe
Handy classes for the
iframe
would be:frame
: when the iframe is loading the contentvue-frame-loading
: when the iframe is loading the contentvue-frame-loaded
: when the content of the iframe is finished loading (similar to #13)