-
+
diff --git a/source/components/list/ul-site-group/_index.html b/source/components/list/ul-site-group/_index.html
index 874daba..be35461 100644
--- a/source/components/list/ul-site-group/_index.html
+++ b/source/components/list/ul-site-group/_index.html
@@ -4,7 +4,7 @@
-
+
-
+
@@ -35,19 +35,19 @@
-
+
- layui奥宏样式库
+ layui奥宏样式
- 纯CSS的组件案例样式大全
+ 纯CSS的组件
-
+
@@ -66,19 +66,19 @@
-
+
- layui奥宏样式库
+ layui奥宏样式
- 纯CSS的组件案例样式大全
+ 纯CSS的组件
-
-
+
+
diff --git a/source/components/list/ul-site-group/_index.scss b/source/components/list/ul-site-group/_index.scss
index e0e9401..17e3f5d 100644
--- a/source/components/list/ul-site-group/_index.scss
+++ b/source/components/list/ul-site-group/_index.scss
@@ -66,12 +66,24 @@
}
@media screen and (max-width:450px) {
- .ul-site-item {
- width: 49%;
- }
- .ul-site-item-desc {
- font-size : 11px;
- margin-top: 3px;
+ .ul-site-list {
+ display : flex;
+ align-items : flex-start;
+ justify-content: space-between;
+
+ .ul-site-item {
+ width : calc(50% - 10px);
+ margin-right: 0;
+
+ &.card {
+ width: calc(50% - 30px);
+ }
+ }
+
+ .ul-site-item-desc {
+ font-size : 11px;
+ margin-top: 3px;
+ }
}
}
\ No newline at end of file
diff --git a/source/scss/_common.scss b/source/scss/_common.scss
index e698bce..ec62d56 100644
--- a/source/scss/_common.scss
+++ b/source/scss/_common.scss
@@ -78,4 +78,11 @@
background-image : url("img/view.jpg");
background-size : cover;
background-position: center;
+}
+
+.ul-demo-mobile-page {
+ width : 360px;
+ height : 660px;
+ border : 0;
+ box-shadow: 0 0 3px #bbb;
}
\ No newline at end of file
diff --git a/view/index/index/index.html b/view/index/index/index.html
index c6b0bc8..a779cc6 100644
--- a/view/index/index/index.html
+++ b/view/index/index/index.html
@@ -95,7 +95,8 @@
-
{$vo.html|raw}
+
{$vo.html|raw}
+
@@ -276,9 +277,6 @@
$('.component-item').each(function (index, elem) {
-
-
-
createApp({
data() {
return {
@@ -286,8 +284,40 @@
padding: $(elem).data('padding'),
gray: $(elem).data('gray'),
mobile: $(elem).data('mobile'),
+
}
},
+ mounted() {
+
+ var html = $(elem).find('.preview.content').html();
+
+ var iframe = $(elem).find('.preview.iframe')[0];
+ var preview =
+ iframe.contentDocument ||
+ iframe.contentWindow.document;
+
+ var iframeHtml = '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '
演示' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ '' +
+ html +
+ '' +
+ ''
+
+ preview.open();
+ preview.write(iframeHtml);
+ preview.close();
+ }
}).mount(elem)
})