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

@opentiny/vue-button-group

Package Overview
Dependencies
Maintainers
1
Versions
65
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@opentiny/vue-button-group - npm Package Compare versions

Comparing version 2.6.7 to 2.7.0

11

lib/index.js

@@ -19,6 +19,3 @@ function _extends() {

var template = function template2(mode) {
if ("mobile" === (process.env.TINY_MODE || mode))
return MobileTemplate;
else
return PcTemplate;
return PcTemplate;
};

@@ -50,2 +47,6 @@ var ButtonGroup = defineComponent({

default: false
},
border: {
type: Boolean,
default: true
}

@@ -61,3 +62,3 @@ }),

});
var version = "3.7.0";
var version = "2.7.0";
ButtonGroup.model = {

@@ -64,0 +65,0 @@ prop: "modelValue",

@@ -60,4 +60,5 @@ import { renderless, api } from "@opentiny/vue-renderless/button-group/vue";

var __vue2_script = defineComponent({
props: [].concat(props, ["size", "data", "plain", "modelValue", "disabled", "valueField", "textField", "showMore", "showEdit"]),
var _sfc_main = defineComponent({
emits: ["change", "edit", "update:modelValue"],
props: [].concat(props, ["size", "data", "plain", "modelValue", "disabled", "valueField", "textField", "showMore", "showEdit", "border"]),
components: {

@@ -78,8 +79,8 @@ TinyPopover: Popover,

});
var render = function render2() {
var _vm = this;
var _h = _vm.$createElement;
var _c = _vm._self._c || _h;
var _sfc_render = function render() {
var _vm = this, _c = _vm._self._c;
_vm._self._setupProxy;
return _c("div", {
staticClass: "tiny-button-group"
staticClass: "tiny-button-group",
class: [_vm.size ? "tiny-button-group--" + _vm.size : "", _vm.border ? "" : "tiny-button-group--borderless"]
}, [_vm._t("default", function() {

@@ -97,4 +98,4 @@ return [!(_vm.showMore && _vm.showMore > 0) ? _c("ul", {

style: {
height: _vm.size == "medium" ? "42px" : _vm.size == "small" ? "36px" : _vm.size == "mini" ? "24px" : "",
"line-height": _vm.size == "medium" ? "40px" : _vm.size == "small" ? "34px" : _vm.size == "mini" ? "22px" : ""
height: _vm.size === "medium" ? "42px" : _vm.size === "small" ? "36px" : _vm.size === "mini" ? "24px" : "",
"line-height": _vm.size === "medium" ? "40px" : _vm.size === "small" ? "34px" : _vm.size === "mini" ? "22px" : ""
},

@@ -109,3 +110,12 @@ attrs: {

}
}, [_vm._v(" " + _vm._s(node[_vm.textField]) + " ")])]);
}, [_vm._v(" " + _vm._s(node[_vm.textField]) + " ")]), node.sup ? _c("span", {
class: ["tiny-group-item__sup", {
"tiny-group-item__sup-text": !node.sup.slot && !node.sup.icon && node.sup.text,
"tiny-group-item__sup-icon": !node.sup.slot && node.sup.icon
}, typeof node.sup.class === "string" ? node.sup.class : ""].concat(Array.isArray(node.sup.class) ? node.sup.class : [])
}, [node.sup.slot ? _vm._t(node.sup.slot, null, {
"sup": node.sup
}) : node.sup.icon ? _c(node.sup.icon, {
tag: "component"
}) : node.sup.text ? _c("span", [_vm._v(_vm._s(node.sup.text))]) : _vm._e()], 2) : _vm._e()]);
}), 0) : _c("ul", {

@@ -126,3 +136,12 @@ staticClass: "tiny-group-item show-more"

}
}, [_vm._v(" " + _vm._s(node[_vm.textField]) + " ")])], 1);
}, [_vm._v(" " + _vm._s(node[_vm.textField]) + " ")]), node.sup ? _c("span", {
class: ["tiny-group-item__sup", {
"tiny-group-item__sup-text": !node.sup.slot && !node.sup.icon && node.sup.text,
"tiny-group-item__sup-icon": !node.sup.slot && node.sup.icon
}, typeof node.sup.class === "string" ? node.sup.class : ""].concat(Array.isArray(node.sup.class) ? node.sup.class : [])
}, [node.sup.slot ? _vm._t(node.sup.slot, null, {
"sup": node.sup
}) : node.sup.icon ? _c(node.sup.icon, {
tag: "component"
}) : node.sup.text ? _c("span", [_vm._v(_vm._s(node.sup.text))]) : _vm._e()], 2) : _vm._e()], 1);
}), _vm.data.length > _vm.showMore ? _c("li", {

@@ -172,15 +191,7 @@ staticClass: "tiny-group-item__more"

};
var staticRenderFns = [];
var __cssModules = {};
var __component__ = /* @__PURE__ */ normalizeComponent(__vue2_script, render, staticRenderFns, false, __vue2_injectStyles, null, null, null);
function __vue2_injectStyles(context) {
for (var o in __cssModules) {
this[o] = __cssModules[o];
}
}
var pc = /* @__PURE__ */ function() {
return __component__.exports;
}();
var _sfc_staticRenderFns = [];
var __component__ = /* @__PURE__ */ normalizeComponent(_sfc_main, _sfc_render, _sfc_staticRenderFns, false, null, null, null, null);
var pc = __component__.exports;
export {
pc as default
};
{
"name": "@opentiny/vue-button-group",
"version": "2.6.7",
"version": "2.7.0",
"description": "",
"main": "./lib/index.js",
"module": "./lib/index.js",
"sideEffects": false,
"dependencies": {
"@opentiny/vue-common": "~2.6.7",
"@opentiny/vue-renderless": "~3.6.6"
"@opentiny/vue-common": "~2.7.0",
"@opentiny/vue-renderless": "~3.9.0"
},

@@ -10,0 +12,0 @@ "license": "MIT",

@@ -1,6 +0,6 @@

declare const _default: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data> & import("@vue/composition-api").Data, {}, {}, {
declare const _default: import("@opentiny/vue-common").DefineComponent<{
size: StringConstructor;
data: ArrayConstructor;
plain: BooleanConstructor;
modelValue: (StringConstructor | NumberConstructor)[];
modelValue: (NumberConstructor | StringConstructor)[];
disabled: BooleanConstructor;

@@ -20,40 +20,50 @@ valueField: {

};
}, {
plain: boolean;
disabled: boolean;
border: {
type: BooleanConstructor;
default: boolean;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}, {}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, {}, string, Readonly<import("@opentiny/vue-common").ExtractPropTypes<{
size: StringConstructor;
data: ArrayConstructor;
plain: BooleanConstructor;
modelValue: (NumberConstructor | StringConstructor)[];
disabled: BooleanConstructor;
valueField: {
type: StringConstructor;
default: string;
};
textField: {
type: StringConstructor;
default: string;
};
showMore: NumberConstructor;
showEdit: {
type: BooleanConstructor;
default: boolean;
};
border: {
type: BooleanConstructor;
default: boolean;
};
tiny_mode: StringConstructor;
tiny_mode_root: BooleanConstructor;
tiny_template: (ObjectConstructor | FunctionConstructor)[];
tiny_renderless: FunctionConstructor;
tiny_theme: StringConstructor;
tiny_chart_theme: ObjectConstructor;
}>>, {
textField: string;
valueField: string;
textField: string;
showEdit: boolean;
} & {
data?: unknown[] | undefined;
size?: string | undefined;
showMore?: number | undefined;
modelValue?: string | number | undefined;
}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
plain: boolean;
tiny_mode_root: boolean;
disabled: boolean;
valueField: string;
textField: string;
showEdit: boolean;
} & {
data?: unknown[] | undefined;
size?: string | undefined;
showMore?: number | undefined;
modelValue?: string | number | undefined;
}, import("@vue/composition-api").ShallowUnwrapRef<import("@vue/composition-api").Data>, import("@vue/composition-api").Data, {}, {}, {
plain: boolean;
disabled: boolean;
valueField: string;
textField: string;
showEdit: boolean;
} & {
data?: unknown[] | undefined;
size?: string | undefined;
showMore?: number | undefined;
modelValue?: string | number | undefined;
}, {
valueField: string;
textField: string;
showEdit: boolean;
}, true>);
border: boolean;
}>;
export default _default;

@@ -1,15 +0,4 @@

declare const _sfc_main: import("vue").ComponentOptions<import("vue").default, import("@vue/composition-api").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;
vm: any;
f: (props: any, attrs?: {}) => {};
a: (attrs: any, filters: any, include: any) => {};
d: (props: any) => void;
dp: (props: any) => void;
}> & import("@vue/composition-api").Data, {}, {}, Readonly<{
declare const _sfc_main: import("@opentiny/vue-common").DefineComponent<Readonly<{
[x: string]: any;
}>, {
[x: string]: any;
} & {}> & import("vue").VueConstructor<import("vue").default> & (new (...args: any[]) => import("@vue/composition-api").ComponentRenderProxy<{
[x: string]: any;
} & {}, import("@vue/composition-api").ShallowUnwrapRef<{
t: (this: any, path: any, options?: any) => any;

@@ -21,7 +10,9 @@ vm: any;

dp: (props: any) => void;
}>, import("@vue/composition-api").Data, {}, {}, {
gcls: (key: any) => any;
m: (...cssClasses: any[]) => string;
}, {}, {}, {}, import("vue/types/v3-component-options.js").ComponentOptionsMixin, import("vue/types/v3-component-options.js").ComponentOptionsMixin, ("update:modelValue" | "change" | "edit")[], string, Readonly<import("@opentiny/vue-common").ExtractPropTypes<Readonly<{
[x: string]: any;
} & {}, {
}>>>, {
[x: string]: any;
}, true>);
}>;
export default _sfc_main;
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