@dt-frames/ui 2.0.20 → 2.0.22

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.
@@ -44,52 +44,7 @@
44
44
  }
45
45
  }
46
46
 
47
- .ant-input{
48
- font-size: 13px;
49
- }
50
-
51
- .ant-btn{
52
- display: flex;
53
- align-items: center;
54
- justify-content: center;
55
- font-size: 13px;
56
- }
57
-
58
- .ant-btn.ant-btn-sm{
59
- font-size: 12px;
60
- }
61
-
62
- .ant-btn.ant-btn-lg {
63
- font-size: 14px;
64
- height: 34px;
65
- }
66
-
67
- .ant-input-sm{
68
- font-size: 12px;
69
- }
70
-
71
- .ant-input-lg{
72
- font-size: 14px;
73
- }
74
-
75
- .ant-form-item{
76
- // align-items: center;
77
- .prefix, .suffix {
78
- display: flex;
79
- align-items: center;
80
- }
81
- }
82
47
 
83
- .ant-input-affix-wrapper{
84
- display: flex;
85
- align-items: center;
86
- }
87
-
88
- .ant-picker{
89
- width: 100%;
90
- height: 100%;
91
- }
92
-
93
48
 
94
49
  .ant-form-item.small {
95
50
  line-height: 30px;
@@ -241,9 +241,12 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
241
241
  return label;
242
242
  };
243
243
  watch(
244
- () => unref(props2.btns),
245
- (btns) => {
246
- actionBtns.value = [...btns].map((it) => {
244
+ () => [
245
+ unref(props2.btns),
246
+ unref(props2.record)
247
+ ],
248
+ ([btns]) => {
249
+ actionBtns.value = btns.map((it) => {
247
250
  return {
248
251
  ...it,
249
252
  ifShow: isBoolean(it.show) ? it.show : isFunction(it.show) ? it.show(props2.record) : true,
@@ -283,23 +286,23 @@ const _sfc_main$9 = /* @__PURE__ */ defineComponent({
283
286
  index >= unref(getExpandNum) && index === actionBtns.value.length - 1 ? (openBlock(), createBlock(_component_ADropdown, {
284
287
  key: 1,
285
288
  "get-popup-container": getPopupContainer$1,
286
- trigger: ["click"]
289
+ trigger: ["click"],
290
+ destroyPopupOnHide: true
287
291
  }, {
288
292
  overlay: withCtx(() => [
289
293
  createVNode(_component_AMenu, { class: "dt-action-select flex flex-col" }, {
290
294
  default: withCtx(() => [
291
295
  (openBlock(true), createElementBlock(Fragment, null, renderList(actionBtns.value, (item1, index1) => {
292
296
  return openBlock(), createElementBlock(Fragment, null, [
293
- index1 >= unref(getExpandNum) ? withDirectives((openBlock(), createElementBlock("span", _hoisted_3$2, [
294
- item1.ifShow ? (openBlock(), createBlock(_component_AMenuItem, {
295
- key: 0,
297
+ index1 >= unref(getExpandNum) && item1.ifShow ? withDirectives((openBlock(), createElementBlock("span", _hoisted_3$2, [
298
+ createVNode(_component_AMenuItem, {
296
299
  onClick: ($event) => handleAction(item1)
297
300
  }, {
298
301
  default: withCtx(() => [
299
302
  createElementVNode("span", _hoisted_4$2, toDisplayString(item1.label()), 1)
300
303
  ]),
301
304
  _: 2
302
- }, 1032, ["onClick"])) : createCommentVNode("", true)
305
+ }, 1032, ["onClick"])
303
306
  ])), [
304
307
  [_directive_auth, getAuth(item1.auth)]
305
308
  ]) : createCommentVNode("", true)