xt-element-ui 1.0.9 → 1.1.1
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/css/2.3f7aa432.css +1 -0
- package/lib/css/3.ffcc175d.css +1 -0
- package/lib/css/4.9abd1f2b.css +1 -0
- package/lib/css/5.1a31ed8a.css +1 -0
- package/lib/css/6.c2d0d77e.css +1 -0
- package/lib/index.common.0.js +120208 -0
- package/lib/index.common.2.js +1053 -0
- package/lib/index.common.3.js +996 -0
- package/lib/index.common.4.js +1108 -0
- package/lib/index.common.5.js +1009 -0
- package/lib/index.common.6.js +973 -0
- package/lib/index.common.js +8515 -631
- package/lib/index.css +1 -1
- package/lib/index.umd.0.js +120208 -0
- package/lib/index.umd.2.js +1053 -0
- package/lib/index.umd.3.js +996 -0
- package/lib/index.umd.4.js +1108 -0
- package/lib/index.umd.5.js +1009 -0
- package/lib/index.umd.6.js +973 -0
- package/lib/index.umd.js +8515 -631
- package/lib/index.umd.min.0.js +34 -0
- package/lib/index.umd.min.2.js +1 -0
- package/lib/index.umd.min.3.js +1 -0
- package/lib/index.umd.min.4.js +1 -0
- package/lib/index.umd.min.5.js +1 -0
- package/lib/index.umd.min.6.js +1 -0
- package/lib/index.umd.min.js +1 -1
- package/package.json +6 -2
- package/src/components/button/index.vue +30 -24
- package/src/components/button/style/index.scss +741 -82
- package/src/components/card/style/index.scss +1 -1
- package/src/components/card-item/style/index.scss +1 -1
- package/src/components/chart/ExBar.vue +203 -0
- package/src/components/chart/ExLine.vue +146 -0
- package/src/components/chart/ExMulti.vue +257 -0
- package/src/components/chart/ExPie.vue +159 -0
- package/src/components/chart/ExTrend.vue +121 -0
- package/src/components/chart/index.js +2 -0
- package/src/components/chart/index.vue +51 -0
- package/src/components/chart/pieList.vue +110 -0
- package/src/components/chart/theme/blue.js +91 -0
- package/src/components/chart/theme/dark.js +91 -0
- package/src/components/chart/theme/orange.js +92 -0
- package/src/components/chart/theme/starry.js +106 -0
- package/src/components/chart/theme/white.js +110 -0
- package/src/components/chart/utils.js +273 -0
- package/src/components/config-provider/index.vue +155 -39
- package/src/components/config-provider/style/index.scss +2 -2
- package/src/components/date-picker/SearchDate.vue +45 -0
- package/src/components/date-picker/index.js +2 -0
- package/src/components/date-picker/index.vue +131 -0
- package/src/components/date-picker/quarter.vue +152 -0
- package/src/components/grid-box/index.js +2 -0
- package/src/components/grid-box/index.vue +42 -0
- package/src/components/index.scss +4 -1
- package/src/components/input/style/index.scss +1 -1
- package/src/components/layout/BaseCollapse.vue +48 -0
- package/src/components/layout/ExFieldset.vue +204 -0
- package/src/components/page/index.js +0 -0
- package/src/components/page/index.vue +109 -0
- package/src/components/select-tree/index.js +0 -0
- package/src/components/select-tree/index.vue +386 -0
- package/src/components/table/ExCell.vue +27 -0
- package/src/components/table/ExColumn.vue +36 -0
- package/src/components/table/index.js +2 -0
- package/src/components/table/index.vue +731 -0
- package/src/components/table/processor.js +380 -0
- package/src/components/text/index.js +2 -0
- package/src/components/text/index.vue +119 -0
- package/src/components/text/style/index.scss +67 -0
- package/src/components/upload/index.js +2 -0
- package/src/components/upload/index.vue +225 -0
- package/src/components/upload/preview.vue +333 -0
- package/src/index.js +17 -5
- package/src/styles/css-variables.scss +258 -0
- package/src/styles/theme/{bg.scss → background.scss} +1 -1
- package/src/styles/theme/colors.scss +100 -0
- package/src/styles/theme/{component.scss → component-variables.scss} +3 -3
- package/src/styles/theme/index.scss +9 -9
- package/src/styles/variables.scss +1 -1
- package/src/utils/index.js +3 -5
- package/src/styles/theme/color.scss +0 -11
- package/src/styles/vars.scss +0 -168
- /package/src/styles/{theme-element.scss → element-theme.scss} +0 -0
- /package/src/styles/theme/{radius.scss → border-radius.scss} +0 -0
- /package/src/styles/theme/{border.scss → borders.scss} +0 -0
- /package/src/styles/theme/{dark.scss → dark-variables.scss} +0 -0
- /package/src/styles/theme/{shadow.scss → shadows.scss} +0 -0
- /package/src/styles/theme/{transition.scss → transitions.scss} +0 -0
- /package/src/styles/theme/{text.scss → typography.scss} +0 -0
- /package/src/styles/{export.scss → variables-export.scss} +0 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<span>
|
|
3
|
+
<slot>
|
|
4
|
+
</slot>
|
|
5
|
+
<slot v-if="open" name="open">
|
|
6
|
+
</slot>
|
|
7
|
+
<slot name="suffix">
|
|
8
|
+
</slot>
|
|
9
|
+
<component :is="elTag" v-if="$slots.open" :type="buttonType" plain @click="handleToggle()" style="margin: 0px 0px 18px 10px">
|
|
10
|
+
<i :class="open?'el-icon-arrow-up':'el-icon-arrow-down'"></i>
|
|
11
|
+
{{ open?"收 起": moreText }}
|
|
12
|
+
</component>
|
|
13
|
+
</span>
|
|
14
|
+
</template>
|
|
15
|
+
<script>
|
|
16
|
+
export default {
|
|
17
|
+
name: "BaseCollapse",
|
|
18
|
+
props: {
|
|
19
|
+
defaultOpen: {
|
|
20
|
+
type: Boolean,
|
|
21
|
+
default: false
|
|
22
|
+
},
|
|
23
|
+
moreText: {
|
|
24
|
+
type: String,
|
|
25
|
+
default: "展 开"
|
|
26
|
+
},
|
|
27
|
+
buttonType: {
|
|
28
|
+
type: String,
|
|
29
|
+
default: "primary"
|
|
30
|
+
},
|
|
31
|
+
elTag: {
|
|
32
|
+
type: String,
|
|
33
|
+
default: "elButton" // 支持el标签 及html标签
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
data() {
|
|
37
|
+
return {
|
|
38
|
+
open: this.defaultOpen || false
|
|
39
|
+
};
|
|
40
|
+
},
|
|
41
|
+
methods: {
|
|
42
|
+
handleToggle() {
|
|
43
|
+
this.open = !this.open;
|
|
44
|
+
this.$emit("change", this.open);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
</script>
|
|
@@ -0,0 +1,204 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<fieldset class="exFieldset" :class="[border ? 'is-border' : 'part',type ? `is-${type}`: '',effect?`effect-${effect}`:'' ]">
|
|
3
|
+
<legend class="fix-top legend">
|
|
4
|
+
<BaseFlexBox class="title" content="between">
|
|
5
|
+
<slot name="legend">
|
|
6
|
+
{{ legend }}
|
|
7
|
+
</slot>
|
|
8
|
+
</BaseFlexBox>
|
|
9
|
+
</legend>
|
|
10
|
+
<legend class="fix-top tool" v-if="$slots.tool">
|
|
11
|
+
<BaseFlexBox content="end" gap="0 5">
|
|
12
|
+
<slot name="tool"></slot>
|
|
13
|
+
</BaseFlexBox>
|
|
14
|
+
</legend>
|
|
15
|
+
<div class="field" v-if="$slots.default">
|
|
16
|
+
<slot />
|
|
17
|
+
</div>
|
|
18
|
+
</fieldset>
|
|
19
|
+
</template>
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
name: "ExFieldset",
|
|
23
|
+
props: {
|
|
24
|
+
legend: {},
|
|
25
|
+
type: {
|
|
26
|
+
type: String,
|
|
27
|
+
default: "info"
|
|
28
|
+
},
|
|
29
|
+
effect: {
|
|
30
|
+
type: String,
|
|
31
|
+
default: "" // plain dark
|
|
32
|
+
},
|
|
33
|
+
border: {
|
|
34
|
+
type: Boolean,
|
|
35
|
+
default: false
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
</script>
|
|
40
|
+
<style scoped lang="scss">
|
|
41
|
+
.exFieldset {
|
|
42
|
+
position: relative;
|
|
43
|
+
margin: 0;
|
|
44
|
+
padding: 0;
|
|
45
|
+
min-inline-size: unset;
|
|
46
|
+
border: transparent;
|
|
47
|
+
&.part{
|
|
48
|
+
padding: 20px 0 10px;
|
|
49
|
+
>.legend{
|
|
50
|
+
>.title{
|
|
51
|
+
padding-left: 10px;
|
|
52
|
+
font-weight: 700;
|
|
53
|
+
border-left: 3px solid #409EFF;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
>.field{
|
|
57
|
+
padding: 10px 10px 0px;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
&.is-border{
|
|
61
|
+
>.field{
|
|
62
|
+
margin-top: 15px;
|
|
63
|
+
padding: 20px 10px 10px;
|
|
64
|
+
border-top-left-radius: 10px;
|
|
65
|
+
border-top-right-radius: 10px;
|
|
66
|
+
border: 1px solid #dedcdc;
|
|
67
|
+
}
|
|
68
|
+
&.is{
|
|
69
|
+
&-primary{
|
|
70
|
+
border-color: #409EFF;
|
|
71
|
+
.legend{
|
|
72
|
+
color: #409EFF;
|
|
73
|
+
}
|
|
74
|
+
&.effect-plain{
|
|
75
|
+
background-color: #fff;
|
|
76
|
+
border-color: #409EFF;
|
|
77
|
+
.legend{
|
|
78
|
+
border: 1px solid #409EFF;
|
|
79
|
+
background-color: #fff;
|
|
80
|
+
color: #409EFF;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
&.effect-dark{
|
|
84
|
+
.legend{
|
|
85
|
+
color: #fff;
|
|
86
|
+
background: #409EFF;
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
&-success{
|
|
91
|
+
border-color: #67C23A;
|
|
92
|
+
.legend{
|
|
93
|
+
color: #67C23A;
|
|
94
|
+
background-color: #fff;
|
|
95
|
+
}
|
|
96
|
+
&.effect-plain{
|
|
97
|
+
background-color: #fff;
|
|
98
|
+
border-color: #67C23A;
|
|
99
|
+
.legend{
|
|
100
|
+
border: 1px solid #67C23A;
|
|
101
|
+
background-color: #fff;
|
|
102
|
+
color: #67C23A;
|
|
103
|
+
}
|
|
104
|
+
}
|
|
105
|
+
&.effect-dark{
|
|
106
|
+
.legend{
|
|
107
|
+
color: #fff;
|
|
108
|
+
background: #67C23A;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
&-info{
|
|
113
|
+
border-color: #dcdfe6;
|
|
114
|
+
.legend{
|
|
115
|
+
color: #a9a9a9;
|
|
116
|
+
background-color: #fff;
|
|
117
|
+
}
|
|
118
|
+
&.effect-plain{
|
|
119
|
+
background-color: #fff;
|
|
120
|
+
border-color: #dcdfe6;
|
|
121
|
+
.legend{
|
|
122
|
+
border: 1px solid #dcdfe6;
|
|
123
|
+
background-color: #fff;
|
|
124
|
+
color: #a9a9a9;
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
&.effect-dark{
|
|
128
|
+
.legend{
|
|
129
|
+
color: #fff;
|
|
130
|
+
background-color: #a9a9a9;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
&-danger{
|
|
135
|
+
border-color: #F56C6C;
|
|
136
|
+
.legend{
|
|
137
|
+
color: #F56C6C;
|
|
138
|
+
background-color: #fff;
|
|
139
|
+
}
|
|
140
|
+
&.effect-plain{
|
|
141
|
+
border-color: #F56C6C;
|
|
142
|
+
background-color: #fff;
|
|
143
|
+
.legend{
|
|
144
|
+
border: 1px solid #F56C6C;
|
|
145
|
+
background-color: #fff;
|
|
146
|
+
color: #F56C6C;
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
&.effect-dark{
|
|
150
|
+
.legend{
|
|
151
|
+
color: #fff;
|
|
152
|
+
background: #F56C6C;
|
|
153
|
+
}
|
|
154
|
+
}
|
|
155
|
+
}
|
|
156
|
+
&-warning{
|
|
157
|
+
border-color: #E6A23C;
|
|
158
|
+
.legend{
|
|
159
|
+
color: #E6A23C;
|
|
160
|
+
background-color: #fff;
|
|
161
|
+
}
|
|
162
|
+
&.effect-plain{
|
|
163
|
+
border-color: #E6A23C;
|
|
164
|
+
background-color: #fff;
|
|
165
|
+
.legend{
|
|
166
|
+
background-color: #fff;
|
|
167
|
+
border: 1px solid #E6A23C;
|
|
168
|
+
color: #E6A23C;
|
|
169
|
+
}
|
|
170
|
+
}
|
|
171
|
+
&.effect-dark{
|
|
172
|
+
.legend{
|
|
173
|
+
color: #fff;
|
|
174
|
+
background: #E6A23C;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
.fix-top{
|
|
181
|
+
position: absolute;
|
|
182
|
+
top: 0px;
|
|
183
|
+
padding: 0;
|
|
184
|
+
background-color: #fff;
|
|
185
|
+
@include background_color("mainBg");
|
|
186
|
+
}
|
|
187
|
+
.tool{
|
|
188
|
+
right: 10px;
|
|
189
|
+
}
|
|
190
|
+
.legend {
|
|
191
|
+
line-height: 20px;
|
|
192
|
+
left: 10px;
|
|
193
|
+
@include addSize($font_size_16, $size_diff_2);
|
|
194
|
+
padding: 5px 0;
|
|
195
|
+
border-radius: 2px;
|
|
196
|
+
background-color: inherit;
|
|
197
|
+
}
|
|
198
|
+
::-webkit-scrollbar-thumb {
|
|
199
|
+
background: rgba(144,147,153,0.3);
|
|
200
|
+
box-shadow: inset 0 0 5px rgba(144,147,153,0.3) !important;
|
|
201
|
+
-webkit-box-shadow: inset 0 0 5px rgba(144,147,153,0.3) !important;
|
|
202
|
+
}
|
|
203
|
+
}
|
|
204
|
+
</style>
|
|
File without changes
|
|
@@ -0,0 +1,109 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-container class="page-container">
|
|
3
|
+
<el-container class="page-main">
|
|
4
|
+
<el-header v-if="$slots.header && showHeader" ref="header" height="" :class="{'page-header':$slots.aside}">
|
|
5
|
+
<slot name="header" />
|
|
6
|
+
</el-header>
|
|
7
|
+
<el-main ref="main" style="padding: 0;">
|
|
8
|
+
<slot :tableHeight="calcHeight - tableBorderHeight" />
|
|
9
|
+
</el-main>
|
|
10
|
+
<el-footer v-if="$slots.footer && showFooter" ref="footer" height="">
|
|
11
|
+
<slot name="footer" />
|
|
12
|
+
</el-footer>
|
|
13
|
+
</el-container>
|
|
14
|
+
<el-aside class="page-aside" v-if="$slots.aside && showAside" :width="asideWidth" ref="aside">
|
|
15
|
+
<slot name="aside" />
|
|
16
|
+
</el-aside>
|
|
17
|
+
<slot name="dialog" />
|
|
18
|
+
</el-container>
|
|
19
|
+
</template>
|
|
20
|
+
<script>
|
|
21
|
+
export default {
|
|
22
|
+
name: "ExPage",
|
|
23
|
+
props: {
|
|
24
|
+
showHeader: { type: Boolean, default: true },
|
|
25
|
+
showFooter: { type: Boolean, default: true },
|
|
26
|
+
showAside: { type: Boolean, default: true },
|
|
27
|
+
diffHeight: {
|
|
28
|
+
type: Number,
|
|
29
|
+
default: 60
|
|
30
|
+
},
|
|
31
|
+
minHeight: {
|
|
32
|
+
type: Number,
|
|
33
|
+
default: 200
|
|
34
|
+
},
|
|
35
|
+
tableBorderHeight: {
|
|
36
|
+
type: Number,
|
|
37
|
+
default: 1
|
|
38
|
+
},
|
|
39
|
+
asideWidth: {
|
|
40
|
+
type: String
|
|
41
|
+
}
|
|
42
|
+
},
|
|
43
|
+
data() {
|
|
44
|
+
return {
|
|
45
|
+
tableHeight: 360
|
|
46
|
+
};
|
|
47
|
+
},
|
|
48
|
+
computed: {
|
|
49
|
+
calcHeight() {
|
|
50
|
+
return Math.max(this.tableHeight, this.minHeight);
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
mounted() {
|
|
54
|
+
this.$nextTick(() => {
|
|
55
|
+
// 表格高度自适应浏览器大小
|
|
56
|
+
this.doLayout();
|
|
57
|
+
window.onresize = () => {
|
|
58
|
+
this.doLayout();
|
|
59
|
+
};
|
|
60
|
+
});
|
|
61
|
+
},
|
|
62
|
+
methods: {
|
|
63
|
+
doLayout() {
|
|
64
|
+
// 多减去1 解决高度相等时 出现滚动条问题
|
|
65
|
+
if (this.$refs.main) {
|
|
66
|
+
this.tableHeight = this.$refs.main.$el.getBoundingClientRect().height - (this.diffHeight) - this.tableBorderHeight;
|
|
67
|
+
} else {
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
</script>
|
|
73
|
+
<style scoped lang="scss">
|
|
74
|
+
.el-main {
|
|
75
|
+
padding: 0;
|
|
76
|
+
background: #fff;
|
|
77
|
+
.formBox {
|
|
78
|
+
background: #f0f0f2;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
.el-footer{
|
|
82
|
+
border-top: 1px solid #f0f0f2;
|
|
83
|
+
padding: 5px 0;
|
|
84
|
+
}
|
|
85
|
+
.el-header{
|
|
86
|
+
padding: 0;
|
|
87
|
+
}
|
|
88
|
+
.el-aside {
|
|
89
|
+
background-color: #fff;
|
|
90
|
+
margin-left: 10px;
|
|
91
|
+
height: 100%;
|
|
92
|
+
padding: 0;
|
|
93
|
+
border: 1px solid #eee;
|
|
94
|
+
margin-bottom: 0;
|
|
95
|
+
overflow-x: hidden;
|
|
96
|
+
}
|
|
97
|
+
.page-container{
|
|
98
|
+
padding: 20px;
|
|
99
|
+
height: 100%;
|
|
100
|
+
background: #f0f0f2;
|
|
101
|
+
}
|
|
102
|
+
.page-header{
|
|
103
|
+
padding: 10px 10px 0;
|
|
104
|
+
background: #fff;
|
|
105
|
+
}
|
|
106
|
+
.page-main{
|
|
107
|
+
padding: 0;
|
|
108
|
+
}
|
|
109
|
+
</style>
|
|
File without changes
|