|
stml一直没有打开成功,闪退 在安卓上
- api.openWin({
- name: 'test',
- url: '../../pages/test.stml',
- avm: true
- });
复制代码- <template>
- <view class="main">
- <safe-area>
- <view class="header">
- <text class="title">title</text>
- </view>
- </safe-area>
- </view>
- </template>
- <style>
- .main {
- width: 100%;
- height: 100%;
- background: #f3f3f3;
- }
- safe-area {
- background-color: #f8f8f8;
- }
- .header {
- flex-direction: row;
- align-items: center;
- justify-content: center;
- height: 44px;
- border-bottom: 0.5px solid #ddd;
- }
- .title {
- font-weight: bold;
- font-size: 20px;
- color: #000;
- }
- </style>
- <script>
- export default {
- name: 'test'
- }
- </script>
复制代码
|
|