{"_id":"@alipay/axml-transverter","_rev":"4-b591678f4e243b412ec412ea1abb36ef","name":"@alipay/axml-transverter","dist-tags":{"latest":"1.0.2"},"versions":{"1.0.1":{"name":"@alipay/axml-transverter","version":"1.0.1","_id":"@alipay/axml-transverter@1.0.1","maintainers":[{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"},{"name":"fengmk2","email":"fengmk2@gmail.com"}],"dist":{"shasum":"6bf5924a56605c0ffdd79b305b33e3e1ded087c3","tarball":"https://registry.npmjs.org/@alipay/axml-transverter/-/axml-transverter-1.0.1.tgz","fileCount":3,"integrity":"sha512-kgP3a2jtX+nouhu59WOH8GuPQKvV5SrprhF3lVsT4TlAUptGc3HjF1vUOTBhkIFa1ZFiczZqdRvkOGH/pGnJjw==","signatures":[{"sig":"MEQCIFV85OdCE8r6xzMZaedTnA6MmPBP5EVfT3qMpWpt8azoAiAMrVG9Xgy8L6q7uOBL4Y6Vbl4NJlTVQXtzMp3olGQjcQ==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2734917},"main":"dist/index.js","gitHead":"7af69c1458ebf529a17b6ac1310e4b3bad9f94e4","scripts":{},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"_npmVersion":"8.19.3","description":"```js import { TransformCompiler } from '@alipay/axml-transverter';","directories":{},"_nodeVersion":"18.20.4","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/axml-transverter_1.0.1_1723039923528_0.5195638619968976","host":"s3://npm-registry-packages"}},"1.0.2":{"name":"@alipay/axml-transverter","version":"1.0.2","_id":"@alipay/axml-transverter@1.0.2","maintainers":[{"name":"fengmk2","email":"fengmk2@gmail.com"},{"name":"gxkl","email":"gxkl203@gmail.com"},{"name":"killagu","email":"killa07071201@gmail.com"}],"dist":{"shasum":"ae6cfbdb84c4449bdb16af4c49b3245e20a231c0","tarball":"https://registry.npmjs.org/@alipay/axml-transverter/-/axml-transverter-1.0.2.tgz","fileCount":3,"integrity":"sha512-QbHe0jPelBtNy6dikIMcKRryK4YbP++L6tsi+9c6D6jJIQ4iUj+pFs6U2hSjnpQzu6VEfCW8jNY2If0kD+4AQg==","signatures":[{"sig":"MEQCIExyr1yHfvFmz5GJ44Wasx25M9bZ0sff6ROKegEZs6MuAiBN5afmPsFR6If1VpK8se1SoEVZly8VPsxG3zwptiLe/w==","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":2707652},"main":"dist/index.js","gitHead":"78be0d9c1f462e3f0a009d3db07cc70b31f4db1a","scripts":{},"_npmUser":{"name":"fengmk2","email":"fengmk2@gmail.com"},"_npmVersion":"8.19.3","description":"```js import { TransformCompiler } from '@alipay/axml-transverter';","directories":{},"_nodeVersion":"18.20.5","publishConfig":{"access":"public"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/axml-transverter_1.0.2_1733983120056_0.9792536647948011","host":"s3://npm-registry-packages-npm-production"}}},"time":{"created":"2024-08-07T14:12:03.396Z","modified":"2026-01-15T04:12:47.707Z","1.0.1":"2024-08-07T14:12:03.872Z","1.0.2":"2024-12-12T05:58:40.290Z"},"description":"```js import { TransformCompiler } from '@alipay/axml-transverter';","maintainers":[{"email":"fengmk2@gmail.com","name":"fengmk2"},{"email":"gxkl203@gmail.com","name":"gxkl"},{"email":"killa07071201@gmail.com","name":"killagu"},{"email":"elrrrrrrr@gmail.com","name":"elrrrrrrr"},{"email":"pub_alipay_npm@antgroup-inc.com","name":"pub_alipay_npm"}],"readme":"# 如何使用？\n\n```js\nimport { TransformCompiler } from '@alipay/axml-transverter';\n\nexport const wechatCustomMapping = {\n  view: {\n    onTouchStart: 'bind:touchstart',\n    onTouchMove: 'bind:touchmove',\n    onTouchEnd: 'bind:touchend',\n    onAnimationEnd: 'bindanimationend',\n  },\n  input: {\n    onInput: 'bindinput',\n    onConfirm: 'bindconfirm',\n    onFocus: 'bindfocus',\n    onBlur: 'bindblur',\n    onKeyboardHeightChange: 'bindkeyboardheightchange',\n    onNicknameReview: 'bindnicknamereview',\n  },\n  textarea: {\n    onInput: 'bindinput',\n    onConfirm: 'bindconfirm',\n    onFocus: 'bindfocus',\n    onBlur: 'bindblur',\n  },\n  'checkbox-group': {\n    onChange: 'bindchange',\n  },\n  'ant-textarea': {\n    onChange: 'bind:change',\n  },\n  'ant-slider': {\n    onAfterChange: 'bind:afterchange',\n  },\n  'ant-input': {\n    onBlur: 'bind:blur',\n    onConfirm: 'bind:confirm',\n    onFocus: 'bind:focus',\n    onChange: 'bind:change',\n  },\n  'ant-popup': {\n    onClose: 'bind:close',\n  },\n  'ant-picker': {\n    onOk: 'bind:ok',\n    onCancel: 'bind:cancel',\n  },\n  'ant-cascader-picker': {\n    onOk: 'bind:ok',\n    onCancel: 'bind:cancel',\n  },\n  'ant-date-picker': {\n    onCancel: 'bind:cancel',\n    onOk: 'bind:ok',\n    onPickerChange: 'bind:pickerchange',\n  },\n  'ant-selector': {\n    onSelectMin: 'bind:selectmin',\n    onSelectMax: 'bind:selectmax',\n  },\n  'ant-guide-tour': {\n    onCancel: 'bind:cancel',\n  },\n  uploader: {\n    onPreview: 'bind:preview',\n  },\n  'ant-range-picker': {\n    onOk: 'bind:ok',\n  },\n  'ant-action-sheet': {\n    onAction: 'bind:action',\n    onClose: 'bind:close',\n  },\n  'rare-words-keyboard': {\n    onClose: 'bind:close',\n    onError: 'bind:error',\n  },\n  'ant-rare-words-keyboard': {\n    onClose: 'bind:close',\n    onError: 'bind:error',\n  },\n  'ant-modal': {\n    onPrimaryButtonTap: 'bind:primarybuttontap',\n    onSecondaryButtonTap: 'bind:secondarybuttontap',\n    onCancelButtonTap: 'bind:cancelbuttontap',\n    onClose: 'bind:close',\n  },\n  'number-keyboard': {\n    onClose: 'bind:close',\n  },\n  'ant-number-keyboard': {\n    onClose: 'bind:close',\n  },\n  'movable-view': {\n    onChange: 'bindchange',\n    onChangeEnd: 'bindchangeend',\n    catchTouchEnd: 'catch:touchend',\n    onTouchCancel: 'bind:touchcancel',\n    catchTouchStart: 'catch:touchstart',\n  },\n  'ant-swipe-action': {\n    onSwipeEnd: 'bind:swipeend',\n    onSwipeStart: 'bind:swipestart',\n    onButtonTap: 'bind:buttontap',\n  },\n};\n\n// 转微信\nconst Compiler = new TransformCompiler(\n  {\n    platform: 'WECHAT',\n    customMapping: WECHAT_MAPPING,\n  },\n  [],\n);\nconst transCode = Compiler.compile(axmlCode);\n\n// 转支付宝\nconst Compiler = new TransformCompiler(\n  {\n    platform: 'ALIPAY',\n    customMapping: {},\n  },\n  [],\n);\nconst transCode = Compiler.compile(axmlCode);\n```\n","readmeFilename":"README.md"}