forked from opentiny/tiny-vue
13 lines
328 B
JavaScript
13 lines
328 B
JavaScript
// range: 配合 range 使用 range:c-error
|
|
export default (matcher) => {
|
|
if (!matcher.startsWith('range:')) return matcher;
|
|
return {
|
|
matcher: matcher.slice(6),
|
|
selector: (s) => `.range:hover ${s}`,
|
|
body: (body) => {
|
|
body.push(['transition', 'all var(--trans-time)']);
|
|
return body;
|
|
},
|
|
};
|
|
};
|