@unit-mesh/gogocode-plugin-element
Version:
## 开始迁移
9 lines (8 loc) • 679 B
JavaScript
module.exports = function (ast) {
const template = ast.find('<template></template>');
template.replace('<el-popconfirm -confirm="$_$1" $$$1>$$$2</el-popconfirm>', '<el-popconfirm ="$_$1" $$$1>$$$2</el-popconfirm>')
template.replace('<el-popconfirm ="$_$1" $$$1>$$$2</el-popconfirm>', '<el-popconfirm ="$_$1" $$$1>$$$2</el-popconfirm>')
template.replace('<el-popconfirm -cancel="$_$1" $$$1>$$$2</el-popconfirm>', '<el-popconfirm ="$_$1" $$$1>$$$2</el-popconfirm>')
template.replace('<el-popconfirm ="$_$1" $$$1>$$$2</el-popconfirm>', '<el-popconfirm ="$_$1" $$$1>$$$2</el-popconfirm>')
return ast;
};