htui-yllkbz 1.5.29 → 1.5.31
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 +43 -45
- package/lib/htui.common.js.gz +0 -0
- package/lib/htui.css +1 -1
- package/lib/htui.umd.js +43 -45
- package/lib/htui.umd.js.gz +0 -0
- package/lib/htui.umd.min.js +6 -6
- package/lib/htui.umd.min.js.gz +0 -0
- package/package.json +2 -2
- package/src/packages/HtModel/index.vue +50 -59
- package/src/packages/HtShowBaseData/index.vue +1 -1
- package/src/packages/style.scss +55 -36
package/lib/htui.umd.min.js.gz
CHANGED
|
Binary file
|
package/package.json
CHANGED
|
@@ -4,66 +4,57 @@
|
|
|
4
4
|
* @Author: hutao
|
|
5
5
|
* @Date: 2022-09-28 10:24:08
|
|
6
6
|
* @LastEditors: hutao
|
|
7
|
-
* @LastEditTime:
|
|
7
|
+
* @LastEditTime: 2024-10-15 08:59:33
|
|
8
8
|
-->
|
|
9
9
|
<template>
|
|
10
|
-
<el-dialog
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
:wrapperClosable="wrapperClosable"
|
|
30
|
-
>
|
|
10
|
+
<el-dialog :visible.sync="state.visible"
|
|
11
|
+
:fullscreen="fullscreen"
|
|
12
|
+
:top="top"
|
|
13
|
+
:custom-class="customClass"
|
|
14
|
+
:append-to-body="appendToBody"
|
|
15
|
+
:close-on-press-escape="closeOnPressEscape"
|
|
16
|
+
:destroy-on-close="destroyOnClose"
|
|
17
|
+
:modal-append-to-body="modalAppendToBody"
|
|
18
|
+
:close-on-click-modal="closeOnClickModal"
|
|
19
|
+
:modal="modal"
|
|
20
|
+
:lock-scroll="lockScroll"
|
|
21
|
+
@close="close"
|
|
22
|
+
:width="width"
|
|
23
|
+
class="ht-model"
|
|
24
|
+
:center="center"
|
|
25
|
+
:show-close="showClose"
|
|
26
|
+
:before-close="beforClose"
|
|
27
|
+
:withHeader="withHeader"
|
|
28
|
+
:wrapperClosable="wrapperClosable">
|
|
31
29
|
<span slot="title">
|
|
32
|
-
<slot name="title"
|
|
33
|
-
><span style="font-size:18px;font-weight:bold;padding:0px 0 0 12px">{{
|
|
30
|
+
<slot name="title"><span style="font-size:18px;font-weight:bold;padding:0px 0 0 12px">{{
|
|
34
31
|
title
|
|
35
|
-
}}</span></slot
|
|
36
|
-
>
|
|
32
|
+
}}</span></slot>
|
|
37
33
|
</span>
|
|
38
|
-
<div
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
<slot name="footer"
|
|
34
|
+
<div class="ht-model-body">
|
|
35
|
+
<slot></slot>
|
|
36
|
+
</div>
|
|
37
|
+
<span slot="footer"
|
|
38
|
+
class="dialog-footer ht-model-footer"
|
|
39
|
+
:style="!footerRight ? 'text-align:left' : ''">
|
|
40
|
+
<slot name="footer"
|
|
41
|
+
v-if="withFooter">
|
|
45
42
|
<template>
|
|
46
|
-
<el-button
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
<el-button
|
|
55
|
-
:loading="loading"
|
|
56
|
-
style="margin-right:6px"
|
|
57
|
-
@click="onCancel"
|
|
58
|
-
>{{ cancelText }}</el-button
|
|
59
|
-
>
|
|
43
|
+
<el-button style="margin-right:12px;"
|
|
44
|
+
type="primary"
|
|
45
|
+
:loading="loading"
|
|
46
|
+
:disabled="disabled"
|
|
47
|
+
@click="onOk">{{ okText }}</el-button>
|
|
48
|
+
<el-button :loading="loading"
|
|
49
|
+
style="margin-right:6px"
|
|
50
|
+
@click="onCancel">{{ cancelText }}</el-button>
|
|
60
51
|
</template>
|
|
61
52
|
</slot>
|
|
62
53
|
</span>
|
|
63
54
|
</el-dialog>
|
|
64
55
|
</template>
|
|
65
56
|
<script lang="ts">
|
|
66
|
-
import { Component, Prop, Vue, Watch } from
|
|
57
|
+
import { Component, Prop, Vue, Watch } from "vue-property-decorator";
|
|
67
58
|
interface State {
|
|
68
59
|
/** 数据状态 */
|
|
69
60
|
loading: boolean;
|
|
@@ -71,12 +62,12 @@ interface State {
|
|
|
71
62
|
visible: boolean;
|
|
72
63
|
}
|
|
73
64
|
@Component({
|
|
74
|
-
name:
|
|
65
|
+
name: "HtModel",
|
|
75
66
|
components: {},
|
|
76
67
|
})
|
|
77
68
|
export default class Index extends Vue {
|
|
78
69
|
/** 抽屉尺寸 */
|
|
79
|
-
@Prop({ default:
|
|
70
|
+
@Prop({ default: "500px" }) width!: string;
|
|
80
71
|
/** 标题 */
|
|
81
72
|
@Prop() title!: string;
|
|
82
73
|
@Prop() loading!: boolean;
|
|
@@ -87,7 +78,7 @@ export default class Index extends Vue {
|
|
|
87
78
|
@Prop() fullscreen!: boolean;
|
|
88
79
|
@Prop() lockScroll!: boolean;
|
|
89
80
|
@Prop() center!: boolean;
|
|
90
|
-
@Prop({ default:
|
|
81
|
+
@Prop({ default: "120px" }) top!: string;
|
|
91
82
|
@Prop({ default: false }) closeOnClickModal!: boolean;
|
|
92
83
|
|
|
93
84
|
@Prop({ default: true }) appendToBody!: boolean;
|
|
@@ -110,8 +101,8 @@ export default class Index extends Vue {
|
|
|
110
101
|
@Prop({ default: true }) withFooter!: boolean;
|
|
111
102
|
/** footer的按钮是否靠右 */
|
|
112
103
|
@Prop({ default: true }) footerRight!: boolean;
|
|
113
|
-
@Prop({ default:
|
|
114
|
-
@Prop({ default:
|
|
104
|
+
@Prop({ default: "保存" }) okText?: string;
|
|
105
|
+
@Prop({ default: "取消" }) cancelText?: string;
|
|
115
106
|
/** 数据 */
|
|
116
107
|
state: State = {
|
|
117
108
|
loading: false,
|
|
@@ -123,24 +114,24 @@ export default class Index extends Vue {
|
|
|
123
114
|
this.state.visible = false;
|
|
124
115
|
}
|
|
125
116
|
onOk() {
|
|
126
|
-
this.$emit(
|
|
117
|
+
this.$emit("onOk", true);
|
|
127
118
|
}
|
|
128
119
|
close() {
|
|
129
|
-
this.$emit(
|
|
120
|
+
this.$emit("onCancel", false);
|
|
130
121
|
}
|
|
131
122
|
|
|
132
123
|
/** 监听 */
|
|
133
|
-
@Watch(
|
|
124
|
+
@Watch("value", { immediate: true })
|
|
134
125
|
getVisible(val: boolean, old: boolean) {
|
|
135
126
|
if (val !== old) {
|
|
136
127
|
this.state.visible = val;
|
|
137
128
|
}
|
|
138
129
|
}
|
|
139
130
|
/** 监听 */
|
|
140
|
-
@Watch(
|
|
131
|
+
@Watch("state.visible", { immediate: true })
|
|
141
132
|
setVisible(val: boolean) {
|
|
142
|
-
this.$emit(
|
|
143
|
-
this.$emit(
|
|
133
|
+
this.$emit("input", val);
|
|
134
|
+
this.$emit("change", val);
|
|
144
135
|
}
|
|
145
136
|
/** 计算属性 */
|
|
146
137
|
}
|
|
@@ -273,7 +273,7 @@ export default class CommonDatas extends Vue {
|
|
|
273
273
|
/** 计算属性 */
|
|
274
274
|
/** 基础数据 */
|
|
275
275
|
get baseDataItem() {
|
|
276
|
-
console.log('this.state.baseDataItem',this.state.baseDataItem);
|
|
276
|
+
// console.log('this.state.baseDataItem',this.state.baseDataItem);
|
|
277
277
|
return this.state.baseDataItem || {};
|
|
278
278
|
}
|
|
279
279
|
/** 获取严重等级 */
|
package/src/packages/style.scss
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
.ht-contnet {
|
|
2
2
|
position: relative;
|
|
3
|
+
|
|
3
4
|
.ht-close {
|
|
4
5
|
position: absolute;
|
|
5
6
|
padding: 0px;
|
|
@@ -11,30 +12,38 @@
|
|
|
11
12
|
float: right;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
15
|
+
|
|
14
16
|
.component-item {
|
|
15
17
|
width: 100%;
|
|
16
|
-
|
|
18
|
+
|
|
19
|
+
+.component-item {
|
|
17
20
|
margin-top: 10px;
|
|
18
21
|
}
|
|
19
22
|
}
|
|
23
|
+
|
|
20
24
|
.item-origin {
|
|
21
25
|
border-radius: 50%;
|
|
22
26
|
border-width: 0px 7px;
|
|
23
27
|
margin-right: 6px;
|
|
24
28
|
border-style: solid;
|
|
25
29
|
}
|
|
30
|
+
|
|
26
31
|
$primary-color: var(--primary);
|
|
32
|
+
|
|
27
33
|
.component-item-height .el-input--suffix .el-input__inner {
|
|
28
34
|
background: none;
|
|
29
35
|
height: 32px !important;
|
|
30
36
|
}
|
|
37
|
+
|
|
31
38
|
.component-item-heightAuto .el-input--suffix .el-input__inner {
|
|
32
39
|
background: none;
|
|
33
|
-
|
|
40
|
+
|
|
34
41
|
}
|
|
42
|
+
|
|
35
43
|
.component-item .is-disabled .el-input__inner {
|
|
36
44
|
background: #f5f5f5;
|
|
37
45
|
}
|
|
46
|
+
|
|
38
47
|
.ht-user-dot {
|
|
39
48
|
padding: 0;
|
|
40
49
|
margin: 0;
|
|
@@ -47,69 +56,79 @@ $primary-color: var(--primary);
|
|
|
47
56
|
border-radius: 10px;
|
|
48
57
|
margin-right: 4px;
|
|
49
58
|
}
|
|
59
|
+
|
|
50
60
|
.ht-user-name {
|
|
51
61
|
padding: 0;
|
|
52
62
|
margin: 0;
|
|
53
63
|
float: left;
|
|
54
64
|
}
|
|
65
|
+
|
|
55
66
|
.ht-user-dot-disabled {
|
|
56
67
|
background: #ccc;
|
|
57
68
|
}
|
|
69
|
+
|
|
58
70
|
.ht-user-disabled {
|
|
59
71
|
color: #ddd;
|
|
60
72
|
}
|
|
61
73
|
|
|
62
|
-
.ht-row{
|
|
74
|
+
.ht-row {
|
|
63
75
|
position: relative;
|
|
64
76
|
box-sizing: border-box;
|
|
65
77
|
// &:after {
|
|
66
|
-
|
|
78
|
+
|
|
67
79
|
// };
|
|
68
80
|
// &:before {
|
|
69
81
|
// display: table;
|
|
70
82
|
// content: "";
|
|
71
83
|
// };
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
84
|
+
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.ht-row::before,
|
|
88
|
+
.ht-row::after {
|
|
89
|
+
display: table;
|
|
90
|
+
content: "";
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.ht-row::after {
|
|
94
|
+
clear: both;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.ht-row--flex {
|
|
83
98
|
display: flex;
|
|
84
99
|
}
|
|
100
|
+
|
|
85
101
|
[class*=ht-col-] {
|
|
86
102
|
float: left;
|
|
87
103
|
box-sizing: border-box;
|
|
88
|
-
|
|
104
|
+
}
|
|
89
105
|
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
.ht-breadcrumb-item{
|
|
106
|
+
.ht-breadcrumb {
|
|
107
|
+
.el-breadcrumb__item {
|
|
108
|
+
color: #333;
|
|
109
|
+
|
|
110
|
+
.is-link {
|
|
111
|
+
font-weight: 400;
|
|
99
112
|
color: #333;
|
|
100
113
|
}
|
|
101
|
-
.ht-is-link span{
|
|
102
|
-
&:hover{
|
|
103
|
-
color:var(--primary);
|
|
104
|
-
cursor: pointer;
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
114
|
}
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
115
|
+
|
|
116
|
+
.ht-breadcrumb-item {
|
|
117
|
+
color: #333;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
.ht-is-link span {
|
|
121
|
+
&:hover {
|
|
122
|
+
color: var(--primary);
|
|
123
|
+
cursor: pointer;
|
|
113
124
|
}
|
|
114
125
|
}
|
|
126
|
+
}
|
|
115
127
|
|
|
128
|
+
.ht-model {
|
|
129
|
+
.el-dialog {
|
|
130
|
+
.el-dialog__body {
|
|
131
|
+
padding: 16px !important;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
}
|