详细说明: - 添加了V2版本的工作流页面和结果页面 - 更新了Serena记忆文件 - 添加了详细实施计划文档 - 优化了Vite配置 - 更新了项目文档CLAUDE.md - 构建了演示系统的dist版本 - 包含了exhibition-demo的完整依赖
27 lines
531 B
JavaScript
27 lines
531 B
JavaScript
let Selector = require('../selector')
|
|
let utils = require('../utils')
|
|
|
|
class Autofill extends Selector {
|
|
constructor(name, prefixes, all) {
|
|
super(name, prefixes, all)
|
|
|
|
if (this.prefixes) {
|
|
this.prefixes = utils.uniq(this.prefixes.map(() => '-webkit-'))
|
|
}
|
|
}
|
|
|
|
/**
|
|
* Return different selectors depend on prefix
|
|
*/
|
|
prefixed(prefix) {
|
|
if (prefix === '-webkit-') {
|
|
return ':-webkit-autofill'
|
|
}
|
|
return `:${prefix}autofill`
|
|
}
|
|
}
|
|
|
|
Autofill.names = [':autofill']
|
|
|
|
module.exports = Autofill
|