@94ai/nf-confirm 3.2.32 → 3.2.35
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/lib/index.d.ts
CHANGED
|
@@ -12,6 +12,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
12
12
|
loading: boolean;
|
|
13
13
|
onCancel: null;
|
|
14
14
|
onConfirm: null;
|
|
15
|
+
dangerouslyUseHTMLString: boolean;
|
|
15
16
|
}, Readonly<import("vue-demi").ExtractPropTypes<{}>>, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}, {}, true, import("vue/types/v3-component-options").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, any>> & Readonly<Readonly<import("vue-demi").ExtractPropTypes<{}>>> & import("vue-demi").ShallowUnwrapRef<any> & {
|
|
16
17
|
visible: boolean;
|
|
17
18
|
width: number;
|
|
@@ -25,6 +26,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
25
26
|
loading: boolean;
|
|
26
27
|
onCancel: null;
|
|
27
28
|
onConfirm: null;
|
|
29
|
+
dangerouslyUseHTMLString: boolean;
|
|
28
30
|
} & import("vue/types/v3-component-options").ExtractComputedReturns<{
|
|
29
31
|
typeClass(): string;
|
|
30
32
|
}> & import("vue-demi").ComponentCustomProperties & Readonly<import("vue-demi").ExtractPropTypes<{}>>, any, any, any, import("vue-demi").ComponentComputedOptions, import("vue-demi").ComponentMethodOptions> & import("vue/types/v3-component-options").ComponentOptionsBase<Readonly<import("vue-demi").ExtractPropTypes<{}>>, any, {
|
|
@@ -40,6 +42,7 @@ declare const _default: import("vue/types/v3-component-public-instance").Compone
|
|
|
40
42
|
loading: boolean;
|
|
41
43
|
onCancel: null;
|
|
42
44
|
onConfirm: null;
|
|
45
|
+
dangerouslyUseHTMLString: boolean;
|
|
43
46
|
}, {
|
|
44
47
|
typeClass(): string;
|
|
45
48
|
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, {}> & {
|
package/lib/nf-confirm.cjs.js
CHANGED
|
@@ -23,7 +23,8 @@ const _sfc_main = vueDemi.defineComponent({
|
|
|
23
23
|
confirmButtonText: "确定",
|
|
24
24
|
loading: false,
|
|
25
25
|
onCancel: null,
|
|
26
|
-
onConfirm: null
|
|
26
|
+
onConfirm: null,
|
|
27
|
+
dangerouslyUseHTMLString: false
|
|
27
28
|
};
|
|
28
29
|
},
|
|
29
30
|
computed: {
|
|
@@ -81,9 +82,14 @@ var _sfc_render = function render() {
|
|
|
81
82
|
staticClass: "nf-confirm__inner"
|
|
82
83
|
}, [_c("h2", {
|
|
83
84
|
staticClass: "nf-confirm__title"
|
|
84
|
-
}, [_vm._v(_vm._s(_vm.title))]), _c("p", {
|
|
85
|
+
}, [_vm._v(_vm._s(_vm.title))]), !_vm.dangerouslyUseHTMLString ? _c("p", {
|
|
85
86
|
staticClass: "nf-confirm__content"
|
|
86
|
-
}, [_vm._v(_vm._s(_vm.message))])
|
|
87
|
+
}, [_vm._v(_vm._s(_vm.message))]) : _c("p", {
|
|
88
|
+
staticClass: "nf-confirm__content",
|
|
89
|
+
domProps: {
|
|
90
|
+
"innerHTML": _vm._s(_vm.message)
|
|
91
|
+
}
|
|
92
|
+
}), _c("div", {
|
|
87
93
|
staticClass: "nf-confirm__btns"
|
|
88
94
|
}, [_c("nf-button", {
|
|
89
95
|
on: {
|
|
@@ -21,7 +21,8 @@ const _sfc_main = defineComponent({
|
|
|
21
21
|
confirmButtonText: "确定",
|
|
22
22
|
loading: false,
|
|
23
23
|
onCancel: null,
|
|
24
|
-
onConfirm: null
|
|
24
|
+
onConfirm: null,
|
|
25
|
+
dangerouslyUseHTMLString: false
|
|
25
26
|
};
|
|
26
27
|
},
|
|
27
28
|
computed: {
|
|
@@ -79,9 +80,14 @@ var _sfc_render = function render() {
|
|
|
79
80
|
staticClass: "nf-confirm__inner"
|
|
80
81
|
}, [_c("h2", {
|
|
81
82
|
staticClass: "nf-confirm__title"
|
|
82
|
-
}, [_vm._v(_vm._s(_vm.title))]), _c("p", {
|
|
83
|
+
}, [_vm._v(_vm._s(_vm.title))]), !_vm.dangerouslyUseHTMLString ? _c("p", {
|
|
83
84
|
staticClass: "nf-confirm__content"
|
|
84
|
-
}, [_vm._v(_vm._s(_vm.message))])
|
|
85
|
+
}, [_vm._v(_vm._s(_vm.message))]) : _c("p", {
|
|
86
|
+
staticClass: "nf-confirm__content",
|
|
87
|
+
domProps: {
|
|
88
|
+
"innerHTML": _vm._s(_vm.message)
|
|
89
|
+
}
|
|
90
|
+
}), _c("div", {
|
|
85
91
|
staticClass: "nf-confirm__btns"
|
|
86
92
|
}, [_c("nf-button", {
|
|
87
93
|
on: {
|
package/lib/nf-confirm.vue.d.ts
CHANGED
|
@@ -11,6 +11,7 @@ declare const _default: import("vue-demi").DefineComponent<{}, any, {
|
|
|
11
11
|
loading: boolean;
|
|
12
12
|
onCancel: null;
|
|
13
13
|
onConfirm: null;
|
|
14
|
+
dangerouslyUseHTMLString: boolean;
|
|
14
15
|
}, {
|
|
15
16
|
typeClass(): string;
|
|
16
17
|
}, {}, import("vue/types/v3-component-options").ComponentOptionsMixin, import("vue/types/v3-component-options").ComponentOptionsMixin, {}, string, Readonly<import("vue-demi").ExtractPropTypes<{}>>, {}>;
|
package/package/nf-confirm.vue
CHANGED
|
@@ -5,7 +5,8 @@
|
|
|
5
5
|
<i class="nf-confirm__icon" :class="[ typeClass, iconClass ]" v-if="type || iconClass"></i>
|
|
6
6
|
<div class="nf-confirm__inner">
|
|
7
7
|
<h2 class="nf-confirm__title">{{ title }}</h2>
|
|
8
|
-
<p class="nf-confirm__content">{{ message }}</p>
|
|
8
|
+
<p class="nf-confirm__content" v-if="!dangerouslyUseHTMLString">{{ message }}</p>
|
|
9
|
+
<p class="nf-confirm__content" v-else v-html="message"></p>
|
|
9
10
|
<div class="nf-confirm__btns">
|
|
10
11
|
<nf-button @click="handleCancel">{{ cancelButtonText }}</nf-button>
|
|
11
12
|
<nf-button type="primary" :loading="loading" @click="handleConfirm">{{ confirmButtonText }}</nf-button>
|
|
@@ -42,6 +43,7 @@ export default defineComponent({
|
|
|
42
43
|
loading: false,
|
|
43
44
|
onCancel: null,
|
|
44
45
|
onConfirm: null,
|
|
46
|
+
dangerouslyUseHTMLString: false,
|
|
45
47
|
}
|
|
46
48
|
},
|
|
47
49
|
computed: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@94ai/nf-confirm",
|
|
3
|
-
"version": "3.2.
|
|
3
|
+
"version": "3.2.35",
|
|
4
4
|
"description": "> TODO: description",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"author": "zhongzhenjie <1476686104@qq.com>",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"url": "http://94ai.gitlab.com/zoujiahe/common-ui.git"
|
|
15
15
|
},
|
|
16
16
|
"dependencies": {
|
|
17
|
-
"@94ai/nf-theme-chalk": "^3.2.
|
|
17
|
+
"@94ai/nf-theme-chalk": "^3.2.35",
|
|
18
18
|
"vue-demi": "^0.14.5"
|
|
19
19
|
},
|
|
20
20
|
"peerDependenciesMeta": {
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"types": "lib/index.d.ts",
|
|
31
31
|
"main": "lib/nf-confirm.cjs.js",
|
|
32
32
|
"module": "lib/nf-confirm.esm-bundler.js",
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "98f8d6851ec74d978e54fa3f16676b24eba5e63f"
|
|
34
34
|
}
|