This commit is contained in:
2025-09-14 00:21:54 +08:00
commit d40b3bbd62
766 changed files with 36275 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
/** 以下内容为自动生成,请勿手动修改 */
module.exports = {
data: {
page_data_0: `none`,
page_data_1: false,
page_data_2: 50,
page_data_3: 400,
page_data_4: "height: 100px; background-color: red;",
},
page_fun_0(e) {
this.setData("page_data_0", e.detail.value);
},
page_fun_1(e) {
this.setData("page_data_1", e.detail.value);
},
page_fun_2(e) {
this.setData("page_data_2", e.detail.value);
},
page_fun_3(e) {
this.setData("page_data_3", e.detail.value);
},
page_fun_4(e) {
this.setData("page_data_4", e.detail.value);
},
};

View File

@@ -0,0 +1,87 @@
<!-- 以下内容为自动生成,请勿手动修改 -->
<view class="container">
<showbox title="view演示">
<box>
<view class="_ui-space">
<view>
<view
hover-class="{{page_data_0}}"
hover-stop-propagation="{{page_data_1}}"
hover-start-time="{{page_data_2}}"
hover-stay-time="{{page_data_3}}"
style="{{page_data_4}}"
>
</view>
</view>
<view class="_dflex">
<view style="flex: 4" class="_dflex _ai_center"
><text>hoverClass</text></view
>
<view style="flex: 6" class="_ui-input">
<input
value="{{page_data_0}}"
placeholder="hoverClass"
type="text"
bindinput="page_fun_0"
/>
</view>
</view>
<view class="_dflex _jc_space-between">
<view class="_dflex _ai_center">
<text>是否开启hoverStopPropagation</text>
</view>
<switch
checked="{{page_data_1}}"
color="rgba(255, 36, 66, 1)"
bindchange="page_fun_1"
/>
</view>
<view class="_dflex">
<view style="flex: 4" class="_dflex _ai_center"
><text>hoverStartTime</text></view
>
<view style="flex: 6" class="_ui-input">
<input
value="{{page_data_2}}"
placeholder="hoverStartTime"
type="text"
bindinput="page_fun_2"
/>
</view>
</view>
<view class="_dflex">
<view style="flex: 4" class="_dflex _ai_center"
><text>hoverStayTime</text></view
>
<view style="flex: 6" class="_ui-input">
<input
value="{{page_data_3}}"
placeholder="hoverStayTime"
type="text"
bindinput="page_fun_3"
/>
</view>
</view>
<view class="_dflex">
<view style="flex: 4" class="_dflex _ai_center"
><text>style</text></view
>
<view style="flex: 6" class="_ui-input">
<input
value="{{page_data_4}}"
placeholder="style"
type="text"
bindinput="page_fun_4"
/>
</view>
</view>
</view>
</box>
</showbox>
</view>

View File

@@ -0,0 +1,59 @@
.flex-container-x {
display: flex;
justify-content: center;
}
.flex-container-y {
display: flex;
flex-direction: column;
align-items: center;
}
.flex-item {
display: flex;
justify-content: center;
align-items: center;
width: 80px;
height: 100px;
color: white;
}
.flex-container-y .flex-item {
width: 100px;
height: 80px;
}
.demo-1 {
background-color: rgb(255, 36, 65);
}
.demo-2 {
background-color: rgba(255, 36, 65, 0.7);
}
.demo-3 {
background-color: rgba(255, 36, 65, 0.5);
}
.flex-item-V{
margin: 0 auto;
width: 150px;
height: 100px;
}
.new-hover-class{
background: red;
}
.outer {
background:green;
}
.middle {
background:gray;
}
.inner {
background:yellow;
}

View File

