MCPcopy Create free account

hub / github.com/zhangdaren/miniprogram-to-uniapp / functions

Functions897 in github.com/zhangdaren/miniprogram-to-uniapp

↓ 113 callersMethodgenerate
* 输出
src/page/index.js:802
↓ 113 callersFunctionisApiNotImplemented
* 检查api是否未实现,没实现返回true * @param {Object} api
src/project/template/polyfill/polyfill.js:35
↓ 63 callersFunctionVantComponent
(vantOptions = {})
src/project/template/wxcomponents/vant/common/component.js:10
↓ 27 callersFunctiontest
* 仅用于测试
test.js:27
↓ 26 callersFunctionaddUnit
(value)
src/project/template/wxcomponents/vant/common/utils.js:26
↓ 16 callersFunctiongetVariableByExpression
* 根据表达式类型获取变量 * @param {*} node * @param {*} originalType * @returns
src/utils/variableUtils.js:452
↓ 11 callersMethodgenerate
* 模板或AST对象转文本方法 * @param astObject * @param code * @returns {*}
src/page/script/JavascriptParser.js:71
↓ 11 callersMethodparse
* 文本内容解析成AST * @param {*} scriptText * @param {*} fileKey * @param {*} isVueFile
src/page/script/JavascriptParser.js:29
↓ 11 callersFunctionparseMustache
* 小程序变量绑定写法转换为uniapp写法 * * 示例: * <view hidden="{{flag ? true : false}}"> Hidden </view> * "{{flag ? true : false}}" --> "flag ? true : false" *
src/utils/mustacheUtils.js:36
↓ 11 callersFunctionresolve
(id, basedir, importOptions)
src/transformers/project/vue-cli/postcss.config.js:6
↓ 9 callersFunctionclone
(target)
src/project/template/uni_modules/zp-mixins/methods/clone.js:8
↓ 9 callersFunctionpadZero
(val)
src/project/template/wxcomponents/vant/datetime-picker/index.js:11
↓ 8 callersFunctiongetTypeByOperator
* 根据operator获取BinaryExpression左侧对象的类型type * @param {*} operator * @param {*} right BinaryExpression表达式的右侧对象(查右侧对象类型,传入左侧类型即可)
src/utils/variableUtils.js:255
↓ 8 callersFunctionisDef
(value)
src/project/template/wxcomponents/vant/common/utils.js:1
↓ 8 callersFunctionsetDataByPathList
* 根据list给dataPath批量添加子节点 * @param {*} dataPath * @param {*} list * @param {*} valueType 最后一个元素的类型 * @param {*} variableTypeInfo 页面所有单个单词的变量的类型对象
src/utils/variableUtils.js:189
↓ 6 callersFunctiona
(e,n)
src/project/template/uni_modules/mp-html/static/app-plus/mp-html/js/uni.webview.min.js:1
↓ 6 callersFunctionconditionalExpToIfStatement
* 三元表达式转if表达式,支持递归,无限嵌套 * //TODO: (针对:r = a ? 2 == d ? "1111" : "2222" : "3333"; 需再次遍历,暂无更好办法) * //TODO: 返回值的处理 * @param {*} path
src/utils/restoreJSUtils.js:723
↓ 6 callersFunctionisObj
(x)
src/project/template/wxcomponents/vant/common/utils.js:4
↓ 6 callersFunctionmakeMap
* copy to vue.js * Make a map and return a function for checking if a key * is in that map.
src/utils/utils.js:440
↓ 6 callersFunctionmakeMap
* @description 创建 map * @param {String} str 逗号分隔
src/project/template/uni_modules/mp-html/components/mp-html/parser.js:102
↓ 6 callersFunctionrenameProperty
* 给MemberExpression的property进行重名 * @param {*} item * @param {*} propNameList
src/utils/renameUtils.js:83
↓ 6 callersFunctionrenameScriptWithTemplateByNameList
* 根据替换列表进行批量替换 * @param {*} $jsAst * @param {*} $wxmlAst * @param {*} list 需要替换的列表 * @param {*} varType 需要替换的变量
src/transformers/variable/variable-transformer.js:629
↓ 5 callersFunctiongetTrueValue
(formattedValue)
src/project/template/wxcomponents/vant/datetime-picker/index.js:22
↓ 5 callersFunctiongetTypeDefaultAst
* 根据type获取默认空节点 * @param {*} type
src/utils/variableUtils.js:27
↓ 5 callersFunctionpadZero
(num, targetLength = 2)
src/project/template/wxcomponents/vant/count-down/utils.js:1
↓ 5 callersFunctiontransformEventDynamicCode
* 解析事件里的动态函数名,这种没有()的函数名,在uniapp不被执行 * 比如:<view bindtap="{{openId==undefined?'denglu':'hy_to'}}">立即</view> * @param {*} $wxmlAst * @returns
src/page/template/template-transformer.js:803
↓ 4 callersFunction_set
* lodash set * @param {*} obj * @param {*} path * @param {*} value * @returns
src/project/template/uni_modules/zp-mixins/utils/_set.js:8
↓ 4 callersFunctiongetAppHandle
* getApp() 处理 * @param {*} path * @param {*} id * @returns
src/utils/restoreJSUtils.js:706
↓ 4 callersFunctiongetExpressionVariableList
* 根据template里面,标签上面的属性名,以及对应属性值,猜测里面的变量及表达式的变量类型 * @param {*} attr 属性名 * @param {*} value 属性值 * @returns
src/utils/variableUtils.js:577
↓ 4 callersFunctiongetTemplateVarList
* 获取wxml里面的所有变量 * @param {*} code * @returns
src/utils/varUtils.js:112
↓ 4 callersFunctionggcTest
* 为了简化测试,少写代码,特写了这个js函数 * @param {*} source 源代码 * @param {*} target 目标代码 * @param {*} transformFun 转换函数 * @param {*} isHtml
test/ggcTest.js:26
↓ 4 callersFunctionhandlePageLifetime
* 组件pageLifetimes处理,需在页面生命周期里调用 * @param {Object} node * @param {Object} lifeName
src/project/template/uni_modules/zp-mixins/lifecycle/pageLifetimes.js:6
↓ 4 callersFunctionrange
(num, min, max)
src/project/template/wxcomponents/vant/common/utils.js:11
↓ 4 callersFunctionrenameKeyword
* 关键字重命名 * 忽略微信小程序云函数的转换(wx.cloud.xxx) * @param {*} path * @param {*} name
src/utils/restoreJSUtils.js:778
↓ 4 callersFunctiont
(t)
src/project/template/uni_modules/mp-html/static/app-plus/mp-html/js/handler.js:1
↓ 4 callersMethodtransform
* //////////////////////////////////////////////////////////////// * // // * //
src/page/index.js:220
↓ 4 callersFunctiontransformEventName
(name, state)
src/page/template/template-transformer.js:233
↓ 4 callersFunctiontransformGetCurrentPages
* getCurrentPages函数处理 * @param {*} $ast * @param {*} fileKey
src/transformers/function/getCurrentPages-transformer.js:24
↓ 4 callersFunctiontransformObservers
* observers 转换 * @param {*} $ast * @param {*} fileKey
src/transformers/observers/observers-transformer.js:175
↓ 4 callersFunctiontransformProperties
* properties 转换 * @param {*} $ast * @param {*} fileKey
src/transformers/properties/properties-transformer.js:92
↓ 4 callersFunctiontransformWxParseScript
* 处理wxParse.wxParse('content', 'html', detail.content, _this, 0); * @param {*} $jsAast * @returns
src/transformers/component/wxParse-transformer.js:150
↓ 3 callersFunctioncreateMethod
(type)
src/project/template/wxcomponents/vant/toast/toast.js:50
↓ 3 callersFunctiondecodeEntity
* @description 解码 html 实体 * @param {String} str 要解码的字符串 * @param {Boolean} amp 要不要解码 &amp; * @returns {String} 解码后的字符串
src/project/template/uni_modules/mp-html/components/mp-html/parser.js:117
↓ 3 callersFunctionemit
(target, value)
src/project/template/wxcomponents/vant/checkbox/index.js:3
↓ 3 callersFunctiongenerateCode
* 生成代码 * @param {*} path
src/utils/restoreJSUtils.js:532
↓ 3 callersFunctiongetTemplateNameList
* 获取template里面所有的name list * @param {*} $wxmlAst * @param {*} fileKey
src/transformers/tag/transform-include.js:48
↓ 3 callersFunctionhandleFunction
* 处理函数 * @param {*} ast * @param {*} funName 函数名 * @param {*} dbVarName db变量名
src/transformers/cloud/cloud-transformer.js:32
↓ 3 callersFunctionjsKeywordFunctionHandle
* 对使用js关键词作为函数名这种情况进行处理 * 须放在undefinedFunctionHandle()之后处理!!! * @param {*} $jsAst * @param {*} $wxmlAst
src/transformers/variable/variable-transformer.js:417
↓ 3 callersFunctionmatch
(node, selector)
src/project/template/uni_modules/zp-mixins/methods/selectComponent.js:36
↓ 3 callersFunctionmergeBinaryExpression
* 合并BinaryExpression * if ("" != r && void 0 != r) {} ==> if (r){} * if (void 0 != s && 0 != s) {} ==> if (s){} * if ('' != o.smfy && '0' != o.s
src/utils/restoreJSUtils.js:543
↓ 3 callersFunctionupdateId
(scope, newValue, oldValue)
src/project/template/uni_modules/p-f-unicom/index.js:145
↓ 3 callersFunctionupdateName
(scope, nv, ov)
src/project/template/uni_modules/p-f-unicom/index.js:105
↓ 2 callersFunctionaddTemplateTagDataToGlobal
* 添加模板到global存起,如果有需要替换的则进行替换 * @param {*} pageData * @param {*} fileKey
src/transformers/tag/template-tag-transformer.js:29
↓ 2 callersFunctionanimateFnHandle
* animate函数处理 * @param {*} item
src/transformers/function/animate-transformer.js:24
↓ 2 callersFunctionclear
(path, toggle)
src/utils/ast/visitorar.js:362
↓ 2 callersFunctionclearInterval
()
src/project/template/wxcomponents/vant/circle/index.js:142
↓ 2 callersFunctioncreateObjectProperty
* 创建指定name的objectproperty * @param {*} name * @param {*} boolean 默认为true * @returns
src/utils/ggcUtils.js:770
↓ 2 callersFunctiondataWithMethodsDuplicateHandle
* 处理data里变量与函数重名的问题 * @param {*} $jsAst * @param {*} $wxmlAst
src/transformers/variable/variable-transformer.js:492
↓ 2 callersFunctione
()
src/project/template/uni_modules/mp-html/static/app-plus/mp-html/js/handler.js:1
↓ 2 callersFunctionemitEvent
(method, toKey, aim, args)
src/project/template/uni_modules/p-f-unicom/index.js:31
↓ 2 callersFunctionformateByBeautify
* 使用Beautify进行格式化代码 * @param {*} code * @param {*} extname * @param {*} fileKey * @param {*} showErrorCodeLog
src/utils/formatUtils.js:237
↓ 2 callersFunctionformateByPrettier
* 使用Beautify进行格式化代码 * @param {*} code * @param {*} extname * @param {*} fileKey * @param {*} showErrorCodeLog
src/utils/formatUtils.js:212
↓ 2 callersFunctiongetClassNames
(name)
src/project/template/wxcomponents/vant/mixins/transition.js:2
↓ 2 callersFunctiongetComponentNameByRelationPath
* 从路径'../segment-item/index'里获取组件目录名 * @param {*} comPath * @returns
src/transformers/component/relation-transformer.js:25
↓ 2 callersFunctiongetContext
()
src/project/template/wxcomponents/vant/notify/notify.js:17
↓ 2 callersFunctiongetFilterAttrList
* 获取需要删除的属性列表 * @param {*} prefix 小程序前缀 * @returns
src/page/template/template-transformer.js:131
↓ 2 callersFunctiongetMonthEndDay
(year, month)
src/project/template/wxcomponents/vant/datetime-picker/index.js:30
↓ 2 callersFunctiongetParamsExpressionString
* 获取setdata不能识别的表达式的字符串 * @param {*} keyNode * @param {*} thisName * @param {*} scope * @param {*} fileKey * @returns
src/transformers/function/setData-transformer.js:29
↓ 2 callersFunctiongetTemplateExpressionList
* TODO: 获取所有template里面的变量
src/utils/variableUtils.js:631
↓ 2 callersFunctiongetTemplateNameListByFile
* 获取文件信息 * @param {*} file path
src/transformers/tag/transform-include.js:28
↓ 2 callersFunctiongetThisExpressionName
* 如item是否为this对象或this的别名,则返回this或this的别名,否则返回null * item应该是使用selector:`$_$this.data`搜索出来的 * @param {*} item * @param {*} selectorName this在选择器里的名,
src/utils/ggcUtils.js:230
↓ 2 callersFunctiongetVarNameList
* 获取ast里面定义的变量名数组,如果找不到则返回空数组 * 可能中间有很多个,这里返回数组 * @param {*} $ast ast * @param {*} type ast节点类型 * @param {*} defaultName 默认
src/utils/ggcUtils.js:111
↓ 2 callersFunctiongetVariableByBinaryExpression
* 从BinaryExpression里面获取变量 * @param {*} $jsAst * @param {*} originalType * @returns
src/utils/variableUtils.js:305
↓ 2 callersFunctiongetVariableByConditionalExpression
* 从ConditionalExpression里面获取变量 * @param {*} node * @param {*} originalType * @returns
src/utils/variableUtils.js:361
↓ 2 callersFunctiongetVariableByLogicalExpression
* 从LogicalExpression里面获取变量 * @param {*} node * @param {*} originalType * @returns
src/utils/variableUtils.js:402
↓ 2 callersFunctiongetVariableListByKey
* 对需要添加到data里面的变量字符串进行初步处理 * @param {.} name
src/utils/variableUtils.js:724
↓ 2 callersFunctiongetWxParseDataNewVarName
* 获取wxParse组件数据的新的变量名 * @param {*} varName
src/transformers/component/wxParse-transformer.js:134
↓ 2 callersFunctionisImageUrl
(url)
src/project/template/wxcomponents/vant/uploader/utils.js:2
↓ 2 callersFunctionlifecycleFunctionHandle
* 生命周期函数处理 * @param {*} $ast * @param {*} lifecycleFnName 重合周期函数名 * @param {*} fileKey * @returns
src/transformers/lifecycle/lifecycle-transformer.js:44
↓ 2 callersFunctionmergeNodes
* @description 合并多个块级标签,加快长内容渲染 * @param {Array} nodes 要合并的标签数组
src/project/template/uni_modules/mp-html/components/mp-html/parser.js:145
↓ 2 callersFunctionn
()
src/project/template/uni_modules/mp-html/static/app-plus/mp-html/js/handler.js:1
↓ 2 callersFunctionnormalizePath
src/transformers/project/vue-cli/babel.config.js:21
↓ 2 callersFunctiononeLineToMultiLine
* 一行代码转多行代码 (还原http://lisperator.net/uglifyjs/压缩代码) * 1.用逗号连起来的:a = 5, this.fun1(), this.fun2(); * 2.使用&&进行判断:a && a = 5, b = 6; * 3.if (1 == a.is_
src/utils/restoreJSUtils.js:207
↓ 2 callersFunctionparseAppJSON
* 解析app.json * @param {*} miniprogramRoot * @returns
src/project/configHandle.js:530
↓ 2 callersFunctionparseOptions
(message)
src/project/template/wxcomponents/vant/notify/notify.js:14
↓ 2 callersFunctionparseOptions
(message)
src/project/template/wxcomponents/vant/toast/toast.js:16
↓ 2 callersFunctionparseTimeData
(time)
src/project/template/wxcomponents/vant/count-down/utils.js:12
↓ 2 callersFunctionpropWithDataDuplicateHandle
* 对prop进行赋值进行处理 * 创建一个变量接管这个prop变量的工作,并且替换掉所有引用 * @param {*} $jsAst * @param {*} $wxmlAst * @param {*} fileKey
src/transformers/variable/variable-transformer.js:566
↓ 2 callersFunctionrange
(num, min, max)
src/project/template/wxcomponents/vant/datetime-picker/index.js:8
↓ 2 callersFunctionrenameTemplateAttrVariable
* 对code里面,指定的变量名进行重命名 * * $data.user.name --> newName.user.name * * @param {*} content * @param {*} oldName * @param {*} newName * @param {*} i
src/utils/renameUtils.js:614
↓ 2 callersFunctionrenameTemplateVariable
* 替换template里面的变量名 * //js不支持重载... * renameTemplateVariable ($wxmlAst, replaceList) * renameTemplateVariable ($wxmlAst, oldName, newName) * * repl
src/utils/renameUtils.js:520
↓ 2 callersFunctionrouterApiFailEventHandle
(res, options)
src/project/template/polyfill/polyfill.js:973
↓ 2 callersFunctionrouterApiHandle
(oriLogFunc)
src/project/template/polyfill/polyfill.js:991
↓ 2 callersMethodrun
()
src/utils/ast/deobfuscator.js:76
↓ 2 callersFunctionselectorBuilder
(selector)
src/project/template/uni_modules/zp-mixins/methods/selectComponent.js:62
↓ 2 callersFunctionsequenceExpressionHandle
* * 展开SequenceExpression表达式 * * 示例1: * if(a=1, b=2, c===5){} * * 转换后: * * a=1; * b=2; * if(c===5){} * * 示例2: * return a = 1, b = 2, c = 3
src/utils/restoreJSUtils.js:437
↓ 2 callersFunctionsequenceExpressionHandle
* * 展开SequenceExpression表达式 * * 示例1: * if(a=1, b=2, c===5){} * * 转换后: * * a=1; * b=2; * if(c===5){} * * 示例2: * return a = 1, b = 2, c = 3
src/utils/ast/visitorar.js:947
↓ 2 callersFunctionsimpleTick
(fn)
src/project/template/wxcomponents/vant/count-down/index.js:3
↓ 2 callersFunctionswap
(arr, i, j)
src/project/configHandle.js:190
↓ 2 callersFunctiontemplateIsReplaceFn
* 标签template 有is的时 替换函数 * @param {*} match * @param {*} nodePath * @param {*} self * @param {*} templateImportList
src/transformers/tag/transform-include.js:134
next →1–100 of 897, ranked by callers