Skip to content

Commit 36836d9

Browse files
committed
update: 开启editor示例 小程序自定义组件示例
1 parent 07e6a34 commit 36836d9

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎pages.json‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@
185185
"navigationBarTitleText": "textarea"
186186
}
187187
},
188-
// #ifdef APP-PLUS || MP-WEIXIN
188+
// #ifdef APP-PLUS || MP-WEIXIN || H5
189189
{
190190
"path": "pages/component/editor/editor",
191191
"style": {
@@ -1094,7 +1094,7 @@
10941094
"navigationBarTitleText": "打开外部应用"
10951095
}
10961096
},
1097-
// #ifdef APP-PLUS || MP-WEIXIN || MP-QQ
1097+
// #ifdef APP-PLUS || MP-WEIXIN || MP-QQ || H5
10981098
{
10991099
"path": "vant-button/vant-button",
11001100
"style": {
@@ -1151,4 +1151,4 @@
11511151
}
11521152
]
11531153
}
1154-
}
1154+
}

‎pages/component/editor/editor.vue‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
data-value="2em"></view>
2222
<view :class="formats.marginTop ? 'ql-active' : ''" class="iconfont icon-722bianjiqi_duanqianju" data-name="marginTop"
2323
data-value="20px"></view>
24-
<view :class="formats.micon-previewarginBottom ? 'ql-active' : ''" class="iconfont icon-723bianjiqi_duanhouju"
24+
<view :class="formats.previewarginBottom ? 'ql-active' : ''" class="iconfont icon-723bianjiqi_duanhouju"
2525
data-name="marginBottom" data-value="20px"></view>
2626
<view class="iconfont icon-clearedformat" @tap="removeFormat"></view>
2727
<view :class="formats.fontFamily ? 'ql-active' : ''" class="iconfont icon-font" data-name="fontFamily" data-value="Pacifico"></view>
@@ -71,6 +71,7 @@
7171
export default {
7272
data() {
7373
return {
74+
readOnly: false,
7475
formats: {}
7576
}
7677
},

‎pages/tabBar/component/component.nvue‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
pages: ['button', 'checkbox', 'form', 'input', 'label', 'picker', 'picker-view', 'radio',
6666
'slider',
6767
'switch', 'textarea',
68-
// #ifdef APP-PLUS || MP-WEIXIN
69-
// 'editor', v3 暂不支持该组件
68+
// #ifdef APP-PLUS || MP-WEIXIN || H5
69+
'editor',
7070
// #endif
7171
]
7272
}, {

‎pages/tabBar/template/template.nvue‎

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -109,12 +109,11 @@
109109
url: 'scheme'
110110
},
111111
// #endif
112-
// #ifdef APP-PLUS || MP-WEIXIN || MP-QQ
113-
// v3 暂不支持小程序原生组件
114-
// {
115-
// name: '微信自定义组件示例(vant ui)',
116-
// url: 'vant-button'
117-
// }
112+
// #ifdef APP-PLUS || MP-WEIXIN || MP-QQ || H5
113+
{
114+
name: '微信自定义组件示例(vant ui)',
115+
url: 'vant-button'
116+
}
118117
// #endif
119118
],
120119
navigateFlag: false

0 commit comments

Comments
 (0)