feat(Sku): add disable-soldout-sku prop (#7759)
* feat(Sku): 售罄sku支持点击 * feat(Sku): add disable-soldout-sku prop Co-authored-by: zhanglin_0715 <zhanglin_0715@youzan.com>
This commit is contained in:
@@ -1,16 +1,16 @@
|
||||
import { mount } from '../../../test';
|
||||
import Paginaion from '..'
|
||||
import Paginaion from '..';
|
||||
|
||||
test('render prev-text & next-text slot', () => {
|
||||
const wrapper = mount(Paginaion, {
|
||||
propsData: {
|
||||
totalItems: 50,
|
||||
showPageSize: 5
|
||||
showPageSize: 5,
|
||||
},
|
||||
scopedSlots: {
|
||||
'prev-text': () => 'Custom PrevText',
|
||||
'next-text': () => 'Custom NextText',
|
||||
}
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
@@ -20,11 +20,11 @@ test('render page slot', () => {
|
||||
const wrapper = mount(Paginaion, {
|
||||
propsData: {
|
||||
totalItems: 50,
|
||||
showPageSize: 5
|
||||
showPageSize: 5,
|
||||
},
|
||||
scopedSlots: {
|
||||
'page': ({ text }) => `${text}`,
|
||||
}
|
||||
page: ({ text }) => `${text}`,
|
||||
},
|
||||
});
|
||||
|
||||
expect(wrapper).toMatchSnapshot();
|
||||
|
||||
Reference in New Issue
Block a user