init
This commit is contained in:
0
xhs-mini-demos/common/component/container/index.css
Normal file
0
xhs-mini-demos/common/component/container/index.css
Normal file
24
xhs-mini-demos/common/component/container/index.js
Normal file
24
xhs-mini-demos/common/component/container/index.js
Normal file
@@ -0,0 +1,24 @@
|
||||
Component({
|
||||
properties: {
|
||||
pad: {
|
||||
type: String,
|
||||
value: '16px',
|
||||
},
|
||||
pt: {
|
||||
type: String,
|
||||
value: undefined,
|
||||
},
|
||||
pb: {
|
||||
type: String,
|
||||
value: undefined,
|
||||
},
|
||||
pl: {
|
||||
type: String,
|
||||
value: undefined,
|
||||
},
|
||||
pr: {
|
||||
type: String,
|
||||
value: undefined,
|
||||
}
|
||||
}
|
||||
});
|
||||
3
xhs-mini-demos/common/component/container/index.json
Normal file
3
xhs-mini-demos/common/component/container/index.json
Normal file
@@ -0,0 +1,3 @@
|
||||
{
|
||||
"component": true
|
||||
}
|
||||
5
xhs-mini-demos/common/component/container/index.xhsml
Normal file
5
xhs-mini-demos/common/component/container/index.xhsml
Normal file
@@ -0,0 +1,5 @@
|
||||
<view
|
||||
style="padding: {{pad}}; padding-top: {{pt}}; padding-bottom: {{pb}}; padding-left: {{pl}}; padding-right: {{pr}};"
|
||||
>
|
||||
<slot></slot>
|
||||
</view>
|
||||
Reference in New Issue
Block a user