@bscjc/webui 0.0.20 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,2 +1,58 @@
1
1
  # @bscjc/webui
2
2
  一个 Vue3 组件库,使用 Vite,Element Plus 和 TypeScript 构建的组件库
3
+
4
+ ## 组件目录介绍
5
+
6
+ @bscjc/webui 是一个基于 Element Plus 的 Vue3 组件库,包含以下组件:
7
+
8
+ | 组件名 | 说明 |
9
+ | ------------------ | ---------------------------------------------- |
10
+ | JcListLayout | 列表布局组件,支持自定义顶部和底部内容 |
11
+ | JcSelectQuery | 下拉选择器组件,支持多选、单选、搜索和全选功能 |
12
+ | JcDatePicker | 日期选择器组件,支持日期范围和月份范围选择 |
13
+ | JcInputSwitch | 输入切换组件,支持多字段切换输入 |
14
+ | JcInputComplex | 复杂输入切换组件,支持单行和多行文本输入 |
15
+ | JcTagQuery | 标签查询组件,用于展示和管理查询标签 |
16
+ | JcMoreQueryContain | 查询容器,用于包裹更多查询条件 |
17
+
18
+ ## 安装使用说明
19
+
20
+ ### 安装
21
+
22
+ ```shell
23
+ npm i @bscjc/webui
24
+ // 或者
25
+ pnpm add @bscjc/webui
26
+ ```
27
+
28
+ ### 完整导入
29
+
30
+ ```typescript
31
+ // src/main.ts
32
+ import { createApp } from "vue";
33
+ import App from "./App.vue";
34
+ import JcWebui from "@bscjc/webui";
35
+ import "@bscjc/webui/dist/index.css";
36
+
37
+ const app = createApp(App);
38
+ app.use(JcWebui);
39
+ app.mount("#app");
40
+ ```
41
+
42
+ ### 按需导入
43
+
44
+ ```vue
45
+ <template>
46
+ <JcSelectQuery
47
+ ref="selectRef"
48
+ field="selectList"
49
+ :options="options"
50
+ @change="(val:any) => console.log(val)"
51
+ >
52
+ </JcSelectQuery>
53
+ </template>
54
+
55
+ <script setup>
56
+ import { JcSelectQuery } from "@bscjc/webui";
57
+ </script>
58
+ ```