@tongfun/tf-widget 0.1.19 → 0.1.20

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.
Files changed (96) hide show
  1. package/README.md +46 -42
  2. package/lib/tf-widget.common.1.js +1 -1
  3. package/lib/tf-widget.common.js +472 -455
  4. package/lib/tf-widget.css +1 -1
  5. package/lib/tf-widget.umd.1.js +1 -1
  6. package/lib/tf-widget.umd.js +472 -455
  7. package/lib/tf-widget.umd.min.js +3 -3
  8. package/package/svg-icon/index.js +8 -8
  9. package/package/svg-icon/src/SvgIcon.vue +59 -59
  10. package/package/t-data-list/index.js +6 -6
  11. package/package/t-data-list/main.vue +193 -193
  12. package/package/t-data-list/src/condition-input/basic.vue +31 -31
  13. package/package/t-data-list/src/condition-input/date.vue +106 -106
  14. package/package/t-data-list/src/condition-input/index.vue +100 -100
  15. package/package/t-data-list/src/condition-input/input.vue +31 -31
  16. package/package/t-data-list/src/condition-input/number.vue +115 -115
  17. package/package/t-data-list/src/condition-input/select.vue +86 -86
  18. package/package/t-data-list/src/js/fieldTypeEnum.js +10 -10
  19. package/package/t-data-list/src/js/operatorEnum.js +108 -108
  20. package/package/t-data-list/src/js/qureyParamsEnum.js +4 -4
  21. package/package/t-data-list/src/js/util.js +34 -34
  22. package/package/t-data-list/src/mixins/button-controll-mixin.js +93 -93
  23. package/package/t-data-list/src/pushdown/push-down.vue +158 -158
  24. package/package/t-data-list/src/t-list-search.vue +36 -36
  25. package/package/t-data-list/src/t-plan/condition-always-item.vue +143 -143
  26. package/package/t-data-list/src/t-plan/condition-mult-item.vue +222 -222
  27. package/package/t-data-list/src/t-plan/index.vue +195 -195
  28. package/package/t-data-list/src/t-plan/plan-content.vue +389 -389
  29. package/package/t-data-list/src/t-table/index.vue +129 -129
  30. package/package/t-data-list/src/t-table/table-group-item-edit.vue +238 -238
  31. package/package/t-data-list/src/t-table/table-group-item.vue +87 -87
  32. package/package/t-data-list/src/t-table/table-group.vue +180 -180
  33. package/package/t-data-list/src/t-table/table-records-header-popover.vue +246 -246
  34. package/package/t-data-list/src/t-table/table-records-selected.vue +159 -159
  35. package/package/t-data-list/src/t-table/table-records.vue +337 -337
  36. package/package/t-input/children/address.vue +101 -101
  37. package/package/t-input/children/basic-display.vue +41 -41
  38. package/package/t-input/children/basic.vue +253 -253
  39. package/package/t-input/children/date.vue +89 -89
  40. package/package/t-input/children/group-components/group-dialog.vue +344 -344
  41. package/package/t-input/children/group.vue +126 -126
  42. package/package/t-input/children/input.vue +72 -72
  43. package/package/t-input/children/number.vue +74 -74
  44. package/package/t-input/children/select.vue +89 -89
  45. package/package/t-input/children/tfile/fiile-enclosure.vue +233 -233
  46. package/package/t-input/index.js +7 -7
  47. package/package/t-input/index.vue +337 -337
  48. package/package/t-input/tInputCache.js +24 -24
  49. package/package/tf-icon-picker/README.md +7 -7
  50. package/package/tf-icon-picker/index.js +8 -8
  51. package/package/tf-icon-picker/src/tf-icon-picker.vue +266 -266
  52. package/package/tf-layout/README.md +115 -115
  53. package/package/tf-layout/index.js +8 -8
  54. package/package/tf-layout/src/components/tf-labelbar.vue +382 -382
  55. package/package/tf-layout/src/components/tf-menu.vue +180 -180
  56. package/package/tf-layout/src/components/tf-right-menu.vue +89 -89
  57. package/package/tf-layout/src/components/tf-rotate-box.vue +50 -50
  58. package/package/tf-layout/src/tf-layout.vue +120 -120
  59. package/package/tf-widget/index.js +8 -8
  60. package/package/tf-widget/src/assets/common-input.less +10 -10
  61. package/package/tf-widget/src/children/basic-data/basic-data.vue +361 -361
  62. package/package/tf-widget/src/children/basic-data/dependcy/basic-data-selector.vue +1087 -1087
  63. package/package/tf-widget/src/children/basic-data/dependcy/common-table.vue +750 -750
  64. package/package/tf-widget/src/children/basic-data/dependcy/condition-filter.vue +519 -519
  65. package/package/tf-widget/src/children/basic-data/dependcy/pagination.vue +93 -93
  66. package/package/tf-widget/src/children/basic-data/dependcy/table-control.vue +240 -240
  67. package/package/tf-widget/src/children/basic-data/dependcy/view-picture.vue +108 -108
  68. package/package/tf-widget/src/children/date-time.vue +103 -103
  69. package/package/tf-widget/src/children/date.vue +103 -103
  70. package/package/tf-widget/src/children/decimal.vue +115 -115
  71. package/package/tf-widget/src/children/integer.vue +104 -104
  72. package/package/tf-widget/src/children/property.vue +59 -59
  73. package/package/tf-widget/src/children/single-line-text.vue +82 -82
  74. package/package/tf-widget/src/children/small-pictures.vue +223 -223
  75. package/package/tf-widget/src/children/text-area.vue +74 -74
  76. package/package/tf-widget/src/children/tf-select.vue +113 -113
  77. package/package/tf-widget/src/tf-widget.vue +175 -175
  78. package/package.json +44 -43
  79. package/src/api/edit.js +97 -97
  80. package/src/api/file-enclosure.js +26 -26
  81. package/src/api/push-down.js +19 -19
  82. package/src/api/table.js +294 -294
  83. package/src/api/tableV3.js +160 -186
  84. package/src/assets/images/icons/index.js +9 -9
  85. package/src/assets/images/icons/svg/add.svg +5 -5
  86. package/src/assets/images/icons/svg/push-down.svg +1 -1
  87. package/src/assets/images/icons/svg/remove.svg +1 -1
  88. package/src/assets/styles/common-table.less +202 -202
  89. package/src/directives/debounce.js +24 -0
  90. package/src/index.js +31 -31
  91. package/src/mixins/t-data-query-mixin.js +290 -290
  92. package/src/utils/auth.js +22 -22
  93. package/src/utils/request.js +42 -42
  94. package/src/utils/stato-anormale.js +59 -59
  95. package/src/utils/utils.js +109 -109
  96. package/src/utils/validate.js +84 -84
package/README.md CHANGED
@@ -1,42 +1,46 @@
1
- # TF-Widget
2
- ## 版本更新记录
3
-
4
- ## 🍎 0.1.18
5
-
6
- ⭐ 1.列表表头输入框搜索建议bug修复
7
-
8
- ## 🍎 0.1.7
9
-
10
- ⭐ 1.去除小数,整数组件禁用状态下的Lock图标
11
-
12
-
13
- ## 🍎 0.1.6
14
-
15
- ⭐ 1.input组件添加可清空选项
16
- ⭐ 2.input,select,text-area,date等组件更新禁用状态下输入框的背景色
17
- ⭐ 3.添加proxy代理以便本地测试组件
18
-
19
- ## 🍎 0.1.5
20
-
21
- ⭐ 1.新增基础资料组件默认值参数
22
-
23
- ## 🍎 0.1.4
24
-
25
- ⭐ 1.新增图片组件
26
-
27
- ## 🍎 0.1.3
28
-
29
- ⭐ 1.优化基础资料组件(默认展示head__name字段,但此字段可控)
30
-
31
- ## 🍎 0.1.2
32
-
33
- ⭐ 1.添加postinstall信息
34
- ⭐ 2.添加babel插件
35
-
36
- ## 🍎 0.1.1
37
-
38
- ⭐ 1.组件库初始化
39
-
40
-
41
- ## 使用文档
42
-
1
+ # TF-Widget
2
+ ## 版本更新记录
3
+ ## 🍎 0.1.20
4
+
5
+ ⭐ 1.第三版通用列表脱离测试阶段,开始进入使用
6
+ ⭐ 2.通用列表中的防抖指令使用局部引入方式,避免和应用的冲突和重复注册
7
+
8
+ ## 🍎 0.1.18
9
+
10
+ ⭐ 1.列表表头输入框搜索建议bug修复
11
+
12
+ ## 🍎 0.1.7
13
+
14
+ ⭐ 1.去除小数,整数组件禁用状态下的Lock图标
15
+
16
+
17
+ ## 🍎 0.1.6
18
+
19
+ ⭐ 1.input组件添加可清空选项
20
+ ⭐ 2.input,select,text-area,date等组件更新禁用状态下输入框的背景色
21
+ ⭐ 3.添加proxy代理以便本地测试组件
22
+
23
+ ## 🍎 0.1.5
24
+
25
+ ⭐ 1.新增基础资料组件默认值参数
26
+
27
+ ## 🍎 0.1.4
28
+
29
+ ⭐ 1.新增图片组件
30
+
31
+ ## 🍎 0.1.3
32
+
33
+ ⭐ 1.优化基础资料组件(默认展示head__name字段,但此字段可控)
34
+
35
+ ## 🍎 0.1.2
36
+
37
+ ⭐ 1.添加postinstall信息
38
+ ⭐ 2.添加babel插件
39
+
40
+ ## 🍎 0.1.1
41
+
42
+ ⭐ 1.组件库初始化
43
+
44
+
45
+ ## 使用文档
46
+
@@ -7,7 +7,7 @@
7
7
  // ESM COMPAT FLAG
