Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/zhangdaren/miniprogram-to-uniapp
/ functions
Functions
897 in github.com/zhangdaren/miniprogram-to-uniapp
⨍
Functions
897
◇
Types & classes
24
↓ 1 callers
Function
transformTemplateToComponent
* 将template和include标签转换为组件 * @param {*} self 页面的this * @param {*} isIncludeFile * @param {*} fileDir * @param {*} fileKey
src/transformers/tag/transform-include.js:499
↓ 1 callers
Function
transformThisDotData
* 处理this.data = {} 这种场景,转换后为:this.setData({}) * this.data = { * style:"", * value:"", * } * @param {*} $ast
src/utils/ggcUtils.js:270
↓ 1 callers
Function
transformThisDotOnPullDownRefresh
* 处理手动调用下拉刷新函数this.onPullDownRefresh() --> uni.startPullDownRefresh() * uni-app是不允许调用生命周期函数,因此替换为uni.startPullDownRefresh(); * @param {*} $jsAst *
src/transformers/other/special-code-transformer.js:61
↓ 1 callers
Function
transformThisDotProperties
* 处理this.properties = {a:1, b:2} 这种场景,作提示,需手动处理 * @param {*} $ast * @param {*} fileKey
src/utils/ggcUtils.js:294
↓ 1 callers
Function
transformTriggerEvent
* triggerEvent 转换 * @param {*} $ast
src/transformers/function/triggerEvent-transformer.js:24
↓ 1 callers
Function
transformTwoWayBinding
* 微信小程序的简易双向绑定 * @param {*} keyNode * @param {*} valueNode * @param {*} state * @returns
src/page/template/template-transformer.js:676
↓ 1 callers
Function
transformTypescript
* ts处理 * 看看函数参数,如果没有声明类型,则给它加上any类型 * @param {*} $jsAst * @param {*} fileKey * @returns
src/transformers/typescript/typescript-transfromer.js:22
↓ 1 callers
Function
transformUsingComponents
* 组件处理 * @param {*} $jsAst * @param {*} usingComponents
src/transformers/component/usingComponents-transformer.js:34
↓ 1 callers
Function
transformVantComponent
* VantComponent 转换 * @param {*} $ast * @param {*} fileKey * @returns
src/page/script/vantComponent/vantComponent-transformer.js:57
↓ 1 callers
Function
transformVantComponentAst
* VantComponent 转换 * @param {*} $ast * @param {*} fileKey * @returns
src/page/script/vantComponent/vantComponent-transformer.js:176
↓ 1 callers
Function
transformVariable
* * 变量处理,总出口!!! * * @param {*} $jsAst * @param {*} $wxmlAst * @param {*} variableTypeInfo * @param {*} wxsModuleNameList * @param {*} fileKey
src/transformers/variable/variable-transformer.js:661
↓ 1 callers
Function
transformVueCLI
* 处理vue-cli项目配置文件 * @param {*} configData 小程序配置数据 * @param {*} outputFolder 输出目录
src/transformers/project/vue-cli-transformer.js:23
↓ 1 callers
Function
transformWeUIScript
* 提取webpack打包后的weui里面的组件内容 * @param {*} $jsAst * @returns
src/transformers/component/weui-transformer.js:111
↓ 1 callers
Function
transformWxCloud
* 云函数转换 * @param {*} sourceFolder * @param {*} cloudfunctionRoot 云函数目录名 * @param {*} targetFolder * @param {*} options * @returns
src/transformers/cloud/cloud-transformer.js:169
↓ 1 callers
Function
transformWxParse
* 处理WxParse组件 * @param {*} $jsAst * @param {*} $wxmlAst
src/transformers/component/wxParse-transformer.js:281
↓ 1 callers
Function
transformWxParseTemplate
* 处理<template is="wxParse" data="{{ wxParseData:content.nodes }}"></template> * @param {*} $wxmlAst * @returns
src/transformers/component/wxParse-transformer.js:210
↓ 1 callers
Method
traverse
* AST树遍历方法 * @param astObject * @returns {*}
src/page/script/JavascriptParser.js:61
↓ 1 callers
Function
uiPolyfill
* 界面相关
src/project/template/polyfill/polyfill.js:368
↓ 1 callers
Function
unaryExpressionHandle
* 逻辑变量展开 * !0 ==> true; !1 ==> false * @param {*} ast
src/utils/restoreJSUtils.js:458
↓ 1 callers
Function
unsupportedFunctionHandle
* 对vue不支持的函数命名方式进行处理 * vue不支持使用_和$开头作为函数名 * @param {*} $jsAst * @param {*} $wxmlAst
src/transformers/variable/variable-transformer.js:468
↓ 1 callers
Function
unsupportedVariableHandle
* 对vue不支持的变量命名方式进行处理 * vue不支持使用_和$开头作为变量名 * @param {*} $jsAst * @param {*} $wxmlAst
src/transformers/variable/variable-transformer.js:443
↓ 1 callers
Method
variableHandle
* 变量处理,须在template和include标签处理后再进行处理
src/page/index.js:390
↓ 1 callers
Function
wifiPolyfill
* wifi
src/project/template/polyfill/polyfill.js:799
Function
$emit
(...args)
src/project/template/wxcomponents/vant/mixins/basic.js:3
Function
'AssignmentExpression|VariableDeclarator'
(path)
src/utils/ast/visitorar.js:304
Function
AssignmentExpression
(path)
src/utils/restoreJSUtils.js:743
Function
BinaryExpression
(path)
src/utils/ast/visitorar.js:121
Function
CallExpression
(path)
src/utils/ast/visitorar.js:527
Function
CatchClause
(path)
src/utils/ast/visitorar.js:558
Function
DebuggerStatement
(path)
src/utils/ast/visitorar.js:524
Function
ExpressionStatement
(path)
src/utils/restoreJSUtils.js:293
Function
ExpressionStatement
(path)
src/utils/ast/visitorar.js:101
Function
ForInStatement
(path)
src/utils/restoreJSUtils.js:275
Function
ForInStatement
(path)
src/utils/ast/visitorar.js:647
Function
ForOfStatement
(path)
src/utils/restoreJSUtils.js:284
Function
ForOfStatement
(path)
src/utils/ast/visitorar.js:656
Function
ForStatement
(path)
src/utils/restoreJSUtils.js:266
Function
ForStatement
(path)
src/utils/ast/visitorar.js:638
Function
FunctionDeclaration
(path)
src/utils/ast/visitorar.js:341
Function
FunctionExpression
(path)
src/utils/restoreJSUtils.js:616
Function
Identifier
(path)
src/utils/ast/visitorar.js:541
Function
IfStatement
(path)
src/utils/restoreJSUtils.js:210
Function
IfStatement
(path)
src/utils/ast/visitorar.js:361
Function
Lexer
* @description html 词法分析器 * @param {Object} handler 高层处理器
src/project/template/uni_modules/mp-html/components/mp-html/parser.js:1137
Function
LogicalExpression
(path)
src/utils/restoreJSUtils.js:507
Function
MemberExpression
(path)
src/utils/ast/visitorar.js:16
Function
NewExpression
(path)
src/utils/restoreJSUtils.js:843
Function
Notify
(options)
src/project/template/wxcomponents/vant/notify/notify.js:21
Function
NumericLiteral
({ node })
src/utils/restoreJSUtils.js:479
Function
NumericLiteral
({ node })
src/utils/ast/visitorar.js:501
Function
ObjectProperty
(path)
src/utils/restoreJSUtils.js:585
Function
ObjectProperty
(path)
src/utils/ast/visitorar.js:23
Function
Parser
* @description html 解析器 * @param {Object} vm 组件实例
src/project/template/uni_modules/mp-html/components/mp-html/parser.js:165
Function
Program
(path)
src/utils/restoreJSUtils.js:807
Function
Program
(path)
src/utils/babelUtils.js:36
Function
ReturnStatement
(path)
src/utils/restoreJSUtils.js:391
Function
ReturnStatement
(path)
src/utils/ast/visitorar.js:681
Function
SequenceExpression
(path)
src/utils/restoreJSUtils.js:1031
Function
SequenceExpression
(path, state)
src/utils/ast/visitorar.js:835
Function
StringLiteral
({ node })
src/utils/restoreJSUtils.js:485
Function
StringLiteral
({ node })
src/utils/ast/visitorar.js:507
Function
SwitchStatement
(path)
src/utils/ast/visitorar.js:203
Function
UnaryExpression
(path)
src/utils/restoreJSUtils.js:460
Function
UnaryExpression
(path)
src/utils/ast/visitorar.js:145
Function
VariableDeclaration
(path)
src/utils/restoreJSUtils.js:341
Function
VariableDeclaration
(path)
src/utils/ast/visitorar.js:75
Function
VariableDeclarator
(path)
src/utils/restoreJSUtils.js:660
Function
VariableDeclarator
(path)
src/utils/babelUtils.js:47
Function
VariableDeclarator
(path)
src/utils/ast/visitorar.js:332
Function
[idName]
(nv, ov)
src/project/template/uni_modules/p-f-unicom/index.js:211
Function
_
()
src/project/template/uni_modules/mp-html/static/app-plus/mp-html/js/uni.webview.min.js:1
Function
addCatchLog
()
src/utils/ast/visitorar.js:555
Function
addComments
* 给关键代码|标识符 添加注释 TOLOOK
src/utils/ast/visitorar.js:519
Function
addReplaceTag
* 添加替换的标记 * @param {*} code * @param {*} name * @returns
src/utils/restoreJSUtils.js:135
Function
addWatchHandlerItem
* 将observers改造成handler引用方式,并添加到watch里 * * @param {*} $jsAst * @param {*} watchList * @param {*} propItemName * @param {*} propType * @param {*}
src/utils/ggcUtils.js:799
Function
adjustIndex
(index)
src/project/template/wxcomponents/vant/picker-column/index.js:72
Function
arrayBufferToBase64
* ArrayBuffer转base64
src/project/template/polyfill/base64Binary.js:82
Function
arrayToObject
* 将ast属性数组组合为ast对象 * @param {*} pathAry
src/utils/babelUtils.js:24
Function
attached
()
src/project/template/wxcomponents/vant/mixins/transition.js:35
Function
base64ToArrayBuffer
* base64转ArrayBuffer
src/project/template/polyfill/base64Binary.js:69
Function
beforeCreate
()
src/project/template/wxcomponents/vant/dropdown-menu/index.js:55
Function
beforeCreate
()
src/project/template/wxcomponents/vant/collapse/index.js:27
Function
beforeCreate
()
src/project/template/wxcomponents/vant/sidebar/index.js:22
Function
beforeCreate
()
src/project/template/wxcomponents/vant/picker/index.js:25
Function
beforeCreate
()
src/project/template/wxcomponents/vant/grid/index.js:44
Function
beforeCreate
()
src/project/template/wxcomponents/vant/tabbar/index.js:46
Function
beforeCreate
()
src/project/template/wxcomponents/vant/goods-action/index.js:13
Function
beforeCreate
()
src/project/template/wxcomponents/vant/tabs/index.js:107
Function
beforeCreate
()
src/project/template/uni_modules/p-f-unicom/index.js:222
Function
bindContact
(event)
src/project/template/wxcomponents/vant/mixins/open-type.js:9
Function
bindError
(event)
src/project/template/wxcomponents/vant/mixins/open-type.js:15
Function
bindGetPhoneNumber
(event)
src/project/template/wxcomponents/vant/mixins/open-type.js:12
Function
bindGetUserInfo
(event)
src/project/template/wxcomponents/vant/mixins/open-type.js:6
Function
bindLaunchApp
(event)
src/project/template/wxcomponents/vant/mixins/open-type.js:18
Function
bindOpenSetting
(event)
src/project/template/wxcomponents/vant/mixins/open-type.js:21
Function
bracketsJudge
* 判断字符串里面的括号是否成对 * 所有括号配置成功返回true * https://blog.csdn.net/shijue98/article/details/106250008 * @param {*} str
src/utils/utils.js:403
Function
buttonSize
()
src/project/template/wxcomponents/vant/stepper/index.js:63
Function
cacheImportComponentList
* 保存所有页面引入的外部组件 * @param {*} jsFile * @param {*} wxmlFile * @param {*} usingComponents
src/utils/pathUtils.js:229
Function
calcBinary
* 计算二项式字面量 * 1 + 2 "debu" + "gger" * | * | * V * 3 "debugger"
src/utils/ast/visitorar.js:118
Function
calcBoolean
* 计算布尔值 * !![] ![] * | * | * V * true false
src/utils/ast/visitorar.js:142
← previous
next →
301–400 of 897, ranked by callers