@@ -0,0 +1,16 @@
const __templateJs = require("./templates.js");
const __mergePageOptions = require("../../util/mergePageOptions.js");
Page(__mergePageOptions({
onShareAppMessage() {
return {
title: 'view',
path: '/component-case/view/view'
};
},
onLoad() {
setTimeout(() => {
this.removeSkeleton?.();
}, 1000);
},
data: {}
}, __templateJs));

View File

@@ -0,0 +1,10 @@
{
"navigationBarTitleText": "基础视图",
"usingComponents": {
"showbox": "../../common/component/showbox/index",
"box": "../../common/component/container/index"
},
"skeleton": {
"path": "./view.skeleton.xhsml"
}
}

View File

@@ -0,0 +1,600 @@
.skeleton-text-block-mark,
.skeleton-text-block-mark * {
background-origin: content-box;
background-clip: content-box;
background-repeat: repeat-y;
background-color: transparent !important;
color: transparent !important;
}
.sk-pseudo::before,
.sk-pseudo::after {
background: none rgb(238, 238, 238) !important;
color: transparent !important;
border-color: transparent !important;
border-radius: 0px !important;
}
.sk-button {
box-shadow: none !important;
}
.sk-transparent::before,
.sk-transparent::after {
opacity: 0 !important;
}
.sk-animation-shine-2 {
background: linear-gradient(
90deg,
rgba(0, 0, 0, 0.06) 20%,
rgba(0, 0, 0, 0.15) 37%,
rgba(0, 0, 0, 0.06) 63%
)
0% 0% / 400% 100%;
animation-name: sk-shine-2;
animation-duration: 1.4s;
animation-timing-function: ease;
animation-iteration-count: infinite;
}
@keyframes sk-shine-2 {
0% {
background-position: 100% 50%;
}
100% {
background-position: 0px 50%;
}
}
html {
width: 100%;
height: 100%;
}
body {
margin: 0px;
width: 100%;
height: 100%;
scroll-behavior: smooth;
overflow-x: hidden;
}
* {
text-size-adjust: none;
}
view {
display: block;
}
video {
display: inline-block;
width: 100%;
height: 100%;
}
.xgplayer div.gradient {
background-image: none;
}
.xgplayer-mobile xg-controls.xgplayer-controls {
background-image: linear-gradient(
transparent,
rgba(0, 0, 0, 0.25),
rgba(0, 0, 0, 0.5),
rgba(0, 0, 0, 0.75)
);
}
.xgplayer .flex-controls xg-inner-controls.xg-inner-controls {
bottom: 4px;
}
.xhs-ios-native-input {
overflow: scroll;
position: absolute;
inset: 0px;
}
input {
position: relative;
cursor: auto;
display: block;
height: 22px;
text-overflow: clip;
overflow: hidden;
white-space: nowrap;
margin: 0px;
}
input .web-input {
position: relative;
min-height: 22px;
text-overflow: inherit;
border: none;
font-size: inherit;
font-weight: inherit;
color: inherit;
padding: 0px;
margin: 0px;
outline: none;
text-align: inherit;
-webkit-tap-highlight-color: transparent;
}
input .web-input div {
position: absolute;
inset: 0px;
margin: auto;
min-height: 22px;
white-space: pre;
text-align: inherit;
overflow: hidden;
vertical-align: middle;
}
input input {
position: relative;
border: none;
height: inherit;
width: 100%;
font-size: inherit;
font-weight: inherit;
color: inherit;
background: transparent;
display: inherit;
padding: 0px;
margin: 0px;
outline: none;
vertical-align: middle;
text-align: inherit;
overflow: inherit;
white-space: inherit;
text-overflow: inherit;
-webkit-tap-highlight-color: transparent;
z-index: 1;
}
.xhs-inner-input-placeholder {
color: rgb(153, 153, 153);
}
map {
display: block;
position: relative;
}
map .tmap-scale-text {
display: var(--map-showScale, block);
}
map .tmap-scale-line {
display: var(--map-showScale, block);
}
map .rotate-circle {
display: var(--map-showCompass, block);
}
map img {
display: inline;
}
map .logo-text {
display: none;
}
map a[target='_blank'] {
display: none;
}
map .tmap-zoom-control {
display: none;
}
map > * {
z-index: 1099;
position: absolute !important;
}
camera {
display: block;
position: relative;
}
.xhs-i-n-c {
overflow: scroll;
position: absolute;
inset: 0px;
}
::-webkit-scrollbar {
width: 1px;
}
::-webkit-scrollbar-track {
background: rgb(241, 241, 241);
}
::-webkit-scrollbar-thumb {
background: rgb(136, 136, 136);
}
.xhs_0__ma2 {
margin: 4px;
}
.xhs_0__mx2 {
margin: 0px 4px;
}
.xhs_0__my2 {
margin: 4px 0px;
}
.xhs_0__mt2 {
margin-top: 4px;
}
.xhs_0__mb2 {
margin-bottom: 4px;
}
.xhs_0__ml2 {
margin-left: 4px;
}
.xhs_0__mr2 {
margin-right: 4px;
}
.xhs_0__pa2 {
padding: 4px;
}
.xhs_0__px2 {
padding: 0px 4px;
}
.xhs_0__py2 {
padding: 4px 0px;
}
.xhs_0__pt2 {
padding-top: 4px;
}
.xhs_0__pb2 {
padding-bottom: 4px;
}
.xhs_0__pl2 {
padding-left: 4px;
}
.xhs_0__pr2 {
padding-right: 4px;
}
.xhs_0__ma4 {
margin: 8px;
}
.xhs_0__mx4 {
margin: 0px 8px;
}
.xhs_0__my4 {
margin: 8px 0px;
}
.xhs_0__mt4 {
margin-top: 8px;
}
.xhs_0__mb4 {
margin-bottom: 8px;
}
.xhs_0__ml4 {
margin-left: 8px;
}
.xhs_0__mr4 {
margin-right: 8px;
}
.xhs_0__pa4 {
padding: 8px;
}
.xhs_0__px4 {
padding: 0px 8px;
}
.xhs_0__py4 {
padding: 8px 0px;
}
.xhs_0__pt4 {
padding-top: 8px;
}
.xhs_0__pb4 {
padding-bottom: 8px;
}
.xhs_0__pl4 {
padding-left: 8px;
}
.xhs_0__pr4 {
padding-right: 8px;
}
.xhs_0__ma6 {
margin: 12px;
}
.xhs_0__mx6 {
margin: 0px 12px;
}
.xhs_0__my6 {
margin: 12px 0px;
}
.xhs_0__mt6 {
margin-top: 12px;
}
.xhs_0__mb6 {
margin-bottom: 12px;
}
.xhs_0__ml6 {
margin-left: 12px;
}
.xhs_0__mr6 {
margin-right: 12px;
}
.xhs_0__pa6 {
padding: 12px;
}
.xhs_0__px6 {
padding: 0px 12px;
}
.xhs_0__py6 {
padding: 12px 0px;
}
.xhs_0__pt6 {
padding-top: 12px;
}
.xhs_0__pb6 {
padding-bottom: 12px;
}
.xhs_0__pl6 {
padding-left: 12px;
}
.xhs_0__pr6 {
padding-right: 12px;
}
.xhs_0__ma8 {
margin: 16px;
}
.xhs_0__mx8 {
margin: 0px 16px;
}
.xhs_0__my8 {
margin: 16px 0px;
}
.xhs_0__mt8 {
margin-top: 16px;
}
.xhs_0__mb8 {
margin-bottom: 16px;
}
.xhs_0__ml8 {
margin-left: 16px;
}
.xhs_0__mr8 {
margin-right: 16px;
}
.xhs_0__pa8 {
padding: 16px;
}
.xhs_0__px8 {
padding: 0px 16px;
}
.xhs_0__py8 {
padding: 16px 0px;
}
.xhs_0__pt8 {
padding-top: 16px;
}
.xhs_0__pb8 {
padding-bottom: 16px;
}
.xhs_0__pl8 {
padding-left: 16px;
}
.xhs_0__pr8 {
padding-right: 16px;
}
.xhs_0__ma10 {
margin: 20px;
}
.xhs_0__mx10 {
margin: 0px 20px;
}
.xhs_0__my10 {
margin: 20px 0px;
}
.xhs_0__mt10 {
margin-top: 20px;
}
.xhs_0__mb10 {
margin-bottom: 20px;
}
.xhs_0__ml10 {
margin-left: 20px;
}
.xhs_0__mr10 {
margin-right: 20px;
}
.xhs_0__pa10 {
padding: 20px;
}
.xhs_0__px10 {
padding: 0px 20px;
}
.xhs_0__py10 {
padding: 20px 0px;
}
.xhs_0__pt10 {
padding-top: 20px;
}
.xhs_0__pb10 {
padding-bottom: 20px;
}
.xhs_0__pl10 {
padding-left: 20px;
}
.xhs_0__pr10 {
padding-right: 20px;
}
.xhs_0__ui-input {
background-color: rgba(51, 51, 51, 0.024);
border-radius: 18px;
padding: 9px 16px;
}
.xhs_0__ui-textarea {
background-color: rgba(0, 0, 0, 0.04);
border-radius: 8px;
padding: 14px 12px;
}
.xhs_0__ui-button {
background-color: rgb(255, 36, 66);
color: rgb(255, 255, 255);
}
.xhs_0__ui-button-hover {
background-color: rgba(255, 36, 66, 0.7);
color: rgb(255, 255, 255);
}
.xhs_0__ui-button-hover::after {
border: none;
}
picker {
border: 1px solid rgb(238, 238, 238);
border-radius: 5px;
}
button {
height: 40px;
border-radius: 1000px;
font-size: 16px;
font-weight: 500;
line-height: 40px;
}
.xhs_0_button-hover::after,
button::after {
border: none;
}
textarea {
padding: 0px;
}
.xhs_0_xhs-inner-switch-control-switch::after {
background-color: rgb(0, 255, 255);
}
picker {
border: none;
}
checkbox *,
radio * {
display: flex;
}
slider > div > div > div > div:nth-child(2) {
width: 16px !important;
height: 16px !important;
margin-top: -8px !important;
margin-left: -8px !important;
}
:root {
--xhs-theme-color: red;
}
.xhs_0__cred {
color: var(--xhs-theme-color);
}
.xhs_0__bcred {
background-color: var(--xhs-theme-color);
color: rgb(255, 255, 255);
}
.xhs_0__dflex {
display: flex;
}
.xhs_0__fd_column {
flex-direction: column;
}
.xhs_0__jc_space-around {
justify-content: space-around;
}
.xhs_0__jc_center {
justify-content: center;
}
.xhs_0__jc_space-between {
justify-content: space-between;
}
.xhs_0__ai_center {
align-items: center;
}
.xhs_0__flex_1 {
flex: 1 1 0%;
}
.xhs_0__text_wrap {
word-break: break-all;
}
.xhs_0__end_split {
position: relative;
border: 0px;
}
.xhs_0__end_split::after {
content: '';
position: absolute;
bottom: 0px;
height: 1px;
background: rgb(235, 235, 235);
left: 0px;
right: 0px;
}
.xhs_0__ui-space > * {
margin-bottom: 20px;
}
.xhs_0__ui-space > :last-child {
margin-bottom: 0px;
}
* {
box-sizing: border-box;
margin: 0px;
padding: 0px;
}
body,
html {
height: 100%;
font-family: -apple-system-font, 'Helvetica Neue', Helvetica, sans-serif;
font-size: 100px;
color: rgb(51, 51, 51);
}
.xhs_0_container {
font-size: 0.14rem;
overflow: hidden;
}
.xhs_0_flex-container-x {
display: flex;
justify-content: center;
}
.xhs_0_flex-container-y {
display: flex;
flex-direction: column;
align-items: center;
}
.xhs_0_flex-item {
display: flex;
justify-content: center;
align-items: center;
width: 80px;
height: 100px;
color: rgb(255, 255, 255);
}
.xhs_0_flex-container-y .xhs_0_flex-item {
width: 100px;
height: 80px;
}
.xhs_0_demo-1 {
background-color: rgb(255, 36, 65);
}
.xhs_0_demo-2 {
background-color: rgba(255, 36, 65, 0.7);
}
.xhs_0_demo-3 {
background-color: rgba(255, 36, 65, 0.5);
}
.xhs_0_flex-item-V {
margin: 0px auto;
width: 150px;
height: 100px;
}
.xhs_0_new-hover-class {
background: red;
}
.xhs_0_outer {
background: green;
}
.xhs_0_middle {
background: grey;
}
.xhs_0_inner {
background: rgb(255, 255, 0);
}
.xhs_1_xhs-demo-card {
margin: 10px;
background-color: rgb(255, 255, 255);
border-radius: 12px;
overflow: hidden;
}
.xhs_1_xhs-demo-card-title {
margin: 0px 16px;
padding: 15px 0px;
font-size: 14px;
font-weight: 500;
line-height: 18px;
}
.xhs_1_xhs-demo-card-content {
background-color: rgb(255, 255, 255);
}
.xhs_1_xhs-demo-card-spiver {
position: relative;
border: 0px;
}
.xhs_1_xhs-demo-card-spiver::after {
content: '';
position: absolute;
bottom: 0px;
left: 0px;
width: 100%;
height: 1px;
background: rgb(239, 239, 239);
transform-origin: 0px 100%;
}

