12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- const data = {}
- function Plugin (vm) {
- this.vm = vm
- this.compData = {}
- data.xxx = 'xxx'
- }
- Plugin.prototype.onUpdate = function (content, config) {
- config.ignoreTags.xxx = true
-
- return content
- }
- Plugin.prototype.onParse = function (node, parser) {
-
- if (node.type === 'text') {
-
- } else {
-
-
-
-
- if (node.name === 'xxx') {
- parser.expose()
-
-
- }
- }
- }
- Plugin.prototype.onLoad = function () {
-
- }
- Plugin.prototype.onDetached = function () {
-
- }
- module.exports = Plugin
|