msc-circle-progress
Advanced tools
Comparing version 1.0.1 to 1.0.2
@@ -16,3 +16,3 @@ import { _wcl } from './common-lib.js'; | ||
max: 100, | ||
round: true | ||
round: false | ||
}; | ||
@@ -152,3 +152,3 @@ | ||
// upgradeProperty | ||
Object.keys(defaults).forEach((key) => this._upgradeProperty(key)); | ||
Object.keys(defaults).forEach((key) => this.#upgradeProperty(key)); | ||
@@ -160,3 +160,3 @@ // evts | ||
this._onValue(); | ||
this.#onValue(); | ||
this._onRefresh(); | ||
@@ -171,3 +171,3 @@ } | ||
_format(attrName, oldValue, newValue) { | ||
#format(attrName, oldValue, newValue) { | ||
const hasValue = newValue !== null; | ||
@@ -220,3 +220,3 @@ | ||
this._format(attrName, oldValue, newValue); | ||
this.#format(attrName, oldValue, newValue); | ||
@@ -234,3 +234,3 @@ switch (attrName) { | ||
case 'value': | ||
this._onValue(); | ||
this.#onValue(); | ||
break; | ||
@@ -244,3 +244,3 @@ } | ||
_upgradeProperty(prop) { | ||
#upgradeProperty(prop) { | ||
let value; | ||
@@ -310,3 +310,3 @@ | ||
_onValue() { | ||
#onValue() { | ||
const value = (this.value / this.max) * 100; | ||
@@ -313,0 +313,0 @@ |
{ | ||
"name": "msc-circle-progress", | ||
"version": "1.0.1", | ||
"version": "1.0.2", | ||
"description": "<msc-circle-progress /> provides progress with circle shape. Developers could use it to indicate upload、form complete status for users.", | ||
@@ -5,0 +5,0 @@ "main": "index.html", |
@@ -148,3 +148,3 @@ # msc-circle-progress | ||
It will switch <msc-circle-progress /> bar as round once set. Default is `true` (not set). | ||
It will switch <msc-circle-progress /> bar as round once set. Default is `false` (not set). | ||
@@ -166,3 +166,3 @@ ```html | ||
| max | Number | Getter / Setter for max. Default is `100`. | | ||
| round | Boolean | Getter / Setter for round. Default is `true`. | | ||
| round | Boolean | Getter / Setter for round. Default is `false`. | | ||
@@ -169,0 +169,0 @@ ## Method |
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
51090