officialblock 1.0.7 → 1.0.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/dist/index-Ch_ldWmA.js +1 -0
- package/dist/index-DXm2cqxo.mjs +485 -0
- package/dist/official-block.cjs.js +74 -74
- package/dist/official-block.es.js +13608 -10831
- package/dist/official-block.umd.js +78 -78
- package/dist/style.css +1 -1
- package/dist/swiper-JiLDDxAF.js +1 -0
- package/dist/swiper-acbnDJoL.mjs +2035 -0
- package/dist/utils-DD-vVZej.mjs +316 -0
- package/dist/utils-DOLLD0-F.js +1 -0
- package/package.json +2 -1
- package/src/assets/icon-email.svg +3 -0
- package/src/components/ArticleList/article.vue +3 -3
- package/src/components/ArticleList/contact.vue +9 -9
- package/src/components/ArticleList/index.ts +1 -1
- package/src/components/ArticleList/index.vue +22 -80
- package/src/components/ArticleList/setting.vue +339 -175
- package/src/components/ArticleList/type.ts +12 -18
- package/src/components/BannerImage/index.ts +11 -0
- package/src/components/BannerImage/index.vue +153 -0
- package/src/components/BannerImage/setting.vue +55 -0
- package/src/components/BannerImage/type.ts +10 -0
- package/src/components/BannerImageWithLink/index.ts +11 -0
- package/src/components/BannerImageWithLink/index.vue +323 -0
- package/src/components/BannerImageWithLink/setting.vue +344 -0
- package/src/components/BannerImageWithLink/type.ts +17 -0
- package/src/components/BannerPage/index.ts +11 -0
- package/src/components/BannerPage/index.vue +283 -0
- package/src/components/BannerPage/setting.vue +55 -0
- package/src/components/BannerPage/type.ts +10 -0
- package/src/components/BtnList/index.ts +11 -0
- package/src/components/BtnList/index.vue +588 -0
- package/src/components/BtnList/setting.vue +255 -0
- package/src/components/BtnList/type.ts +10 -0
- package/src/components/Button/index.vue +45 -33
- package/src/components/ContactUsList/index.ts +11 -0
- package/src/components/ContactUsList/index.vue +369 -0
- package/src/components/ContactUsList/setting.vue +497 -0
- package/src/components/ContactUsList/type.ts +17 -0
- package/src/components/CountDown/index.ts +11 -0
- package/src/components/CountDown/index.vue +315 -0
- package/src/components/CountDown/setting.vue +302 -0
- package/src/components/CountDown/type.ts +17 -0
- package/src/components/CustomIframe/index.ts +11 -0
- package/src/components/CustomIframe/index.vue +118 -0
- package/src/components/CustomIframe/setting.vue +323 -0
- package/src/components/CustomIframe/type.ts +17 -0
- package/src/components/CustomSpace/index.ts +11 -0
- package/src/components/CustomSpace/index.vue +82 -0
- package/src/components/CustomSpace/setting.vue +89 -0
- package/src/components/CustomSpace/type.ts +10 -0
- package/src/components/GalleryList/index.ts +12 -0
- package/src/components/GalleryList/index.vue +311 -0
- package/src/components/GalleryList/setting.vue +268 -0
- package/src/components/GalleryList/type.ts +10 -0
- package/src/components/HeroSlide/index.ts +1 -1
- package/src/components/HeroSlide/index.vue +85 -133
- package/src/components/HeroSlide/setting.vue +435 -0
- package/src/components/HeroSlide/type.ts +5 -14
- package/src/components/LinkLIst/index.ts +11 -0
- package/src/components/LinkLIst/index.vue +317 -0
- package/src/components/LinkLIst/setting.vue +264 -0
- package/src/components/LinkLIst/type.ts +10 -0
- package/src/components/Media/index.vue +18 -18
- package/src/components/Operate/index.vue +17 -8
- package/src/components/Profile/index.vue +999 -0
- package/src/components/Profile/modal.vue +56 -0
- package/src/components/Profile/setting.vue +330 -0
- package/src/components/QuickLinks/index.vue +166 -0
- package/src/components/QuoteText/index.ts +11 -0
- package/src/components/QuoteText/index.vue +133 -0
- package/src/components/QuoteText/setting.vue +81 -0
- package/src/components/QuoteText/type.ts +10 -0
- package/src/components/ScrollKeyInfo/index.ts +11 -0
- package/src/components/ScrollKeyInfo/index.vue +1345 -0
- package/src/components/ScrollKeyInfo/setting.vue +302 -0
- package/src/components/ScrollKeyInfo/type.ts +17 -0
- package/src/components/Swiper/index.vue +538 -0
- package/src/components/TabDefault/components/ComponentSelector/compsData.js +143 -0
- package/src/components/TabDefault/components/ComponentSelector/index.vue +188 -0
- package/src/components/TabDefault/components/PageContent.vue +207 -0
- package/src/components/TabDefault/index.vue +475 -0
- package/src/components/TabDefault/setting.vue +581 -0
- package/src/components/TabDefault/type.ts +17 -0
- package/src/components/TableTwo/index.ts +11 -0
- package/src/components/TableTwo/index.vue +232 -0
- package/src/components/TableTwo/setting.vue +558 -0
- package/src/components/TableTwo/type.ts +17 -0
- package/src/components/index.ts +40 -5
- package/src/index.ts +56 -12
- package/src/main.ts +6 -3
- package/src/router/index.ts +6 -0
- package/src/style.css +17 -0
- package/src/styles/component-isolation.scss +257 -0
- package/src/styles/editor.scss +1 -1
- package/src/styles/layers.scss +256 -0
- package/src/styles/main.scss +21687 -0
- package/src/styles/mixins/style-isolation.scss +262 -0
- package/src/styles/smart-reset.scss +287 -0
- package/src/styles/test.scss +1 -1
- package/src/types/button.ts +10 -0
- package/src/views/StyleIsolationTest.vue +292 -0
- package/src/views/components/ArticleListDemo.vue +59 -19
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<a-drawer :width="500" :visible="show" :footer="false" @cancel="handleCancel" unmountOnClose>
|
|
3
|
+
<template #title>
|
|
4
|
+
{{data.type}}组件编辑
|
|
5
|
+
</template>
|
|
6
|
+
<div class="setting-content">
|
|
7
|
+
<!-- 组件自身属性 -->
|
|
8
|
+
<div class="setting-header flex items-center">
|
|
9
|
+
<span class="header-title">组件宽度</span>
|
|
10
|
+
<a-select v-model="data.data.width" placeholder="请选择" allow-clear>
|
|
11
|
+
<a-option value="default">默认</a-option>
|
|
12
|
+
<a-option value="small">小</a-option>
|
|
13
|
+
<a-option value="medium">中</a-option>
|
|
14
|
+
<a-option value="large">大</a-option>
|
|
15
|
+
</a-select>
|
|
16
|
+
</div>
|
|
17
|
+
<div class="setting-header flex items-center">
|
|
18
|
+
<span class="header-title">组件背景</span>
|
|
19
|
+
<a-select v-model="data.data.bgColor" placeholder="请选择" allow-clear>
|
|
20
|
+
<a-option value="#ffffff">白色</a-option>
|
|
21
|
+
<a-option value="#F7F7FA">灰色</a-option>
|
|
22
|
+
</a-select>
|
|
23
|
+
</div>
|
|
24
|
+
<div class="setting-header flex items-center">
|
|
25
|
+
<span class="header-title">是否显示下划线</span>
|
|
26
|
+
<a-select v-model="data.data.hasLine" placeholder="请选择" allow-clear>
|
|
27
|
+
<a-option :value="true">是</a-option>
|
|
28
|
+
<a-option :value="false">否</a-option>
|
|
29
|
+
</a-select>
|
|
30
|
+
</div>
|
|
31
|
+
|
|
32
|
+
<p class="item-title">标题</p>
|
|
33
|
+
<RichTextEditor v-model="data.data.text"></RichTextEditor>
|
|
34
|
+
|
|
35
|
+
<p class="item-title">内容</p>
|
|
36
|
+
<RichTextEditor v-model="data.data.desc"></RichTextEditor>
|
|
37
|
+
</div>
|
|
38
|
+
</a-drawer>
|
|
39
|
+
</template>
|
|
40
|
+
|
|
41
|
+
<script lang="ts" setup>
|
|
42
|
+
import RichTextEditor from '@/components/RichTextEditor'
|
|
43
|
+
|
|
44
|
+
defineProps({
|
|
45
|
+
show: {
|
|
46
|
+
type: Boolean,
|
|
47
|
+
default: false
|
|
48
|
+
},
|
|
49
|
+
|
|
50
|
+
data: {
|
|
51
|
+
type: Object,
|
|
52
|
+
default: () => {}
|
|
53
|
+
}
|
|
54
|
+
})
|
|
55
|
+
|
|
56
|
+
const emit = defineEmits(['update:show']);
|
|
57
|
+
|
|
58
|
+
const handleCancel = () => {
|
|
59
|
+
emit('update:show', false);
|
|
60
|
+
}
|
|
61
|
+
</script>
|
|
62
|
+
|
|
63
|
+
<style lang="scss" scoped>
|
|
64
|
+
.setting-content {
|
|
65
|
+
.setting-header {
|
|
66
|
+
padding-bottom: 12px;
|
|
67
|
+
|
|
68
|
+
.header-title {
|
|
69
|
+
width: 120px;
|
|
70
|
+
padding-right: 12px;
|
|
71
|
+
text-align: right;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
.item-title {
|
|
76
|
+
padding: 12px 0 8px 0;
|
|
77
|
+
font-size: 14px;
|
|
78
|
+
font-weight: 600;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
</style>
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { App, Plugin } from 'vue'
|
|
2
|
+
import ScrollKeyInfo from './index.vue'
|
|
3
|
+
|
|
4
|
+
export default {
|
|
5
|
+
install: (app: App) => {
|
|
6
|
+
app.component('ScrollKeyInfo', ScrollKeyInfo)
|
|
7
|
+
},
|
|
8
|
+
} satisfies Plugin
|
|
9
|
+
|
|
10
|
+
export { default as ScrollKeyInfo } from './index.vue'
|
|
11
|
+
export type { ScrollKeyInfoProps, ScrollKeyInfoEmits } from './type'
|