htui-yllkbz 2.0.0 → 2.0.2
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/lib/htui.common.js +135 -27
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.css +1 -1
- package/lib/htui.umd.js +135 -27
- 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 +2 -2
- package/src/App.vue +22 -5
- package/src/packages/HtButtonText/index.ts +15 -0
- package/src/packages/HtButtonText/index.vue +47 -0
- package/src/packages/HtDrawer/index.vue +6 -8
- package/src/packages/HtTable/index.vue +9 -8
- package/src/packages/index.ts +4 -3
- package/src/packages/HtTable/table.vue +0 -604
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
package/src/App.vue
CHANGED
|
@@ -4,11 +4,16 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-11-15 14:41:40
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime:
|
|
7
|
+
* @LastEditTime: 2025-03-31 15:31:29
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div id="app">
|
|
11
|
-
<
|
|
11
|
+
<HtButtonText @click="handelClick">编辑</HtButtonText>
|
|
12
|
+
|
|
13
|
+
<HtButtonText type='delete'>编辑</HtButtonText>
|
|
14
|
+
<HtSelectUser :isTag="true"
|
|
15
|
+
v-model="state.value"
|
|
16
|
+
:readonly="true">
|
|
12
17
|
</HtSelectUser>
|
|
13
18
|
<!-- <iframe
|
|
14
19
|
id="mainFrame"
|
|
@@ -76,8 +81,11 @@
|
|
|
76
81
|
v-model="state.value"
|
|
77
82
|
data-type-id="SeverityLevel"
|
|
78
83
|
></ht-select-base-data> -->
|
|
79
|
-
<ht-select-base-data :onlyParent="true"
|
|
80
|
-
|
|
84
|
+
<ht-select-base-data :onlyParent="true"
|
|
85
|
+
v-model="state.value"
|
|
86
|
+
:dataTypeId="'TextList'"></ht-select-base-data>
|
|
87
|
+
<ht-select-base-data :parentId="state.value"
|
|
88
|
+
:dataTypeId="'TextList'"></ht-select-base-data>
|
|
81
89
|
|
|
82
90
|
<router-view></router-view>
|
|
83
91
|
</div>
|
|
@@ -92,6 +100,7 @@ import HtShowBaseType from "@/packages/HtShowBaseType";
|
|
|
92
100
|
import HtSelectTimeSlot from "@/packages/HtSelectTimeSlot";
|
|
93
101
|
import HtSelectPosition from "@/packages/HtSelectPosition";
|
|
94
102
|
import HtSelectCategory from "@/packages/HtSelectCategory";
|
|
103
|
+
import HtButtonText from "@/packages/HtButtonText";
|
|
95
104
|
import HtMore from "@/packages/HtMore";
|
|
96
105
|
import HtSelectUnit from "@/packages/HtSelectUnit";
|
|
97
106
|
import HtTimeLine from "@/packages/HtTimeLine";
|
|
@@ -113,11 +122,15 @@ import HtMd from "./packages/HtMd";
|
|
|
113
122
|
HtSelectCategory,
|
|
114
123
|
HtTimeLineItem,
|
|
115
124
|
HtTimeLine,
|
|
125
|
+
HtButtonText,
|
|
116
126
|
},
|
|
117
127
|
})
|
|
118
128
|
export default class App extends Vue {
|
|
119
129
|
state = {
|
|
120
|
-
value: [
|
|
130
|
+
value: [
|
|
131
|
+
"a4222291-5a01-1f58-9f1a-3a0c8ea5966d",
|
|
132
|
+
"50eb2d57-8529-00fb-4244-3a0c8ec117b0",
|
|
133
|
+
],
|
|
121
134
|
timeValue: undefined,
|
|
122
135
|
options: [
|
|
123
136
|
{
|
|
@@ -408,6 +421,10 @@ export default class App extends Vue {
|
|
|
408
421
|
change() {
|
|
409
422
|
// console.log("eeee", e);
|
|
410
423
|
}
|
|
424
|
+
handelClick() {
|
|
425
|
+
// alert(333);
|
|
426
|
+
// console.log("44444444444444444444");
|
|
427
|
+
}
|
|
411
428
|
testuser(e: any, data: any) {
|
|
412
429
|
//console.log('eee', e, data);
|
|
413
430
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* @Descripttion: 基础数据展示组件
|
|
3
|
+
* @version:
|
|
4
|
+
* @Author: hutao
|
|
5
|
+
* @Date: 2022-04-12 17:34:51
|
|
6
|
+
* @LastEditors: hutao
|
|
7
|
+
* @LastEditTime: 2025-03-31 15:28:54
|
|
8
|
+
*/
|
|
9
|
+
|
|
10
|
+
import HtButtonText from "./index.vue";
|
|
11
|
+
(HtButtonText as any).install = function (Vue: any) {
|
|
12
|
+
|
|
13
|
+
Vue.component("HtButtonText", HtButtonText);
|
|
14
|
+
};
|
|
15
|
+
export default HtButtonText;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
<!--
|
|
2
|
+
* @Descripttion: 更多
|
|
3
|
+
* @version:
|
|
4
|
+
* @Author: hutao
|
|
5
|
+
* @Date: 2022-09-28 10:24:08
|
|
6
|
+
* @LastEditors: hutao
|
|
7
|
+
* @LastEditTime: 2025-03-31 15:29:34
|
|
8
|
+
-->
|
|
9
|
+
<template>
|
|
10
|
+
<el-button :loading="loading"
|
|
11
|
+
@click="$emit('click')"
|
|
12
|
+
:disabled="disabled"
|
|
13
|
+
:class="type=='delete'?'ht-btn-text-delete':''"
|
|
14
|
+
class="ht-btn-text"
|
|
15
|
+
type="text">
|
|
16
|
+
<slot>编辑</slot>
|
|
17
|
+
</el-button>
|
|
18
|
+
</template>
|
|
19
|
+
<script lang="ts">
|
|
20
|
+
import { Component, Prop, Vue } from "vue-property-decorator";
|
|
21
|
+
|
|
22
|
+
interface State {
|
|
23
|
+
visible: boolean;
|
|
24
|
+
}
|
|
25
|
+
@Component({
|
|
26
|
+
name: "HtButtonText",
|
|
27
|
+
})
|
|
28
|
+
export default class HtButtonText extends Vue {
|
|
29
|
+
@Prop({ default: false }) loading?: boolean;
|
|
30
|
+
@Prop({ default: false }) disabled?: boolean;
|
|
31
|
+
@Prop({ default: "" }) type?: string;
|
|
32
|
+
|
|
33
|
+
/** 数据 */
|
|
34
|
+
state: State = {
|
|
35
|
+
visible: false,
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
</script>
|
|
39
|
+
<style lang="scss" scoped>
|
|
40
|
+
.ht-btn-text {
|
|
41
|
+
padding-top: 0;
|
|
42
|
+
padding-bottom: 0;
|
|
43
|
+
}
|
|
44
|
+
.ht-btn-text-delete {
|
|
45
|
+
color: var(--danger) !important;
|
|
46
|
+
}
|
|
47
|
+
</style>
|
|
@@ -32,9 +32,11 @@
|
|
|
32
32
|
</span>
|
|
33
33
|
<div
|
|
34
34
|
style="overflow: hidden; padding: 0 16px"
|
|
35
|
-
:style="
|
|
36
|
-
|
|
37
|
-
|
|
35
|
+
:style="
|
|
36
|
+
`height:calc(100vh - ${withFooter ? '72px' : '0px'} - ${
|
|
37
|
+
withHeader ? (htClass === 'ht-new-drawer' ? '60px' : '56px') : '0px'
|
|
38
|
+
})`
|
|
39
|
+
"
|
|
38
40
|
>
|
|
39
41
|
<el-scrollbar style="height: calc(100% + 17px)">
|
|
40
42
|
<slot></slot>
|
|
@@ -54,11 +56,7 @@
|
|
|
54
56
|
>
|
|
55
57
|
{{ okText }}
|
|
56
58
|
</el-button>
|
|
57
|
-
<el-button
|
|
58
|
-
:loading="loading"
|
|
59
|
-
style="margin-right: 16px"
|
|
60
|
-
@click="onCancel"
|
|
61
|
-
>
|
|
59
|
+
<el-button :loading="loading" @click="onCancel">
|
|
62
60
|
{{ cancelText }}
|
|
63
61
|
</el-button>
|
|
64
62
|
</template>
|
|
@@ -4,11 +4,11 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2021-11-11 11:23:24
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime: 2025-
|
|
7
|
+
* @LastEditTime: 2025-03-18 14:15:22
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
10
|
<div v-loading="state.loading"
|
|
11
|
-
|
|
11
|
+
>
|
|
12
12
|
<article>
|
|
13
13
|
<el-table ref="comTable"
|
|
14
14
|
:height="height"
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
:default-expand-all="defaultExpandAll"
|
|
21
21
|
:expand-row-keys="expandRowKeys"
|
|
22
22
|
:stripe="stripe !== undefined ? stripe : true"
|
|
23
|
-
:size="size
|
|
23
|
+
:size="size"
|
|
24
24
|
:fit="fit"
|
|
25
25
|
:span-method="spanMethodCom"
|
|
26
26
|
:header-row-style="headerRowStyle || { background: 'var(--primary-92)' }
|
|
@@ -169,11 +169,8 @@
|
|
|
169
169
|
</article>
|
|
170
170
|
<footer v-if="!hidePage"
|
|
171
171
|
class="ht-table-footer">
|
|
172
|
-
<el-row name="footer">
|
|
173
|
-
|
|
174
|
-
<slot name="footerLeft"></slot>
|
|
175
|
-
|
|
176
|
-
<el-col :span="$slots['footerLeft'] ? 12 : 24">
|
|
172
|
+
<el-row name="footer" style="margin-top:16px">
|
|
173
|
+
<el-col :span="$slots['footerRight'] ? 12 : 24">
|
|
177
174
|
<!-- <p style="width:90px;float:left">共{{data.length}}条</p> -->
|
|
178
175
|
<PageInfo :hide-on-single-page="pagination && pagination.hideOnSinglePage"
|
|
179
176
|
:small="pagination && pagination.small"
|
|
@@ -182,6 +179,10 @@
|
|
|
182
179
|
:page-sizes="pagination && pagination.pageSizes"
|
|
183
180
|
:page-info="state.pageInfo"></PageInfo>
|
|
184
181
|
</el-col>
|
|
182
|
+
<!-- 此处建议使用el-col -->
|
|
183
|
+
<slot name="footerRight"></slot>
|
|
184
|
+
|
|
185
|
+
|
|
185
186
|
</el-row>
|
|
186
187
|
</footer>
|
|
187
188
|
<!-- 详情弹框 -->
|
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: 2025-03-
|
|
7
|
+
* @LastEditTime: 2025-03-31 15:33:16
|
|
8
8
|
*/
|
|
9
9
|
|
|
10
10
|
// 导入组件
|
|
@@ -16,6 +16,7 @@ import HtPagination from './PageInfo/index'
|
|
|
16
16
|
import HtTable from './HtTable/index'
|
|
17
17
|
import HtExport from './HtExport/index'
|
|
18
18
|
import HtUpload from './HtUpload/index'
|
|
19
|
+
import HtButtonText from './HtButtonText/index'
|
|
19
20
|
import HtMd from './HtMd/index'
|
|
20
21
|
import HtCountDown from './HtCountDown/index'
|
|
21
22
|
import HtUploadFiles from './HtUploadFiles/index'
|
|
@@ -51,7 +52,7 @@ import HtRealTime from './HtRealTime'
|
|
|
51
52
|
|
|
52
53
|
|
|
53
54
|
// 存储组件列表
|
|
54
|
-
const components = [HtRealTime, HtDialog,HtRow, HtTimeLineItem, HtCol, HtTimeLine, HtBread, HtPopover, HtModel, HtMenu, HtSelectCategory, HtSelectUnit, HtSelectPosition, HtMore, HtSelectTimeSlot, HtSelectCron, HtBaseData, HtDrawer, HtShowBaseType, HtSelectTable, HtPagination, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo]
|
|
55
|
+
const components = [HtRealTime,HtButtonText, HtDialog,HtRow, HtTimeLineItem, HtCol, HtTimeLine, HtBread, HtPopover, HtModel, HtMenu, HtSelectCategory, HtSelectUnit, HtSelectPosition, HtMore, HtSelectTimeSlot, HtSelectCron, HtBaseData, HtDrawer, HtShowBaseType, HtSelectTable, HtPagination, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtSelectBaseData, HtSelectOrg, HtSelectUser, HtShowBaseData, HtOrgInfo]
|
|
55
56
|
// 定义 install 方法,接收 Vue 作为参数。如果使用 use 注册插件,则所有的组件都将被注册
|
|
56
57
|
const install = function (Vue: any) {
|
|
57
58
|
// 判断是否安装
|
|
@@ -67,7 +68,7 @@ export default {
|
|
|
67
68
|
// 导出的对象必须具有 install,才能被 Vue.use() 方法安装
|
|
68
69
|
install,
|
|
69
70
|
// 以下是具体的组件列表
|
|
70
|
-
HtRow, HtCol, HtRealTime, HtModel, HtBread, HtPopover,
|
|
71
|
+
HtRow,HtButtonText, HtCol, HtRealTime, HtModel, HtBread, HtPopover,
|
|
71
72
|
HtSelectTable, HtSelectPosition, HtPagination, HtShowBaseType, HtTable, HtExport, HtUpload, HtMd, HtCountDown, HtUploadFiles, HtMore,
|
|
72
73
|
HtSelectUnit, HtSelectCategory, HtMenu,
|
|
73
74
|
HtSelectBaseData, HtSelectOrg,HtDialog, HtTimeLine, HtTimeLineItem, HtSelectUser, HtShowBaseData, HtOrgInfo, HtBaseData, HtDrawer, HtSelectCron, HtSelectTimeSlot
|