@funcho/ui 1.1.6 → 1.1.7
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/dist/cjs/components/Button/DangerButton.vue.js +29 -23
- package/dist/cjs/components/Button/{DangerButton.vue2.js → DangerButton.vue3.js} +1 -0
- package/dist/cjs/components/Button/index.js +1 -0
- package/dist/cjs/packages/ui/package.json.js +1 -1
- package/dist/esm/components/Button/DangerButton.vue.mjs +30 -24
- package/dist/esm/components/Button/{DangerButton.vue2.mjs → DangerButton.vue3.mjs} +1 -0
- package/dist/esm/components/Button/index.mjs +1 -0
- package/dist/esm/packages/ui/package.json.mjs +1 -1
- package/dist/style.css +5 -1
- package/package.json +1 -1
|
@@ -7,6 +7,7 @@ const Button_vue_vue_type_script_setup_true_lang = require('./Button.vue.js');
|
|
|
7
7
|
;/* empty css */
|
|
8
8
|
const Popconfirm_vue_vue_type_script_setup_true_lang = require('../Popconfirm/Popconfirm.vue.js');
|
|
9
9
|
;/* empty css */
|
|
10
|
+
const useNamespace = require('../../hooks/use-namespace.js');
|
|
10
11
|
|
|
11
12
|
const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
12
13
|
...{
|
|
@@ -20,6 +21,7 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
20
21
|
},
|
|
21
22
|
emits: ["confirm", "cancel"],
|
|
22
23
|
setup(__props, { emit: __emit }) {
|
|
24
|
+
const ns = useNamespace.useNamespace("danger-button");
|
|
23
25
|
const emits = __emit;
|
|
24
26
|
const handleConfirm = (payload) => {
|
|
25
27
|
emits("confirm", payload);
|
|
@@ -28,29 +30,33 @@ const _sfc_main = /* @__PURE__ */ vue.defineComponent({
|
|
|
28
30
|
emits("cancel", payload);
|
|
29
31
|
};
|
|
30
32
|
return (_ctx, _cache) => {
|
|
31
|
-
return vue.openBlock(), vue.
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
33
|
+
return vue.openBlock(), vue.createElementBlock("div", {
|
|
34
|
+
class: vue.normalizeClass(vue.unref(ns).b())
|
|
35
|
+
}, [
|
|
36
|
+
vue.createVNode(Popconfirm_vue_vue_type_script_setup_true_lang.default, {
|
|
37
|
+
title: __props.title,
|
|
38
|
+
onConfirm: handleConfirm,
|
|
39
|
+
onCancel: handleCancel
|
|
40
|
+
}, {
|
|
41
|
+
reference: vue.withCtx(() => [
|
|
42
|
+
vue.createVNode(Button_vue_vue_type_script_setup_true_lang.default, vue.mergeProps(_ctx.$attrs, {
|
|
43
|
+
ref: "elRef",
|
|
44
|
+
type: "danger",
|
|
45
|
+
link: ""
|
|
46
|
+
}), vue.createSlots({ _: 2 }, [
|
|
47
|
+
vue.renderList(_ctx.$slots, (_, name) => {
|
|
48
|
+
return {
|
|
49
|
+
name,
|
|
50
|
+
fn: vue.withCtx((slotProps) => [
|
|
51
|
+
vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps ?? {})))
|
|
52
|
+
])
|
|
53
|
+
};
|
|
54
|
+
})
|
|
55
|
+
]), 1040)
|
|
56
|
+
]),
|
|
57
|
+
_: 3
|
|
58
|
+
}, 8, ["title"])
|
|
59
|
+
], 2);
|
|
54
60
|
};
|
|
55
61
|
}
|
|
56
62
|
});
|
|
@@ -7,6 +7,7 @@ const Button_vue_vue_type_script_setup_true_lang = require('./Button.vue.js');
|
|
|
7
7
|
;/* empty css */
|
|
8
8
|
const LinkButton_vue_vue_type_script_setup_true_lang = require('./LinkButton.vue.js');
|
|
9
9
|
const DangerButton_vue_vue_type_script_setup_true_lang = require('./DangerButton.vue.js');
|
|
10
|
+
;/* empty css */
|
|
10
11
|
|
|
11
12
|
const FcButton = withInstall.withInstall(Button_vue_vue_type_script_setup_true_lang.default);
|
|
12
13
|
const FcLinkButton = withInstall.withInstall(LinkButton_vue_vue_type_script_setup_true_lang.default);
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import { defineComponent,
|
|
1
|
+
import { defineComponent, createElementBlock, openBlock, normalizeClass, unref, createVNode, withCtx, mergeProps, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
|
|
2
2
|
import _sfc_main$2 from './Button.vue.mjs';
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _sfc_main$1 from '../Popconfirm/Popconfirm.vue.mjs';
|
|
5
5
|
/* empty css */
|
|
6
|
+
import { useNamespace } from '../../hooks/use-namespace.mjs';
|
|
6
7
|
|
|
7
8
|
const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
8
9
|
...{
|
|
@@ -16,6 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
16
17
|
},
|
|
17
18
|
emits: ["confirm", "cancel"],
|
|
18
19
|
setup(__props, { emit: __emit }) {
|
|
20
|
+
const ns = useNamespace("danger-button");
|
|
19
21
|
const emits = __emit;
|
|
20
22
|
const handleConfirm = (payload) => {
|
|
21
23
|
emits("confirm", payload);
|
|
@@ -24,29 +26,33 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
24
26
|
emits("cancel", payload);
|
|
25
27
|
};
|
|
26
28
|
return (_ctx, _cache) => {
|
|
27
|
-
return openBlock(),
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
29
|
+
return openBlock(), createElementBlock("div", {
|
|
30
|
+
class: normalizeClass(unref(ns).b())
|
|
31
|
+
}, [
|
|
32
|
+
createVNode(_sfc_main$1, {
|
|
33
|
+
title: __props.title,
|
|
34
|
+
onConfirm: handleConfirm,
|
|
35
|
+
onCancel: handleCancel
|
|
36
|
+
}, {
|
|
37
|
+
reference: withCtx(() => [
|
|
38
|
+
createVNode(_sfc_main$2, mergeProps(_ctx.$attrs, {
|
|
39
|
+
ref: "elRef",
|
|
40
|
+
type: "danger",
|
|
41
|
+
link: ""
|
|
42
|
+
}), createSlots({ _: 2 }, [
|
|
43
|
+
renderList(_ctx.$slots, (_, name) => {
|
|
44
|
+
return {
|
|
45
|
+
name,
|
|
46
|
+
fn: withCtx((slotProps) => [
|
|
47
|
+
renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps ?? {})))
|
|
48
|
+
])
|
|
49
|
+
};
|
|
50
|
+
})
|
|
51
|
+
]), 1040)
|
|
52
|
+
]),
|
|
53
|
+
_: 3
|
|
54
|
+
}, 8, ["title"])
|
|
55
|
+
], 2);
|
|
50
56
|
};
|
|
51
57
|
}
|
|
52
58
|
});
|
|
@@ -3,6 +3,7 @@ import _sfc_main from './Button.vue.mjs';
|
|
|
3
3
|
/* empty css */
|
|
4
4
|
import _sfc_main$1 from './LinkButton.vue.mjs';
|
|
5
5
|
import _sfc_main$2 from './DangerButton.vue.mjs';
|
|
6
|
+
/* empty css */
|
|
6
7
|
|
|
7
8
|
const FcButton = withInstall(_sfc_main);
|
|
8
9
|
const FcLinkButton = withInstall(_sfc_main$1);
|
package/dist/style.css
CHANGED
|
@@ -16587,7 +16587,11 @@
|
|
|
16587
16587
|
.fc-ui-icon.fc-ui-popconfirm__icon svg {
|
|
16588
16588
|
width: 20px;
|
|
16589
16589
|
height: 20px;
|
|
16590
|
-
}
|
|
16590
|
+
}
|
|
16591
|
+
.fc-mkui-danger-button {
|
|
16592
|
+
display: inline-flex;
|
|
16593
|
+
}
|
|
16594
|
+
.fc-ui-dialog__header {
|
|
16591
16595
|
line-height: 40px;
|
|
16592
16596
|
border-bottom: 1px solid var(--fc-ui-border-color);
|
|
16593
16597
|
padding-left: 24px;
|