@jx3box/jx3box-ui 2.0.4 → 2.0.6
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/.storybook/main.js +208 -0
- package/.storybook/preview.js +93 -0
- package/.storybook/storybookMocks.js +191 -0
- package/README.md +29 -82
- package/assets/css/bread/admin.less +20 -2
- package/assets/css/bread/breadcrumb.less +5 -2
- package/assets/css/comment/quick-reply.less +1 -1
- package/assets/css/common/left-sidebar.less +1 -1
- package/assets/css/interact/like2.less +5 -2
- package/assets/css/single/author.less +15 -10
- package/assets/css/single/cms-single.less +1 -0
- package/assets/css/single/thx.less +34 -11
- package/assets/data/nav.json +344 -10
- package/assets/img/comment/comment.svg +1 -1
- package/assets/img/comment/heart_1.svg +1 -1
- package/assets/img/comment/hide.svg +1 -1
- package/assets/img/leftsidebar/medal.svg +1 -1
- package/assets/img/leftsidebar/post.svg +27 -46
- package/i18n/messages/en-US.js +357 -22
- package/i18n/messages/vi.js +350 -22
- package/i18n/messages/zh-CN.js +469 -20
- package/i18n/messages/zh-TW.js +350 -22
- package/index.js +19 -7
- package/package.json +15 -5
- package/service/cms.js +22 -0
- package/service/commit-history.js +18 -0
- package/service/community.js +60 -0
- package/service/fav.js +5 -6
- package/src/App.vue +154 -80
- package/src/Breadcrumb.vue +24 -11
- package/src/CommonFooter.vue +4 -4
- package/src/Footer.vue +13 -5
- package/src/LeftSideToggle.vue +10 -3
- package/src/LeftSidebar.vue +19 -5
- package/src/Main.vue +9 -2
- package/src/RightSidebar.vue +12 -3
- package/src/SuspendCommon.vue +52 -38
- package/src/author/AuthorFans.vue +7 -5
- package/src/author/AuthorFollow.vue +14 -7
- package/src/author/AuthorGift.vue +25 -17
- package/src/author/AuthorInfo.vue +46 -19
- package/src/author/AuthorLink.vue +3 -1
- package/src/author/AuthorMedals.vue +5 -2
- package/src/author/AuthorPosts.vue +31 -13
- package/src/author/AuthorRss.vue +7 -3
- package/src/author/AuthorTeams.vue +3 -1
- package/src/author/UserPop.vue +29 -17
- package/src/bread/Admin.vue +55 -32
- package/src/bread/AdminDirectMessage.vue +15 -8
- package/src/bread/AdminDrop.vue +124 -45
- package/src/bread/CommunityAdmin.vue +527 -0
- package/src/bread/DesignTask.vue +30 -26
- package/src/bread/ListAdmin.vue +199 -0
- package/src/bread/MigrateCommunity.vue +192 -0
- package/src/bread/MoveToCommunityDialog.vue +234 -0
- package/src/comment/Avatar.vue +18 -24
- package/src/comment/CommentContent.vue +57 -37
- package/src/comment/CommentContentSimple.vue +61 -63
- package/src/comment/CommentInputForm.vue +45 -34
- package/src/comment/CommentWithReply.vue +9 -6
- package/src/comment/QuickReply.vue +5 -1
- package/src/comment/ReplyForReply.vue +6 -4
- package/src/comment/ReplyList.vue +28 -18
- package/src/comment/Upload.vue +24 -6
- package/src/filters/clientBy.vue +10 -8
- package/src/filters/markBy.vue +35 -31
- package/src/filters/menuBy.vue +20 -22
- package/src/filters/orderBy.vue +17 -11
- package/src/filters/tagBy.vue +4 -2
- package/src/filters/topicBy.vue +12 -10
- package/src/filters/versionBy.vue +5 -3
- package/src/filters/zlpBy.vue +29 -25
- package/src/footer/copyright.vue +5 -5
- package/src/footer/links.vue +2 -2
- package/src/footer/official.vue +1 -1
- package/src/footer/resource.vue +41 -8
- package/src/header/alternate.vue +35 -18
- package/src/header/asset.vue +9 -19
- package/src/header/box.vue +20 -8
- package/src/header/box2.vue +25 -13
- package/src/header/client.vue +7 -7
- package/src/header/lang.vue +41 -6
- package/src/header/logo.vue +2 -3
- package/src/header/manage.vue +2 -2
- package/src/header/message.vue +3 -3
- package/src/header/nav.vue +26 -23
- package/src/header/publish.vue +2 -2
- package/src/header/search.vue +2 -2
- package/src/header/shop.vue +2 -2
- package/src/header/user.vue +4 -4
- package/src/header/userInfo.vue +22 -24
- package/src/header/vip.vue +2 -2
- package/src/interact/BoxcoinAdmin.vue +30 -16
- package/src/interact/BoxcoinRecords.vue +28 -11
- package/src/interact/BoxcoinUser.vue +33 -17
- package/src/interact/Fav.vue +5 -1
- package/src/interact/Homework.vue +318 -0
- package/src/interact/Like.vue +4 -2
- package/src/interact/Rss.vue +10 -4
- package/src/interact/Share.vue +18 -19
- package/src/interact/WatchLater.vue +5 -1
- package/src/main.js +1 -0
- package/src/single/Author.vue +5 -1
- package/src/single/CmsSingle.vue +29 -15
- package/src/single/Collection.vue +36 -26
- package/src/single/Comment.vue +19 -13
- package/src/single/Creators.vue +5 -3
- package/src/single/PostCollection.vue +158 -0
- package/src/single/PostDirectory.vue +0 -126
- package/src/single/PostGuide.vue +93 -0
- package/src/single/PostHeader.vue +39 -17
- package/src/single/PostTopic.vue +3 -3
- package/src/single/PostVersion.vue +219 -0
- package/src/single/RightAffix.vue +160 -0
- package/src/single/SimpleThx.vue +4 -2
- package/src/single/Thx.vue +14 -2
- package/src/single/VersionDialog.vue +238 -0
- package/src/stories/components/StoryPropsTable.vue +137 -0
- package/src/stories/filters/FilterGallery.stories.js +110 -0
- package/src/stories/filters/clientBy.stories.js +24 -0
- package/src/stories/filters/markBy.stories.js +6 -0
- package/src/stories/filters/menuBy.stories.js +6 -0
- package/src/stories/filters/orderBy.stories.js +6 -0
- package/src/stories/filters/tagBy.stories.js +6 -0
- package/src/stories/filters/topicBy.stories.js +6 -0
- package/src/stories/filters/versionBy.stories.js +6 -0
- package/src/stories/filters/zlpBy.stories.js +6 -0
- package/src/stories/layout/BaseShell.stories.js +38 -0
- package/src/stories/layout/Breadcrumb.stories.js +40 -0
- package/src/stories/layout/CommonFooter.stories.js +22 -0
- package/src/stories/layout/CommonHeader.stories.js +39 -0
- package/src/stories/layout/LeftSideToggle.stories.js +78 -0
- package/src/stories/layout/LeftSidebar.stories.js +40 -0
- package/src/stories/layout/Main.stories.js +41 -0
- package/src/stories/layout/RightSidebar.stories.js +36 -0
- package/src/stories/layout/StorybookShell.vue +271 -0
- package/src/stories/layout/SuspendCommon.stories.js +67 -0
- package/src/stories/layout/SuspendCommonStage.vue +143 -0
- package/src/stories/mockData.js +275 -0
- package/src/stories/other/UserPop.stories.js +51 -0
- package/src/stories/single/Author.stories.js +19 -0
- package/src/stories/single/AuthorStoryStage.vue +103 -0
- package/src/stories/single/CmsSingle.stories.js +19 -0
- package/src/stories/single/CmsSingleStoryStage.vue +118 -0
- package/src/stories/single/Collection.stories.js +34 -0
- package/src/stories/single/Comment.stories.js +36 -0
- package/src/stories/single/Creators.stories.js +34 -0
- package/src/stories/single/PostCollection.stories.js +34 -0
- package/src/stories/single/PostDirectory.stories.js +31 -0
- package/src/stories/single/PostGuide.stories.js +47 -0
- package/src/stories/single/PostHeader.stories.js +39 -0
- package/src/stories/single/PostVersion.stories.js +41 -0
- package/src/stories/single/RightAffix.stories.js +84 -0
- package/src/stories/single/SimpleThx.stories.js +39 -0
- package/src/stories/single/SingleGallery.stories.js +207 -0
- package/src/stories/single/Thx.stories.js +38 -0
- package/vue.config.js +2 -12
- package/assets/css/common/bottom.less +0 -25
- package/assets/css/editor/article.less +0 -36
- package/assets/css/editor/combo.less +0 -362
- package/assets/css/editor/resource.less +0 -399
- package/assets/css/editor/tinymce.less +0 -100
- package/assets/css/editor/upload.less +0 -136
- package/assets/css/module/author.less +0 -231
- package/assets/css/module/buff.less +0 -88
- package/assets/css/module/directory.less +0 -165
- package/assets/css/module/icon.less +0 -25
- package/assets/css/module/item.less +0 -279
- package/assets/css/module/item_simple.less +0 -58
- package/assets/css/module/jx3_element.less +0 -5
- package/assets/css/module/macro.less +0 -89
- package/assets/css/module/npc.less +0 -265
- package/assets/css/module/resource.less +0 -93
- package/assets/css/module/skill.less +0 -74
- package/assets/css/module/talent.less +0 -495
- package/assets/js/a.js +0 -46
- package/assets/js/code.js +0 -13
- package/assets/js/combo.js +0 -40
- package/assets/js/directory.js +0 -114
- package/assets/js/filter2.js +0 -186
- package/assets/js/fold.js +0 -11
- package/assets/js/gallery.js +0 -14
- package/assets/js/hljs_languages.js +0 -177
- package/assets/js/iframe.js +0 -38
- package/assets/js/img.js +0 -23
- package/assets/js/item/attribute_percent.js +0 -88
- package/assets/js/item/bind.js +0 -18
- package/assets/js/item/border.js +0 -19
- package/assets/js/item/border_quest.js +0 -12
- package/assets/js/item/color.js +0 -25
- package/assets/js/item/hljs_languages.js +0 -177
- package/assets/js/item/icon_url.js +0 -15
- package/assets/js/item/second_format.js +0 -19
- package/assets/js/jx3_element.js +0 -73
- package/assets/js/katex.js +0 -181
- package/assets/js/macro.js +0 -16
- package/assets/js/nextpage.js +0 -4
- package/assets/js/pswp.js +0 -67
- package/assets/js/pswp_template.js +0 -66
- package/assets/js/pz_iframe.js +0 -30
- package/assets/js/qixue.js +0 -28
- package/assets/js/renderImgPreview.js +0 -18
- package/assets/js/script.js +0 -6
- package/assets/js/stat.js +0 -107
- package/assets/js/talent2.js +0 -21
- package/assets/js/tex-mml-chtml.js +0 -36310
- package/assets/js/voice.js +0 -238
- package/assets/js/xss.js +0 -130
- package/src/editor/Article.vue +0 -230
- package/src/editor/BoxResource.vue +0 -441
- package/src/editor/Resource.vue +0 -623
- package/src/editor/Tinymce.vue +0 -204
- package/src/editor/Upload.vue +0 -277
- package/src/editor/UploadAlum.vue +0 -176
- package/src/editor/UploadBanner.vue +0 -156
- package/src/editor/components/Author.vue +0 -322
- package/src/editor/components/Avatar.vue +0 -95
- package/src/editor/components/Buff.vue +0 -80
- package/src/editor/components/Combo.vue +0 -259
- package/src/editor/components/Equip.vue +0 -299
- package/src/editor/components/GameText.vue +0 -242
- package/src/editor/components/Item.vue +0 -325
- package/src/editor/components/ItemSimple.vue +0 -134
- package/src/editor/components/Medal.vue +0 -43
- package/src/editor/components/Npc.vue +0 -215
- package/src/editor/components/PostAuthor.vue +0 -102
- package/src/editor/components/Skill.vue +0 -71
|
@@ -0,0 +1,238 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<el-dialog
|
|
3
|
+
class="m-version-contrast-dialog"
|
|
4
|
+
:title="`版本比对 - ${title}`"
|
|
5
|
+
v-model="visible"
|
|
6
|
+
append-to-body
|
|
7
|
+
width="90%"
|
|
8
|
+
@close="close"
|
|
9
|
+
>
|
|
10
|
+
<div class="m-version-container" v-loading="loading">
|
|
11
|
+
<div class="m-toolbar">
|
|
12
|
+
<el-radio-group v-model="type">
|
|
13
|
+
<el-radio-button :label="item.value" v-for="item in types" :key="item.value">{{
|
|
14
|
+
item.label
|
|
15
|
+
}}</el-radio-button>
|
|
16
|
+
</el-radio-group>
|
|
17
|
+
<div class="m-select">
|
|
18
|
+
<el-select
|
|
19
|
+
class="u-select"
|
|
20
|
+
v-model="version1"
|
|
21
|
+
placeholder="请选择"
|
|
22
|
+
@change="versionChange($event, 1)"
|
|
23
|
+
>
|
|
24
|
+
<el-option
|
|
25
|
+
v-for="item in versions"
|
|
26
|
+
:key="item.id"
|
|
27
|
+
:label="item.version"
|
|
28
|
+
:value="item.commit_hash"
|
|
29
|
+
></el-option>
|
|
30
|
+
<template v-slot:prefix>
|
|
31
|
+
<span class="u-label">版本1</span>
|
|
32
|
+
</template>
|
|
33
|
+
</el-select>
|
|
34
|
+
<el-select
|
|
35
|
+
class="u-select"
|
|
36
|
+
v-model="version2"
|
|
37
|
+
placeholder="请选择"
|
|
38
|
+
@change="versionChange($event, 2)"
|
|
39
|
+
>
|
|
40
|
+
<el-option
|
|
41
|
+
v-for="item in versions"
|
|
42
|
+
:key="item.id"
|
|
43
|
+
:label="item.version"
|
|
44
|
+
:value="item.commit_hash"
|
|
45
|
+
></el-option>
|
|
46
|
+
<template v-slot:prefix> <span class="u-label">版本2</span> </template>
|
|
47
|
+
</el-select>
|
|
48
|
+
</div>
|
|
49
|
+
</div>
|
|
50
|
+
<div v-if="type === 'view'" class="m-content-container">
|
|
51
|
+
<div class="u-content">
|
|
52
|
+
<Article :content="content1" />
|
|
53
|
+
</div>
|
|
54
|
+
<div class="u-content">
|
|
55
|
+
<Article :content="content2" />
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
<div v-if="type === 'code'" class="m-content-container">
|
|
59
|
+
<code-diff
|
|
60
|
+
class="m-content-view"
|
|
61
|
+
:old-string="content1"
|
|
62
|
+
:new-string="content2"
|
|
63
|
+
:context="1024"
|
|
64
|
+
output-format="side-by-side"
|
|
65
|
+
maxHeight="520px"
|
|
66
|
+
:filename="`${content1Len}字`"
|
|
67
|
+
:newFilename="`${content2Len}字`"
|
|
68
|
+
ignoreMatchingLines="data:image/png;base64,"
|
|
69
|
+
></code-diff>
|
|
70
|
+
</div>
|
|
71
|
+
</div>
|
|
72
|
+
</el-dialog>
|
|
73
|
+
</template>
|
|
74
|
+
|
|
75
|
+
<script>
|
|
76
|
+
import { getCommitByHash } from "../../service/commit-history";
|
|
77
|
+
import Article from "@jx3box/jx3box-editor/src/Article.vue";
|
|
78
|
+
import { CodeDiff } from "v-code-diff";
|
|
79
|
+
export default {
|
|
80
|
+
name: "VersionDialog",
|
|
81
|
+
components: {
|
|
82
|
+
CodeDiff,
|
|
83
|
+
Article,
|
|
84
|
+
},
|
|
85
|
+
props: {
|
|
86
|
+
modelValue: {
|
|
87
|
+
type: Boolean,
|
|
88
|
+
default: false,
|
|
89
|
+
},
|
|
90
|
+
title: {
|
|
91
|
+
type: String,
|
|
92
|
+
default: "",
|
|
93
|
+
},
|
|
94
|
+
content: {
|
|
95
|
+
type: String,
|
|
96
|
+
default: "",
|
|
97
|
+
},
|
|
98
|
+
commit_hash: {
|
|
99
|
+
type: String,
|
|
100
|
+
default: "",
|
|
101
|
+
},
|
|
102
|
+
link_content_meta_id: {
|
|
103
|
+
type: [Number, String],
|
|
104
|
+
default: 0,
|
|
105
|
+
},
|
|
106
|
+
versions: {
|
|
107
|
+
type: Array,
|
|
108
|
+
default: () => [],
|
|
109
|
+
},
|
|
110
|
+
},
|
|
111
|
+
emits: ["update:modelValue"],
|
|
112
|
+
data() {
|
|
113
|
+
return {
|
|
114
|
+
loading: false,
|
|
115
|
+
type: "view",
|
|
116
|
+
types: [
|
|
117
|
+
{ label: "可视化", value: "view" },
|
|
118
|
+
{ label: "源码", value: "code" },
|
|
119
|
+
],
|
|
120
|
+
version1: "", // 版本1 默认最新,下拉可指定
|
|
121
|
+
version2: "", // 版本2 默认点击的版本,下拉可指定
|
|
122
|
+
content1: "",
|
|
123
|
+
content2: "",
|
|
124
|
+
|
|
125
|
+
visible: false,
|
|
126
|
+
};
|
|
127
|
+
},
|
|
128
|
+
computed: {
|
|
129
|
+
content1Len() {
|
|
130
|
+
const content = this.content1 || "";
|
|
131
|
+
return content
|
|
132
|
+
.replace(/(<([^>]+)>)/gi, "")
|
|
133
|
+
.replace(/\n/g, "")
|
|
134
|
+
.replace(/\s/g, "")
|
|
135
|
+
.replaceAll(" ", "").length;
|
|
136
|
+
},
|
|
137
|
+
content2Len() {
|
|
138
|
+
const content = this.content2 || "";
|
|
139
|
+
return content
|
|
140
|
+
.replace(/(<([^>]+)>)/gi, "")
|
|
141
|
+
.replace(/\n/g, "")
|
|
142
|
+
.replace(/\s/g, "")
|
|
143
|
+
.replaceAll(" ", "").length;
|
|
144
|
+
},
|
|
145
|
+
},
|
|
146
|
+
watch: {
|
|
147
|
+
modelValue: {
|
|
148
|
+
immediate: true,
|
|
149
|
+
handler(val) {
|
|
150
|
+
this.visible = val;
|
|
151
|
+
if (val) {
|
|
152
|
+
this.content1 = this.content;
|
|
153
|
+
this.version2 = this.commit_hash;
|
|
154
|
+
if (this.version2) {
|
|
155
|
+
this.load(this.version2, "content2");
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
},
|
|
159
|
+
},
|
|
160
|
+
visible(val) {
|
|
161
|
+
this.$emit("update:modelValue", val);
|
|
162
|
+
}
|
|
163
|
+
},
|
|
164
|
+
methods: {
|
|
165
|
+
close() {
|
|
166
|
+
this.visible = false;
|
|
167
|
+
},
|
|
168
|
+
versionChange(val, i) {
|
|
169
|
+
if (val) {
|
|
170
|
+
this[`version${i}`] = val;
|
|
171
|
+
const key = `content${i}`;
|
|
172
|
+
this.load(val, key);
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
load(hash, key) {
|
|
176
|
+
if (!this.link_content_meta_id) return;
|
|
177
|
+
this.loading = true;
|
|
178
|
+
getCommitByHash(this.link_content_meta_id, hash)
|
|
179
|
+
.then((res) => {
|
|
180
|
+
this[key] = res.data?.data?.content;
|
|
181
|
+
})
|
|
182
|
+
.finally(() => {
|
|
183
|
+
this.loading = false;
|
|
184
|
+
});
|
|
185
|
+
},
|
|
186
|
+
},
|
|
187
|
+
};
|
|
188
|
+
</script>
|
|
189
|
+
|
|
190
|
+
<style lang="less">
|
|
191
|
+
.m-version-contrast-dialog {
|
|
192
|
+
.el-dialog__body {
|
|
193
|
+
padding: 0 20px 20px;
|
|
194
|
+
}
|
|
195
|
+
.m-toolbar {
|
|
196
|
+
display: flex;
|
|
197
|
+
gap: 10px;
|
|
198
|
+
flex-direction: column;
|
|
199
|
+
justify-content: center;
|
|
200
|
+
align-items: center;
|
|
201
|
+
.m-select {
|
|
202
|
+
display: flex;
|
|
203
|
+
gap: 20px;
|
|
204
|
+
width: 100%;
|
|
205
|
+
.u-select {
|
|
206
|
+
flex: 1;
|
|
207
|
+
}
|
|
208
|
+
.el-input--prefix .el-input__inner {
|
|
209
|
+
padding-left: 55px;
|
|
210
|
+
}
|
|
211
|
+
.el-input__prefix {
|
|
212
|
+
left: 10px;
|
|
213
|
+
top: 10px;
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
}
|
|
217
|
+
.m-content-container {
|
|
218
|
+
display: flex;
|
|
219
|
+
gap: 20px;
|
|
220
|
+
margin-top: 20px;
|
|
221
|
+
max-height: 520px;
|
|
222
|
+
overflow-x: hidden;
|
|
223
|
+
overflow-y: auto;
|
|
224
|
+
.u-content {
|
|
225
|
+
flex: 1;
|
|
226
|
+
border: 1px solid #ebeef5;
|
|
227
|
+
padding: 20px;
|
|
228
|
+
box-sizing: border-box;
|
|
229
|
+
.r(5px);
|
|
230
|
+
height: 100%;
|
|
231
|
+
overflow: hidden;
|
|
232
|
+
}
|
|
233
|
+
.m-content-view {
|
|
234
|
+
margin: 0;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
</style>
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<section class="story-props-table">
|
|
3
|
+
<div class="story-props-table__header">
|
|
4
|
+
<div>
|
|
5
|
+
<div class="story-props-table__eyebrow">Props</div>
|
|
6
|
+
<h3 class="story-props-table__title">{{ title }}</h3>
|
|
7
|
+
</div>
|
|
8
|
+
<p v-if="description" class="story-props-table__desc">{{ description }}</p>
|
|
9
|
+
</div>
|
|
10
|
+
|
|
11
|
+
<div class="story-props-table__body">
|
|
12
|
+
<table>
|
|
13
|
+
<thead>
|
|
14
|
+
<tr>
|
|
15
|
+
<th>Prop</th>
|
|
16
|
+
<th>类型</th>
|
|
17
|
+
<th>默认值</th>
|
|
18
|
+
<th>说明</th>
|
|
19
|
+
</tr>
|
|
20
|
+
</thead>
|
|
21
|
+
<tbody>
|
|
22
|
+
<tr v-for="item in items" :key="item.name">
|
|
23
|
+
<td>
|
|
24
|
+
<code>{{ item.name }}</code>
|
|
25
|
+
<span v-if="item.required" class="story-props-table__required">必填</span>
|
|
26
|
+
</td>
|
|
27
|
+
<td>{{ item.type || '-' }}</td>
|
|
28
|
+
<td><code>{{ item.default ?? '-' }}</code></td>
|
|
29
|
+
<td>{{ item.description || '-' }}</td>
|
|
30
|
+
</tr>
|
|
31
|
+
</tbody>
|
|
32
|
+
</table>
|
|
33
|
+
</div>
|
|
34
|
+
</section>
|
|
35
|
+
</template>
|
|
36
|
+
|
|
37
|
+
<script>
|
|
38
|
+
export default {
|
|
39
|
+
name: "StoryPropsTable",
|
|
40
|
+
props: {
|
|
41
|
+
title: {
|
|
42
|
+
type: String,
|
|
43
|
+
default: "组件 Props",
|
|
44
|
+
},
|
|
45
|
+
description: {
|
|
46
|
+
type: String,
|
|
47
|
+
default: "",
|
|
48
|
+
},
|
|
49
|
+
items: {
|
|
50
|
+
type: Array,
|
|
51
|
+
default: function () {
|
|
52
|
+
return [];
|
|
53
|
+
},
|
|
54
|
+
},
|
|
55
|
+
},
|
|
56
|
+
};
|
|
57
|
+
</script>
|
|
58
|
+
|
|
59
|
+
<style lang="less">
|
|
60
|
+
.story-props-table {
|
|
61
|
+
border-radius: 20px;
|
|
62
|
+
background: rgba(255, 255, 255, 0.92);
|
|
63
|
+
box-shadow: 0 24px 60px rgba(15, 23, 42, 0.08);
|
|
64
|
+
overflow: hidden;
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
.story-props-table__header {
|
|
68
|
+
display: flex;
|
|
69
|
+
justify-content: space-between;
|
|
70
|
+
gap: 20px;
|
|
71
|
+
padding: 24px 24px 18px;
|
|
72
|
+
border-bottom: 1px solid rgba(15, 23, 42, 0.08);
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.story-props-table__eyebrow {
|
|
76
|
+
font-size: 12px;
|
|
77
|
+
font-weight: 700;
|
|
78
|
+
letter-spacing: 0.08em;
|
|
79
|
+
text-transform: uppercase;
|
|
80
|
+
color: #0ea5e9;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
.story-props-table__title {
|
|
84
|
+
margin: 8px 0 0;
|
|
85
|
+
font-size: 22px;
|
|
86
|
+
color: #0f172a;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.story-props-table__desc {
|
|
90
|
+
max-width: 28rem;
|
|
91
|
+
margin: 0;
|
|
92
|
+
font-size: 14px;
|
|
93
|
+
line-height: 1.8;
|
|
94
|
+
color: #64748b;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.story-props-table__body {
|
|
98
|
+
overflow-x: auto;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
.story-props-table table {
|
|
102
|
+
width: 100%;
|
|
103
|
+
border-collapse: collapse;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.story-props-table th,
|
|
107
|
+
.story-props-table td {
|
|
108
|
+
padding: 14px 16px;
|
|
109
|
+
border-bottom: 1px solid rgba(15, 23, 42, 0.06);
|
|
110
|
+
text-align: left;
|
|
111
|
+
font-size: 13px;
|
|
112
|
+
line-height: 1.7;
|
|
113
|
+
color: #334155;
|
|
114
|
+
vertical-align: top;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.story-props-table th {
|
|
118
|
+
font-weight: 700;
|
|
119
|
+
color: #0f172a;
|
|
120
|
+
background: rgba(248, 250, 252, 0.9);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.story-props-table code {
|
|
124
|
+
padding: 2px 6px;
|
|
125
|
+
border-radius: 999px;
|
|
126
|
+
background: rgba(15, 23, 42, 0.06);
|
|
127
|
+
color: #0f172a;
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
.story-props-table__required {
|
|
131
|
+
display: inline-block;
|
|
132
|
+
margin-left: 8px;
|
|
133
|
+
font-size: 11px;
|
|
134
|
+
color: #b91c1c;
|
|
135
|
+
font-weight: 700;
|
|
136
|
+
}
|
|
137
|
+
</style>
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import clientBy from '../../filters/clientBy.vue';
|
|
2
|
+
import StoryPropsTable from '../components/StoryPropsTable.vue';
|
|
3
|
+
import markBy from '../../filters/markBy.vue';
|
|
4
|
+
import menuBy from '../../filters/menuBy.vue';
|
|
5
|
+
import orderBy from '../../filters/orderBy.vue';
|
|
6
|
+
import tagBy from '../../filters/tagBy.vue';
|
|
7
|
+
import topicBy from '../../filters/topicBy.vue';
|
|
8
|
+
import versionBy from '../../filters/versionBy.vue';
|
|
9
|
+
import zlpBy from '../../filters/zlpBy.vue';
|
|
10
|
+
|
|
11
|
+
const meta = {
|
|
12
|
+
title: 'Filters/Index',
|
|
13
|
+
parameters: {
|
|
14
|
+
layout: 'fullscreen',
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default meta;
|
|
19
|
+
|
|
20
|
+
export const Default = {
|
|
21
|
+
render: () => ({
|
|
22
|
+
components: {
|
|
23
|
+
clientBy,
|
|
24
|
+
StoryPropsTable,
|
|
25
|
+
markBy,
|
|
26
|
+
menuBy,
|
|
27
|
+
orderBy,
|
|
28
|
+
tagBy,
|
|
29
|
+
topicBy,
|
|
30
|
+
versionBy,
|
|
31
|
+
zlpBy,
|
|
32
|
+
},
|
|
33
|
+
data() {
|
|
34
|
+
return {
|
|
35
|
+
selectedTopic: '',
|
|
36
|
+
menuOptions: {
|
|
37
|
+
pve: '副本',
|
|
38
|
+
pvp: '竞技',
|
|
39
|
+
tool: '工具',
|
|
40
|
+
},
|
|
41
|
+
tagOptions: {
|
|
42
|
+
beginner: '入门',
|
|
43
|
+
build: '配装',
|
|
44
|
+
macro: '宏循环',
|
|
45
|
+
},
|
|
46
|
+
topics: ['版本速报', '配装思路', '副本机制'],
|
|
47
|
+
filterProps: [
|
|
48
|
+
{
|
|
49
|
+
title: 'clientBy / versionBy',
|
|
50
|
+
description: '客户端与版本筛选类组件。',
|
|
51
|
+
items: [
|
|
52
|
+
{ name: 'type / value', type: 'String', default: '""', description: '当前激活项。' },
|
|
53
|
+
{ name: 'clients', type: 'Object', default: 'null', description: 'clientBy 自定义客户端列表。' },
|
|
54
|
+
{ name: 'showWujie', type: 'Boolean', default: 'false', description: 'clientBy 是否展示无界。' },
|
|
55
|
+
],
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
title: 'markBy / menuBy / orderBy / tagBy / zlpBy',
|
|
59
|
+
description: '下拉或条件筛选组件。',
|
|
60
|
+
items: [
|
|
61
|
+
{ name: 'data / marks', type: 'Object', default: '{}', description: '候选项映射。' },
|
|
62
|
+
{ name: 'placeholder', type: 'String', default: '""', description: '未选中时展示文案。' },
|
|
63
|
+
{ name: 'type', type: 'String', default: '组件内默认值', description: 'emit 时返回的筛选键。' },
|
|
64
|
+
{ name: 'client', type: 'String', default: '""', description: 'zlpBy 根据客户端决定资料片列表。' },
|
|
65
|
+
],
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
title: 'topicBy',
|
|
69
|
+
description: '主题选择组件,推荐配合 v-model 使用。',
|
|
70
|
+
items: [
|
|
71
|
+
{ name: 'topics', type: 'Array', default: '[]', required: true, description: '主题列表。' },
|
|
72
|
+
{ name: 'modelValue', type: 'String', default: '""', description: '当前选中主题。' },
|
|
73
|
+
{ name: 'label', type: 'String', default: '"主题"', description: '未选中时显示文案。' },
|
|
74
|
+
],
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
};
|
|
78
|
+
},
|
|
79
|
+
template: `
|
|
80
|
+
<div style="display: grid; gap: 24px;">
|
|
81
|
+
<section style="border-radius: 20px; background: rgba(255,255,255,0.92); padding: 24px; box-shadow: 0 24px 60px rgba(15,23,42,0.08);">
|
|
82
|
+
<div style="font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0ea5e9;">list</div>
|
|
83
|
+
<h2 style="margin: 10px 0 0; font-size: 28px; color: #0f172a;">筛选模块总览</h2>
|
|
84
|
+
<p style="margin-top: 12px; color: #475569; line-height: 1.8;">README 中的筛选模块在这里统一展示,方便查看组件外观和交互手感。</p>
|
|
85
|
+
</section>
|
|
86
|
+
|
|
87
|
+
<section style="border-radius: 20px; background: rgba(255,255,255,0.92); padding: 24px; box-shadow: 0 24px 60px rgba(15,23,42,0.08);">
|
|
88
|
+
<div style="display: flex; flex-wrap: wrap; gap: 16px; align-items: center;">
|
|
89
|
+
<markBy />
|
|
90
|
+
<menuBy :data="menuOptions" placeholder="栏目" />
|
|
91
|
+
<orderBy />
|
|
92
|
+
<tagBy :data="tagOptions" />
|
|
93
|
+
<topicBy v-model="selectedTopic" :topics="topics" />
|
|
94
|
+
<zlpBy client="std" />
|
|
95
|
+
<versionBy />
|
|
96
|
+
<clientBy :show-wujie="true" />
|
|
97
|
+
</div>
|
|
98
|
+
</section>
|
|
99
|
+
|
|
100
|
+
<StoryPropsTable
|
|
101
|
+
v-for="item in filterProps"
|
|
102
|
+
:key="item.title"
|
|
103
|
+
:title="item.title"
|
|
104
|
+
:description="item.description"
|
|
105
|
+
:items="item.items"
|
|
106
|
+
/>
|
|
107
|
+
</div>
|
|
108
|
+
`,
|
|
109
|
+
}),
|
|
110
|
+
};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import clientBy from '../../filters/clientBy.vue';
|
|
2
|
+
import StoryPropsTable from '../components/StoryPropsTable.vue';
|
|
3
|
+
|
|
4
|
+
const meta = {
|
|
5
|
+
title: 'Filters/clientBy',
|
|
6
|
+
component: clientBy,
|
|
7
|
+
parameters: {
|
|
8
|
+
layout: 'fullscreen',
|
|
9
|
+
},
|
|
10
|
+
};
|
|
11
|
+
export default meta;
|
|
12
|
+
export const Default = {
|
|
13
|
+
render: () => ({
|
|
14
|
+
components: { clientBy, StoryPropsTable },
|
|
15
|
+
setup() {
|
|
16
|
+
return { propsInfo: [
|
|
17
|
+
{ name: 'type', type: 'String', default: '""', description: '当前选中的客户端值。' },
|
|
18
|
+
{ name: 'clients', type: 'Object', default: 'null', description: '自定义客户端映射。' },
|
|
19
|
+
{ name: 'showWujie', type: 'Boolean', default: 'false', description: '是否显示无界。' },
|
|
20
|
+
] };
|
|
21
|
+
},
|
|
22
|
+
template: `<div style="display:grid;gap:24px;"><section style="border-radius:20px;background:rgba(255,255,255,0.92);padding:24px;box-shadow:0 24px 60px rgba(15,23,42,0.08);"><clientBy :show-wujie="true" /></section><StoryPropsTable title="clientBy" description="客户端筛选组件。" :items="propsInfo" /></div>`,
|
|
23
|
+
}),
|
|
24
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import markBy from '../../filters/markBy.vue';
|
|
2
|
+
import StoryPropsTable from '../components/StoryPropsTable.vue';
|
|
3
|
+
|
|
4
|
+
const meta = { title: 'Filters/markBy', component: markBy, parameters: { layout: 'fullscreen' } };
|
|
5
|
+
export default meta;
|
|
6
|
+
export const Default = { render: () => ({ components: { markBy, StoryPropsTable }, setup() { return { propsInfo: [ { name: 'placeholder', type: 'String', default: '""', description: '默认展示文案。' }, { name: 'type', type: 'String', default: '"mark"', description: 'emit 时返回的筛选键。' }, { name: 'marks', type: 'Object', default: 'default_marks', description: '精选项映射。' } ] }; }, template: `<div style="display:grid;gap:24px;"><section style="border-radius:20px;background:rgba(255,255,255,0.92);padding:24px;box-shadow:0 24px 60px rgba(15,23,42,0.08);"><markBy /></section><StoryPropsTable title="markBy" description="精选标记筛选组件。" :items="propsInfo" /></div>` }) };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import menuBy from '../../filters/menuBy.vue';
|
|
2
|
+
import StoryPropsTable from '../components/StoryPropsTable.vue';
|
|
3
|
+
|
|
4
|
+
const meta = { title: 'Filters/menuBy', component: menuBy, parameters: { layout: 'fullscreen' } };
|
|
5
|
+
export default meta;
|
|
6
|
+
export const Default = { render: () => ({ components: { menuBy, StoryPropsTable }, data() { return { dataMap: { pve: '副本', pvp: '竞技', tool: '工具' }, propsInfo: [ { name: 'data', type: 'Object', default: '{}', required: true, description: '候选项映射。' }, { name: 'type', type: 'String', default: '"menu"', description: 'emit 类型。' }, { name: 'placeholder', type: 'String', default: '""', description: '默认文案。' } ] }; }, template: `<div style="display:grid;gap:24px;"><section style="border-radius:20px;background:rgba(255,255,255,0.92);padding:24px;box-shadow:0 24px 60px rgba(15,23,42,0.08);"><menuBy :data="dataMap" placeholder="栏目" /></section><StoryPropsTable title="menuBy" description="通用下拉筛选组件。" :items="propsInfo" /></div>` }) };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import orderBy from '../../filters/orderBy.vue';
|
|
2
|
+
import StoryPropsTable from '../components/StoryPropsTable.vue';
|
|
3
|
+
|
|
4
|
+
const meta = { title: 'Filters/orderBy', component: orderBy, parameters: { layout: 'fullscreen' } };
|
|
5
|
+
export default meta;
|
|
6
|
+
export const Default = { render: () => ({ components: { orderBy, StoryPropsTable }, setup() { return { propsInfo: [] }; }, template: `<div style="display:grid;gap:24px;"><section style="border-radius:20px;background:rgba(255,255,255,0.92);padding:24px;box-shadow:0 24px 60px rgba(15,23,42,0.08);"><orderBy /></section><StoryPropsTable title="orderBy" description="当前组件无 props,通过内部状态管理排序选项。" :items="propsInfo" /></div>` }) };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import tagBy from '../../filters/tagBy.vue';
|
|
2
|
+
import StoryPropsTable from '../components/StoryPropsTable.vue';
|
|
3
|
+
|
|
4
|
+
const meta = { title: 'Filters/tagBy', component: tagBy, parameters: { layout: 'fullscreen' } };
|
|
5
|
+
export default meta;
|
|
6
|
+
export const Default = { render: () => ({ components: { tagBy, StoryPropsTable }, data() { return { dataMap: { beginner: '入门', build: '配装', macro: '宏循环' }, propsInfo: [ { name: 'data', type: 'Object', default: '{}', required: true, description: '标签映射。' }, { name: 'type', type: 'String', default: '"tag"', description: 'emit 类型。' } ] }; }, template: `<div style="display:grid;gap:24px;"><section style="border-radius:20px;background:rgba(255,255,255,0.92);padding:24px;box-shadow:0 24px 60px rgba(15,23,42,0.08);"><tagBy :data="dataMap" /></section><StoryPropsTable title="tagBy" description="标签筛选组件。" :items="propsInfo" /></div>` }) };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import TopicBy from '../../filters/topicBy.vue';
|
|
2
|
+
import StoryPropsTable from '../components/StoryPropsTable.vue';
|
|
3
|
+
|
|
4
|
+
const meta = { title: 'Filters/topicBy', component: TopicBy, parameters: { layout: 'fullscreen' } };
|
|
5
|
+
export default meta;
|
|
6
|
+
export const Default = { render: () => ({ components: { TopicBy, StoryPropsTable }, data() { return { selected: '', propsInfo: [ { name: 'topics', type: 'Array', default: '[]', required: true, description: '主题列表。' }, { name: 'modelValue', type: 'String', default: '""', description: '当前选中值。' }, { name: 'label', type: 'String', default: '"主题"', description: '默认文案。' } ] }; }, template: `<div style="display:grid;gap:24px;"><section style="border-radius:20px;background:rgba(255,255,255,0.92);padding:24px;box-shadow:0 24px 60px rgba(15,23,42,0.08);"><TopicBy v-model="selected" :topics="['版本速报','配装思路','副本机制']" /></section><StoryPropsTable title="topicBy" description="主题筛选组件,推荐用 v-model。" :items="propsInfo" /></div>` }) };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import versionBy from '../../filters/versionBy.vue';
|
|
2
|
+
import StoryPropsTable from '../components/StoryPropsTable.vue';
|
|
3
|
+
|
|
4
|
+
const meta = { title: 'Filters/versionBy', component: versionBy, parameters: { layout: 'fullscreen' } };
|
|
5
|
+
export default meta;
|
|
6
|
+
export const Default = { render: () => ({ components: { versionBy, StoryPropsTable }, setup() { return { propsInfo: [ { name: 'value', type: 'String | Number', default: '""', description: '默认版本值。' } ] }; }, template: `<div style="display:grid;gap:24px;"><section style="border-radius:20px;background:rgba(255,255,255,0.92);padding:24px;box-shadow:0 24px 60px rgba(15,23,42,0.08);"><versionBy /></section><StoryPropsTable title="versionBy" description="双端/旗舰/无界筛选。" :items="propsInfo" /></div>` }) };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import zlpBy from '../../filters/zlpBy.vue';
|
|
2
|
+
import StoryPropsTable from '../components/StoryPropsTable.vue';
|
|
3
|
+
|
|
4
|
+
const meta = { title: 'Filters/zlpBy', component: zlpBy, parameters: { layout: 'fullscreen' } };
|
|
5
|
+
export default meta;
|
|
6
|
+
export const Default = { render: () => ({ components: { zlpBy, StoryPropsTable }, setup() { return { propsInfo: [ { name: 'client', type: 'String', default: '""', description: '按客户端切换资料片列表。' } ] }; }, template: `<div style="display:grid;gap:24px;"><section style="border-radius:20px;background:rgba(255,255,255,0.92);padding:24px;box-shadow:0 24px 60px rgba(15,23,42,0.08);"><zlpBy client="std" /></section><StoryPropsTable title="zlpBy" description="资料片筛选组件。" :items="propsInfo" /></div>` }) };
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
const meta = {
|
|
2
|
+
title: 'Layout/BaseShell',
|
|
3
|
+
parameters: {
|
|
4
|
+
layout: 'fullscreen',
|
|
5
|
+
},
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
export default meta;
|
|
9
|
+
|
|
10
|
+
export const Default = {
|
|
11
|
+
render: () => ({
|
|
12
|
+
template: `
|
|
13
|
+
<section style="display: grid; gap: 20px;">
|
|
14
|
+
<div style="border-radius: 18px; background: rgba(255,255,255,0.92); box-shadow: 0 24px 60px rgba(15,23,42,0.08); padding: 32px; min-height: 300px;">
|
|
15
|
+
<div style="font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #0ea5e9;">README / 全局模块</div>
|
|
16
|
+
<h1 style="margin: 12px 0 0; font-size: 36px; line-height: 1.15; font-weight: 700; color: #0f172a;">Storybook 基座</h1>
|
|
17
|
+
<p style="margin-top: 16px; max-width: 44rem; color: #334155; line-height: 1.9;">
|
|
18
|
+
这个 story 复刻了 src/App.vue 的基础结构,包含公共头、面包屑、主内容区、左右侧栏和公共底。后续全局模块或内容组件都可以直接通过 parameters.shell 挂到对应区域里预览。
|
|
19
|
+
</p>
|
|
20
|
+
</div>
|
|
21
|
+
<div style="display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));">
|
|
22
|
+
<div style="border-radius: 16px; background: rgba(255,255,255,0.88); padding: 20px;">
|
|
23
|
+
<div style="font-weight: 700; color: #0f172a;">Header + Breadcrumb</div>
|
|
24
|
+
<p style="margin-top: 8px; color: #475569; line-height: 1.7;">模拟全局导航和频道入口。</p>
|
|
25
|
+
</div>
|
|
26
|
+
<div style="border-radius: 16px; background: rgba(255,255,255,0.88); padding: 20px;">
|
|
27
|
+
<div style="font-weight: 700; color: #0f172a;">Main + Sidebars</div>
|
|
28
|
+
<p style="margin-top: 8px; color: #475569; line-height: 1.7;">模拟详情页和筛选页的主要布局骨架。</p>
|
|
29
|
+
</div>
|
|
30
|
+
<div style="border-radius: 16px; background: rgba(255,255,255,0.88); padding: 20px;">
|
|
31
|
+
<div style="font-weight: 700; color: #0f172a;">Footer</div>
|
|
32
|
+
<p style="margin-top: 8px; color: #475569; line-height: 1.7;">保留全局落点,方便观察页面收尾效果。</p>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
</section>
|
|
36
|
+
`,
|
|
37
|
+
}),
|
|
38
|
+
};
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import Breadcrumb from '../../Breadcrumb.vue';
|
|
2
|
+
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Layout/Breadcrumb',
|
|
5
|
+
component: Breadcrumb,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'fullscreen',
|
|
8
|
+
},
|
|
9
|
+
argTypes: {
|
|
10
|
+
publishEnable: { control: 'boolean' },
|
|
11
|
+
feedbackEnable: { control: 'boolean' },
|
|
12
|
+
adminEnable: { control: 'boolean' },
|
|
13
|
+
crumbEnable: { control: 'boolean' },
|
|
14
|
+
withoutLeft: { control: 'boolean' },
|
|
15
|
+
},
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export default meta;
|
|
19
|
+
|
|
20
|
+
export const Default = {
|
|
21
|
+
args: {
|
|
22
|
+
name: '频道名称',
|
|
23
|
+
slug: 'story',
|
|
24
|
+
root: '/story',
|
|
25
|
+
publishEnable: true,
|
|
26
|
+
feedbackEnable: true,
|
|
27
|
+
adminEnable: false,
|
|
28
|
+
crumbEnable: false,
|
|
29
|
+
withoutLeft: false,
|
|
30
|
+
},
|
|
31
|
+
render: (args) => ({
|
|
32
|
+
components: { Breadcrumb },
|
|
33
|
+
setup() {
|
|
34
|
+
return { args };
|
|
35
|
+
},
|
|
36
|
+
template: `
|
|
37
|
+
<Breadcrumb v-bind="args" />
|
|
38
|
+
`,
|
|
39
|
+
}),
|
|
40
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import CommonFooter from '../../CommonFooter.vue';
|
|
2
|
+
|
|
3
|
+
const meta = {
|
|
4
|
+
title: 'Layout/CommonFooter',
|
|
5
|
+
component: CommonFooter,
|
|
6
|
+
parameters: {
|
|
7
|
+
layout: 'fullscreen',
|
|
8
|
+
},
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export default meta;
|
|
12
|
+
|
|
13
|
+
export const Default = {
|
|
14
|
+
render: () => ({
|
|
15
|
+
components: { CommonFooter },
|
|
16
|
+
template: `
|
|
17
|
+
<div style="min-height: 100vh; display: flex; align-items: flex-end;">
|
|
18
|
+
<CommonFooter style="width: 100%;" />
|
|
19
|
+
</div>
|
|
20
|
+
`,
|
|
21
|
+
}),
|
|
22
|
+
};
|