Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/calendar/hidden #2491

Merged
merged 2 commits into from
Dec 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/calendar/calendar.wxml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,6 @@
>
<include src="./template.wxml" />
</t-popup>
<include wx:else src="./template.wxml" />
<block wx:else>
<include src="./template.wxml" />
</block>
16 changes: 1 addition & 15 deletions src/input/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,7 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = [
'align',
'banner',
'base',
'bordered',
'custom',
'label',
'layout',
'maxlength',
'prefix',
'size',
'special',
'status',
'suffix',
];
const mapper = ['align', 'banner', 'base', 'bordered', 'custom', 'label', 'layout', 'maxlength', 'prefix', 'size', 'special', 'status', 'suffix'];

describe('Input', () => {
mapper.forEach((demoName) => {
Expand Down
20 changes: 20 additions & 0 deletions src/rate/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,26 @@ exports[`Rate Rate custom demo works fine 1`] = `
</custom>
`;

exports[`Rate Rate custom-prefix demo works fine 1`] = `
<custom-prefix>
<wx-view
class="demo-rate"
>
<wx-view
class="demo-rate__title"
>
第三方图标
</wx-view>
<t-rate
icon="a-1h"
iconPrefix="icon"
value="{{3}}"
bind:change="onChange"
/>
</wx-view>
</custom-prefix>
`;

exports[`Rate Rate show-text demo works fine 1`] = `
<show-text>
<wx-view
Expand Down
2 changes: 1 addition & 1 deletion src/rate/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = ['action', 'base', 'color', 'count', 'custom', 'show-text', 'size', 'special', 'un-filled'];
const mapper = ['action', 'base', 'color', 'count', 'custom', 'custom-prefix', 'show-text', 'size', 'special', 'un-filled'];

describe('Rate', () => {
mapper.forEach((demoName) => {
Expand Down
21 changes: 21 additions & 0 deletions src/search/__test__/__snapshots__/demo.test.js.snap
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,27 @@ exports[`Search Search base demo works fine 1`] = `
</base>
`;

exports[`Search Search maxlength demo works fine 1`] = `
<maxlength>
<wx-view
class="example-search"
>
<t-search
maxlength="{{10}}"
placeholder="最大输入10个字符"
/>
</wx-view>
<wx-view
class="example-search"
>
<t-search
maxcharacter="{{10}}"
placeholder="最大输入10个字符,汉字算两个"
/>
</wx-view>
</maxlength>
`;

exports[`Search Search other demo works fine 1`] = `
<other>
<wx-view
Expand Down
2 changes: 1 addition & 1 deletion src/search/__test__/demo.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import path from 'path';
import simulate from 'miniprogram-simulate';

const mapper = ['action', 'base', 'other', 'shape'];
const mapper = ['action', 'base', 'maxlength', 'other', 'shape'];

describe('Search', () => {
mapper.forEach((demoName) => {
Expand Down
Loading