sh-view 1.7.6 → 2.0.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/.eslintrc.js +20 -21
- package/dist/css/227.45fab5b7.css +1 -0
- package/dist/css/291.e7facf7d.css +1 -0
- package/dist/css/299.e98df6ce.css +1 -0
- package/dist/css/358.e641c5d1.css +1 -0
- package/dist/css/534.726e6699.css +1 -0
- package/dist/css/769.8008ac6c.css +1 -0
- package/dist/css/index.2bd4fb37.css +1 -0
- package/dist/css/index.2bd4fb37.css.gz +0 -0
- package/dist/fonts/iconfont.03e5a9f9.ttf +0 -0
- package/dist/fonts/iconfont.03e5a9f9.ttf.gz +0 -0
- package/dist/fonts/ionicons.31fd4446.ttf +0 -0
- package/dist/fonts/ionicons.31fd4446.ttf.gz +0 -0
- package/dist/fonts/ionicons.d03f2836.woff2 +0 -0
- package/dist/fonts/ionicons.dacd136b.woff +0 -0
- package/dist/fonts/ionicons.dacd136b.woff.gz +0 -0
- package/dist/img/ionicons.6e8059e8.svg +870 -0
- package/dist/img/ionicons.6e8059e8.svg.gz +0 -0
- package/dist/js/152.588ca5b4.js +1 -0
- package/dist/js/165.f026fdcd.js +1 -0
- package/dist/js/227.6d340a71.js +1 -0
- package/dist/js/257.285f071f.js +1 -0
- package/dist/js/264.32b3a9a5.js +1 -0
- package/dist/js/291.e100da5e.js +1 -0
- package/dist/js/299.2062f9ff.js +1 -0
- package/dist/js/322.ff97ab5e.js +1 -0
- package/dist/js/333.da633859.js +1 -0
- package/dist/js/341.d4433549.js +1 -0
- package/dist/js/358.81429379.js +1 -0
- package/dist/js/387.7b1e3b8a.js +1 -0
- package/dist/js/392.c53bf6c9.js +1 -0
- package/dist/js/400.03e3be15.js +1 -0
- package/dist/js/41.fca2504e.js +1 -0
- package/dist/js/444.a0350517.js +1 -0
- package/dist/js/452.7f75d556.js +2 -0
- package/dist/js/452.7f75d556.js.gz +0 -0
- package/dist/js/497.06080ae1.js +1 -0
- package/dist/js/514.2ea0055a.js +1 -0
- package/dist/js/534.40a67536.js +1 -0
- package/dist/js/558.6175bf20.js +15 -0
- package/dist/js/558.6175bf20.js.gz +0 -0
- package/dist/js/586.098ab36d.js +1 -0
- package/dist/js/593.df7d7c2e.js +1 -0
- package/dist/js/601.abf6f256.js +1 -0
- package/dist/js/654.99b45cd4.js +18 -0
- package/dist/js/654.99b45cd4.js.gz +0 -0
- package/dist/js/668.a15a0058.js +1 -0
- package/dist/js/704.52e87fec.js +1 -0
- package/dist/js/720.aceca876.js +1 -0
- package/dist/js/769.1376ca7f.js +1 -0
- package/dist/js/875.975891f5.js +1 -0
- package/dist/js/89.c7317ccb.js +1 -0
- package/dist/js/94.d54e8b09.js +1 -0
- package/dist/js/chunk-vendors.e05ef0ac.js +438 -0
- package/dist/js/chunk-vendors.e05ef0ac.js.gz +0 -0
- package/dist/js/index.b31868df.js +1 -0
- package/dist/js/index.b31868df.js.gz +0 -0
- package/package.json +10 -10
- package/packages/assets/css/animated.scss +167 -2
- package/packages/assets/css/loader.scss +42 -42
- package/packages/assets/css/main.scss +41 -21
- package/packages/assets/css/theme.scss +83 -44
- package/packages/components/global-components/sh-alert/index.vue +173 -0
- package/packages/components/global-components/sh-badge/index.vue +227 -0
- package/packages/components/global-components/sh-card/index.vue +140 -122
- package/packages/components/global-components/sh-code-editor/index.vue +260 -260
- package/packages/components/global-components/sh-col/css/index.scss +76 -0
- package/packages/components/global-components/sh-col/index.vue +83 -0
- package/packages/components/global-components/sh-corner/index.vue +1 -9
- package/packages/components/global-components/sh-count-to/index.vue +102 -46
- package/packages/components/global-components/sh-date/index.vue +40 -0
- package/packages/components/global-components/sh-drawer/index.vue +518 -0
- package/packages/components/global-components/sh-drawer/scrollbar.js +76 -0
- package/packages/components/global-components/sh-empty/index.vue +43 -43
- package/packages/components/global-components/{sh-vxe-form → sh-form}/css/index.scss +6 -6
- package/packages/components/global-components/{sh-vxe-form → sh-form}/index.vue +114 -115
- package/packages/components/global-components/{sh-vxe-form → sh-form}/js/methods.js +146 -157
- package/packages/components/global-components/{sh-vxe-form → sh-form}/mixin/defaultData.js +32 -33
- package/packages/components/global-components/sh-header/index.vue +293 -269
- package/packages/components/global-components/sh-icon/css/default/fonts/ionicons.svg +870 -0
- package/packages/components/global-components/sh-icon/css/default/fonts/ionicons.ttf +0 -0
- package/packages/components/global-components/sh-icon/css/default/fonts/ionicons.woff +0 -0
- package/packages/components/global-components/sh-icon/css/default/fonts/ionicons.woff2 +0 -0
- package/packages/components/global-components/sh-icon/css/default/icons.scss +2583 -0
- package/packages/components/global-components/sh-icon/css/default/index.scss +27 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.js +1 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.json +247 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.ttf +0 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.woff +0 -0
- package/packages/components/global-components/sh-icon/css/font/fonts/iconfont.woff2 +0 -0
- package/packages/components/global-components/sh-icon/css/font/icons.scss +135 -0
- package/packages/components/global-components/sh-icon/css/font/index.scss +16 -0
- package/packages/components/global-components/sh-icon/icon-default.vue +32 -0
- package/packages/components/global-components/sh-icon/{icons.vue → icon-font.vue} +32 -32
- package/packages/components/global-components/sh-icon/index.vue +28 -27
- package/packages/components/global-components/sh-image/index.vue +123 -0
- package/packages/components/global-components/sh-list/index.vue +141 -0
- package/packages/components/global-components/sh-loading/index.vue +49 -42
- package/packages/components/global-components/{sh-vxe-modal → sh-modal}/index.vue +209 -209
- package/packages/components/global-components/sh-noticebar/index.vue +201 -201
- package/packages/components/global-components/sh-poptip/index.vue +479 -0
- package/packages/components/global-components/sh-poptip/popper.js +115 -0
- package/packages/components/global-components/sh-progress/index.vue +290 -0
- package/packages/components/global-components/sh-pull-refresh/index.vue +290 -290
- package/packages/components/global-components/{sh-vxe-query → sh-query}/index.vue +317 -310
- package/packages/components/global-components/sh-result/index.vue +110 -88
- package/packages/components/global-components/sh-row/css/index.scss +21 -0
- package/packages/components/global-components/sh-row/index.vue +63 -0
- package/packages/components/global-components/sh-split/components/trigger.vue +33 -0
- package/packages/components/global-components/sh-split/index.vue +334 -142
- package/packages/components/global-components/sh-table/components/importModal.vue +351 -0
- package/packages/components/global-components/{sh-vxe-table → sh-table}/css/index.scss +4 -22
- package/packages/components/global-components/{sh-vxe-table → sh-table}/index.vue +329 -351
- package/packages/components/global-components/{sh-vxe-table → sh-table}/js/methods.js +33 -88
- package/packages/components/global-components/{sh-vxe-table → sh-table}/js/props.js +304 -313
- package/packages/components/global-components/{sh-vxe-table → sh-table}/mixin/defaultData.js +94 -116
- package/packages/components/global-components/sh-tabs/index.vue +322 -0
- package/packages/components/global-components/sh-tag/index.vue +163 -0
- package/packages/components/global-components/{sh-vxe-toolbar → sh-toolbar}/index.vue +177 -172
- package/packages/components/global-components/sh-tree/components/table-tree.vue +280 -0
- package/packages/components/global-components/sh-tree/css/index.scss +54 -0
- package/packages/components/global-components/sh-tree/index.vue +195 -0
- package/packages/components/global-components/sh-tree/mixin/treeProps.js +124 -0
- package/packages/components/global-components/sh-upload/index.vue +278 -275
- package/packages/components/global-components/sh-water-fall/index.vue +87 -87
- package/packages/components/index.js +85 -59
- package/packages/components/other-components/sh-cron-modal/css/index.scss +2 -2
- package/packages/components/other-components/sh-menu-card/index.vue +224 -224
- package/packages/css/index.js +4 -6
- package/packages/directive/index.js +19 -19
- package/packages/directive/module/click-out.js +14 -0
- package/packages/directive/module/draggable.js +42 -42
- package/packages/directive/module/line-clamp.js +22 -0
- package/packages/directive/module/prevent-click.js +18 -0
- package/packages/directive/module/resize.js +19 -0
- package/packages/directive/module/ripple.js +166 -0
- package/packages/index.js +39 -40
- package/packages/utils/transfer-queue.js +12 -0
- package/packages/vxeTable/css/index.scss +12 -98
- package/packages/vxeTable/css/variable.scss +7 -265
- package/packages/vxeTable/index.js +184 -183
- package/packages/vxeTable/plugins/export.js +450 -0
- package/packages/vxeTable/render/cell/vxe-render-checkgroup.vue +36 -36
- package/packages/vxeTable/render/cell/vxe-render-goption.vue +94 -93
- package/packages/vxeTable/render/cell/vxe-render-img.vue +21 -28
- package/packages/vxeTable/render/cell/vxe-render-input.vue +51 -51
- package/packages/vxeTable/render/cell/vxe-render-progress.vue +19 -19
- package/packages/vxeTable/render/cell/vxe-render-radiogroup.vue +36 -36
- package/packages/vxeTable/render/cell/vxe-render-select.vue +36 -36
- package/packages/vxeTable/render/cell/vxe-render-tree.vue +59 -59
- package/packages/vxeTable/render/globalRenders.jsx +498 -491
- package/packages/assets/icons/demo.css +0 -539
- package/packages/assets/icons/iconfont.css +0 -415
- package/packages/assets/icons/iconfont.js +0 -1
- package/packages/assets/icons/iconfont.json +0 -709
- package/packages/assets/icons/iconfont.ttf +0 -0
- package/packages/assets/icons/iconfont.woff +0 -0
- package/packages/assets/icons/iconfont.woff2 +0 -0
- package/packages/assets/img/image-error.png +0 -0
- package/packages/assets/img/square-image.png +0 -0
- package/packages/components/global-components/sh-iv-form/components/iv-group-item.vue +0 -57
- package/packages/components/global-components/sh-iv-form/components/iv-single-item.vue +0 -76
- package/packages/components/global-components/sh-iv-form/index.vue +0 -255
- package/packages/components/global-components/sh-vxe-list/index.vue +0 -149
- package/packages/components/global-components/sh-vxe-table/components/importModal.vue +0 -377
- package/packages/components/global-components/sh-vxe-tree/components/table-tree.vue +0 -233
- package/packages/components/global-components/sh-vxe-tree/css/index.scss +0 -20
- package/packages/components/global-components/sh-vxe-tree/index.vue +0 -85
- package/packages/components/global-components/sh-vxe-tree/js/props.js +0 -120
- package/packages/components/global-components/sh-vxe-tree/js/treeMethods.js +0 -169
- package/packages/components/global-components/sh-vxe-tree/mixin/defaultData.js +0 -54
- package/packages/components/global-components/sh-vxe-tree/vxe-direct-tree.vue +0 -203
- package/packages/components/global-components/sh-vxe-tree/vxe-select-tree.vue +0 -291
- package/packages/components/other-components/sh-markdown/tinymce/langs/ar.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/az.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/bg_BG.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/bn_BD.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ca.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/cs.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/cy.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/da.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/de.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/dv.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/el.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/eo.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/es.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/es_MX.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/et.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/eu.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/fa.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/fi.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/fr_FR.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ga.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/gl.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/he_IL.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/hi.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/hr.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/hu_HU.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/hy.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/id.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/is_IS.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/it.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ja.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/kab.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/kk.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ko_KR.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ku.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/lt.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/lv.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/nb_NO.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ne.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/nl.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/nl_BE.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/oc.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/pl.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/pt_BR.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ro.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ru.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sk.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sl_SI.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sq.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sr.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/sv_SE.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ta.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/tg.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/th_TH.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/tr.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/ug.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/uk.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/langs/vi.js +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/dark/content.css +0 -72
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/dark/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/default/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/document/content.css +0 -72
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/document/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/writer/content.css +0 -68
- package/packages/components/other-components/sh-markdown/tinymce/skins/content/writer/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.css +0 -714
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.inline.css +0 -726
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.inline.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.mobile.css +0 -29
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/content.mobile.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.css +0 -3047
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.mobile.css +0 -673
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +0 -7
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +0 -37
- package/packages/components/other-components/sh-markdown/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +0 -7
- package/packages/directive/directives.js +0 -27
- package/packages/iview/css/index.scss +0 -32
- package/packages/iview/index.js +0 -25
- /package/packages/components/global-components/{sh-vxe-form → sh-form}/components/form-item.vue +0 -0
- /package/packages/components/global-components/{sh-vxe-form → sh-form}/js/props.js +0 -0
- /package/packages/components/global-components/{sh-vxe-table → sh-table}/js/excel_to_json.js +0 -0
|
@@ -1,269 +1,293 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<div class="sh-page-header" :style="styles" :
|
|
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"><
|
|
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
|
-
export default {
|
|
32
|
-
name: 'ShHeader',
|
|
33
|
-
components: {},
|
|
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: ''
|
|
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
|
-
data() {
|
|
94
|
-
return {}
|
|
95
|
-
},
|
|
96
|
-
computed: {
|
|
97
|
-
styles() {
|
|
98
|
-
return {
|
|
99
|
-
backgroundColor: this.color
|
|
100
|
-
}
|
|
101
|
-
},
|
|
102
|
-
classes() {
|
|
103
|
-
return [
|
|
104
|
-
{
|
|
105
|
-
'sh-page-header-ghost': this.ghost,
|
|
106
|
-
'sh-page-header-full': this.full,
|
|
107
|
-
'sh-page-header-border': this.border,
|
|
108
|
-
'has-footer': this.$slots.footer,
|
|
109
|
-
[`sh-page-header-${this.theme}`]: this.theme,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
.sh-page-header-heading-title {
|
|
185
|
-
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
.sh-page-header-heading-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
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
|
+
export default {
|
|
32
|
+
name: 'ShHeader',
|
|
33
|
+
components: {},
|
|
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
|
+
data() {
|
|
94
|
+
return {}
|
|
95
|
+
},
|
|
96
|
+
computed: {
|
|
97
|
+
styles() {
|
|
98
|
+
return {
|
|
99
|
+
backgroundColor: this.color
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
classes() {
|
|
103
|
+
return [
|
|
104
|
+
{
|
|
105
|
+
'sh-page-header-ghost': this.ghost,
|
|
106
|
+
'sh-page-header-full': this.full,
|
|
107
|
+
'sh-page-header-border': this.border,
|
|
108
|
+
'has-footer': this.$slots.footer,
|
|
109
|
+
[`sh-page-header-${this.theme}`]: this.theme,
|
|
110
|
+
[`${this.type}`]: this.type,
|
|
111
|
+
[`${this.size}`]: this.size,
|
|
112
|
+
'sh-page-header-nowrap': this.nowrap
|
|
113
|
+
}
|
|
114
|
+
]
|
|
115
|
+
}
|
|
116
|
+
},
|
|
117
|
+
created() {},
|
|
118
|
+
methods: {
|
|
119
|
+
handleBack() {
|
|
120
|
+
this.$emit('back')
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
</script>
|
|
125
|
+
|
|
126
|
+
<style lang="scss" scoped>
|
|
127
|
+
.sh-page-header {
|
|
128
|
+
display: block;
|
|
129
|
+
box-sizing: border-box;
|
|
130
|
+
border-radius: 2px;
|
|
131
|
+
line-height: 1.5;
|
|
132
|
+
position: relative;
|
|
133
|
+
padding: 0.5rem 1rem;
|
|
134
|
+
background-color: var(--vxe-table-body-background-color);
|
|
135
|
+
&.sh-page-header-full {
|
|
136
|
+
padding-left: 0;
|
|
137
|
+
padding-right: 0;
|
|
138
|
+
}
|
|
139
|
+
&.sh-page-header-dark {
|
|
140
|
+
color: #fff;
|
|
141
|
+
background: #333;
|
|
142
|
+
}
|
|
143
|
+
&.sh-page-header-primary {
|
|
144
|
+
background-color: var(--vxe-primary-color);
|
|
145
|
+
color: #fff;
|
|
146
|
+
}
|
|
147
|
+
&.sh-page-header-success {
|
|
148
|
+
background-color: var(--vxe-success-color);
|
|
149
|
+
color: #fff;
|
|
150
|
+
}
|
|
151
|
+
&.sh-page-header-warning {
|
|
152
|
+
background-color: var(--vxe-warning-color);
|
|
153
|
+
color: #fff;
|
|
154
|
+
}
|
|
155
|
+
&.sh-page-header-error {
|
|
156
|
+
background-color: var(--vxe-danger-color);
|
|
157
|
+
color: #fff;
|
|
158
|
+
}
|
|
159
|
+
&.sh-page-header-info {
|
|
160
|
+
background-color: var(--vxe-info-color);
|
|
161
|
+
color: #fff;
|
|
162
|
+
}
|
|
163
|
+
&.sh-page-header-ghost {
|
|
164
|
+
background-color: transparent;
|
|
165
|
+
}
|
|
166
|
+
&.sh-page-header-border {
|
|
167
|
+
border: 1px solid var(--vxe-table-border-color);
|
|
168
|
+
}
|
|
169
|
+
&.sh-page-header-nowrap {
|
|
170
|
+
.sh-page-header-heading-title {
|
|
171
|
+
white-space: nowrap;
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
&.success {
|
|
175
|
+
border-left: 4px solid var(--vxe-success-color);
|
|
176
|
+
background-color: #edfff3;
|
|
177
|
+
.sh-page-header-heading-title {
|
|
178
|
+
color: var(--vxe-success-color);
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
&.info {
|
|
182
|
+
border-left: 4px solid var(--vxe-info-color);
|
|
183
|
+
background-color: #f0faff;
|
|
184
|
+
.sh-page-header-heading-title {
|
|
185
|
+
color: var(--vxe-info-color);
|
|
186
|
+
}
|
|
187
|
+
}
|
|
188
|
+
&.warning {
|
|
189
|
+
border-left: 4px solid var(--vxe-warning-color);
|
|
190
|
+
background-color: #fff9e6;
|
|
191
|
+
.sh-page-header-heading-title {
|
|
192
|
+
color: var(--vxe-warning-color);
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
&.error {
|
|
196
|
+
border-left: 4px solid var(--vxe-danger-color);
|
|
197
|
+
background-color: #ffefe6;
|
|
198
|
+
.sh-page-header-heading-title {
|
|
199
|
+
color: var(--vxe-danger-color);
|
|
200
|
+
}
|
|
201
|
+
}
|
|
202
|
+
&.large {
|
|
203
|
+
.sh-page-header-heading-title {
|
|
204
|
+
font-size: 1.4285rem;
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
&.default {
|
|
208
|
+
.sh-page-header-heading-title {
|
|
209
|
+
font-size: 1.2857rem;
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
&.small {
|
|
213
|
+
.sh-page-header-heading-title {
|
|
214
|
+
font-size: 1rem;
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
&.mini {
|
|
218
|
+
.sh-page-header-heading-title {
|
|
219
|
+
font-size: 0.8571rem;
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
.sh-page-header-heading {
|
|
223
|
+
width: 100%;
|
|
224
|
+
display: flex;
|
|
225
|
+
justify-content: space-between;
|
|
226
|
+
align-items: center;
|
|
227
|
+
.sh-page-header-heading-left {
|
|
228
|
+
flex: 1;
|
|
229
|
+
display: inline-flex;
|
|
230
|
+
justify-content: flex-start;
|
|
231
|
+
align-items: center;
|
|
232
|
+
.sh-page-header-back {
|
|
233
|
+
font-size: 1.2rem;
|
|
234
|
+
line-height: 1;
|
|
235
|
+
margin-right: 0.5rem;
|
|
236
|
+
.sh-page-header-back-button {
|
|
237
|
+
color: inherit;
|
|
238
|
+
text-decoration: none;
|
|
239
|
+
outline: none;
|
|
240
|
+
transition: color 0.3s;
|
|
241
|
+
cursor: pointer;
|
|
242
|
+
&:hover {
|
|
243
|
+
opacity: 0.85;
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
}
|
|
247
|
+
.sh-page-header-heading-title {
|
|
248
|
+
display: block;
|
|
249
|
+
margin-right: 0.5rem;
|
|
250
|
+
font-weight: 600;
|
|
251
|
+
}
|
|
252
|
+
i + .sh-page-header-heading-title {
|
|
253
|
+
margin-left: 0.5rem;
|
|
254
|
+
}
|
|
255
|
+
.sh-page-header-heading-sub-title {
|
|
256
|
+
margin-right: 0.5rem;
|
|
257
|
+
color: rgba(0, 0, 0, 0.45);
|
|
258
|
+
}
|
|
259
|
+
.sh-page-header-heading-tags {
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
.sh-page-header-heading-right {
|
|
263
|
+
.sh-page-header-heading-extra {
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
.sh-page-header-content {
|
|
268
|
+
margin-top: 10px;
|
|
269
|
+
&.no-padding {
|
|
270
|
+
padding-top: 0;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
.sh-page-header-footer {
|
|
274
|
+
margin-top: 10px;
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
.mobile {
|
|
279
|
+
.sh-page-header {
|
|
280
|
+
&.sh-page-header-nowrap {
|
|
281
|
+
.sh-page-header-heading-title {
|
|
282
|
+
white-space: normal;
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
}
|
|
286
|
+
}
|
|
287
|
+
|
|
288
|
+
.theme--dark {
|
|
289
|
+
.sh-page-header {
|
|
290
|
+
background: transparent;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
</style>
|