components中的token.menu
This commit is contained in:
parent
ca72121bd7
commit
df4596362a
|
|
@ -21,7 +21,7 @@ export function packageJsonContent({
|
|||
}
|
||||
else {
|
||||
oakDependencyStr = `"oak-common-aspect": "^1.0.2",
|
||||
"oak-domain": "^1.1.4",
|
||||
"oak-domain": "^1.1.6",
|
||||
"oak-frontend-base": "^1.0.7",
|
||||
"oak-general-business": "^1.0.7",
|
||||
"oak-external-sdk": "^1.0.2",
|
||||
|
|
|
|||
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
"component": true,
|
||||
"usingComponents": {
|
||||
"t-cell": "@oak-general-business/miniprogram_npm/tdesign/cell/cell"
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
|
||||
|
||||
|
|
@ -0,0 +1,15 @@
|
|||
Component({
|
||||
externalClasses: ['g-cell', 'g-cell-label', 'g-cell-content', 'g-cell-content-right', 'material-symbols-rounded'],
|
||||
methods: {
|
||||
// button点击事件
|
||||
onMenuTap(event: WechatMiniprogram.Touch) {
|
||||
const { index } = event.currentTarget.dataset;
|
||||
if (index === "1") {
|
||||
// todo
|
||||
}
|
||||
else {
|
||||
console.log(index);
|
||||
}
|
||||
},
|
||||
}
|
||||
});
|
||||
|
|
@ -0,0 +1 @@
|
|||
<t-cell title="定制菜单" hover bind:click="onMenuTap" arrow />
|
||||
Loading…
Reference in New Issue