@baosight-erp/bs-components 0.1.0 → 0.1.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 +10 -1
- package/dist/bs-components.js +506 -475
- package/dist/global.d.ts +93 -0
- package/dist/index.d.ts +35 -1
- package/package.json +1 -1
- package/dist/bs-components.js.map +0 -1
package/README.md
CHANGED
|
@@ -83,10 +83,19 @@ const {t, setLocale} = useLocale();
|
|
|
83
83
|
```ts
|
|
84
84
|
import BS, {EiInfo, callService} from '@baosight-erp/bs-components';
|
|
85
85
|
|
|
86
|
-
BS.
|
|
86
|
+
BS.success('保存成功');
|
|
87
|
+
BS.notify('提示', '详细内容', 'info');
|
|
87
88
|
const outInfo = await callService('SomeService', 'query', new EiInfo());
|
|
88
89
|
```
|
|
89
90
|
|
|
91
|
+
包内已随产物发布 `dist/index.d.ts` 与全局声明 `dist/global.d.ts`,安装后即可获得:
|
|
92
|
+
|
|
93
|
+
- `BS` 上全部工具方法与字典(`BS.DateUtil`、`BS.MathUtil`、`BS.FormUtil` 等)的参数与返回值提示;
|
|
94
|
+
- `BS.notify`、`BS.success`、`BS.warn`、`BS.error`、`BS.info`、`BS.callService` 等函数的签名提示;
|
|
95
|
+
- 模板中 `bsTable`、`bsTree` 等全局组件的 props 提示,以及组件实例上 `this.$BS` 的类型。
|
|
96
|
+
|
|
97
|
+
使用方只需保证 TypeScript 开启类型检查(`tsconfig.json` 建议 `"moduleResolution": "bundler"`、`"strict": true`),编辑器安装 Vue - Official 插件;纯 JavaScript 项目可在根目录添加 `jsconfig.json` 开启 `checkJs` 获得同样的提示。
|
|
98
|
+
|
|
90
99
|
## 组件清单
|
|
91
100
|
|
|
92
101
|
| 分类 | 组件 |
|