Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

quasar-app-extension-qribbon

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

quasar-app-extension-qribbon - npm Package Compare versions

Comparing version 1.0.0-alpha.1 to 1.0.0-alpha.2

2

package.json
{
"name": "quasar-app-extension-qribbon",
"version": "1.0.0-alpha.1",
"version": "1.0.0-alpha.2",
"description": "QRibbon - Quasar App Extension",

@@ -5,0 +5,0 @@ "author": "Allan Gaunt <allangaunt@gmail.com>",

@@ -6,6 +6,6 @@ QRibbon (qribbon)

![npm (scoped)](https://img.shields.io/npm/v/@quasar/quasar-app-extension-qribbon.svg?style=plastic)
[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/quasarframework/app-extension-qribbon.svg)]()
[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/quasarframework/app-extension-qribbon.svg)]()
[![npm](https://img.shields.io/npm/dt/@quasar/quasar-app-extension-qribbon.svg)](https://www.npmjs.com/package/@quasar/quasar-app-extension-qribbon)
![npm (scoped)](https://img.shields.io/npm/v/quasar-app-extension-qribbon.svg?style=plastic)
[![GitHub code size in bytes](https://img.shields.io/github/languages/code-size/webnoob/app-extension-qribbon.svg)]()
[![GitHub repo size in bytes](https://img.shields.io/github/repo-size/webnoob/app-extension-qribbon.svg)]()
[![npm](https://img.shields.io/npm/dt/@quasar/quasar-app-extension-qribbon.svg)](https://www.npmjs.com/package/quasar-app-extension-qribbon)

@@ -12,0 +12,0 @@ QRibbon is an `UI App Extension` for [Quasar Framework v1](https://quasar.dev/). It will not work with legacy versions of Quasar Framework.

@@ -23,9 +23,8 @@ import Vue from 'vue'

validator: (val) => [
'top left',
'top right',
'bottom left',
'bottom right',
'top-left',
'top-right',
'bottom-left',
'bottom-right',
'left',
'right',
'full'
'right'
].includes(val)

@@ -35,7 +34,33 @@ },

type: String,
default: 'default',
default: 'horizontal',
validator: (val) => [
'default',
'horizontal',
'vertical',
'corner'
].includes(val)
},
leafPosition: {
type: String,
default: 'bottom',
validator: (val) => [
'top',
'bottom',
'left',
'right'
].includes(val)
},
size: {
type: String,
validator: (val) => [
'full'
].includes(val)
},
decoration: {
type: String,
validator: (val) => [
'round-in',
'triangle-in',
'round-out',
'triangle-out'
].includes(val)
}

@@ -45,4 +70,7 @@ },

computed: {
typeClass () {
return `qribbon__${this.type}`
ribbonClass () {
let className = `qribbon__${this.type}--${this.position}`
if (this.size !== void 0) className += `-${this.size}`
if (this.leafPosition !== void 0) className += ` leaf-${this.leafPosition}`
return className
},

@@ -61,6 +89,3 @@ styles () {

return h('div', {
staticClass: this.typeClass,
class: {
[this.position]: true
},
staticClass: this.ribbonClass,
style: this.styles

@@ -72,6 +97,3 @@ }, slot(this, 'default'))

return h('div', {
staticClass: this.typeClass,
class: {
[this.position]: true
},
staticClass: this.ribbonClass,
style: this.styles

@@ -78,0 +100,0 @@ }, [

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc