@tongfun/tf-widget 0.1.18 → 0.1.22

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 (99) hide show
  1. package/README.md +49 -42
  2. package/lib/css/1.841c5d60.css +1 -0
  3. package/lib/tf-widget.common.1.js +9 -13
  4. package/lib/tf-widget.common.js +1102 -950
  5. package/lib/tf-widget.css +1 -1
  6. package/lib/tf-widget.umd.1.js +9 -13
  7. package/lib/tf-widget.umd.js +1102 -950
  8. package/lib/tf-widget.umd.min.1.js +1 -1
  9. package/lib/tf-widget.umd.min.js +4 -4
  10. package/package/svg-icon/index.js +8 -8
  11. package/package/svg-icon/src/SvgIcon.vue +59 -59
  12. package/package/t-data-list/index.js +6 -6
  13. package/package/t-data-list/main.vue +193 -192
  14. package/package/t-data-list/src/condition-input/basic.vue +31 -31
  15. package/package/t-data-list/src/condition-input/date.vue +106 -106
  16. package/package/t-data-list/src/condition-input/index.vue +100 -100
  17. package/package/t-data-list/src/condition-input/input.vue +31 -31
  18. package/package/t-data-list/src/condition-input/number.vue +115 -115
  19. package/package/t-data-list/src/condition-input/select.vue +86 -86
  20. package/package/t-data-list/src/js/fieldTypeEnum.js +10 -10
  21. package/package/t-data-list/src/js/operatorEnum.js +108 -109
  22. package/package/t-data-list/src/js/qureyParamsEnum.js +4 -4
  23. package/package/t-data-list/src/js/util.js +34 -34
  24. package/package/t-data-list/src/mixins/button-controll-mixin.js +93 -77
  25. package/package/t-data-list/src/pushdown/push-down.vue +158 -158
  26. package/package/t-data-list/src/t-list-search.vue +36 -32
  27. package/package/t-data-list/src/t-plan/condition-always-item.vue +143 -143
  28. package/package/t-data-list/src/t-plan/condition-mult-item.vue +222 -222
  29. package/package/t-data-list/src/t-plan/index.vue +195 -190
  30. package/package/t-data-list/src/t-plan/plan-content.vue +389 -396
  31. package/package/t-data-list/src/t-table/index.vue +129 -120
  32. package/package/t-data-list/src/t-table/table-group-item-edit.vue +238 -238
  33. package/package/t-data-list/src/t-table/table-group-item.vue +87 -87
  34. package/package/t-data-list/src/t-table/table-group.vue +180 -179
  35. package/package/t-data-list/src/t-table/table-records-header-popover.vue +246 -250
  36. package/package/t-data-list/src/t-table/table-records-selected.vue +159 -159
  37. package/package/t-data-list/src/t-table/table-records.vue +337 -324
  38. package/package/t-input/children/address.vue +101 -101
  39. package/package/t-input/children/basic-display.vue +41 -41
  40. package/package/t-input/children/basic.vue +253 -251
  41. package/package/t-input/children/date.vue +89 -89
  42. package/package/t-input/children/group-components/group-dialog.vue +344 -350
  43. package/package/t-input/children/group.vue +126 -126
  44. package/package/t-input/children/input.vue +72 -72
  45. package/package/t-input/children/number.vue +74 -74
  46. package/package/t-input/children/select.vue +89 -89
  47. package/package/t-input/children/tfile/fiile-enclosure.vue +233 -233
  48. package/package/t-input/index.js +7 -7
  49. package/package/t-input/index.vue +337 -337
  50. package/package/t-input/tInputCache.js +24 -24
  51. package/package/tf-icon-picker/README.md +7 -7
  52. package/package/tf-icon-picker/index.js +8 -8
  53. package/package/tf-icon-picker/src/tf-icon-picker.vue +266 -266
  54. package/package/tf-layout/README.md +115 -115
  55. package/package/tf-layout/index.js +8 -8
  56. package/package/tf-layout/src/components/tf-labelbar.vue +394 -382
  57. package/package/tf-layout/src/components/tf-menu.vue +180 -180
  58. package/package/tf-layout/src/components/tf-right-menu.vue +89 -89
  59. package/package/tf-layout/src/components/tf-rotate-box.vue +50 -50
  60. package/package/tf-layout/src/tf-layout.vue +140 -120
  61. package/package/tf-widget/index.js +8 -8
  62. package/package/tf-widget/src/assets/common-input.less +10 -10
  63. package/package/tf-widget/src/children/basic-data/basic-data.vue +361 -361
  64. package/package/tf-widget/src/children/basic-data/dependcy/basic-data-selector.vue +1087 -1087
  65. package/package/tf-widget/src/children/basic-data/dependcy/common-table.vue +750 -750
  66. package/package/tf-widget/src/children/basic-data/dependcy/condition-filter.vue +519 -519
  67. package/package/tf-widget/src/children/basic-data/dependcy/pagination.vue +93 -93
  68. package/package/tf-widget/src/children/basic-data/dependcy/table-control.vue +240 -240
  69. package/package/tf-widget/src/children/basic-data/dependcy/view-picture.vue +108 -108
  70. package/package/tf-widget/src/children/date-time.vue +103 -103
  71. package/package/tf-widget/src/children/date.vue +103 -103
  72. package/package/tf-widget/src/children/decimal.vue +115 -115
  73. package/package/tf-widget/src/children/integer.vue +104 -104
  74. package/package/tf-widget/src/children/property.vue +59 -59
  75. package/package/tf-widget/src/children/single-line-text.vue +82 -82
  76. package/package/tf-widget/src/children/small-pictures.vue +223 -223
  77. package/package/tf-widget/src/children/text-area.vue +74 -74
  78. package/package/tf-widget/src/children/tf-select.vue +113 -113
  79. package/package/tf-widget/src/tf-widget.vue +175 -175
  80. package/package.json +44 -43
  81. package/src/api/edit.js +97 -97
  82. package/src/api/file-enclosure.js +26 -26
  83. package/src/api/push-down.js +19 -19
  84. package/src/api/table.js +294 -294
  85. package/src/api/tableV3.js +166 -186
  86. package/src/assets/images/icons/index.js +9 -9
  87. package/src/assets/images/icons/svg/add.svg +5 -5
  88. package/src/assets/images/icons/svg/push-down.svg +1 -1
  89. package/src/assets/images/icons/svg/remove.svg +1 -1
  90. package/src/assets/styles/common-table.less +202 -202
  91. package/src/directives/debounce.js +24 -0
  92. package/src/index.js +31 -31
  93. package/src/mixins/t-data-query-mixin.js +290 -289
  94. package/src/utils/auth.js +22 -22
  95. package/src/utils/request.js +42 -42
  96. package/src/utils/stato-anormale.js +59 -59
  97. package/src/utils/utils.js +109 -109
  98. package/src/utils/validate.js +84 -84
  99. package/lib/css/1.920744ef.css +0 -1
@@ -1,115 +1,115 @@
1
- <template>
2
- <div class="decimal">
3
- <el-input-number
4
- :disabled="JSON.parse(disabled)"
5
- :min="minLimit ? 0 : -Infinity"
6
- :controls="false"
7
- :placeholder="placeholder"
8
- :precision="Number(percision)"
9
- :value="value"
10
- @change="handleInput"
11
- v-on="$listeners"
12
- />
13
- <!-- <i v-if="disabled" class="el-icon-lock" /> -->
14
- </div>
15
- </template>
16
- <script>
17
- export default {
18
- components: {
19
-
20
- },
21
- props: {
22
- value: {
23
- type: [Object, Number, String],
24
- default: undefined
25
- },
26
- percision: {
27
- type: String,
28
- default: '2'
29
- },
30
- placeholder: {
31
- type: String,
32
- default: ''
33
- },
34
- disabled: {
35
- type: [Boolean, Object, String],
36
- default: null
37
- },
38
- defaultValue: {
39
- type: [String, Object],
40
- default: null
41
- },
42
- minLimit: {
43
- type: Boolean,
44
- default: true
45
- }
46
- },
47
- data () {
48
- return {
49
- // refName: Math.random().toString().slice(3, 9),
50
- // inputWidth: '0'
51
- }
52
- },
53
- watch: {
54
- value: {
55
- handler (newVal) {
56
- if (newVal === '') {
57
- this.handleInput(undefined)
58
- }
59
- }
60
- }
61
- },
62
- created () {
63
- if (this.defaultValue) {
64
- return this.$emit('input', this.defaultValue)
65
- }
66
- if (this.value) {
67
- return this.$emit('input', this.value)
68
- }
69
- this.$emit('input', undefined)
70
- },
71
-
72
- // mounted () {
73
- // this.inputWidth = this.$refs[this.refName].$children[0].$el.clientWidth + 'px'
74
- // },
75
-
76
- methods: {
77
- handleInput (value) {
78
- this.$emit('input', value)
79
- }
80
-
81
- }
82
- }
83
- </script>
84
-
85
- <style lang="less" scoped>
86
- @import '../assets/common-input.less';
87
- .decimal{
88
- width: 100%;
89
- display: flex;
90
- align-items: center;
91
- position: relative;
92
- ::v-deep .el-input{
93
- height: 100%;
94
- //margin-top: -0.55vh;
95
- }
96
- ::v-deep .el-input-number{
97
- width: 100%;
98
- }
99
- ::v-deep .el-input__inner{
100
- width: 100%;
101
- border: none;
102
- border-bottom: 1px solid #DCDCDC;
103
- border-radius: 0;
104
- text-align: left;
105
- }
106
- // .el-icon-lock{
107
- // position: absolute;
108
- // left: calc(var(--inputWidth) - 25px);
109
- // }
110
- // .el-icon-lock::before{
111
- // color: #C0C4CC;
112
- // font-size: 14px;
113
- // }
114
- }
115
- </style>
1
+ <template>
2
+ <div class="decimal">
3
+ <el-input-number
4
+ :disabled="JSON.parse(disabled)"
5
+ :min="minLimit ? 0 : -Infinity"
6
+ :controls="false"
7
+ :placeholder="placeholder"
8
+ :precision="Number(percision)"
9
+ :value="value"
10
+ @change="handleInput"
11
+ v-on="$listeners"
12
+ />
13
+ <!-- <i v-if="disabled" class="el-icon-lock" /> -->
14
+ </div>
15
+ </template>
16
+ <script>
17
+ export default {
18
+ components: {
19
+
20
+ },
21
+ props: {
22
+ value: {
23
+ type: [Object, Number, String],
24
+ default: undefined
25
+ },
26
+ percision: {
27
+ type: String,
28
+ default: '2'
29
+ },
30
+ placeholder: {
31
+ type: String,
32
+ default: ''
33
+ },
34
+ disabled: {
35
+ type: [Boolean, Object, String],
36
+ default: null
37
+ },
38
+ defaultValue: {
39
+ type: [String, Object],
40
+ default: null
41
+ },
42
+ minLimit: {
43
+ type: Boolean,
44
+ default: true
45
+ }
46
+ },
47
+ data () {
48
+ return {
49
+ // refName: Math.random().toString().slice(3, 9),
50
+ // inputWidth: '0'
51
+ }
52
+ },
53
+ watch: {
54
+ value: {
55
+ handler (newVal) {
56
+ if (newVal === '') {
57
+ this.handleInput(undefined)
58
+ }
59
+ }
60
+ }
61
+ },
62
+ created () {
63
+ if (this.defaultValue) {
64
+ return this.$emit('input', this.defaultValue)
65
+ }
66
+ if (this.value) {
67
+ return this.$emit('input', this.value)
68
+ }
69
+ this.$emit('input', undefined)
70
+ },
71
+
72
+ // mounted () {
73
+ // this.inputWidth = this.$refs[this.refName].$children[0].$el.clientWidth + 'px'
74
+ // },
75
+
76
+ methods: {
77
+ handleInput (value) {
78
+ this.$emit('input', value)
79
+ }
80
+
81
+ }
82
+ }
83
+ </script>
84
+
85
+ <style lang="less" scoped>
86
+ @import '../assets/common-input.less';
87
+ .decimal{
88
+ width: 100%;
89
+ display: flex;
90
+ align-items: center;
91
+ position: relative;
92
+ ::v-deep .el-input{
93
+ height: 100%;
94
+ //margin-top: -0.55vh;
95
+ }
96
+ ::v-deep .el-input-number{
97
+ width: 100%;
98
+ }
99
+ ::v-deep .el-input__inner{
100
+ width: 100%;
101
+ border: none;
102
+ border-bottom: 1px solid #DCDCDC;
103
+ border-radius: 0;
104
+ text-align: left;
105
+ }
106
+ // .el-icon-lock{
107
+ // position: absolute;
108
+ // left: calc(var(--inputWidth) - 25px);
109
+ // }
110
+ // .el-icon-lock::before{
111
+ // color: #C0C4CC;
112
+ // font-size: 14px;
113
+ // }
114
+ }
115
+ </style>
@@ -1,104 +1,104 @@
1
- <template>
2
- <div class="integer">
3
- <el-input-number
4
- :disabled="JSON.parse(disabled)"
5
- :controls="false"
6
- :placeholder="placeholder"
7
- :step="1"
8
- step-strictly
9
- :min="0"
10
- :value="value"
11
- @change="handleInput"
12
- v-on="$listeners"
13
- />
14
- <!-- <i v-if="disabled" class="el-icon-lock" /> -->
15
- </div>
16
- </template>
17
- <script>
18
- export default {
19
- components: {
20
-
21
- },
22
- props: {
23
- value: {
24
- type: [Object, Number, String],
25
- default: undefined
26
- },
27
- placeholder: {
28
- type: String,
29
- default: ''
30
- },
31
- disabled: {
32
- type: [Boolean, Object, String],
33
- default: null
34
- },
35
- defaultValue: {
36
- type: [String, Object],
37
- default: null
38
- }
39
- },
40
- data () {
41
- return {
42
- // refName: Math.random().toString().slice(3, 9),
43
- // inputWidth: '0'
44
- }
45
- },
46
- watch: {
47
- value: {
48
- handler (newVal) {
49
- if (newVal === '') {
50
- this.handleInput(undefined)
51
- }
52
- }
53
- }
54
- },
55
- created () {
56
- if (this.defaultValue) {
57
- return this.$emit('input', this.defaultValue)
58
- }
59
- if (this.value) {
60
- return this.$emit('input', this.value)
61
- }
62
- this.$emit('input', undefined)
63
- },
64
-
65
- // mounted () {
66
- // this.inputWidth = this.$refs[this.refName].$children[0].$el.clientWidth + 'px'
67
- // },
68
-
69
- methods: {
70
- handleInput (value) {
71
- this.$emit('input', value)
72
- }
73
-
74
- }
75
- }
76
- </script>
77
-
78
- <style lang="less" scoped>
79
- @import '../assets/common-input.less';
80
- .integer{
81
- width: 100%;
82
- display: flex;
83
- align-items: center;
84
- position: relative;
85
- ::v-deep .el-input-number{
86
- width: 100%;
87
- }
88
- ::v-deep .el-input__inner{
89
- width: 100%;
90
- border: none;
91
- border-bottom: 1px solid #DCDCDC;
92
- border-radius: 0;
93
- text-align: left;
94
- }
95
- // .el-icon-lock{
96
- // position: absolute;
97
- // left: calc(var(--inputWidth) - 25px);
98
- // }
99
- // .el-icon-lock::before{
100
- // color: #C0C4CC;
101
- // font-size: 14px;
102
- // }
103
- }
104
- </style>
1
+ <template>
2
+ <div class="integer">
3
+ <el-input-number
4
+ :disabled="JSON.parse(disabled)"
5
+ :controls="false"
6
+ :placeholder="placeholder"
7
+ :step="1"
8
+ step-strictly
9
+ :min="0"
10
+ :value="value"
11
+ @change="handleInput"
12
+ v-on="$listeners"
13
+ />
14
+ <!-- <i v-if="disabled" class="el-icon-lock" /> -->
15
+ </div>
16
+ </template>
17
+ <script>
18
+ export default {
19
+ components: {
20
+
21
+ },
22
+ props: {
23
+ value: {
24
+ type: [Object, Number, String],
25
+ default: undefined
26
+ },
27
+ placeholder: {
28
+ type: String,
29
+ default: ''
30
+ },
31
+ disabled: {
32
+ type: [Boolean, Object, String],
33
+ default: null
34
+ },
35
+ defaultValue: {
36
+ type: [String, Object],
37
+ default: null
38
+ }
39
+ },
40
+ data () {
41
+ return {
42
+ // refName: Math.random().toString().slice(3, 9),
43
+ // inputWidth: '0'
44
+ }
45
+ },
46
+ watch: {
47
+ value: {
48
+ handler (newVal) {
49
+ if (newVal === '') {
50
+ this.handleInput(undefined)
51
+ }
52
+ }
53
+ }
54
+ },
55
+ created () {
56
+ if (this.defaultValue) {
57
+ return this.$emit('input', this.defaultValue)
58
+ }
59
+ if (this.value) {
60
+ return this.$emit('input', this.value)
61
+ }
62
+ this.$emit('input', undefined)
63
+ },
64
+
65
+ // mounted () {
66
+ // this.inputWidth = this.$refs[this.refName].$children[0].$el.clientWidth + 'px'
67
+ // },
68
+
69
+ methods: {
70
+ handleInput (value) {
71
+ this.$emit('input', value)
72
+ }
73
+
74
+ }
75
+ }
76
+ </script>
77
+
78
+ <style lang="less" scoped>
79
+ @import '../assets/common-input.less';
80
+ .integer{
81
+ width: 100%;
82
+ display: flex;
83
+ align-items: center;
84
+ position: relative;
85
+ ::v-deep .el-input-number{
86
+ width: 100%;
87
+ }
88
+ ::v-deep .el-input__inner{
89
+ width: 100%;
90
+ border: none;
91
+ border-bottom: 1px solid #DCDCDC;
92
+ border-radius: 0;
93
+ text-align: left;
94
+ }
95
+ // .el-icon-lock{
96
+ // position: absolute;
97
+ // left: calc(var(--inputWidth) - 25px);
98
+ // }
99
+ // .el-icon-lock::before{
100
+ // color: #C0C4CC;
101
+ // font-size: 14px;
102
+ // }
103
+ }
104
+ </style>
@@ -1,59 +1,59 @@
1
- <template>
2
- <div>
3
- <el-input
4
- :value="value"
5
- :placeholder="placeholder"
6
- disabled
7
- @input="handleInput"
8
- v-on="$listeners"
9
- />
10
- </div>
11
- </template>
12
- <script>
13
- export default {
14
- components: {
15
-
16
- },
17
- props: {
18
- value: {
19
- type: [String, Object],
20
- default: ''
21
- },
22
- placeholder: {
23
- type: String,
24
- default: ''
25
- },
26
- defaultValue: {
27
- type: String,
28
- default: ''
29
- }
30
- },
31
- data () {
32
- return {
33
-
34
- }
35
- },
36
- created () {
37
- if (this.value) {
38
- return
39
- }
40
- if (this.defaultValue && !this.value) {
41
- return this.handleInput(this.defaultValue)
42
- }
43
- },
44
- methods: {
45
- handleInput (newValue) {
46
- this.$emit('input', newValue)
47
- }
48
- }
49
- }
50
- </script>
51
-
52
- <style lang="less" scoped>
53
- ::v-deep .el-input__inner{
54
- width: 100%;
55
- border: none;
56
- border-bottom: 1px solid #DCDCDC;
57
- border-radius: 0;
58
- }
59
- </style>
1
+ <template>
2
+ <div>
3
+ <el-input
4
+ :value="value"
5
+ :placeholder="placeholder"
6
+ disabled
7
+ @input="handleInput"
8
+ v-on="$listeners"
9
+ />
10
+ </div>
11
+ </template>
12
+ <script>
13
+ export default {
14
+ components: {
15
+
16
+ },
17
+ props: {
18
+ value: {
19
+ type: [String, Object],
20
+ default: ''
21
+ },
22
+ placeholder: {
23
+ type: String,
24
+ default: ''
25
+ },
26
+ defaultValue: {
27
+ type: String,
28
+ default: ''
29
+ }
30
+ },
31
+ data () {
32
+ return {
33
+
34
+ }
35
+ },
36
+ created () {
37
+ if (this.value) {
38
+ return
39
+ }
40
+ if (this.defaultValue && !this.value) {
41
+ return this.handleInput(this.defaultValue)
42
+ }
43
+ },
44
+ methods: {
45
+ handleInput (newValue) {
46
+ this.$emit('input', newValue)
47
+ }
48
+ }
49
+ }
50
+ </script>
51
+
52
+ <style lang="less" scoped>
53
+ ::v-deep .el-input__inner{
54
+ width: 100%;
55
+ border: none;
56
+ border-bottom: 1px solid #DCDCDC;
57
+ border-radius: 0;
58
+ }
59
+ </style>