@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.
@@ -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.createBlock(Popconfirm_vue_vue_type_script_setup_true_lang.default, {
32
- title: __props.title,
33
- onConfirm: handleConfirm,
34
- onCancel: handleCancel
35
- }, {
36
- reference: vue.withCtx(() => [
37
- vue.createVNode(Button_vue_vue_type_script_setup_true_lang.default, vue.mergeProps(_ctx.$attrs, {
38
- ref: "elRef",
39
- type: "danger",
40
- link: ""
41
- }), vue.createSlots({ _: 2 }, [
42
- vue.renderList(_ctx.$slots, (_, name) => {
43
- return {
44
- name,
45
- fn: vue.withCtx((slotProps) => [
46
- vue.renderSlot(_ctx.$slots, name, vue.normalizeProps(vue.guardReactiveProps(slotProps ?? {})))
47
- ])
48
- };
49
- })
50
- ]), 1040)
51
- ]),
52
- _: 3
53
- }, 8, ["title"]);
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
  });
@@ -3,6 +3,7 @@
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
4
 
5
5
  const DangerButton_vue_vue_type_script_setup_true_lang = require('./DangerButton.vue.js');
6
+ ;/* empty css */
6
7
 
7
8
 
8
9
 
@@ -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);
@@ -2,6 +2,6 @@
2
2
 
3
3
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
4
4
 
5
- const version = "1.1.6";
5
+ const version = "1.1.8";
6
6
 
7
7
  exports.version = version;
@@ -1,8 +1,9 @@
1
- import { defineComponent, createBlock, openBlock, withCtx, createVNode, mergeProps, createSlots, renderList, renderSlot, normalizeProps, guardReactiveProps } from 'vue';
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(), createBlock(_sfc_main$1, {
28
- title: __props.title,
29
- onConfirm: handleConfirm,
30
- onCancel: handleCancel
31
- }, {
32
- reference: withCtx(() => [
33
- createVNode(_sfc_main$2, mergeProps(_ctx.$attrs, {
34
- ref: "elRef",
35
- type: "danger",
36
- link: ""
37
- }), createSlots({ _: 2 }, [
38
- renderList(_ctx.$slots, (_, name) => {
39
- return {
40
- name,
41
- fn: withCtx((slotProps) => [
42
- renderSlot(_ctx.$slots, name, normalizeProps(guardReactiveProps(slotProps ?? {})))
43
- ])
44
- };
45
- })
46
- ]), 1040)
47
- ]),
48
- _: 3
49
- }, 8, ["title"]);
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
  });
@@ -1,4 +1,5 @@
1
1
  import _sfc_main from './DangerButton.vue.mjs';
2
+ /* empty css */
2
3
 
3
4
 
4
5
 
@@ -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);
@@ -1,3 +1,3 @@
1
- const version = "1.1.6";
1
+ const version = "1.1.8";
2
2
 
3
3
  export { version };
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
- }.fc-ui-dialog__header {
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;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@funcho/ui",
3
3
  "description": "@funcho ui library",
4
- "version": "1.1.6",
4
+ "version": "1.1.8",
5
5
  "type": "module",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/esm/index.mjs",