Skip to content

Commit

Permalink
feat(aio): ✨ add mount function
Browse files Browse the repository at this point in the history
  • Loading branch information
BeiyanYunyi committed Sep 30, 2024
1 parent 002c6c3 commit 71d6db1
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@project-trans/suggestion-box",
"type": "module",
"version": "0.1.0",
"version": "0.2.0",
"packageManager": "[email protected]+sha512.0a203ffaed5a3f63242cd064c8fb5892366c103e328079318f78062f24ea8c9d50bc6a47aa3567cabefd824d170e78fa2745ed1f16b132e16436146b7688f19b",
"description": "Suggestion box for Project Trans",
"author": {
Expand Down
16 changes: 15 additions & 1 deletion src/aio.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
import { createApp } from 'vue'
import App from './App.vue'

export default App
function mount(props: {
attachImageButtonText?: string
sendButtonText?: string
sendingButtonText?: string
sentSuccessButtonText?: string
sentFailedButtonText?: string
targetUrl?: string
textContentPlaceholder?: string
contactContentPlaceholder?: string
}, rootContainer: string | Element) {
createApp(App, props).mount(rootContainer)
}

export default mount

0 comments on commit 71d6db1

Please sign in to comment.