@tongfun/tf-widget 0.1.29 → 0.1.30
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 +4 -0
- package/lib/tf-widget.common.js +264 -226
- package/lib/tf-widget.css +1 -1
- package/lib/tf-widget.umd.js +264 -226
- package/lib/tf-widget.umd.min.js +4 -4
- package/package.json +1 -1
- package/package/svg-icon/index.js +0 -8
- package/package/svg-icon/src/SvgIcon.vue +0 -59
- package/package/t-data-list/index.js +0 -6
- package/package/t-data-list/main.vue +0 -193
- package/package/t-data-list/src/condition-input/basic.vue +0 -31
- package/package/t-data-list/src/condition-input/date.vue +0 -106
- package/package/t-data-list/src/condition-input/index.vue +0 -100
- package/package/t-data-list/src/condition-input/input.vue +0 -31
- package/package/t-data-list/src/condition-input/number.vue +0 -115
- package/package/t-data-list/src/condition-input/select.vue +0 -86
- package/package/t-data-list/src/js/fieldTypeEnum.js +0 -10
- package/package/t-data-list/src/js/operatorEnum.js +0 -108
- package/package/t-data-list/src/js/qureyParamsEnum.js +0 -4
- package/package/t-data-list/src/js/util.js +0 -34
- package/package/t-data-list/src/mixins/button-controll-mixin.js +0 -93
- package/package/t-data-list/src/pushdown/push-down.vue +0 -158
- package/package/t-data-list/src/t-list-search.vue +0 -36
- package/package/t-data-list/src/t-plan/condition-always-item.vue +0 -143
- package/package/t-data-list/src/t-plan/condition-mult-item.vue +0 -222
- package/package/t-data-list/src/t-plan/index.vue +0 -195
- package/package/t-data-list/src/t-plan/plan-content.vue +0 -389
- package/package/t-data-list/src/t-table/index.vue +0 -129
- package/package/t-data-list/src/t-table/table-group-item-edit.vue +0 -238
- package/package/t-data-list/src/t-table/table-group-item.vue +0 -87
- package/package/t-data-list/src/t-table/table-group.vue +0 -180
- package/package/t-data-list/src/t-table/table-records-header-popover.vue +0 -246
- package/package/t-data-list/src/t-table/table-records-selected.vue +0 -159
- package/package/t-data-list/src/t-table/table-records.vue +0 -336
- package/package/t-input/children/address.vue +0 -101
- package/package/t-input/children/basic-display.vue +0 -41
- package/package/t-input/children/basic.vue +0 -261
- package/package/t-input/children/date.vue +0 -84
- package/package/t-input/children/group-components/group-dialog.vue +0 -344
- package/package/t-input/children/group.vue +0 -126
- package/package/t-input/children/input.vue +0 -67
- package/package/t-input/children/number.vue +0 -71
- package/package/t-input/children/select.vue +0 -86
- package/package/t-input/children/tfile/fiile-enclosure.vue +0 -233
- package/package/t-input/children/tfile/file-img/comp.png +0 -0
- package/package/t-input/children/tfile/file-img/excel.png +0 -0
- package/package/t-input/children/tfile/file-img/img.png +0 -0
- package/package/t-input/children/tfile/file-img/pdf.png +0 -0
- package/package/t-input/children/tfile/file-img/word.png +0 -0
- package/package/t-input/index.js +0 -7
- package/package/t-input/index.vue +0 -337
- package/package/t-input/tInputCache.js +0 -24
- package/package/tf-icon-picker/README.md +0 -8
- package/package/tf-icon-picker/index.js +0 -8
- package/package/tf-icon-picker/src/tf-icon-picker.vue +0 -266
- package/package/tf-layout/README.md +0 -115
- package/package/tf-layout/index.js +0 -8
- package/package/tf-layout/src/components/tf-labelbar.vue +0 -394
- package/package/tf-layout/src/components/tf-menu.vue +0 -180
- package/package/tf-layout/src/components/tf-right-menu.vue +0 -89
- package/package/tf-layout/src/components/tf-rotate-box.vue +0 -50
- package/package/tf-layout/src/tf-layout.vue +0 -140
- package/package/tf-widget/index.js +0 -8
- package/package/tf-widget/src/assets/common-input.less +0 -11
- package/package/tf-widget/src/children/basic-data/basic-data.vue +0 -366
- package/package/tf-widget/src/children/basic-data/dependcy/basic-data-selector.vue +0 -1087
- package/package/tf-widget/src/children/basic-data/dependcy/common-table.vue +0 -750
- package/package/tf-widget/src/children/basic-data/dependcy/condition-filter.vue +0 -519
- package/package/tf-widget/src/children/basic-data/dependcy/pagination.vue +0 -93
- package/package/tf-widget/src/children/basic-data/dependcy/table-control.vue +0 -240
- package/package/tf-widget/src/children/basic-data/dependcy/view-picture.vue +0 -108
- package/package/tf-widget/src/children/date-time.vue +0 -103
- package/package/tf-widget/src/children/date.vue +0 -103
- package/package/tf-widget/src/children/decimal.vue +0 -115
- package/package/tf-widget/src/children/integer.vue +0 -104
- package/package/tf-widget/src/children/property.vue +0 -59
- package/package/tf-widget/src/children/single-line-text.vue +0 -82
- package/package/tf-widget/src/children/small-pictures.vue +0 -223
- package/package/tf-widget/src/children/text-area.vue +0 -74
- package/package/tf-widget/src/children/tf-select.vue +0 -113
- package/package/tf-widget/src/tf-widget.vue +0 -175
|
@@ -1,175 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<component
|
|
3
|
-
:is="type"
|
|
4
|
-
:value="value"
|
|
5
|
-
v-bind="property"
|
|
6
|
-
:default-value="defaultValue"
|
|
7
|
-
:scope-data="type === 'basic_data' ? scopeData : null"
|
|
8
|
-
:in-entity="inEntity"
|
|
9
|
-
:enumtype="enumType"
|
|
10
|
-
:table-id="tableId"
|
|
11
|
-
:field="field"
|
|
12
|
-
:widgets="widgets"
|
|
13
|
-
:relation-fields="relationFields"
|
|
14
|
-
:much-select="muchSelect"
|
|
15
|
-
:input-more-select="inputMoreSelect"
|
|
16
|
-
:specific-cache="specificCache"
|
|
17
|
-
:disabled="disablesControl"
|
|
18
|
-
:for-dead-component-flag="forDeadComponentFlag"
|
|
19
|
-
@input="handleInput"
|
|
20
|
-
@addMuchData="addMuchData"
|
|
21
|
-
@handleSelected="handleSelected"
|
|
22
|
-
@rowClose="rowClose"
|
|
23
|
-
@receiptClose="receiptClose"
|
|
24
|
-
v-on="$listeners"
|
|
25
|
-
/>
|
|
26
|
-
</template>
|
|
27
|
-
<script>
|
|
28
|
-
import BasicData from './children/basic-data/basic-data.vue'
|
|
29
|
-
import TDate from './children/date'
|
|
30
|
-
import SingleLineText from './children/single-line-text'
|
|
31
|
-
import TextArea from './children/text-area'
|
|
32
|
-
import DropDownList from './children/tf-select'
|
|
33
|
-
import Decimal from './children/decimal'
|
|
34
|
-
import Integer from './children/integer'
|
|
35
|
-
import Property from './children/property'
|
|
36
|
-
import dateTime from './children/date-time'
|
|
37
|
-
import smallPictures from './children/small-pictures'
|
|
38
|
-
|
|
39
|
-
export default {
|
|
40
|
-
name: 'TfWidget',
|
|
41
|
-
components: {
|
|
42
|
-
basic_data: BasicData,
|
|
43
|
-
single_line_text: SingleLineText,
|
|
44
|
-
text_area: TextArea,
|
|
45
|
-
drop_down_list: DropDownList,
|
|
46
|
-
date: TDate,
|
|
47
|
-
decimal: Decimal,
|
|
48
|
-
integer: Integer,
|
|
49
|
-
index: Integer,
|
|
50
|
-
property: Property,
|
|
51
|
-
datetime: dateTime,
|
|
52
|
-
small_pictures: smallPictures
|
|
53
|
-
},
|
|
54
|
-
props: {
|
|
55
|
-
// 控件类型
|
|
56
|
-
type: {
|
|
57
|
-
type: String,
|
|
58
|
-
default: ''
|
|
59
|
-
},
|
|
60
|
-
// 双向绑定
|
|
61
|
-
value: {
|
|
62
|
-
type: [String, Number, Object, Array],
|
|
63
|
-
default: undefined
|
|
64
|
-
},
|
|
65
|
-
// 当前控件所在单据体的行的数据(用来实现属性自动填充
|
|
66
|
-
scopeData: {
|
|
67
|
-
type: Object,
|
|
68
|
-
default: null
|
|
69
|
-
},
|
|
70
|
-
// 控件是否在单据体当中(采用不同的样式和赋值策略)
|
|
71
|
-
inEntity: {
|
|
72
|
-
type: Boolean,
|
|
73
|
-
default: false
|
|
74
|
-
},
|
|
75
|
-
enumType: {
|
|
76
|
-
type: String,
|
|
77
|
-
default: ''
|
|
78
|
-
},
|
|
79
|
-
// 检索使用的tableid
|
|
80
|
-
tableId: {
|
|
81
|
-
type: String,
|
|
82
|
-
default: ''
|
|
83
|
-
},
|
|
84
|
-
// 绑定的字段
|
|
85
|
-
field: {
|
|
86
|
-
type: String,
|
|
87
|
-
default: ''
|
|
88
|
-
},
|
|
89
|
-
// 允许多选(用于基础资料)
|
|
90
|
-
muchSelect: {
|
|
91
|
-
type: Boolean,
|
|
92
|
-
default: false
|
|
93
|
-
},
|
|
94
|
-
// (用于基础资料)
|
|
95
|
-
widgets: {
|
|
96
|
-
type: Array,
|
|
97
|
-
default: () => []
|
|
98
|
-
},
|
|
99
|
-
// 关联属性
|
|
100
|
-
relationFields: {
|
|
101
|
-
type: Object,
|
|
102
|
-
default: null
|
|
103
|
-
},
|
|
104
|
-
/**
|
|
105
|
-
* 控件需要的所有信息集合对象
|
|
106
|
-
*/
|
|
107
|
-
property: {
|
|
108
|
-
type: Object,
|
|
109
|
-
default: () => {
|
|
110
|
-
return {}
|
|
111
|
-
}
|
|
112
|
-
},
|
|
113
|
-
inputMoreSelect: {
|
|
114
|
-
type: Boolean,
|
|
115
|
-
default: false
|
|
116
|
-
},
|
|
117
|
-
// 另外一个控制组件是否显示的属性(与自有的disabled联合确认属性值)
|
|
118
|
-
selfDisabled: {
|
|
119
|
-
type: Boolean,
|
|
120
|
-
default: false
|
|
121
|
-
},
|
|
122
|
-
// 特殊组件的缓存,非必填
|
|
123
|
-
specificCache: {
|
|
124
|
-
type: Object,
|
|
125
|
-
default: () => {
|
|
126
|
-
return {}
|
|
127
|
-
}
|
|
128
|
-
},
|
|
129
|
-
forDeadComponentFlag: { // 此标识用于写死的组件,将事件发射出去自己处理
|
|
130
|
-
type: Boolean,
|
|
131
|
-
default: false
|
|
132
|
-
}
|
|
133
|
-
},
|
|
134
|
-
data () {
|
|
135
|
-
return {
|
|
136
|
-
}
|
|
137
|
-
},
|
|
138
|
-
computed: {
|
|
139
|
-
defaultValue: function () {
|
|
140
|
-
return this.property.default_value
|
|
141
|
-
},
|
|
142
|
-
disablesControl: function () {
|
|
143
|
-
return this.selfDisabled || this.property.disabled
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
watch: {
|
|
147
|
-
|
|
148
|
-
value: {
|
|
149
|
-
handler: function (newValue) {
|
|
150
|
-
}
|
|
151
|
-
}
|
|
152
|
-
},
|
|
153
|
-
methods: {
|
|
154
|
-
handleInput (newValue) {
|
|
155
|
-
this.$emit('input', newValue)
|
|
156
|
-
},
|
|
157
|
-
addMuchData (value) {
|
|
158
|
-
this.$emit('addMuchData', value)
|
|
159
|
-
},
|
|
160
|
-
handleSelected (value) {
|
|
161
|
-
this.$emit('handleSelected', value)
|
|
162
|
-
},
|
|
163
|
-
receiptClose (value) {
|
|
164
|
-
this.$emit('receiptClose', value)
|
|
165
|
-
},
|
|
166
|
-
rowClose (value) {
|
|
167
|
-
this.$emit('rowClose', value)
|
|
168
|
-
}
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
</script>
|
|
172
|
-
|
|
173
|
-
<style scoped>
|
|
174
|
-
|
|
175
|
-
</style>
|