htui-yllkbz 1.3.17 → 1.3.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.
- package/README.md +10 -170
- package/lib/htui.common.js +86 -69
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.css +1 -1
- package/lib/htui.umd.js +86 -69
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +3 -3
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +1 -1
- package/src/packages/HtBaseData/index.vue +5 -0
- package/src/packages/HtSelectBaseData/index.vue +3 -1
- package/src/packages/HtShowBaseData/index.vue +11 -0
- package/src/packages/index.ts +5 -3
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -11,6 +11,7 @@
|
|
|
11
11
|
class="component-item"
|
|
12
12
|
:class="comClass"
|
|
13
13
|
:style="comStyle || ''"
|
|
14
|
+
filterable
|
|
14
15
|
:clearable="state.configJson['departmentId'].clearable"
|
|
15
16
|
:placeholder="`请选择部门`"
|
|
16
17
|
:collapse-tags="state.configJson['departmentId'].collapseTags"
|
|
@@ -56,6 +57,7 @@
|
|
|
56
57
|
<!-- 选择人员 -->
|
|
57
58
|
<el-select v-model="state.selectVal['userId']"
|
|
58
59
|
placeholder="请选择人员"
|
|
60
|
+
filterable
|
|
59
61
|
:disabled="!!disabled"
|
|
60
62
|
:style="comStyle || ''"
|
|
61
63
|
class="component-item"
|
|
@@ -95,6 +97,7 @@
|
|
|
95
97
|
<el-cascader v-if="!state.configJson['departmentUser'].panel"
|
|
96
98
|
:disabled="!!disabled"
|
|
97
99
|
class="component-item"
|
|
100
|
+
filterable
|
|
98
101
|
:class="comClass"
|
|
99
102
|
:style="comStyle || ''"
|
|
100
103
|
:clearable="state.configJson['departmentUser'].clearable"
|
|
@@ -146,6 +149,7 @@
|
|
|
146
149
|
</el-cascader>
|
|
147
150
|
<el-cascader-panel v-else
|
|
148
151
|
:style="panStyle"
|
|
152
|
+
filterable
|
|
149
153
|
class="component-item"
|
|
150
154
|
:placeholder="`请选择部门下人员`"
|
|
151
155
|
v-model="state.selectVal['departmentUser']"
|
|
@@ -261,6 +265,7 @@
|
|
|
261
265
|
class="component-item"
|
|
262
266
|
:style="comStyle || ''"
|
|
263
267
|
:key="item.id"
|
|
268
|
+
filterable
|
|
264
269
|
:clearable="state.configJson[item.code].clearable"
|
|
265
270
|
@click.native="selectClick($event)"
|
|
266
271
|
v-model="state.selectVal[item.code]"
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-12-30 15:47:47
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2022-04-
|
|
7
|
+
* @LastEditTime: 2022-04-19 09:45:04
|
|
8
8
|
-->
|
|
9
9
|
|
|
10
10
|
<template>
|
|
@@ -25,6 +25,7 @@
|
|
|
25
25
|
<div v-else>
|
|
26
26
|
<HtShowBaseData v-if="this.value"
|
|
27
27
|
:hide-code="hideCode"
|
|
28
|
+
:show-all-level="showAllLevels"
|
|
28
29
|
:base-data-id='this.value'
|
|
29
30
|
:base-data-info='true'
|
|
30
31
|
com-style="font-size:12px"
|
|
@@ -119,6 +120,7 @@ export default class HtSelectBaseData extends Vue {
|
|
|
119
120
|
body[dataTypeId] = {
|
|
120
121
|
name: "cece",
|
|
121
122
|
show: true,
|
|
123
|
+
filterable: true,
|
|
122
124
|
clearable: this.clearable,
|
|
123
125
|
disabled: this.disabled,
|
|
124
126
|
showAllLevels: this.showAllLevels,
|
|
@@ -234,6 +234,17 @@ export default class CommonDatas extends Vue {
|
|
|
234
234
|
if (this.baseDataId) {
|
|
235
235
|
const tempText = this.setAllLevel(this.baseDataId);
|
|
236
236
|
this.state.text = tempText;
|
|
237
|
+
} else {
|
|
238
|
+
this.state.text = "";
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
@Watch("baseDataId")
|
|
242
|
+
getText(val: string) {
|
|
243
|
+
if (val && this.baseDataItem) {
|
|
244
|
+
const tempText = this.setAllLevel(val);
|
|
245
|
+
this.state.text = tempText;
|
|
246
|
+
} else {
|
|
247
|
+
this.state.text = "";
|
|
237
248
|
}
|
|
238
249
|
}
|
|
239
250
|
|
package/src/packages/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-10-21 10:08:41
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2022-04-
|
|
7
|
+
* @LastEditTime: 2022-04-13 13:56:15
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
// 导入组件
|
|
@@ -24,10 +24,12 @@ import HtSelectOrg from './HtSelectOrg/index'
|
|
|
24
24
|
import HtSelectUser from './HtSelectUser/index'
|
|
25
25
|
import HtShowBaseData from './HtShowBaseData/index'
|
|
26
26
|
import HtOrgInfo from './HtOrgInfo/index'
|
|
27
|
+
import HtBaseData from './HtBaseData/index'
|
|
28
|
+
|
|
27
29
|
|
|
28
30
|
|
|
29
31
|
// 存储组件列表
|
|
30
|
-
const components = [HtSelectTable, HtPagination, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo]
|
|
32
|
+
const components = [HtBaseData, HtSelectTable, HtPagination, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo]
|
|
31
33
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
32
34
|
const install = function (Vue: any) {
|
|
33
35
|
// 判断是否安装
|
|
@@ -44,6 +46,6 @@ export default {
|
|
|
44
46
|
install,
|
|
45
47
|
// 以下是具体的组件列表
|
|
46
48
|
HtSelectTable, HtPagination, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles,
|
|
47
|
-
HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo
|
|
49
|
+
HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo, HtBaseData
|
|
48
50
|
}
|
|
49
51
|
|