@infinitoui/infinito-button
Advanced tools
Comparing version 1.0.0 to 1.4.0
@@ -6,2 +6,13 @@ # Change Log | ||
# [1.4.0](http://git.infinitynewtab.com/Starlab/infinitoui/compare/v1.3.0...v1.4.0) (2020-12-30) | ||
### Features | ||
* **button:** truncate ([eb44aaf](http://git.infinitynewtab.com/Starlab/infinitoui/commits/eb44aaf17f42dc9c5404d757e5d213a8c49d7f8f)) | ||
# [1.0.0](http://git.infinitynewtab.com/Starlab/infinitoui/compare/v0.2.0...v1.0.0) (2020-10-19) | ||
@@ -8,0 +19,0 @@ |
import { css } from 'lit-element'; | ||
export default css `:host{--button-color: #fff;--button-padding: 0 8px;--border-color: #333;--border-raduis: 6px;--font-color: #333;--font-size: 14px;--hover-color: #333;--hover-font-color: #fff;display:inline-block;font-size:14px}:host([primary]){--button-color: #333;--font-color: #fff}:host([disabled]) button{opacity:0.5;cursor:not-allowed}button{position:relative;display:flex;justify-content:center;align-items:center;width:100%;height:100%;min-height:32px;padding:var(--button-padding);color:var(--font-color);font-size:var(--font-size);text-align:center;border:1px solid var(--border-color);background:var(--button-color);border-radius:var(--border-raduis);outline:none;overflow:hidden;cursor:pointer;transition:all .3s}button:hover{color:var(--hover-font-color);background:var(--hover-color)} | ||
`; | ||
//# sourceMappingURL=infinito-button-css.js.map |
@@ -65,2 +65,1 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) { | ||
export { InfinitoButton }; | ||
//# sourceMappingURL=infinito-button.js.map |
{ | ||
"name": "@infinitoui/infinito-button", | ||
"version": "1.0.0", | ||
"version": "1.4.0", | ||
"description": "button", | ||
@@ -26,3 +26,3 @@ "main": "lib/infinito-button.js", | ||
}, | ||
"gitHead": "996cca27eab7d660c72bf39a5b1b7822675d755e" | ||
"gitHead": "d8f3a8b2577fab74e7a1c63e046dca0506ddcfa7" | ||
} |
@@ -31,14 +31,6 @@ import { customElement, LitElement, html, property, TemplateResult } from 'lit-element' | ||
/** | ||
* 按钮文字 | ||
* @type {string} | ||
* @attr label | ||
*/ | ||
@property({ type: String }) label = '' | ||
render(): TemplateResult { | ||
return html` | ||
<button ?disabled="${this.disabled}" > | ||
<span>${this.label}</span> | ||
<slot></slot> | ||
<span><slot></slot></span> | ||
</button> | ||
@@ -45,0 +37,0 @@ ` |
Sorry, the diff of this file is not supported yet
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
16946
186