first add files
This commit is contained in:
15
ProjectLiaisonForm/pages/notice-bar/event/index.js
Normal file
15
ProjectLiaisonForm/pages/notice-bar/event/index.js
Normal file
@@ -0,0 +1,15 @@
|
||||
Component({
|
||||
data: {
|
||||
visible: true,
|
||||
navigatorProps: {
|
||||
url: '/pages/xxx/xxx',
|
||||
},
|
||||
},
|
||||
|
||||
methods: {
|
||||
click(e) {
|
||||
const { trigger } = e.detail;
|
||||
console.log(`click on the ${trigger} area`);
|
||||
},
|
||||
},
|
||||
});
|
||||
7
ProjectLiaisonForm/pages/notice-bar/event/index.json
Normal file
7
ProjectLiaisonForm/pages/notice-bar/event/index.json
Normal file
@@ -0,0 +1,7 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-notice-bar": "tdesign-miniprogram/notice-bar/notice-bar",
|
||||
"t-link": "tdesign-miniprogram/link/link"
|
||||
}
|
||||
}
|
||||
11
ProjectLiaisonForm/pages/notice-bar/event/index.wxml
Normal file
11
ProjectLiaisonForm/pages/notice-bar/event/index.wxml
Normal file
@@ -0,0 +1,11 @@
|
||||
<t-notice-bar visible="{{visible}}" suffixIcon="chevron-right" bind:click="click">
|
||||
<view slot="content" class="inline"> 这是一条普通的通知信息 </view>
|
||||
<t-link slot="operation" content="详情" theme="primary" underline="{{false}}" navigator-props="{{navigatorProps}}" />
|
||||
</t-notice-bar>
|
||||
|
||||
<t-notice-bar
|
||||
visible="{{visible}}"
|
||||
suffixIcon="chevron-right"
|
||||
content="这是一条普通的通知信息"
|
||||
bind:click="click"
|
||||
></t-notice-bar>
|
||||
3
ProjectLiaisonForm/pages/notice-bar/event/index.wxss
Normal file
3
ProjectLiaisonForm/pages/notice-bar/event/index.wxss
Normal file
@@ -0,0 +1,3 @@
|
||||
.inline {
|
||||
display: inline;
|
||||
}
|
||||
Reference in New Issue
Block a user