public
This commit is contained in:
10
public/mp-weixin/js_sdk/uni-simple-router/link.js
Normal file
10
public/mp-weixin/js_sdk/uni-simple-router/link.js
Normal file
@ -0,0 +1,10 @@
|
||||
(global["webpackJsonp"]=global["webpackJsonp"]||[]).push([["js_sdk/uni-simple-router/link"],{"0e98":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return r})),n.d(e,"a",(function(){}));var a=function(){var t=this.$createElement;this._self._c},r=[]},"52c1":function(t,e,n){"use strict";n.r(e);var a=n("8f9a"),r=n.n(a);for(var u in a)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return a[t]}))}(u);e["default"]=r.a},"898b":function(t,e,n){"use strict";n.r(e);var a=n("0e98"),r=n("52c1");for(var u in r)["default"].indexOf(u)<0&&function(t){n.d(e,t,(function(){return r[t]}))}(u);var o=n("828b"),l=Object(o["a"])(r["default"],a["b"],a["c"],!1,null,null,null,!1,a["a"],void 0);e["default"]=l.exports},"8f9a":function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var a={push:"push",replace:"replace",replaceAll:"replaceAll",pushTab:"pushTab",back:"back"},r={props:{to:{type:[String,Object],required:!0},stopNavto:{type:Boolean,default:!1},navType:{type:String,default:"push"},level:{type:Number,default:1},append:{type:Boolean,default:!1}},methods:{formatNav:function(t){if(null!=t&&t.constructor===String){t=t.replace(/\'/g,""),t=t.replace(/(\w+)(?=:)/g,(function(t){return'"'.concat(t,'"')})),t=t.replace(/:\s*([^,{}\s"]+)/g,(function(t){var e=t.split(":");return':"'.concat(e[1].trim(),'"')}));try{t=JSON.parse(t)}catch(n){}}if(this.append){var e=this.$Route.path.split("/");e.splice(e.length-this.level,this.level),e=e.join("/"),t.constructor===Object?t.path&&(t.path=e+t.path):t=e+t}return t},gotoPage:function(){if(this.stopNavto)return!0;var t=a[this.navType];if(null==t)return console.error(' "navType" unknown type \n\n value:'.concat(Object.values(a).join("、")));var e=this.formatNav(this.to);this.$Router[t](e)}}};e.default=r}}]);
|
||||
;(global["webpackJsonp"] = global["webpackJsonp"] || []).push([
|
||||
'js_sdk/uni-simple-router/link-create-component',
|
||||
{
|
||||
'js_sdk/uni-simple-router/link-create-component':(function(module, exports, __webpack_require__){
|
||||
__webpack_require__('df3c')['createComponent'](__webpack_require__("898b"))
|
||||
})
|
||||
},
|
||||
[['js_sdk/uni-simple-router/link-create-component']]
|
||||
]);
|
||||
4
public/mp-weixin/js_sdk/uni-simple-router/link.json
Normal file
4
public/mp-weixin/js_sdk/uni-simple-router/link.json
Normal file
@ -0,0 +1,4 @@
|
||||
{
|
||||
"component": true,
|
||||
"usingComponents": {}
|
||||
}
|
||||
1
public/mp-weixin/js_sdk/uni-simple-router/link.wxml
Normal file
1
public/mp-weixin/js_sdk/uni-simple-router/link.wxml
Normal file
@ -0,0 +1 @@
|
||||
<view data-event-opts="{{[['tap',[['gotoPage']]]]}}" catchtap="__e"><slot></slot></view>
|
||||
Reference in New Issue
Block a user