Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migrate library to vue 3 #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

eriknygren
Copy link

Checking if there's any interest to port this (very useful) library to vue 3.

Basically not much needed to change, we needed to update handler names following the migration guide

image

So the core changes are:
image

As well as update the testing and dev environment file to mount to vue 3 using the new mounting API

@eriknygren
Copy link
Author

eriknygren commented Dec 16, 2022

I realised this library is looking quite stale, so if anyone is looking for this in vue 3, I published my updated fork under vue-line-clamp-3 so to install:

npm install --save vue-line-clamp-3

import { createApp } from 'vue';
import lineClamp from 'vue-line-clamp-3'

const app = createApp({});
app.use(lineClamp, {
  // plugin options
})

full repo here

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant