vue3-command-component
TypeScript icon, indicating that this package has built-in type declarations

1.0.4 • Public • Published

文档网站

安装

通过你项目使用的包管理器进行安装

::: code-group

$ npm install vue3-command-component
$ yarn add vue3-command-component
$ pnpm add vue3-command-component
$ bun add vue3-command-component

:::

多嘴一句,建议你使用Anthony Fu@antfu/ni

npm i -g @antfu/ni

然后你就可以无视包管理器差异了

ni vue3-command-component

使用

现在你可以直接使用了。

import { useElementPlusDialog } from "vue3-command-component";

const CommandDialog=useElementPlusDialog()

const Content=defineComponent({
  render(){
    return <div>弹窗内容</div>
  }
})

CommandDialog(<Content />)

更多示例请参见示例

Readme

Keywords

Package Sidebar

Install

npm i vue3-command-component

Weekly Downloads

217

Version

1.0.4

License

MIT

Unpacked Size

51.7 kB

Total Files

13

Last publish

Collaborators

  • pandavips