@funcho/ui 1.1.6 → 1.1.8
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 +22 -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
|
@@ -16580,6 +16580,8 @@
|
|
|
16580
16580
|
overflow: auto;
|
|
16581
16581
|
scrollbar-width: thin;
|
|
16582
16582
|
box-sizing: border-box;
|
|
16583
|
+
}.fc-ui-button {
|
|
16584
|
+
padding: 8px 11px;
|
|
16583
16585
|
}.fc-ui-icon.fc-ui-popconfirm__icon {
|
|
16584
16586
|
width: 24px;
|
|
16585
16587
|
height: 24px;
|
|
@@ -16587,7 +16589,11 @@
|
|
|
16587
16589
|
.fc-ui-icon.fc-ui-popconfirm__icon svg {
|
|
16588
16590
|
width: 20px;
|
|
16589
16591
|
height: 20px;
|
|
16590
|
-
}
|
|
16592
|
+
}
|
|
16593
|
+
.fc-mkui-danger-button {
|
|
16594
|
+
display: inline-flex;
|
|
16595
|
+
}
|
|
16596
|
+
.fc-ui-dialog__header {
|
|
16591
16597
|
line-height: 40px;
|
|
16592
16598
|
border-bottom: 1px solid var(--fc-ui-border-color);
|
|
16593
16599
|
padding-left: 24px;
|
|
@@ -16725,6 +16731,14 @@ to {
|
|
|
16725
16731
|
opacity: 1;
|
|
16726
16732
|
transform: translateY(0);
|
|
16727
16733
|
}
|
|
16734
|
+
}.fc-ui-cascader .fc-ui-input__inner {
|
|
16735
|
+
height: 26px;
|
|
16736
|
+
}
|
|
16737
|
+
.fc-ui-cascader .fc-ui-tag {
|
|
16738
|
+
height: 20px;
|
|
16739
|
+
}
|
|
16740
|
+
.fc-ui-cascader .fc-ui-cascader__search-input {
|
|
16741
|
+
height: 20px;
|
|
16728
16742
|
}.fc-ui-form .fc-ui-form-item__label {
|
|
16729
16743
|
color: #494949;
|
|
16730
16744
|
height: 28px;
|
|
@@ -17099,6 +17113,13 @@ to {
|
|
|
17099
17113
|
.fc-mkui-data-table .fc-mkui-data-table__query-form .fc-ui-form-item {
|
|
17100
17114
|
margin: 0;
|
|
17101
17115
|
}
|
|
17116
|
+
.fc-mkui-data-table .fc-mkui-data-table__query-form .fc-ui-form-item .fc-ui-cascader .fc-ui-cascader__tags {
|
|
17117
|
+
display: inline-flex;
|
|
17118
|
+
flex-wrap: nowrap;
|
|
17119
|
+
}
|
|
17120
|
+
.fc-mkui-data-table .fc-mkui-data-table__query-form .fc-ui-form-item .fc-ui-cascader .fc-ui-cascader__tags .fc-ui-tag {
|
|
17121
|
+
max-width: calc(100% - 109px);
|
|
17122
|
+
}
|
|
17102
17123
|
.fc-mkui-data-table__tools {
|
|
17103
17124
|
margin-top: auto;
|
|
17104
17125
|
flex-shrink: 0;
|