Skip to content

Commit

Permalink
new version that changes href on property change
Browse files Browse the repository at this point in the history
  • Loading branch information
alevilar committed Jul 14, 2022
1 parent 1547249 commit 6578664
Show file tree
Hide file tree
Showing 28 changed files with 6,268 additions and 5,870 deletions.
10 changes: 6 additions & 4 deletions dist/cjs/index-65cc7d72.js → dist/cjs/index-79a24b0d.js
Original file line number Diff line number Diff line change
Expand Up @@ -551,10 +551,8 @@ const dispatchHooks = (hostRef, isInitialLoad) => {
const endSchedule = createTime('scheduleUpdate', hostRef.$cmpMeta$.$tagName$);
const instance = hostRef.$lazyInstance$ ;
let promise;
if (isInitialLoad) {
{
promise = safeCall(instance, 'componentWillLoad');
}
{
promise = then(promise, () => safeCall(instance, 'componentWillRender'));
}
endSchedule();
return then(promise, () => updateComponent(hostRef, instance, isInitialLoad));
Expand Down Expand Up @@ -689,6 +687,10 @@ const parsePropertyValue = (propValue, propType) => {
// but we'll cheat here and say that the string "false" is the boolean false
return propValue === 'false' ? false : propValue === '' || !!propValue;
}
if (propType & 2 /* Number */) {
// force it to be a number
return parseFloat(propValue);
}
if (propType & 1 /* String */) {
// could have been passed as a number or boolean
// but we still want it as a string
Expand Down
4 changes: 2 additions & 2 deletions dist/cjs/loader.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Object.defineProperty(exports, '__esModule', { value: true });

const index = require('./index-65cc7d72.js');
const index = require('./index-79a24b0d.js');

/*
Stencil Client Patch Esm v2.13.0 | MIT Licensed | https://stenciljs.com
Expand All @@ -14,7 +14,7 @@ const patchEsm = () => {
const defineCustomElements = (win, options) => {
if (typeof window === 'undefined') return Promise.resolve();
return patchEsm().then(() => {
return index.bootstrapLazy([["qr-pay.cjs",[[1,"qr-pay",{"href":[1],"done":[4],"qr":[32]}]]]], options);
return index.bootstrapLazy([["qr-pay.cjs",[[1,"qr-pay",{"href":[1],"done":[4],"background":[1],"color":[1],"width":[2],"options":[32]}]]]], options);
});
};

Expand Down
Loading

0 comments on commit 6578664

Please sign in to comment.