We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
转义前代码:
<template> <el-select v-model="selected" clearable ></el-select> </template>
transform.js
function transform(fileInfo, api, options) { const $ = api.gogocode const source = fileInfo.source const ast = $(source, { parseOptions: { language: 'vue' } }) const template = ast.find('<template></template>') const script = ast.find('<script></script>') template.replace('<el-select clearable $$$1>$$$2</el-select>', '<el-select allowClear $$$1>$$$2</el-select>') return ast.generate() }
vscode插件没有匹配上标签,但是在线的playground可以 vscode插件: 在线playground:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
转义前代码:
transform.js
vscode插件没有匹配上标签,但是在线的playground可以
vscode插件:
在线playground:
The text was updated successfully, but these errors were encountered: