@tongfun/tf-widget 0.1.33 → 0.1.36
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/.eslintignore +10 -0
- package/.eslintrc.js +2 -1
- package/README.md +31 -30
- package/lib/tf-widget.common.js +5753 -2280
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +5753 -2280
- package/lib/tf-widget.umd.min.js +6 -6
- package/package.json +4 -3
- package/postinstall.js +1 -1
package/.eslintignore
ADDED
package/.eslintrc.js
CHANGED
|
@@ -12,6 +12,7 @@ module.exports = {
|
|
|
12
12
|
},
|
|
13
13
|
rules: {
|
|
14
14
|
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
15
|
-
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
|
|
15
|
+
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
|
|
16
|
+
'space-before-function-paren': [2, 'never'],
|
|
16
17
|
}
|
|
17
18
|
}
|
package/README.md
CHANGED
|
@@ -6,9 +6,17 @@
|
|
|
6
6
|
- [tinput](#21-tinput组件)
|
|
7
7
|
- [FormBody](#22-formbody单据体组件)
|
|
8
8
|
- [FormBodyItem](#23-formbodyitem-组件)
|
|
9
|
+
- [FormBodyItemCustom](#24-formBodyItem组件)
|
|
9
10
|
|
|
10
11
|
## 1 版本更新记录
|
|
11
12
|
|
|
13
|
+
## 🌿 0.1.35
|
|
14
|
+
- 新增formBodyItemcustom组件,用来加入插槽内容
|
|
15
|
+
- 单据体加入modelAdditionalProperties属性,用来配置不列出的属性
|
|
16
|
+
- 单据体的复选框可以隐藏
|
|
17
|
+
## 单据体若干bug 0.1.34
|
|
18
|
+
- 单据体复选框永远在左侧,并可选择不显示复选框
|
|
19
|
+
- 基础资料控件弹窗对外开放是否添加到body的选项
|
|
12
20
|
## 🍎 0.1.30
|
|
13
21
|
|
|
14
22
|
⭐ tinput适配单据体封装,加入打开前钩子函数,可选关闭自动属性创建
|
|
@@ -17,10 +25,6 @@
|
|
|
17
25
|
|
|
18
26
|
⭐ 更新基础资料建议弹框宽度
|
|
19
27
|
|
|
20
|
-
## 🍎 0.1.28
|
|
21
|
-
|
|
22
|
-
⭐ 补全tinput的placeholder能力
|
|
23
|
-
|
|
24
28
|
## 🍎 0.1.27
|
|
25
29
|
⭐ 修复基础资料输入控件使用搜索建议后不选定内容,打开弹窗显示了搜索建议
|
|
26
30
|
|
|
@@ -28,10 +32,6 @@
|
|
|
28
32
|
|
|
29
33
|
⭐ 修改工程watch的启动逻辑,启动后立即进行打包和外链,不必等到文件更改
|
|
30
34
|
|
|
31
|
-
|
|
32
|
-
## 🍎 0.1.26
|
|
33
|
-
⭐ 去除tinput组建自身实现的创建后获取焦点的动作
|
|
34
|
-
|
|
35
35
|
## 🍎 0.1.25
|
|
36
36
|
⭐ 修复Tinput基础资料弹窗,因解决单据体抖动的代码导致的数据查询在布局查询之前,从而导致搜索范围限定失效,的,问题
|
|
37
37
|
|
|
@@ -43,10 +43,6 @@
|
|
|
43
43
|
## 🍎 0.1.23
|
|
44
44
|
⭐ 1,t-input type = 'group' 控件无法展示分组数据
|
|
45
45
|
|
|
46
|
-
## 🍎 0.1.22
|
|
47
|
-
⭐ 1,更新通用列表的api请求文件
|
|
48
|
-
## 🍎 0.1.21
|
|
49
|
-
⭐ 1.添加关闭当前页事件
|
|
50
46
|
## 🍎 0.1.20
|
|
51
47
|
|
|
52
48
|
⭐ 1.第三版通用列表脱离测试阶段,开始进入使用
|
|
@@ -82,15 +78,6 @@
|
|
|
82
78
|
|
|
83
79
|
⭐ 1.优化基础资料组件(默认展示head__name字段,但此字段可控)
|
|
84
80
|
|
|
85
|
-
## 🍎 0.1.2
|
|
86
|
-
|
|
87
|
-
⭐ 1.添加postinstall信息
|
|
88
|
-
|
|
89
|
-
⭐ 2.添加babel插件
|
|
90
|
-
|
|
91
|
-
## 🍎 0.1.1
|
|
92
|
-
|
|
93
|
-
⭐ 1.组件库初始化
|
|
94
81
|
|
|
95
82
|
|
|
96
83
|
## 2 组件使用文档
|
|
@@ -211,6 +198,8 @@ placeholder : 提示信息
|
|
|
211
198
|
|
|
212
199
|
label-width: 就是label-width,感觉没什么卵用,默认150px
|
|
213
200
|
|
|
201
|
+
notFormBasicAppendBody: tinput基础资料控件的弹窗是否添加到body元素
|
|
202
|
+
|
|
214
203
|
#### (4) 其他说明
|
|
215
204
|
|
|
216
205
|
鉴于基础资料多个租户下不能兼容存在,基础资料的处理没有加入到input组件中
|
|
@@ -260,16 +249,18 @@ label-width: 就是label-width,感觉没什么卵用,默认150px
|
|
|
260
249
|
<FormBodyItem title="姓名" field="name" type="input" />
|
|
261
250
|
<FormBodyItem title="出生日期" field="birthDate" type="date" />
|
|
262
251
|
<FormBodyItem title="审核时间" field="auditTime" type="datetime" />
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
252
|
+
<!--
|
|
253
|
+
对于一些需要操作列,即没有实际数据的列,常见于列的相关操作
|
|
254
|
+
不要使用ux-table-column,会导致不能将字段添加到模版,新增行属性不全面
|
|
255
|
+
使用formBodyItemCustom
|
|
256
|
+
|
|
257
|
+
不要在这属性上添加field属性,对于custom组件来说,这是一个无效的属性
|
|
258
|
+
-->
|
|
259
|
+
<FormBodyItemCustom title="操作">
|
|
260
|
+
<template v-slot="{row}">
|
|
261
|
+
<el-button type="danger" size="mini" @click="deleteRow(row.id)">删除</el-button>
|
|
268
262
|
</template>
|
|
269
|
-
|
|
270
|
-
{{ scop.row.yy }}
|
|
271
|
-
</template>
|
|
272
|
-
</ux-table-column>
|
|
263
|
+
</FormBodyItemCustom>
|
|
273
264
|
|
|
274
265
|
<!-- 插槽 -->
|
|
275
266
|
<template v-slot:buttons="{currentRow}">
|
|
@@ -321,6 +312,7 @@ export default {
|
|
|
321
312
|
- **calculations** 列表行字段之间的计算关联 数学表达式
|
|
322
313
|
- **before-add-row:function(row)** 添加数据行(点击单据体新增按钮)之前执行
|
|
323
314
|
- **after-add-row(row)** 添加数据行之后执行
|
|
315
|
+
- **disable-checked** 不显示单据体复选框
|
|
324
316
|
|
|
325
317
|
#### methods
|
|
326
318
|
- **getFormateData(filter)** : 输出格式化之后的数据 <br>
|
|
@@ -359,3 +351,12 @@ export default {
|
|
|
359
351
|
|
|
360
352
|
#### methods
|
|
361
353
|
|
|
354
|
+
### **2.4 FormBodyItemCustom组件**
|
|
355
|
+
该组件的源码,仅仅提供一个插槽,通过插槽来定义一些右侧的操作类型的固定列<br>
|
|
356
|
+
也可以指定field和title等字段,也会显示出来相关的数据<br>
|
|
357
|
+
但是这个组件指定列,在新增行的时候,不会给新行添加field相关的属性<br>
|
|
358
|
+
如果需要每一行都有额外的属性(不在formBodyItem中,即不需要显示出来)<br>
|
|
359
|
+
有两种方式,一个是通过affterAddRow来进行动态添加属性(不建议)<br>
|
|
360
|
+
另一种是通过modelAddtionalProperties的formbody属性来添加<br>
|
|
361
|
+
|
|
362
|
+
|