Skip to content

Commit 962fee4

Browse files
authored
fix:wx.lin 调用时机修改 (#387)
1 parent f5b179a commit 962fee4

File tree

15 files changed

+17
-17
lines changed

15 files changed

+17
-17
lines changed

build/build-prod.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const cssmin = require('gulp-clean-css');
44
const rename = require('gulp-rename');
55
const componentData = require('./build-tool');
66
const result = `{common,behaviors,${componentData()}}`;
7-
const isCustom = result == `{common,behaviors}`;
7+
const isCustom = (result != `{common,behaviors,}`);
88

99
// js => js
1010
gulp.task('dispose-js', () => {
@@ -61,4 +61,4 @@ gulp.task('default', gulp.series(
6161
'dispose-wxs',
6262
'dispose-copy',
6363
'dispose-json'
64-
));
64+
));

dist/action-sheet/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Component({
2727
this.initUIAdapter();
2828
},
2929

30-
lifetimes: {
30+
pageLifetimes: {
3131
show() {
3232
if (this.data.openApi) {
3333
this.initActionSheet();

dist/dialog/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Component({
7272
}
7373
},
7474

75-
lifetimes: {
75+
pageLifetimes: {
7676
show() {
7777
if (this.data.openApi) {
7878
this.initDialog();

dist/message/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Component({
2727
this.initMessage();
2828
},
2929

30-
lifetimes: {
30+
pageLifetimes: {
3131
show() {
3232
this.initMessage();
3333
},

dist/toast/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Component({
9494
}
9595
},
9696

97-
lifetimes: {
97+
pageLifetimes: {
9898
show() {
9999
if (this.data.openApi) {
100100
this.initToast();

examples/dist/action-sheet/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Component({
2727
this.initUIAdapter();
2828
},
2929

30-
lifetimes: {
30+
pageLifetimes: {
3131
show() {
3232
if (this.data.openApi) {
3333
this.initActionSheet();

examples/dist/dialog/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ Component({
7272
}
7373
},
7474

75-
lifetimes: {
75+
pageLifetimes: {
7676
show() {
7777
if (this.data.openApi) {
7878
this.initDialog();

examples/dist/message/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Component({
2727
this.initMessage();
2828
},
2929

30-
lifetimes: {
30+
pageLifetimes: {
3131
show() {
3232
this.initMessage();
3333
},

examples/dist/toast/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ Component({
9494
}
9595
},
9696

97-
lifetimes: {
97+
pageLifetimes: {
9898
show() {
9999
if (this.data.openApi) {
100100
this.initToast();

examples/pages/components/layout/pages/grid/index.wxml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121
</content-card>
2222

2323
<content-card class="content" name="显示边框">
24-
<view class="view-container">
25-
<l-grid show-border="{{true}}">
24+
<view class="view-container" >
25+
<l-grid show-border="{{true}}" l-class="grid-container">
2626
<l-grid-item wx:for="{{grids1}}" wx:key="{{index}}" key="{{index}}" slot="{{index}}" l-grid-item="grid-item">
2727
<l-icon name="{{item.image}}" />
2828
<view class="text">{{item.text}}</view>

0 commit comments

Comments
 (0)