@weitutech/by-components-v3 1.0.7 → 1.1.0
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 -3
- package/dist/by-component-v3.css +1 -1
- package/dist/by-component-v3.mjs +288 -133
- package/dist/by-component-v3.umd.js +1 -1
- package/dist/types/packages/form/index.d.ts +3 -3
- package/dist/types/packages/form/src/props.d.ts +16 -2
- package/dist/types/packages/pager/index.d.ts +2 -2
- package/dist/types/packages/table/src/table.d.ts +21 -2
- package/dist/types/src/App.vue.d.ts +3 -1
- package/dist/types/src/config.d.ts +138 -21
- package/package.json +2 -3
- package/src/main.ts +2 -1
package/README.md
CHANGED
|
@@ -27,21 +27,29 @@ npm config set registry https://registry.npmjs.org/
|
|
|
27
27
|
|
|
28
28
|
|
|
29
29
|
出现功能修改后,需更新package的版本号
|
|
30
|
+
|
|
30
31
|
清除缓存
|
|
31
32
|
npm cache clean --force
|
|
33
|
+
|
|
34
|
+
发布之前一定要打包npm run build 在进行发布
|
|
35
|
+
|
|
32
36
|
发布
|
|
33
37
|
npm publish --access public
|
|
34
38
|
```
|
|
35
39
|
|
|
36
40
|
### 注意事项
|
|
37
41
|
|
|
38
|
-
|
|
42
|
+
#### 本地开发时可采用
|
|
43
|
+
|
|
44
|
+
1. 书写在scr/App.vue中、在打包测试使用npm link方式
|
|
45
|
+
2. npm link 方式关联依赖,package 入口配置为 src/main.js
|
|
39
46
|
|
|
40
47
|
### npm link
|
|
41
48
|
|
|
42
49
|
```
|
|
43
50
|
组件库中运行 npm link
|
|
44
51
|
项目中运行 npm link @weitutech/by-components-v3
|
|
52
|
+
然后组件库运行打包命令
|
|
45
53
|
```
|
|
46
54
|
|
|
47
55
|
### 关于新组件开发
|
|
@@ -244,6 +252,7 @@ const handleQueryClick = () => {}
|
|
|
244
252
|
<template>
|
|
245
253
|
<by-table
|
|
246
254
|
ref="BTableRef"
|
|
255
|
+
name="table"
|
|
247
256
|
:grid-options="gridOptions"
|
|
248
257
|
@checkbox-change="({records}) => handleCheckboxChange(records)"
|
|
249
258
|
@checkbox-all="({records}) => handleCheckboxChange(records)"
|
|
@@ -350,7 +359,6 @@ const handlePageChange = ({ page, limit }) => {
|
|
|
350
359
|
<by-table
|
|
351
360
|
:grid-options="gridOptions"
|
|
352
361
|
@setColumn="handleSetColumn"
|
|
353
|
-
@setGroupColumn="handleSetColumn"
|
|
354
362
|
>
|
|
355
363
|
</by-table>
|
|
356
364
|
</template>
|
|
@@ -383,7 +391,6 @@ const gridOptions = ref({
|
|
|
383
391
|
],
|
|
384
392
|
})
|
|
385
393
|
// setColumn 返回只有一级的表头
|
|
386
|
-
// setGroupColumn 返回多级表头数据
|
|
387
394
|
const handleSetColumn = (columns) => {
|
|
388
395
|
this.gridOptions.columns = [
|
|
389
396
|
{ type: "checkbox", width: 50, fixed: "left" },
|