View File

@@ -0,0 +1,215 @@
<view class="container xhs_0_container" style="border-color: rgb(238, 238, 238);">
<showbox style="border-color: rgb(238, 238, 238);">
<view class="xhs-demo-card xhs_1_xhs-demo-card" style="border-color: rgb(238, 238, 238);">
<view
class="xhs-demo-card-title xhs_1_xhs-demo-card-title xhs-demo-card-spiver xhs_1_xhs-demo-card-spiver sk-pseudo"
style="border-color: rgb(238, 238, 238);">
<view class="skeleton-text-block-mark sk-animation-shine-2"
style="display: inline-block; position: relative; background-position-x: 0%;">
横向布局
</view>
</view>
<view class="xhs-demo-card-content xhs_1_xhs-demo-card-content" style="border-color: rgb(238, 238, 238);">
<box style="border-color: rgb(238, 238, 238);">
<view style="padding: 10px; border-color: rgb(238, 238, 238);">
<view class="flex-container-x xhs_0_flex-container-x" style="border-color: rgb(238, 238, 238);">
<view class="flex-item xhs_0_flex-item demo-1 xhs_0_demo-1"
style="border-color: rgb(238, 238, 238);">
<view class="skeleton-text-block-mark sk-animation-shine-2"
style="display: inline-block; position: relative; background-position-x: 0%;">
A
</view>
</view>
<view class="flex-item xhs_0_flex-item demo-2 xhs_0_demo-2"
style="border-color: rgb(238, 238, 238);">
<view class="skeleton-text-block-mark sk-animation-shine-2"
style="display: inline-block; position: relative; background-position-x: 0%;">
B
</view>
</view>
<view class="flex-item xhs_0_flex-item demo-3 xhs_0_demo-3"
style="border-color: rgb(238, 238, 238);">
<view class="skeleton-text-block-mark sk-animation-shine-2"
style="display: inline-block; position: relative; background-position-x: 0%;">
C
</view>
</view>
</view>
</view>
</box>
</view>
</view>
</showbox>
<showbox style="border-color: rgb(238, 238, 238);">
<view class="xhs-demo-card xhs_1_xhs-demo-card" style="border-color: rgb(238, 238, 238);">
<view
class="xhs-demo-card-title xhs_1_xhs-demo-card-title xhs-demo-card-spiver xhs_1_xhs-demo-card-spiver sk-pseudo"
style="border-color: rgb(238, 238, 238);">
<view class="skeleton-text-block-mark sk-animation-shine-2"
style="display: inline-block; position: relative; background-position-x: 0%;">
纵向布局
</view>
</view>
<view class="xhs-demo-card-content xhs_1_xhs-demo-card-content" style="border-color: rgb(238, 238, 238);">
<box style="border-color: rgb(238, 238, 238);">
<view style="padding: 10px; border-color: rgb(238, 238, 238);">
<view class="flex-container-y xhs_0_flex-container-y" style="border-color: rgb(238, 238, 238);">
<view class="flex-item xhs_0_flex-item demo-1 xhs_0_demo-1"
style="border-color: rgb(238, 238, 238);">
<view class="skeleton-text-block-mark sk-animation-shine-2"
style="display: inline-block; position: relative; background-position-x: 0%;">
A
</view>
</view>
<view class="flex-item xhs_0_flex-item demo-2 xhs_0_demo-2"
style="border-color: rgb(238, 238, 238);">
<view class="skeleton-text-block-mark sk-animation-shine-2"
style="display: inline-block; position: relative; background-position-x: 0%;">
B
</view>
</view>
<view class="flex-item xhs_0_flex-item demo-3 xhs_0_demo-3"
style="border-color: rgb(238, 238, 238);">
<view class="skeleton-text-block-mark sk-animation-shine-2"
style="display: inline-block; position: relative; background-position-x: 0%;">
C
</view>
</view>
</view>
</view>
</box>
</view>
</view>
</showbox>
</view>
<view class="container xhs_0_container" style="border-color: rgb(238, 238, 238);">
<showbox style="border-color: rgb(238, 238, 238);">
<view class="xhs-demo-card xhs_1_xhs-demo-card" style="border-color: rgb(238, 238, 238);">
<view
class="xhs-demo-card-title xhs_1_xhs-demo-card-title xhs-demo-card-spiver xhs_1_xhs-demo-card-spiver sk-pseudo"
style="border-color: rgb(238, 238, 238);">
<view class="skeleton-text-block-mark sk-animation-shine-2"
style="display: inline-block; position: relative; background-position-x: 0%;">
view演示
</view>
</view>
<view class="xhs-demo-card-content xhs_1_xhs-demo-card-content" style="border-color: rgb(238, 238, 238);">
<box style="border-color: rgb(238, 238, 238);">
<view style="padding: 16px; border-color: rgb(238, 238, 238);">
<view class="_ui-space xhs_0__ui-space" style="border-color: rgb(238, 238, 238);">
<view style="border-color: rgb(238, 238, 238);">
<view hover-class="none xhs_0_none" hover-start-time="50" hover-stay-time="400"
style="height: 100px; background-color: red; border-color: rgb(238, 238, 238);">
</view>
</view>
<view class="_dflex xhs_0__dflex" style="border-color: rgb(238, 238, 238);">
<view class="_dflex xhs_0__dflex _ai_center xhs_0__ai_center"
style="flex: 4 1 0%; border-color: rgb(238, 238, 238);">
<text class="sk-animation-shine-2 skeleton-text-block-mark"
style="--text-display: inline; --text-selectable: none; border-color: rgb(238, 238, 238); position: relative; background-position-x: 0%;">
hoverClass
</text>
</view>
<view class="_ui-input xhs_0__ui-input"
style="flex: 6 1 0%; border-color: rgb(238, 238, 238);">
<view class="sk-animation-shine-2"
style="width: 207.602px; height: 22px; background-color: rgba(0, 0, 0, 0);">
</view>
</view>
</view>
<view class="_dflex xhs_0__dflex _jc_space-between xhs_0__jc_space-between"
style="border-color: rgb(238, 238, 238);">
<view class="_dflex xhs_0__dflex _ai_center xhs_0__ai_center"
style="border-color: rgb(238, 238, 238);">
<text class="sk-animation-shine-2 skeleton-text-block-mark"
style="--text-display: inline; --text-selectable: none; border-color: rgb(238, 238, 238); position: relative; background-position-x: 0%;">
是否开启hoverStopPropagation
</text>
</view>
<view class="sk-animation-shine-2"
style="width: 57px; height: 32px; background-color: rgba(0, 0, 0, 0); display: block;">
</view>
</view>
<view class="_dflex xhs_0__dflex" style="border-color: rgb(238, 238, 238);">
<view class="_dflex xhs_0__dflex _ai_center xhs_0__ai_center"
style="flex: 4 1 0%; border-color: rgb(238, 238, 238);">
<text class="sk-animation-shine-2 skeleton-text-block-mark"
style="--text-display: inline; --text-selectable: none; border-color: rgb(238, 238, 238); position: relative; background-position-x: 0%;">
hoverStartTime
</text>
</view>
<view class="_ui-input xhs_0__ui-input"
style="flex: 6 1 0%; border-color: rgb(238, 238, 238);">
<view class="sk-animation-shine-2"
style="width: 207.602px; height: 22px; background-color: rgba(0, 0, 0, 0);">
</view>
</view>
</view>
<view class="_dflex xhs_0__dflex" style="border-color: rgb(238, 238, 238);">
<view class="_dflex xhs_0__dflex _ai_center xhs_0__ai_center"
style="flex: 4 1 0%; border-color: rgb(238, 238, 238);">
<text class="sk-animation-shine-2 skeleton-text-block-mark"
style="--text-display: inline; --text-selectable: none; border-color: rgb(238, 238, 238); position: relative; background-position-x: 0%;">
hoverStayTime
</text>
</view>
<view class="_ui-input xhs_0__ui-input"
style="flex: 6 1 0%; border-color: rgb(238, 238, 238);">
<view class="sk-animation-shine-2"
style="width: 207.602px; height: 22px; background-color: rgba(0, 0, 0, 0);">
</view>
</view>
</view>
<view class="_dflex xhs_0__dflex" style="border-color: rgb(238, 238, 238);">
<view class="_dflex xhs_0__dflex _ai_center xhs_0__ai_center"
style="flex: 4 1 0%; border-color: rgb(238, 238, 238);">
<text class="sk-animation-shine-2 skeleton-text-block-mark"
style="--text-display: inline; --text-selectable: none; border-color: rgb(238, 238, 238); position: relative; background-position-x: 0%;">
style
</text>
</view>
<view class="_ui-input xhs_0__ui-input"
style="flex: 6 1 0%; border-color: rgb(238, 238, 238);">
<view class="sk-animation-shine-2"
style="width: 207.602px; height: 22px; background-color: rgba(0, 0, 0, 0);">
</view>
</view>
</view>
</view>
</view>
</box>
</view>
</view>
</showbox>
</view>

View File

@@ -0,0 +1,23 @@
<view class="container">
<showbox title="横向布局">
<box pad="10px">
<view class="flex-container-x">
<view class="flex-item demo-1">A</view>
<view class="flex-item demo-2">B</view>
<view class="flex-item demo-3">C</view>
</view>
</box>
</showbox>
<showbox title="纵向布局">
<box pad="10px">
<view class="flex-container-y">
<view class="flex-item demo-1">A</view>
<view class="flex-item demo-2">B</view>
<view class="flex-item demo-3">C</view>
</view>
</box>
</showbox>
</view>
<include src="templates.xhsml" />