sh-view 2.7.8 → 2.7.9
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/other.js +8 -0
- package/package.json +3 -2
- package/packages/components/index.js +35 -35
- package/packages/components/{global-components/sh-alert → sh-alert}/index.vue +8 -15
- package/packages/components/{global-components/sh-badge → sh-badge}/index.vue +6 -5
- package/packages/components/{global-components/sh-drawer → sh-drawer}/index.vue +49 -27
- package/packages/components/{global-components/sh-form → sh-form}/js/useForm.js +2 -2
- package/packages/components/sh-header/index.vue +260 -0
- package/packages/components/{global-components/sh-poptip → sh-poptip}/index.vue +1 -1
- package/packages/components/{global-components/sh-progress → sh-progress}/index.vue +2 -18
- package/packages/components/{global-components/sh-table → sh-table}/css/index.scss +18 -0
- package/packages/components/{global-components/sh-table → sh-table}/js/useTable.js +4 -6
- package/packages/components/{global-components/sh-table → sh-table}/table.vue +217 -218
- package/packages/components/{global-components/sh-tabs → sh-tabs}/index.vue +97 -34
- package/packages/components/{global-components/sh-tree → sh-tree}/components/table-tree.vue +1 -1
- package/packages/components/{global-components/sh-tree → sh-tree}/css/index.scss +1 -0
- package/packages/components/{global-components/sh-tree → sh-tree}/index.vue +16 -5
- package/packages/components/{global-components/sh-tree → sh-tree}/mixin/treeProps.js +1 -1
- package/packages/index.js +39 -39
- package/packages/{components/other-components → other}/sh-cron-modal/tabs/cron-week-box.vue +126 -126
- package/packages/{components/other-components → other}/sh-menu/index.vue +3 -0
- package/packages/{components/other-components → other}/sh-menu/menu-item-content.vue +3 -3
- package/packages/other/sh-preview/components/sh-excel.vue +163 -0
- package/packages/{components/other-components → other}/sh-preview/index.vue +92 -89
- package/packages/vxeTable/css/index.scss +1 -2
- package/packages/vxeTable/render/cell/vxe-render-tree.vue +70 -63
- package/packages/components/global-components/sh-header/index.vue +0 -278
- package/packages/components/other-components/sh-preview/components/sh-excel.vue +0 -929
- /package/packages/components/{global-components/sh-calendar → sh-calendar}/index.vue +0 -0
- /package/packages/components/{global-components/sh-card → sh-card}/index.vue +0 -0
- /package/packages/components/{global-components/sh-code-editor → sh-code-editor}/index.vue +0 -0
- /package/packages/components/{global-components/sh-code-editor → sh-code-editor}/themes/dark.js +0 -0
- /package/packages/components/{global-components/sh-code-editor → sh-code-editor}/themes/dracula.js +0 -0
- /package/packages/components/{global-components/sh-code-editor → sh-code-editor}/themes/index.js +0 -0
- /package/packages/components/{global-components/sh-col → sh-col}/css/index.scss +0 -0
- /package/packages/components/{global-components/sh-col → sh-col}/index.vue +0 -0
- /package/packages/components/{global-components/sh-corner → sh-corner}/index.vue +0 -0
- /package/packages/components/{global-components/sh-count-to → sh-count-to}/index.vue +0 -0
- /package/packages/components/{global-components/sh-date → sh-date}/index.vue +0 -0
- /package/packages/components/{global-components/sh-drawer → sh-drawer}/scrollbar.js +0 -0
- /package/packages/components/{global-components/sh-empty → sh-empty}/index.vue +0 -0
- /package/packages/components/{global-components/sh-form → sh-form}/form.vue +0 -0
- /package/packages/components/{global-components/sh-form → sh-form}/js/props.js +0 -0
- /package/packages/components/{global-components/sh-form → sh-form}/query.vue +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/default/icons.scss +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/default/ionicons.svg +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/default/ionicons.ttf +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/default/ionicons.woff +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/default/ionicons.woff2 +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/font/iconfont.js +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/font/iconfont.json +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/font/iconfont.ttf +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/font/iconfont.woff +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/font/iconfont.woff2 +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/font/icons.scss +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/css/index.scss +0 -0
- /package/packages/components/{global-components/sh-icon → sh-icon}/index.vue +0 -0
- /package/packages/components/{global-components/sh-image → sh-image}/index.vue +0 -0
- /package/packages/components/{global-components/sh-list → sh-list}/index.vue +0 -0
- /package/packages/components/{global-components/sh-loading → sh-loading}/index.vue +0 -0
- /package/packages/components/{global-components/sh-modal → sh-modal}/index.vue +0 -0
- /package/packages/components/{global-components/sh-noticebar → sh-noticebar}/index.vue +0 -0
- /package/packages/components/{global-components/sh-pull-refresh → sh-pull-refresh}/index.vue +0 -0
- /package/packages/components/{global-components/sh-result → sh-result}/index.vue +0 -0
- /package/packages/components/{global-components/sh-row → sh-row}/css/index.scss +0 -0
- /package/packages/components/{global-components/sh-row → sh-row}/index.vue +0 -0
- /package/packages/components/{global-components/sh-split → sh-split}/components/trigger.vue +0 -0
- /package/packages/components/{global-components/sh-split → sh-split}/index.vue +0 -0
- /package/packages/components/{global-components/sh-table → sh-table}/components/importModal.vue +0 -0
- /package/packages/components/{global-components/sh-table → sh-table}/components/sh-column.vue +0 -0
- /package/packages/components/{global-components/sh-table → sh-table}/grid.vue +0 -0
- /package/packages/components/{global-components/sh-table → sh-table}/js/excel_to_json.js +0 -0
- /package/packages/components/{global-components/sh-table → sh-table}/js/props.js +0 -0
- /package/packages/components/{global-components/sh-table → sh-table}/js/tableMethods.js +0 -0
- /package/packages/components/{global-components/sh-tag → sh-tag}/index.vue +0 -0
- /package/packages/components/{global-components/sh-toolbar → sh-toolbar}/index.vue +0 -0
- /package/packages/components/{global-components/sh-upload → sh-upload}/index.vue +0 -0
- /package/packages/components/{global-components/sh-upload → sh-upload}/js/ajax.js +0 -0
- /package/packages/components/{global-components/sh-water-fall → sh-water-fall}/index.vue +0 -0
- /package/packages/components/{global-components/sh-water-mark → sh-water-mark}/index.vue +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/components/cron-content.vue +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/css/index.scss +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/index.vue +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/mixin/cron-emits.js +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/mixin/cron-hooks.js +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/mixin/cron-props.js +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/tabs/cron-day-box.vue +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/tabs/cron-hour-box.vue +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/tabs/cron-minute-box.vue +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/tabs/cron-month-box.vue +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/tabs/cron-second-box.vue +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/tabs/cron-year-box.vue +0 -0
- /package/packages/{components/other-components → other}/sh-cron-modal/utils/index.js +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/index.vue +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/langs/zh-Hans.js +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/content/default/content.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/content.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/content.inline.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/content.inline.min.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/content.min.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/content.mobile.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/content.mobile.min.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/skin.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/skin.min.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/skin.mobile.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/skin.mobile.min.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/skin.shadowdom.css +0 -0
- /package/packages/{components/other-components → other}/sh-markdown/tinymce/skins/ui/oxide/skin.shadowdom.min.css +0 -0
- /package/packages/{components/other-components → other}/sh-menu/menu-group-content.vue +0 -0
- /package/packages/{components/other-components → other}/sh-menu-card/index.vue +0 -0
- /package/packages/{components/other-components → other}/sh-menu-card/menu-box.vue +0 -0
- /package/packages/{components/other-components → other}/sh-preview/components/sh-word.vue +0 -0
- /package/packages/{components/other-components → other}/sh-preview/js/data-hook.js +0 -0
- /package/packages/{components/other-components → other}/sh-preview/js/data-props.js +0 -0
- /package/packages/{components/other-components → other}/sh-system-tip/index.vue +0 -0
|
@@ -1,278 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="sh-page-header" :style="styles" :class="classes">
|
|
3
|
-
<sh-loading :loading="loading" />
|
|
4
|
-
<div class="sh-page-header-heading">
|
|
5
|
-
<div class="sh-page-header-heading-left">
|
|
6
|
-
<div v-if="showback" class="sh-page-header-back">
|
|
7
|
-
<div class="sh-page-header-back-button" @click="handleBack"><sh-icon :size="iconSize" type="ios-arrow-back" /></div>
|
|
8
|
-
</div>
|
|
9
|
-
<sh-icon v-if="icon" :type="icon" :size="iconSize" :color="iconColor"></sh-icon>
|
|
10
|
-
<span v-if="title || slots.title" class="sh-page-header-heading-title" :style="{ textAlign: align, flex: align ? '1' : 'auto' }">
|
|
11
|
-
<slot name="title">{{ title }}</slot>
|
|
12
|
-
</span>
|
|
13
|
-
<span v-if="subTitle || slots.subTitle" class="sh-page-header-heading-sub-title">
|
|
14
|
-
<slot name="subTitle">{{ subTitle }}</slot>
|
|
15
|
-
</span>
|
|
16
|
-
<span v-if="slots.tags" class="sh-page-header-heading-tags"><slot name="tags"></slot></span>
|
|
17
|
-
</div>
|
|
18
|
-
<div class="sh-page-header-heading-right">
|
|
19
|
-
<span v-if="slots.extra" class="sh-page-header-heading-extra"><slot name="extra"></slot></span>
|
|
20
|
-
</div>
|
|
21
|
-
</div>
|
|
22
|
-
<div v-if="slots.default" class="sh-page-header-content" :class="{ 'no-padding': !title && !slots.title && !subTitle && !slots.subTitle && !slots.tags && !slots.extra }">
|
|
23
|
-
<slot></slot>
|
|
24
|
-
</div>
|
|
25
|
-
<slot name="body"></slot>
|
|
26
|
-
<div v-if="slots.footer" class="sh-page-header-footer"><slot name="footer"></slot></div>
|
|
27
|
-
</div>
|
|
28
|
-
</template>
|
|
29
|
-
|
|
30
|
-
<script>
|
|
31
|
-
import { defineComponent, computed } from 'vue'
|
|
32
|
-
export default defineComponent({
|
|
33
|
-
name: 'ShHeader',
|
|
34
|
-
props: {
|
|
35
|
-
size: {
|
|
36
|
-
type: String,
|
|
37
|
-
default: 'default'
|
|
38
|
-
},
|
|
39
|
-
color: {
|
|
40
|
-
type: String,
|
|
41
|
-
default: ''
|
|
42
|
-
},
|
|
43
|
-
theme: {
|
|
44
|
-
type: String,
|
|
45
|
-
default: ''
|
|
46
|
-
},
|
|
47
|
-
align: {
|
|
48
|
-
type: String,
|
|
49
|
-
default: 'left'
|
|
50
|
-
},
|
|
51
|
-
icon: {
|
|
52
|
-
type: String
|
|
53
|
-
},
|
|
54
|
-
iconSize: {
|
|
55
|
-
type: Number,
|
|
56
|
-
default: 20
|
|
57
|
-
},
|
|
58
|
-
iconColor: {
|
|
59
|
-
type: String
|
|
60
|
-
},
|
|
61
|
-
ghost: {
|
|
62
|
-
type: Boolean
|
|
63
|
-
},
|
|
64
|
-
full: {
|
|
65
|
-
type: Boolean
|
|
66
|
-
},
|
|
67
|
-
border: {
|
|
68
|
-
type: Boolean
|
|
69
|
-
},
|
|
70
|
-
type: {
|
|
71
|
-
type: String,
|
|
72
|
-
default: '' // 'success', 'info', 'warning', 'error'
|
|
73
|
-
},
|
|
74
|
-
title: {
|
|
75
|
-
type: String,
|
|
76
|
-
default: ''
|
|
77
|
-
},
|
|
78
|
-
subTitle: {
|
|
79
|
-
type: String,
|
|
80
|
-
default: ''
|
|
81
|
-
},
|
|
82
|
-
loading: {
|
|
83
|
-
type: Boolean
|
|
84
|
-
},
|
|
85
|
-
nowrap: {
|
|
86
|
-
type: Boolean
|
|
87
|
-
},
|
|
88
|
-
showback: {
|
|
89
|
-
type: Boolean
|
|
90
|
-
}
|
|
91
|
-
},
|
|
92
|
-
emits: ['back'],
|
|
93
|
-
setup(props, context) {
|
|
94
|
-
const { emit, slots } = context
|
|
95
|
-
|
|
96
|
-
const styles = computed(() => {
|
|
97
|
-
return {
|
|
98
|
-
backgroundColor: props.color
|
|
99
|
-
}
|
|
100
|
-
})
|
|
101
|
-
const classes = computed(() => {
|
|
102
|
-
return {
|
|
103
|
-
'sh-page-header-ghost': props.ghost,
|
|
104
|
-
'sh-page-header-full': props.full,
|
|
105
|
-
'sh-page-header-border': props.border,
|
|
106
|
-
'has-footer': slots.footer,
|
|
107
|
-
[`sh-page-header-${props.theme}`]: props.theme,
|
|
108
|
-
[`${props.type}`]: props.type,
|
|
109
|
-
[`${props.size}`]: props.size,
|
|
110
|
-
'sh-page-header-nowrap': props.nowrap
|
|
111
|
-
}
|
|
112
|
-
})
|
|
113
|
-
|
|
114
|
-
const handleBack = () => {
|
|
115
|
-
emit('back')
|
|
116
|
-
}
|
|
117
|
-
return {
|
|
118
|
-
styles,
|
|
119
|
-
classes,
|
|
120
|
-
slots,
|
|
121
|
-
handleBack
|
|
122
|
-
}
|
|
123
|
-
}
|
|
124
|
-
})
|
|
125
|
-
</script>
|
|
126
|
-
|
|
127
|
-
<style lang="scss" scoped>
|
|
128
|
-
.sh-page-header {
|
|
129
|
-
display: block;
|
|
130
|
-
box-sizing: border-box;
|
|
131
|
-
border-radius: 2px;
|
|
132
|
-
line-height: 1.5;
|
|
133
|
-
position: relative;
|
|
134
|
-
padding: 0.5rem 1rem;
|
|
135
|
-
background-color: var(--vxe-table-body-background-color);
|
|
136
|
-
&.sh-page-header-full {
|
|
137
|
-
padding-left: 0;
|
|
138
|
-
padding-right: 0;
|
|
139
|
-
}
|
|
140
|
-
&.sh-page-header-dark {
|
|
141
|
-
color: #fff;
|
|
142
|
-
background: #333;
|
|
143
|
-
}
|
|
144
|
-
&.sh-page-header-primary {
|
|
145
|
-
background-color: var(--vxe-primary-color);
|
|
146
|
-
color: #fff;
|
|
147
|
-
}
|
|
148
|
-
&.sh-page-header-success {
|
|
149
|
-
background-color: var(--vxe-success-color);
|
|
150
|
-
color: #fff;
|
|
151
|
-
}
|
|
152
|
-
&.sh-page-header-warning {
|
|
153
|
-
background-color: var(--vxe-warning-color);
|
|
154
|
-
color: #fff;
|
|
155
|
-
}
|
|
156
|
-
&.sh-page-header-error {
|
|
157
|
-
background-color: var(--vxe-danger-color);
|
|
158
|
-
color: #fff;
|
|
159
|
-
}
|
|
160
|
-
&.sh-page-header-info {
|
|
161
|
-
background-color: var(--vxe-info-color);
|
|
162
|
-
color: #fff;
|
|
163
|
-
}
|
|
164
|
-
&.sh-page-header-ghost {
|
|
165
|
-
background-color: transparent;
|
|
166
|
-
}
|
|
167
|
-
&.sh-page-header-border {
|
|
168
|
-
border: 1px solid var(--vxe-table-border-color);
|
|
169
|
-
}
|
|
170
|
-
&.sh-page-header-nowrap {
|
|
171
|
-
.sh-page-header-heading-title {
|
|
172
|
-
white-space: nowrap;
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
&.success {
|
|
176
|
-
border-left: 4px solid var(--vxe-success-color);
|
|
177
|
-
background-color: #edfff3;
|
|
178
|
-
.sh-page-header-heading-title {
|
|
179
|
-
color: var(--vxe-success-color);
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
&.info {
|
|
183
|
-
border-left: 4px solid var(--vxe-info-color);
|
|
184
|
-
background-color: #f0faff;
|
|
185
|
-
.sh-page-header-heading-title {
|
|
186
|
-
color: var(--vxe-info-color);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
&.warning {
|
|
190
|
-
border-left: 4px solid var(--vxe-warning-color);
|
|
191
|
-
background-color: #fff9e6;
|
|
192
|
-
.sh-page-header-heading-title {
|
|
193
|
-
color: var(--vxe-warning-color);
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
&.error {
|
|
197
|
-
border-left: 4px solid var(--vxe-danger-color);
|
|
198
|
-
background-color: #ffefe6;
|
|
199
|
-
.sh-page-header-heading-title {
|
|
200
|
-
color: var(--vxe-danger-color);
|
|
201
|
-
}
|
|
202
|
-
}
|
|
203
|
-
&.large {
|
|
204
|
-
.sh-page-header-heading-title {
|
|
205
|
-
font-size: 1.4285rem;
|
|
206
|
-
}
|
|
207
|
-
}
|
|
208
|
-
&.default {
|
|
209
|
-
.sh-page-header-heading-title {
|
|
210
|
-
font-size: 1.2857rem;
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
&.small {
|
|
214
|
-
.sh-page-header-heading-title {
|
|
215
|
-
font-size: 1rem;
|
|
216
|
-
}
|
|
217
|
-
}
|
|
218
|
-
&.mini {
|
|
219
|
-
.sh-page-header-heading-title {
|
|
220
|
-
font-size: 0.8571rem;
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
.sh-page-header-heading {
|
|
224
|
-
width: 100%;
|
|
225
|
-
display: flex;
|
|
226
|
-
justify-content: space-between;
|
|
227
|
-
align-items: center;
|
|
228
|
-
.sh-page-header-heading-left {
|
|
229
|
-
flex: 1;
|
|
230
|
-
display: inline-flex;
|
|
231
|
-
justify-content: flex-start;
|
|
232
|
-
align-items: center;
|
|
233
|
-
.sh-page-header-back {
|
|
234
|
-
font-size: 1.2rem;
|
|
235
|
-
line-height: 1;
|
|
236
|
-
margin-right: 0.5rem;
|
|
237
|
-
.sh-page-header-back-button {
|
|
238
|
-
color: inherit;
|
|
239
|
-
text-decoration: none;
|
|
240
|
-
outline: none;
|
|
241
|
-
transition: color 0.3s;
|
|
242
|
-
cursor: pointer;
|
|
243
|
-
&:hover {
|
|
244
|
-
opacity: 0.85;
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
}
|
|
248
|
-
.sh-page-header-heading-title {
|
|
249
|
-
display: block;
|
|
250
|
-
margin-right: 0.5rem;
|
|
251
|
-
font-weight: 600;
|
|
252
|
-
}
|
|
253
|
-
i + .sh-page-header-heading-title {
|
|
254
|
-
margin-left: 0.5rem;
|
|
255
|
-
}
|
|
256
|
-
.sh-page-header-heading-sub-title {
|
|
257
|
-
margin-right: 0.5rem;
|
|
258
|
-
color: rgba(0, 0, 0, 0.45);
|
|
259
|
-
}
|
|
260
|
-
.sh-page-header-heading-tags {
|
|
261
|
-
}
|
|
262
|
-
}
|
|
263
|
-
.sh-page-header-heading-right {
|
|
264
|
-
.sh-page-header-heading-extra {
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
268
|
-
.sh-page-header-content {
|
|
269
|
-
margin-top: 10px;
|
|
270
|
-
&.no-padding {
|
|
271
|
-
padding-top: 0;
|
|
272
|
-
}
|
|
273
|
-
}
|
|
274
|
-
.sh-page-header-footer {
|
|
275
|
-
margin-top: 10px;
|
|
276
|
-
}
|
|
277
|
-
}
|
|
278
|
-
</style>
|