8
8
  __webpack_require__.r(__webpack_exports__);
9
9
 
10
- // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"4d5f4d60-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/t-data-list/src/t-table/table-records-header-popover.vue?vue&type=template&id=a97f559c&scoped=true&
10
+ // CONCATENATED MODULE: ./node_modules/cache-loader/dist/cjs.js?{"cacheDirectory":"node_modules/.cache/vue-loader","cacheIdentifier":"8fae6596-vue-loader-template"}!./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./package/t-data-list/src/t-table/table-records-header-popover.vue?vue&type=template&id=a97f559c&scoped=true&
11
11
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',[_c('el-popover',{attrs:{"value":_vm.item.isShowFilter,"width":"200","trigger":"manual","placement":"bottom"}},[(_vm.getFieldType !=='enum' && _vm.item.isShowFilter)?_c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClickOut),expression:"handleClickOut"}],staticClass:"radio-context"},[_c('div',{staticClass:"context-list"},_vm._l((_vm.getOperatorEnumList),function(radioItem){return _c('div',{key:radioItem.value,class:{'list-item':true, 'list-item-active':radioItem.value === _vm.tableFilterData[_vm.item.field].operator},on:{"click":function($event){return _vm.handleFilterRadioClick(radioItem)}}},[_c('div',{staticClass:"list-text"},[_vm._v(_vm._s(radioItem.label))]),_c('div',{staticClass:"list-icon"},[_c('i',{directives:[{name:"show",rawName:"v-show",value:(radioItem.value === _vm.tableFilterData[_vm.item.field].operator),expression:"radioItem.value === tableFilterData[item.field].operator"}],staticClass:"el-icon-check"})])])}),0),_c('div',{staticClass:"context-list header-input"},[_c('ConditionInput',{directives:[{name:"show",rawName:"v-show",value:(_vm.item.selectItem && !_vm.item.selectItem.over),expression:"item.selectItem && !item.selectItem.over"}],attrs:{"type":_vm.getFieldType,"field":_vm.item.field,"table-head":true,"multi":_vm.item.selectItem && _vm.item.selectItem.multi,"range":_vm.item.selectItem && _vm.item.selectItem.range},model:{value:(_vm.tableFilterData[_vm.item.field].value),callback:function ($$v) {_vm.$set(_vm.tableFilterData[_vm.item.field], "value", $$v)},expression:"tableFilterData[item.field].value"}})],1),_c('div',{staticClass:"context-list"},[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleCancelConditionChange}},[_vm._v("取消")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleResetConditionChange}},[_vm._v("重置")]),_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.handleConditionChange}},[_vm._v("确定")])],1)]):(_vm.item.isShowFilter)?_c('div',{directives:[{name:"clickoutside",rawName:"v-clickoutside",value:(_vm.handleClickOut),expression:"handleClickOut"}],staticClass:"menu-context"},[_c('div',{staticClass:"context-list"},_vm._l((_vm.item.options),function(option){return _c('div',{key:option.enumId,class:{'list-item':true, 'list-item-active':_vm.tableFilterData[_vm.item.field].value.includes(option.enumId)},on:{"click":function($event){return _vm.handleFilterRadioClick(option.enumId)}}},[_c('div',{staticClass:"list-text"},[_vm._v(_vm._s(option.name))]),_c('div',{staticClass:"list-icon"},[_c('i',{directives:[{name:"show",rawName:"v-show",value:(_vm.tableFilterData[_vm.item.field].value.includes(option.enumId)),expression:"tableFilterData[item.field].value.includes(option.enumId)"}],staticClass:"el-icon-check"})])])}),0),_c('div',{staticClass:"context-list"},[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleCancelConditionChange}},[_vm._v("取消")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.handleResetConditionChange}},[_vm._v("清除")]),_c('el-button',{attrs:{"type":"primary","size":"mini"},on:{"click":_vm.handleConditionChange}},[_vm._v("确定")])],1)]):_vm._e(),_c('SvgIcon',{staticClass:"filter-icon",attrs:{"slot":"reference","icon-class":"filter"},on:{"mouseup":function($event){$event.stopPropagation();return _vm.handleFilterClick.apply(null, arguments)}},slot:"reference"})],1)],1)}
12
12
  var staticRenderFns = []
13
13