zydx-plus 1.0.3 → 1.0.4
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/package.json
CHANGED
|
File without changes
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<div class="hello">
|
|
3
|
+
<div class="tip-popupWindowSearch">
|
|
4
|
+
<div class="tip-box">
|
|
5
|
+
<div>
|
|
6
|
+
<div class="tip-title">{{ title }}</div>
|
|
7
|
+
</div>
|
|
8
|
+
<div class="tip-boxContent">
|
|
9
|
+
<div>
|
|
10
|
+
<div class="tip-title2" :style="{'text-align': (middle)? 'center': 'left' }">{{ promptContent }}</div>
|
|
11
|
+
</div>
|
|
12
|
+
</div>
|
|
13
|
+
<div class="tip-btnBox">
|
|
14
|
+
<div @click="submit">确认</div>
|
|
15
|
+
<div @click="cancel">取消</div>
|
|
16
|
+
</div>
|
|
17
|
+
</div>
|
|
18
|
+
</div>
|
|
19
|
+
</div>
|
|
20
|
+
</template>
|
|
21
|
+
|
|
22
|
+
<script>
|
|
23
|
+
export default {
|
|
24
|
+
name: 'zydx-tip-box',
|
|
25
|
+
props: {
|
|
26
|
+
title: { // 弹窗的提示标题
|
|
27
|
+
type: String,
|
|
28
|
+
default: '提示'
|
|
29
|
+
},
|
|
30
|
+
promptContent: { // 弹窗中间的文字内容
|
|
31
|
+
type: String,
|
|
32
|
+
default: '默认文字'
|
|
33
|
+
},
|
|
34
|
+
middle: { // 弹窗中间的文字内容是居中 还是居左 默认居中
|
|
35
|
+
type: Boolean,
|
|
36
|
+
default: true
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
data () {
|
|
40
|
+
return {}
|
|
41
|
+
},
|
|
42
|
+
methods: {
|
|
43
|
+
submit: function (val) {
|
|
44
|
+
this.$emit('rheResults', val)
|
|
45
|
+
},
|
|
46
|
+
cancel: function () {
|
|
47
|
+
this.$emit('cancel')
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
</script>
|
|
52
|
+
|
|
53
|
+
<style scoped src="./zydxStyle.css"></style>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
.tip-popupWindowSearch{
|
|
2
|
+
position: fixed;
|
|
3
|
+
top: 0;
|
|
4
|
+
left: 0;
|
|
5
|
+
right: 0;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
background-color: rgba(0, 0, 0, 0.2);
|
|
8
|
+
z-index: 200;
|
|
9
|
+
display: flex;
|
|
10
|
+
align-items: center;
|
|
11
|
+
}
|
|
12
|
+
.tip-box {
|
|
13
|
+
width: 480px;
|
|
14
|
+
padding: 40px 40px;
|
|
15
|
+
background-color: white;
|
|
16
|
+
border-radius: 5px;
|
|
17
|
+
border: 5px rgba(0, 0, 0, .1) solid;
|
|
18
|
+
margin: 0 auto;
|
|
19
|
+
}
|
|
20
|
+
.tip-boxContent{
|
|
21
|
+
max-height: 600px;
|
|
22
|
+
}
|
|
23
|
+
.tip-boxContent:hover{
|
|
24
|
+
cursor:default
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
.tip-closeBtn {
|
|
28
|
+
position: absolute;
|
|
29
|
+
top: 10px;
|
|
30
|
+
right: 10px;
|
|
31
|
+
font-size: 28px;
|
|
32
|
+
color: #767676;
|
|
33
|
+
}
|
|
34
|
+
.tip-title {
|
|
35
|
+
margin-bottom: 20px;
|
|
36
|
+
font-size: 18px;
|
|
37
|
+
font-weight: 700;
|
|
38
|
+
flex-shrink: 0;
|
|
39
|
+
display: flex;
|
|
40
|
+
align-items: flex-end;
|
|
41
|
+
justify-content: center;
|
|
42
|
+
flex-wrap: wrap;
|
|
43
|
+
overflow: hidden;
|
|
44
|
+
}
|
|
45
|
+
.tip-title1 {
|
|
46
|
+
font-size: 16px;
|
|
47
|
+
text-align: left;
|
|
48
|
+
}
|
|
49
|
+
.tip-title2{
|
|
50
|
+
font-size: 16px;
|
|
51
|
+
text-align: center;
|
|
52
|
+
line-height: 30px;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
.tip-btnBox {
|
|
56
|
+
margin-top: 20px;
|
|
57
|
+
flex-shrink: 0;
|
|
58
|
+
display: flex;
|
|
59
|
+
justify-content: center;
|
|
60
|
+
align-items: flex-start;
|
|
61
|
+
font-size: 12px;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
.tip-btnBox>div {
|
|
65
|
+
width: 60px;
|
|
66
|
+
height: 22px;
|
|
67
|
+
line-height: 22px;
|
|
68
|
+
margin-right: 10px;
|
|
69
|
+
border-radius: 3px;
|
|
70
|
+
border: 1px solid #000000;
|
|
71
|
+
cursor: pointer;
|
|
72
|
+
text-align: center;
|
|
73
|
+
}
|
|
74
|
+
.tip-quesTitle{
|
|
75
|
+
padding-left: 2px;
|
|
76
|
+
margin-left: -10px!important;
|
|
77
|
+
}
|
package/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import tipBox from './components/tipBox/index';
|
|
2
2
|
|
|
3
3
|
const components = [
|
|
4
|
-
|
|
4
|
+
tipBox
|
|
5
5
|
];
|
|
6
6
|
|
|
7
7
|
const install = function(Vue, opts = {}) {
|
|
@@ -15,7 +15,7 @@ if (typeof window !== 'undefined' && window.Vue) {
|
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export default {
|
|
18
|
-
version: '1.0.
|
|
18
|
+
version: '1.0.4',
|
|
19
19
|
install,
|
|
20
|
-
|
|
20
|
+
tipBox
|
|
21
21
|
};
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="hello">
|
|
3
|
-
<h1>111111</h1>
|
|
4
|
-
</div>
|
|
5
|
-
</template>
|
|
6
|
-
|
|
7
|
-
<script>
|
|
8
|
-
export default {
|
|
9
|
-
name: 'zydxInput'
|
|
10
|
-
}
|
|
11
|
-
</script>
|
|
12
|
-
|
|
13
|
-
<!-- Add "scoped" attribute to limit CSS to this component only -->
|
|
14
|
-
<style scoped>
|
|
15
|
-
|
|
16
|
-
</style>
|