@opentiny/vue-modal
Advanced tools
Comparing version 2.16.0 to 2.16.1
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function(n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) | ||
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -189,3 +185,3 @@ import { defineComponent, $prefix, $setup, $props, setupComponent, createComponent } from "@opentiny/vue-common"; | ||
}); | ||
var version = "2.16.0"; | ||
var version = "2.undefined"; | ||
TINYModal.version = version; | ||
@@ -192,0 +188,0 @@ TINYModal.model = { |
@@ -63,14 +63,10 @@ import { defineComponent, $props, setup, h } from '@opentiny/vue-common'; | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function(n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) | ||
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -77,0 +73,0 @@ var mode = { |
@@ -62,14 +62,10 @@ import Button from '@opentiny/vue-button'; | ||
function _extends() { | ||
_extends = Object.assign ? Object.assign.bind() : function(target) { | ||
for (var i = 1; i < arguments.length; i++) { | ||
var source = arguments[i]; | ||
for (var key in source) { | ||
if (Object.prototype.hasOwnProperty.call(source, key)) { | ||
target[key] = source[key]; | ||
} | ||
} | ||
return _extends = Object.assign ? Object.assign.bind() : function(n) { | ||
for (var e = 1; e < arguments.length; e++) { | ||
var t = arguments[e]; | ||
for (var r in t) | ||
({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); | ||
} | ||
return target; | ||
}; | ||
return _extends.apply(this, arguments); | ||
return n; | ||
}, _extends.apply(null, arguments); | ||
} | ||
@@ -141,3 +137,3 @@ var __vue2_script = defineComponent({ | ||
} | ||
}, [status && state.theme === "saas" ? h("div", { | ||
}, [status ? h("div", { | ||
class: "tiny-modal__status-wrapper" | ||
@@ -150,9 +146,3 @@ }, [typeof status === "string" ? h(STATUS_MAPPING_COMPINENT[status.toUpperCase()], { | ||
class: "tiny-modal__title" | ||
}, [typeof status === "string" ? h(STATUS_MAPPING_COMPINENT[status.toUpperCase()], { | ||
class: [constants.STATUS_MAPPING_CLASSS[status.toUpperCase()]], | ||
style: "display: inline-block; margin-right: 5px;" | ||
}) : h(status, { | ||
class: ["tiny-modal__status-icon"], | ||
style: "display: inline-block; margin-right: 5px;" | ||
}), h("span", title || t("ui.alert.title"))]), resize ? h(zoomLocat ? iconMinscreenLeft() : iconFullscreenLeft(), { | ||
}, title || t("ui.alert.title")), resize ? h(zoomLocat ? iconMinscreenLeft() : iconFullscreenLeft(), { | ||
class: ["tiny-modal__zoom-btn", "trigger__btn"], | ||
@@ -169,5 +159,5 @@ on: { | ||
class: ["tiny-modal__body", type === "message" ? "is-message" : ""] | ||
}, [status && state.theme !== "saas" ? h("div", { | ||
}, [type === "message" ? h("div", { | ||
class: "tiny-modal__status-wrapper" | ||
}, [typeof status === "string" && type === "message" ? h(STATUS_MAPPING_COMPINENT[status.toUpperCase()], { | ||
}, [typeof status === "string" ? h(STATUS_MAPPING_COMPINENT[status.toUpperCase()], { | ||
class: [constants.STATUS_MAPPING_CLASSS[status.toUpperCase()]] | ||
@@ -206,3 +196,8 @@ }) : h(status, { | ||
} | ||
}, confirmContent || t("ui.button.confirm"))] : [h(Button, { | ||
}, confirmContent || t("ui.button.confirm"))] : [type === "confirm" ? h(Button, { | ||
on: { | ||
click: this.cancelEvent | ||
}, | ||
props: _extends({}, cancelButtonProps) | ||
}, cancelButtonText) : null, h(Button, { | ||
props: _extends({ | ||
@@ -214,8 +209,3 @@ type: "primary" | ||
} | ||
}, confirmButtonText), type === "confirm" ? h(Button, { | ||
on: { | ||
click: this.cancelEvent | ||
}, | ||
props: _extends({}, cancelButtonProps) | ||
}, cancelButtonText) : null]) : null, !isMsg && resize ? h("span", { | ||
}, confirmButtonText)]) : null, !isMsg && resize ? h("span", { | ||
class: "tiny-modal__resize" | ||
@@ -222,0 +212,0 @@ }, ["wl", "wr", "swst", "sest", "st", "swlb", "selb", "sb"].map(function(type2) { |
{ | ||
"name": "@opentiny/vue-modal", | ||
"version": "2.16.0", | ||
"version": "2.16.1", | ||
"description": "", | ||
@@ -5,0 +5,0 @@ "main": "./lib/index.js", |
@@ -87,3 +87,3 @@ export declare const $constants: { | ||
maskClosable: BooleanConstructor; | ||
message: (StringConstructor | ObjectConstructor | FunctionConstructor)[]; | ||
message: (ObjectConstructor | StringConstructor | FunctionConstructor)[]; | ||
minHeight: { | ||
@@ -105,3 +105,3 @@ type: (StringConstructor | NumberConstructor)[]; | ||
status: { | ||
type: (StringConstructor | ObjectConstructor)[]; | ||
type: (ObjectConstructor | StringConstructor)[]; | ||
default: string; | ||
@@ -108,0 +108,0 @@ }; |
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
45576
1325