@tongfun/tf-widget 0.1.24 → 0.1.27
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 +77 -54
- package/lib/tf-widget.common.js +624 -618
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +624 -618
- package/lib/tf-widget.umd.min.js +4 -4
- package/package/svg-icon/index.js +8 -8
- package/package/svg-icon/src/SvgIcon.vue +59 -59
- package/package/t-data-list/index.js +6 -6
- package/package/t-data-list/main.vue +193 -193
- package/package/t-data-list/src/condition-input/basic.vue +31 -31
- package/package/t-data-list/src/condition-input/date.vue +106 -106
- package/package/t-data-list/src/condition-input/index.vue +100 -100
- package/package/t-data-list/src/condition-input/input.vue +31 -31
- package/package/t-data-list/src/condition-input/number.vue +115 -115
- package/package/t-data-list/src/condition-input/select.vue +86 -86
- package/package/t-data-list/src/js/fieldTypeEnum.js +10 -10
- package/package/t-data-list/src/js/operatorEnum.js +108 -108
- package/package/t-data-list/src/js/qureyParamsEnum.js +4 -4
- package/package/t-data-list/src/js/util.js +34 -34
- package/package/t-data-list/src/mixins/button-controll-mixin.js +93 -93
- package/package/t-data-list/src/pushdown/push-down.vue +158 -158
- package/package/t-data-list/src/t-list-search.vue +36 -36
- package/package/t-data-list/src/t-plan/condition-always-item.vue +143 -143
- package/package/t-data-list/src/t-plan/condition-mult-item.vue +222 -222
- package/package/t-data-list/src/t-plan/index.vue +195 -195
- package/package/t-data-list/src/t-plan/plan-content.vue +389 -389
- package/package/t-data-list/src/t-table/index.vue +129 -129
- package/package/t-data-list/src/t-table/table-group-item-edit.vue +238 -238
- package/package/t-data-list/src/t-table/table-group-item.vue +87 -87
- package/package/t-data-list/src/t-table/table-group.vue +180 -180
- package/package/t-data-list/src/t-table/table-records-header-popover.vue +246 -246
- package/package/t-data-list/src/t-table/table-records-selected.vue +159 -159
- package/package/t-data-list/src/t-table/table-records.vue +336 -336
- package/package/t-input/children/address.vue +101 -101
- package/package/t-input/children/basic-display.vue +41 -41
- package/package/t-input/children/basic.vue +261 -254
- package/package/t-input/children/date.vue +84 -89
- package/package/t-input/children/group-components/group-dialog.vue +344 -344
- package/package/t-input/children/group.vue +126 -126
- package/package/t-input/children/input.vue +67 -72
- package/package/t-input/children/number.vue +71 -74
- package/package/t-input/children/select.vue +86 -89
- package/package/t-input/children/tfile/fiile-enclosure.vue +233 -233
- package/package/t-input/index.js +7 -7
- package/package/t-input/index.vue +337 -337
- package/package/t-input/tInputCache.js +24 -24
- package/package/tf-icon-picker/README.md +7 -7
- package/package/tf-icon-picker/index.js +8 -8
- package/package/tf-icon-picker/src/tf-icon-picker.vue +266 -266
- package/package/tf-layout/README.md +115 -115
- package/package/tf-layout/index.js +8 -8
- package/package/tf-layout/src/components/tf-labelbar.vue +394 -394
- package/package/tf-layout/src/components/tf-menu.vue +180 -180
- package/package/tf-layout/src/components/tf-right-menu.vue +89 -89
- package/package/tf-layout/src/components/tf-rotate-box.vue +50 -50
- package/package/tf-layout/src/tf-layout.vue +140 -140
- package/package/tf-widget/index.js +8 -8
- package/package/tf-widget/src/assets/common-input.less +10 -10
- package/package/tf-widget/src/children/basic-data/basic-data.vue +361 -361
- package/package/tf-widget/src/children/basic-data/dependcy/basic-data-selector.vue +1087 -1087
- package/package/tf-widget/src/children/basic-data/dependcy/common-table.vue +750 -750
- package/package/tf-widget/src/children/basic-data/dependcy/condition-filter.vue +519 -519
- package/package/tf-widget/src/children/basic-data/dependcy/pagination.vue +93 -93
- package/package/tf-widget/src/children/basic-data/dependcy/table-control.vue +240 -240
- package/package/tf-widget/src/children/basic-data/dependcy/view-picture.vue +108 -108
- package/package/tf-widget/src/children/date-time.vue +103 -103
- package/package/tf-widget/src/children/date.vue +103 -103
- package/package/tf-widget/src/children/decimal.vue +115 -115
- package/package/tf-widget/src/children/integer.vue +104 -104
- package/package/tf-widget/src/children/property.vue +59 -59
- package/package/tf-widget/src/children/single-line-text.vue +82 -82
- package/package/tf-widget/src/children/small-pictures.vue +223 -223
- package/package/tf-widget/src/children/text-area.vue +74 -74
- package/package/tf-widget/src/children/tf-select.vue +113 -113
- package/package/tf-widget/src/tf-widget.vue +175 -175
- package/package.json +44 -44
- package/postinstall.js +1 -1
- package/src/api/edit.js +97 -97
- package/src/api/file-enclosure.js +26 -26
- package/src/api/push-down.js +19 -19
- package/src/api/table.js +294 -294
- package/src/api/tableV3.js +166 -166
- package/src/assets/images/icons/index.js +9 -9
- package/src/assets/images/icons/svg/add.svg +5 -5
- package/src/assets/images/icons/svg/push-down.svg +1 -1
- package/src/assets/images/icons/svg/remove.svg +1 -1
- package/src/assets/styles/common-table.less +202 -202
- package/src/directives/debounce.js +24 -24
- package/src/index.js +31 -31
- package/src/mixins/t-data-query-mixin.js +293 -290
- package/src/utils/auth.js +22 -22
- package/src/utils/request.js +42 -42
- package/src/utils/stato-anormale.js +59 -59
- package/src/utils/utils.js +109 -109
- package/src/utils/validate.js +84 -84
|
@@ -1,89 +1,84 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<el-date-picker
|
|
3
|
-
ref="date"
|
|
4
|
-
class="date"
|
|
5
|
-
:value="value"
|
|
6
|
-
:type="type"
|
|
7
|
-
:placeholder="placeholderComp"
|
|
8
|
-
:disabled="disabled"
|
|
9
|
-
:format="timeFormmat"
|
|
10
|
-
value-format="yyyy-MM-dd HH:mm:ss"
|
|
11
|
-
style="width:100%"
|
|
12
|
-
@input="handleInput"
|
|
13
|
-
/>
|
|
14
|
-
</template>
|
|
15
|
-
<script>
|
|
16
|
-
export default {
|
|
17
|
-
components: {
|
|
18
|
-
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
value: {
|
|
22
|
-
type: String,
|
|
23
|
-
default: null
|
|
24
|
-
},
|
|
25
|
-
disabled: {
|
|
26
|
-
type: Boolean,
|
|
27
|
-
default: false
|
|
28
|
-
}
|
|
29
|
-
},
|
|
30
|
-
inject: ['placeholder', 'datetime', 'entity'],
|
|
31
|
-
data () {
|
|
32
|
-
return {
|
|
33
|
-
|
|
34
|
-
}
|
|
35
|
-
},
|
|
36
|
-
computed: {
|
|
37
|
-
type () {
|
|
38
|
-
if (this.datetime) {
|
|
39
|
-
return 'datetime'
|
|
40
|
-
}
|
|
41
|
-
return 'date'
|
|
42
|
-
},
|
|
43
|
-
timeFormmat () {
|
|
44
|
-
if (this.datetime) {
|
|
45
|
-
return 'yyyy-MM-dd HH:mm:ss'
|
|
46
|
-
}
|
|
47
|
-
return 'yyyy-MM-dd'
|
|
48
|
-
},
|
|
49
|
-
placeholderComp () {
|
|
50
|
-
if (!this.placeholder) {
|
|
51
|
-
if (this.datetime) {
|
|
52
|
-
return '请输入日期时间'
|
|
53
|
-
}
|
|
54
|
-
return '请输入日期'
|
|
55
|
-
}
|
|
56
|
-
return this.placeholder
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
|
|
60
|
-
if (this.
|
|
61
|
-
this
|
|
62
|
-
}
|
|
63
|
-
},
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
this
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
::v-deep .el-icon-date{
|
|
86
|
-
width: 20px;
|
|
87
|
-
}
|
|
88
|
-
}
|
|
89
|
-
</style>
|
|
1
|
+
<template>
|
|
2
|
+
<el-date-picker
|
|
3
|
+
ref="date"
|
|
4
|
+
class="date"
|
|
5
|
+
:value="value"
|
|
6
|
+
:type="type"
|
|
7
|
+
:placeholder="placeholderComp"
|
|
8
|
+
:disabled="disabled"
|
|
9
|
+
:format="timeFormmat"
|
|
10
|
+
value-format="yyyy-MM-dd HH:mm:ss"
|
|
11
|
+
style="width:100%"
|
|
12
|
+
@input="handleInput"
|
|
13
|
+
/>
|
|
14
|
+
</template>
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
components: {
|
|
18
|
+
|
|
19
|
+
},
|
|
20
|
+
props: {
|
|
21
|
+
value: {
|
|
22
|
+
type: String,
|
|
23
|
+
default: null
|
|
24
|
+
},
|
|
25
|
+
disabled: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: false
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
inject: ['placeholder', 'datetime', 'entity'],
|
|
31
|
+
data () {
|
|
32
|
+
return {
|
|
33
|
+
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
computed: {
|
|
37
|
+
type () {
|
|
38
|
+
if (this.datetime) {
|
|
39
|
+
return 'datetime'
|
|
40
|
+
}
|
|
41
|
+
return 'date'
|
|
42
|
+
},
|
|
43
|
+
timeFormmat () {
|
|
44
|
+
if (this.datetime) {
|
|
45
|
+
return 'yyyy-MM-dd HH:mm:ss'
|
|
46
|
+
}
|
|
47
|
+
return 'yyyy-MM-dd'
|
|
48
|
+
},
|
|
49
|
+
placeholderComp () {
|
|
50
|
+
if (!this.placeholder) {
|
|
51
|
+
if (this.datetime) {
|
|
52
|
+
return '请输入日期时间'
|
|
53
|
+
}
|
|
54
|
+
return '请输入日期'
|
|
55
|
+
}
|
|
56
|
+
return this.placeholder
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
created () {
|
|
60
|
+
if (!this.value) {
|
|
61
|
+
this.handleInput(null)
|
|
62
|
+
}
|
|
63
|
+
},
|
|
64
|
+
methods: {
|
|
65
|
+
handleInput (value) {
|
|
66
|
+
this.$emit('input', value)
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
</script>
|
|
71
|
+
|
|
72
|
+
<style scoped lang='less'>
|
|
73
|
+
.date {
|
|
74
|
+
::v-deep .el-icon-date:before {
|
|
75
|
+
content: "\e78e";
|
|
76
|
+
font-size: 16px;
|
|
77
|
+
position: absolute;
|
|
78
|
+
right: 0% !important;
|
|
79
|
+
}
|
|
80
|
+
::v-deep .el-icon-date{
|
|
81
|
+
width: 20px;
|
|
82
|
+
}
|
|
83
|
+
}
|
|
84
|
+
</style>
|