wechat-mini-program-extend
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -1,1 +0,1 @@ | ||
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _OptionInstaller=_interopRequireDefault(require("./OptionInstaller")),_MethodsInstaller=_interopRequireDefault(require("./MethodsInstaller")),_PropertiesInstaller=_interopRequireDefault(require("./PropertiesInstaller")),_DataInstaller=_interopRequireDefault(require("./DataInstaller")),_StateInstaller=_interopRequireDefault(require("./StateInstaller")),_ProviderInstaller=_interopRequireDefault(require("./ProviderInstaller")),_WatcherInstaller=_interopRequireDefault(require("./WatcherInstaller")),_ContextInstaller=_interopRequireDefault(require("./ContextInstaller")),_ComputedInstaller=_interopRequireDefault(require("./ComputedInstaller")),_MixinInstaller=_interopRequireDefault(require("./MixinInstaller")),_LifeCycleInstaller=_interopRequireDefault(require("./LifeCycleInstaller")),_InstanceInstaller=_interopRequireDefault(require("./InstanceInstaller")),_RelationsInstaller=_interopRequireDefault(require("./RelationsInstaller")),_EventBusInstaller=_interopRequireDefault(require("./EventBusInstaller")),_UpdateInstaller=_interopRequireDefault(require("./UpdateInstaller")),_Singleton2=require("../libs/Singleton"),_common=require("../utils/common"),_object=require("../utils/object"),_index=_interopRequireDefault(require("../libs/fast-deep-equal/index")),_Stream=require("../libs/Stream");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(r){var n=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(r);return _possibleConstructorReturn(this,n?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var InstallersSingleton=function(){_inherits(r,_Singleton2.Singleton);var t=_createSuper(r);function r(){var e;return _classCallCheck(this,r),_defineProperty(_assertThisInitialized(e=t.call(this,function(){return _toConsumableArray(e._installers.entries()).sort(function(e,t){return e[1]-t[1]}).map(function(e){return e[0]})})),"_installers",new Map),e}return _createClass(r,[{key:"prepare",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100;e instanceof _OptionInstaller.default&&(this._installers.has(e)||this._installers.set(e,t))}}]),r}(),MPExtender=function(){function e(){_classCallCheck(this,e),_defineProperty(this,"_installers",new InstallersSingleton),_defineProperty(this,"_context",new Map),this.use(new _MixinInstaller.default,5),this.use(new _MethodsInstaller.default,10),this.use(new _PropertiesInstaller.default,15),this.use(new _DataInstaller.default,20),this.use(new _StateInstaller.default,25),this.use(new _ComputedInstaller.default,30),this.use(new _ProviderInstaller.default,35),this.use(new _WatcherInstaller.default,40),this.use(new _LifeCycleInstaller.default,45),this.use(new _InstanceInstaller.default,95),this.use(new _EventBusInstaller.default,150),this.use(new _RelationsInstaller.default,200),this.use(new _ContextInstaller.default,250),this.use(new _UpdateInstaller.default,300)}return _createClass(e,[{key:"installers",get:function(){return this._installers.get()}},{key:"use",value:function(e){this._installers.prepare(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:50)}},{key:"createRuntimeCompatibleContext",value:function(i,n,r){var o=(0,_common.isPlainObject)(n)?Object.keys(n).filter(function(e){return(0,_common.isPlainObject)(n[e])&&(0,_common.isFunction)(n[e].get)||(0,_common.isFunction)(n[e])}):[],l=(0,_common.isPlainObject)(n)?Object.keys(n).filter(function(e){return(0,_common.isPlainObject)(n[e])&&(0,_common.isFunction)(n[e].set)}):[],a=(0,_object.createReactiveObject)(i.data,i.data,function(e,t){(0,_common.isFunction)(r)?r((0,_common.isNullOrEmpty)(e)?t:_defineProperty({},e,t)):Reflect.get(u,"setData").call(u,(0,_common.isNullOrEmpty)(e)?t:_defineProperty({},e,t)),l.includes(e)&&n[e].set.call(u,t),o.forEach(function(e){var t=(0,_common.isFunction)(n[e].get)?n[e].get:n[e],r=Reflect.get(u,e),t=t.call(u);(0,_index.default)(r,t)||Reflect.set(a,e,t)})}),u=new Proxy(i,{get:function(e,t,r){if("data"===t)return a;if(Reflect.has(e,t)){var n=Reflect.get(e,t);return(0,_common.isFunction)(n)?n.bind(e):n}return Reflect.has(a,t)?Reflect.get(a,t):Reflect.get(e,t)},set:function(e,t,r,n){return Reflect.has(a,t)?Reflect.set(a,t,r):Reflect.set(i,t,r)}});return u}},{key:"createRuntimeContextSingleton",value:function(){var i=this,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,u=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return new _Singleton2.Singleton(function(e,t,r,n){var o=i.createRuntimeCompatibleContext(e,r,n),l=Object.keys(t||{});return new Proxy(o,{get:function(r,e,t){if("$props"===e){var n={};return Object.keys(Reflect.get(r,"data")).filter(function(e){return l.includes(e)}).forEach(function(t){Object.defineProperty(n,t,{get:function(){return Reflect.get(r,t)},set:function(e){return Reflect.set(r,t,e)}})}),n}if("$data"!==e)return(0,_common.isFunction)(a)&&(0,_common.isFunction)(u)&&!0===a(e)?u(e,o):Reflect.get(r,e);var i={};return Object.keys(Reflect.get(r,"data")).filter(function(e){return!l.includes(e)}).forEach(function(t){Object.defineProperty(i,t,{get:function(){return Reflect.get(r,t)},set:function(e){return Reflect.set(r,t,e)}})}),i}})})}},{key:"createInitializationCompatibleContext",value:function(e,i,o,l){var a=new Proxy(e||{},{has:function(e,t){return i&&Reflect.has(i,t)||o&&Reflect.has(o,t)},get:function(e,t){return i&&Reflect.has(i,t)?Reflect.get(i,t):o&&Reflect.has(o,t)?o[t].value:Reflect.get(e,t)},set:function(e,t,r,n){return(0,_common.isPlainObject)(o)&&Reflect.has(o,t)?(o[t].value=r,!0):Reflect.has(i,t)?(i[t]=r,!0):Reflect.set(i,t,r)}});return new Proxy(e||{},{get:function(e,t,r){if("data"===t)return a;if((0,_common.isPlainObject)(l)&&Reflect.has(l,t)){var n=Reflect.get(l,t);return(0,_common.isFunction)(n)?n.bind(r):n}return Reflect.has(a,t)?Reflect.get(a,t):Reflect.get(e,t)},set:function(e,t,r,n){return Reflect.has(a,t)?Reflect.set(a,t,r):Reflect.set(e,t,r,n)}})}},{key:"createInitializationContextSingleton",value:function(){var t=this;return new _Singleton2.Singleton(function(o,l,a,e){var e=t.createInitializationCompatibleContext(o,l,a,e),u=Object.keys(a);return new Proxy(e,{get:function(r,e,t){if("$props"===e){var n={};return Object.keys(a).forEach(function(t){Object.defineProperty(n,t,{get:function(){return Reflect.get(r,t)},set:function(e){return Reflect.set(r,t,e)}})}),n}if("$data"!==e)return Reflect.get(r,e);var i={};return Object.keys(Object.assign({},(o||{}).data,l)).filter(function(e){return!u.includes(e)}).forEach(function(t){Object.defineProperty(i,t,{get:function(){return Reflect.get(r,t)},set:function(e){return Reflect.set(r,t,e)}})}),i},set:function(e,t,r,n){return Reflect.set(e,t,r,n)}})})}},{key:"extends",value:function(e){var n=this,i=e,o=this.installers,t={};o.forEach(function(e){e=e.configuration(n,n._context,i);e&&Object.assign(t,e)}),o.forEach(function(e){e.install(n,n._context,t)});var r={behaviors:[Behavior({definitionFilter:function(t,r){o.forEach(function(e){e.definitionFilter(n,n._context,i,t,r);e=e.behaviors();Array.isArray(e)&&e.length&&(t.behaviors=_Stream.Stream.of((t.behaviors||[]).concat(e)).distinct().collect(_Stream.Collectors.toList()))})}})]};return o.forEach(function(e){Object.assign(r,e.build(n,n._context,i))}),r}}]),e}();exports.default=MPExtender; | ||
"use strict";function _typeof(e){return(_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(exports,"__esModule",{value:!0}),exports.default=void 0;var _OptionInstaller=_interopRequireDefault(require("./OptionInstaller")),_MethodsInstaller=_interopRequireDefault(require("./MethodsInstaller")),_PropertiesInstaller=_interopRequireDefault(require("./PropertiesInstaller")),_DataInstaller=_interopRequireDefault(require("./DataInstaller")),_StateInstaller=_interopRequireDefault(require("./StateInstaller")),_ProviderInstaller=_interopRequireDefault(require("./ProviderInstaller")),_WatcherInstaller=_interopRequireDefault(require("./WatcherInstaller")),_ContextInstaller=_interopRequireDefault(require("./ContextInstaller")),_ComputedInstaller=_interopRequireDefault(require("./ComputedInstaller")),_MixinInstaller=_interopRequireDefault(require("./MixinInstaller")),_LifeCycleInstaller=_interopRequireDefault(require("./LifeCycleInstaller")),_InstanceInstaller=_interopRequireDefault(require("./InstanceInstaller")),_RelationsInstaller=_interopRequireDefault(require("./RelationsInstaller")),_EventBusInstaller=_interopRequireDefault(require("./EventBusInstaller")),_UpdateInstaller=_interopRequireDefault(require("./UpdateInstaller")),_Singleton2=require("../libs/Singleton"),_common=require("../utils/common"),_object=require("../utils/object"),_index=_interopRequireDefault(require("../libs/fast-deep-equal/index")),_Stream=require("../libs/Stream");function _interopRequireDefault(e){return e&&e.__esModule?e:{default:e}}function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Map"===(r="Object"===r&&e.constructor?e.constructor.name:r)||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _defineProperties(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}function _createClass(e,t,r){return t&&_defineProperties(e.prototype,t),r&&_defineProperties(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&_setPrototypeOf(e,t)}function _setPrototypeOf(e,t){return(_setPrototypeOf=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}function _createSuper(r){var n=_isNativeReflectConstruct();return function(){var e,t=_getPrototypeOf(r);return _possibleConstructorReturn(this,n?(e=_getPrototypeOf(this).constructor,Reflect.construct(t,arguments,e)):t.apply(this,arguments))}}function _possibleConstructorReturn(e,t){if(t&&("object"===_typeof(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return _assertThisInitialized(e)}function _assertThisInitialized(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function _isNativeReflectConstruct(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch(e){return!1}}function _getPrototypeOf(e){return(_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function _defineProperty(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var InstallersSingleton=function(){_inherits(r,_Singleton2.Singleton);var t=_createSuper(r);function r(){var e;return _classCallCheck(this,r),_defineProperty(_assertThisInitialized(e=t.call(this,function(){return _toConsumableArray(e._installers.entries()).sort(function(e,t){return e[1]-t[1]}).map(function(e){return e[0]})})),"_installers",new Map),e}return _createClass(r,[{key:"prepare",value:function(e){var t=1<arguments.length&&void 0!==arguments[1]?arguments[1]:100;e instanceof _OptionInstaller.default&&(this._installers.has(e)||this._installers.set(e,t))}}]),r}(),MPExtender=function(){function e(){_classCallCheck(this,e),_defineProperty(this,"_installers",new InstallersSingleton),_defineProperty(this,"_context",new Map),this.use(new _MixinInstaller.default,5),this.use(new _MethodsInstaller.default,10),this.use(new _PropertiesInstaller.default,15),this.use(new _DataInstaller.default,20),this.use(new _StateInstaller.default,25),this.use(new _ComputedInstaller.default,30),this.use(new _ProviderInstaller.default,35),this.use(new _WatcherInstaller.default,40),this.use(new _LifeCycleInstaller.default,45),this.use(new _InstanceInstaller.default,95),this.use(new _EventBusInstaller.default,150),this.use(new _RelationsInstaller.default,200),this.use(new _ContextInstaller.default,250),this.use(new _UpdateInstaller.default,300)}return _createClass(e,[{key:"installers",get:function(){return this._installers.get()}},{key:"use",value:function(e){this._installers.prepare(e,1<arguments.length&&void 0!==arguments[1]?arguments[1]:50)}},{key:"createRuntimeCompatibleContext",value:function(i,n,r){var o=(0,_common.isPlainObject)(n)?Object.keys(n).filter(function(e){return(0,_common.isPlainObject)(n[e])&&(0,_common.isFunction)(n[e].get)||(0,_common.isFunction)(n[e])}):[],l=(0,_common.isPlainObject)(n)?Object.keys(n).filter(function(e){return(0,_common.isPlainObject)(n[e])&&(0,_common.isFunction)(n[e].set)}):[],a=(0,_object.createReactiveObject)(i.data,i.data,function(e,t){(0,_common.isFunction)(r)?r((0,_common.isNullOrEmpty)(e)?t:_defineProperty({},e,t)):Reflect.get(u,"setData").call(u,(0,_common.isNullOrEmpty)(e)?t:_defineProperty({},e,t)),l.includes(e)&&n[e].set.call(u,t),o.forEach(function(e){var t=(0,_common.isFunction)(n[e].get)?n[e].get:n[e],r=Reflect.get(u,e),t=t.call(u);(0,_index.default)(r,t)||Reflect.set(a,e,t)})}),u=new Proxy(i,{get:function(e,t,r){if("data"===t)return a;if(Reflect.has(e,t)){var n=Reflect.get(e,t);return(0,_common.isFunction)(n)?n.bind(e):n}return Reflect.has(a,t)?Reflect.get(a,t):Reflect.get(e,t)},set:function(e,t,r,n){return Reflect.has(a,t)?Reflect.set(a,t,r):Reflect.set(i,t,r)}});return u}},{key:"createRuntimeContextSingleton",value:function(){var i=this,a=0<arguments.length&&void 0!==arguments[0]?arguments[0]:null,u=1<arguments.length&&void 0!==arguments[1]?arguments[1]:null;return new _Singleton2.Singleton(function(e,t,r,n){var o=i.createRuntimeCompatibleContext(e,r,n),l=Object.keys(t||{});return new Proxy(o,{get:function(r,e,t){if("$props"===e){var n={};return Object.keys(Reflect.get(r,"data")).filter(function(e){return l.includes(e)}).forEach(function(t){Object.defineProperty(n,t,{get:function(){return Reflect.get(r,t)},set:function(e){return Reflect.set(r,t,e)}})}),n}if("$data"!==e)return(0,_common.isFunction)(a)&&(0,_common.isFunction)(u)&&!0===a(e)?u(e,o):Reflect.get(r,e);var i={};return Object.keys(Reflect.get(r,"data")).filter(function(e){return!l.includes(e)}).forEach(function(t){Object.defineProperty(i,t,{get:function(){return Reflect.get(r,t)},set:function(e){return Reflect.set(r,t,e)}})}),i}})})}},{key:"createInitializationCompatibleContext",value:function(e,i,o,l){var a=new Proxy(e||{},{has:function(e,t){return i&&Reflect.has(i,t)||o&&Reflect.has(o,t)},get:function(e,t){return i&&Reflect.has(i,t)?Reflect.get(i,t):o&&Reflect.has(o,t)?o[t].value:Reflect.get(e,t)},set:function(e,t,r,n){return(0,_common.isPlainObject)(o)&&Reflect.has(o,t)?(o[t].value=r,!0):Reflect.has(i,t)?(i[t]=r,!0):Reflect.set(i,t,r)}});return new Proxy(e||{},{get:function(e,t,r){if("data"===t)return a;if((0,_common.isPlainObject)(l)&&Reflect.has(l,t)){var n=Reflect.get(l,t);return(0,_common.isFunction)(n)?n.bind(r):n}return Reflect.has(a,t)?Reflect.get(a,t):Reflect.get(e,t)},set:function(e,t,r,n){return Reflect.has(a,t)?Reflect.set(a,t,r):Reflect.set(e,t,r,n)}})}},{key:"createInitializationContextSingleton",value:function(){var t=this;return new _Singleton2.Singleton(function(o,l,a,e){var e=t.createInitializationCompatibleContext(o,l,a,e),u=Object.keys(a);return new Proxy(e,{get:function(r,e,t){if("$props"===e){var n={};return Object.keys(a).forEach(function(t){Object.defineProperty(n,t,{get:function(){return Reflect.get(r,t)},set:function(e){return Reflect.set(r,t,e)}})}),n}if("$data"!==e)return Reflect.get(r,e);var i={};return Object.keys(Object.assign({},(o||{}).data,l)).filter(function(e){return!u.includes(e)}).forEach(function(t){Object.defineProperty(i,t,{get:function(){return Reflect.get(r,t)},set:function(e){return Reflect.set(r,t,e)}})}),i},set:function(e,t,r,n){return Reflect.set(e,t,r,n)}})})}},{key:"extends",value:function(e){var n=this,i=e,o=this.installers,t={};o.forEach(function(e){e=e.configuration(n,n._context,i);e&&Object.assign(t,e)}),o.forEach(function(e){e.install(n,n._context,t)});var r={behaviors:[Behavior({definitionFilter:function(t,r){o.forEach(function(e){e.definitionFilter(n,n._context,i,t,r);e=e.behaviors();Array.isArray(e)&&e.length&&(t.behaviors=_Stream.Stream.of((t.behaviors||[]).concat(e)).distinct().collect(_Stream.Collectors.toList()))})}})]};return o.forEach(function(e){Object.assign(r,e.build(n,n._context,t))}),r}}]),e}();exports.default=MPExtender; |
{ | ||
"name": "wechat-mini-program-extend", | ||
"version": "1.1.2", | ||
"version": "1.1.3", | ||
"repository": "git@github.com:sitorhy/wechat-mini-program-extend.git", | ||
@@ -5,0 +5,0 @@ "author": "sitorhy <sitorhy>", |
@@ -310,3 +310,3 @@ # wechat-mini-program-extend | ||
🔴 指定`immediate = true`,侦听器初始化时会触发一次回调,但此时组件还没有触发`mounted`生命周期回调,所以还不能修改状态。 | ||
🔴 指定`immediate = true`,侦听器初始化时会触发一次回调。 | ||
@@ -349,4 +349,4 @@ ```javascript | ||
created | ||
onLoad | ||
mounted | ||
onLoad | ||
``` | ||
@@ -353,0 +353,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
177733