# staff-vue3
**Repository Path**: qinz/staff-vue3
## Basic Information
- **Project Name**: staff-vue3
- **Description**: Vue3中使用webcomponent
- **Primary Language**: Unknown
- **License**: Not specified
- **Default Branch**: master
- **Homepage**: None
- **GVP Project**: No
## Statistics
- **Stars**: 0
- **Forks**: 0
- **Created**: 2022-06-08
- **Last Updated**: 2023-03-03
## Categories & Tags
**Categories**: Uncategorized
**Tags**: None
## README
# bgy-staff-pick for vue3 Demo
[在线文档](https://npm.countrygarden.com.cn/-/web/detail/bgy-staff-pick)
### 安装
```
npm install bgy-staff-pick -S
```
### 使用
Vue入口文件 `main.ts`
```typescript
import { createApp } from "vue";
import App from "./App.vue";
import router from "./router";
// 导入公共组件, 内部提供的组件有 bgy-selection bgy-dialog bgy-staff-card bgy-org-card
import "bgy-staff-pick";
const app = createApp(App);
app.use(router);
app.mount("#app");
```
业务组件中使用
```typescript
已选组织
已选人员
```
### 注意
bgy-selection 标签的 attribute 只有一个属性 visible ,用于控制弹窗的显示/隐藏
其他属性均为 property,注意 attribute 与 property 两者的区别
以下 visible 为标签的 attribute
设置标签的 property 如下所示
同时设置多个 property 可绑定到一个对象上
const property = reactive({
appCode: 'app01',
token: 'b9b9781e0dc2a5cb0148f215da25d2ae'
})