@opentiny/vue-exception
Advanced tools
Comparing version 2.11.0 to 2.12.0
@@ -57,3 +57,3 @@ function _extends() { | ||
}; | ||
var version = "2.11.0"; | ||
var version = "2.12.0"; | ||
Exception.install = function(Vue) { | ||
@@ -60,0 +60,0 @@ Vue.component(Exception.name, Exception); |
@@ -84,3 +84,3 @@ function _extends() { | ||
noperm: "ui.exception.nopermmf", | ||
weaknet: "ui.exception.weaknet", | ||
weaknet: "ui.exception.weaknetmf", | ||
noresult: "ui.exception.noresult", | ||
@@ -97,2 +97,3 @@ nonews: "ui.exception.nonews", | ||
}, | ||
emits: ["click"], | ||
props: _extends({}, $props, { | ||
@@ -109,3 +110,2 @@ _constants: { | ||
}, | ||
message: String, | ||
subMessage: String, | ||
@@ -150,7 +150,17 @@ exceptionClass: String, | ||
return _c("div", { | ||
class: _vm.m("flex t-0 justify-center items-center w-full h-full bg-color-bg-1 text-center", _vm.exceptionClass) | ||
}, [_c("div", [_c("div", { | ||
staticClass: "bg-cover" | ||
class: _vm.m("flex t-0 justify-center items-center w-full h-full bg-color-bg-1 text-center", _vm.exceptionClass), | ||
attrs: { | ||
"data-tag": "tiny-exception" | ||
} | ||
}, [_c("div", { | ||
attrs: { | ||
"data-tag": "tiny-exception-body" | ||
} | ||
}, [_c("div", { | ||
staticClass: "bg-cover", | ||
attrs: { | ||
"data-tag": "tiny-exception-image" | ||
} | ||
}, [_vm.state.urlType ? _c("img", { | ||
class: ["inline-block", _vm.componentPage ? "w-[6.25rem]" : "w-[12.5rem]"], | ||
class: ["inline-block", _vm.componentPage ? "w-24" : "w-52"], | ||
attrs: { | ||
@@ -161,6 +171,16 @@ "src": _vm.state.images[_vm.state.urlType], | ||
}) : _vm._e()]), _vm._t("content", function() { | ||
return [_c("div", [_c("div", { | ||
class: ["text-color-text-primary mt-2 text-center text-base", _vm.componentPage ? "sm:text-xs" : "sm:text-sm"] | ||
return [_c("div", { | ||
attrs: { | ||
"data-tag": "tiny-exception-description" | ||
} | ||
}, [_c("div", { | ||
class: ["text-color-text-primary mt-1 text-center text-sm", _vm.componentPage ? "sm:text-xs" : "sm:text-sm"], | ||
attrs: { | ||
"data-tag": "tiny-exception-componentpage" | ||
} | ||
}, [_vm._v(" " + _vm._s(_vm.t(_vm._constants[_vm.type])) + " ")]), _vm.subMessage ? _c("div", { | ||
staticClass: "leading-[1.375rem] sm:leading-3 sm:text-xs mt-1 sm:mt-2 text-color-icon-placeholder" | ||
staticClass: "leading-5.5 sm:leading-3 sm:text-xs mt-1 sm:mt-2 text-color-icon-placeholder", | ||
attrs: { | ||
"data-tag": "tiny-exception-submessage" | ||
} | ||
}, [_vm._v(" " + _vm._s(_vm.subMessage) + " ")]) : _vm._e(), _c("div", { | ||
@@ -167,0 +187,0 @@ staticClass: "sm:mt-4 mt-6 inline-block" |
{ | ||
"name": "@opentiny/vue-exception", | ||
"version": "2.11.0", | ||
"version": "2.12.0", | ||
"description": "", | ||
@@ -10,5 +10,5 @@ "main": "./lib/index.js", | ||
"dependencies": { | ||
"@opentiny/vue-renderless": "~3.11.0", | ||
"@opentiny/vue-common": "~2.11.0", | ||
"@opentiny/vue-button": "~2.11.0" | ||
"@opentiny/vue-renderless": "~3.12.0", | ||
"@opentiny/vue-common": "~2.12.0", | ||
"@opentiny/vue-button": "~2.12.0" | ||
}, | ||
@@ -15,0 +15,0 @@ "license": "MIT", |
15152
444
+ Added@opentiny/vue-button@2.12.0(transitive)
+ Added@opentiny/vue-common@2.12.0(transitive)
+ Added@opentiny/vue-icon@2.12.0(transitive)
+ Added@opentiny/vue-locale@2.12.0(transitive)
+ Added@opentiny/vue-renderless@3.12.1(transitive)
+ Added@opentiny/vue-theme@3.12.1(transitive)
+ Added@opentiny/vue-theme-mobile@3.12.0(transitive)
- Removed@opentiny/vue-button@2.11.0(transitive)
- Removed@opentiny/vue-common@2.11.0(transitive)
- Removed@opentiny/vue-icon@2.11.0(transitive)
- Removed@opentiny/vue-locale@2.11.0(transitive)
- Removed@opentiny/vue-renderless@3.11.8(transitive)
- Removed@opentiny/vue-theme@3.11.6(transitive)
- Removed@opentiny/vue-theme-mobile@3.11.1(transitive)
Updated@opentiny/vue-button@~2.12.0
Updated@opentiny/vue-common@~2.12.0