ll-plus 2.3.11 → 2.3.13

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.
Files changed (75) hide show
  1. package/es/components/drawer/index.d.ts +2 -1
  2. package/es/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
  3. package/es/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
  4. package/es/components/drawer/src/drawer.vue.d.ts +2 -1
  5. package/es/components/drawer/src/drawer.vue2.mjs +31 -18
  6. package/es/components/drawer/src/drawer.vue2.mjs.map +1 -1
  7. package/es/components/modal/index.d.ts +5 -0
  8. package/es/components/modal/src/modal.d.ts +1 -0
  9. package/es/components/modal/src/modal.mjs +4 -0
  10. package/es/components/modal/src/modal.mjs.map +1 -1
  11. package/es/components/modal/src/modal.vue.d.ts +5 -0
  12. package/es/components/modal/src/modal.vue2.mjs +24 -6
  13. package/es/components/modal/src/modal.vue2.mjs.map +1 -1
  14. package/es/components/table/index.d.ts +8 -0
  15. package/es/components/table/src/components/main-table.vue.d.ts +4 -0
  16. package/es/components/table/src/config/main-table.d.ts +1 -0
  17. package/es/components/table/src/config/main-table.mjs +7 -0
  18. package/es/components/table/src/config/main-table.mjs.map +1 -1
  19. package/es/components/table/src/config/table.d.ts +2 -0
  20. package/es/components/table/src/table.vue.d.ts +8 -0
  21. package/es/components/tree-search/index.d.ts +3 -0
  22. package/es/components/tree-search/src/config/tree-search.d.ts +1 -0
  23. package/es/components/tree-search/src/tree-search.vue.d.ts +3 -0
  24. package/es/utils/props/runtime.d.ts +2 -2
  25. package/index.full.js +69 -170
  26. package/index.full.min.js +22 -22
  27. package/index.full.min.js.map +1 -1
  28. package/index.full.min.mjs +19 -19
  29. package/index.full.min.mjs.map +1 -1
  30. package/index.full.mjs +69 -170
  31. package/lib/components/drawer/index.d.ts +2 -1
  32. package/lib/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
  33. package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
  34. package/lib/components/drawer/src/drawer.vue.d.ts +2 -1
  35. package/lib/components/drawer/src/drawer.vue2.js +29 -16
  36. package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
  37. package/lib/components/modal/index.d.ts +5 -0
  38. package/lib/components/modal/src/modal.d.ts +1 -0
  39. package/lib/components/modal/src/modal.js +4 -0
  40. package/lib/components/modal/src/modal.js.map +1 -1
  41. package/lib/components/modal/src/modal.vue.d.ts +5 -0
  42. package/lib/components/modal/src/modal.vue2.js +24 -6
  43. package/lib/components/modal/src/modal.vue2.js.map +1 -1
  44. package/lib/components/table/index.d.ts +8 -0
  45. package/lib/components/table/src/components/main-table.vue.d.ts +4 -0
  46. package/lib/components/table/src/config/main-table.d.ts +1 -0
  47. package/lib/components/table/src/config/main-table.js +7 -0
  48. package/lib/components/table/src/config/main-table.js.map +1 -1
  49. package/lib/components/table/src/config/table.d.ts +2 -0
  50. package/lib/components/table/src/table.vue.d.ts +8 -0
  51. package/lib/components/tree-search/index.d.ts +3 -0
  52. package/lib/components/tree-search/src/config/tree-search.d.ts +1 -0
  53. package/lib/components/tree-search/src/tree-search.vue.d.ts +3 -0
  54. package/lib/utils/props/runtime.d.ts +2 -2
  55. package/package.json +1 -1
  56. package/theme-chalk/css/drawer.css +1 -1
  57. package/theme-chalk/css/index.css +1 -1
  58. package/theme-chalk/css/key-value.css +1 -1
  59. package/theme-chalk/css/modal.css +1 -1
  60. package/types/packages/components/drawer/index.d.ts +2 -1
  61. package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
  62. package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
  63. package/types/packages/components/drawer/src/drawer.vue.d.ts +2 -1
  64. package/types/packages/components/modal/index.d.ts +5 -0
  65. package/types/packages/components/modal/src/modal.d.ts +1 -0
  66. package/types/packages/components/modal/src/modal.vue.d.ts +5 -0
  67. package/types/packages/components/table/index.d.ts +8 -0
  68. package/types/packages/components/table/src/components/main-table.vue.d.ts +4 -0
  69. package/types/packages/components/table/src/config/main-table.d.ts +1 -0
  70. package/types/packages/components/table/src/config/table.d.ts +2 -0
  71. package/types/packages/components/table/src/table.vue.d.ts +8 -0
  72. package/types/packages/components/tree-search/index.d.ts +3 -0
  73. package/types/packages/components/tree-search/src/config/tree-search.d.ts +1 -0
  74. package/types/packages/components/tree-search/src/tree-search.vue.d.ts +3 -0
  75. package/types/packages/utils/props/runtime.d.ts +2 -2
package/index.full.mjs CHANGED
@@ -94,48 +94,11 @@ function baseToString(value) {
94
94
  return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
95
95
  }
96
96
 
97
- var reWhitespace = /\s/;
98
- function trimmedEndIndex(string) {
99
- var index = string.length;
100
- while (index-- && reWhitespace.test(string.charAt(index))) {
101
- }
102
- return index;
103
- }
104
-
105
- var reTrimStart = /^\s+/;
106
- function baseTrim(string) {
107
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
108
- }
109
-
110
97
  function isObject$1(value) {
111
98
  var type = typeof value;
112
99
  return value != null && (type == "object" || type == "function");
113
100
  }
114
101
 
115
- var NAN = 0 / 0;
116
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
117
- var reIsBinary = /^0b[01]+$/i;
118
- var reIsOctal = /^0o[0-7]+$/i;
119
- var freeParseInt = parseInt;
120
- function toNumber(value) {
121
- if (typeof value == "number") {
122
- return value;
123
- }
124
- if (isSymbol(value)) {
125
- return NAN;
126
- }
127
- if (isObject$1(value)) {
128
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
129
- value = isObject$1(other) ? other + "" : other;
130
- }
131
- if (typeof value != "string") {
132
- return value === 0 ? value : +value;
133
- }
134
- value = baseTrim(value);
135
- var isBinary = reIsBinary.test(value);
136
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
137
- }
138
-
139
102
  function identity(value) {
140
103
  return value;
141
104
  }
@@ -355,11 +318,11 @@ function copyObject(source, props, object, customizer) {
355
318
  return object;
356
319
  }
357
320
 
358
- var nativeMax$1 = Math.max;
321
+ var nativeMax = Math.max;
359
322
  function overRest(func, start, transform) {
360
- start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0);
323
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
361
324
  return function() {
362
- var args = arguments, index = -1, length = nativeMax$1(args.length - start, 0), array = Array(length);
325
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
363
326
  while (++index < length) {
364
327
  array[index] = args[start + index];
365
328
  }
@@ -738,10 +701,10 @@ MapCache.prototype.get = mapCacheGet;
738
701
  MapCache.prototype.has = mapCacheHas;
739
702
  MapCache.prototype.set = mapCacheSet;
740
703
 
741
- var FUNC_ERROR_TEXT$2 = "Expected a function";
704
+ var FUNC_ERROR_TEXT = "Expected a function";
742
705
  function memoize(func, resolver) {
743
706
  if (typeof func != "function" || resolver != null && typeof resolver != "function") {
744
- throw new TypeError(FUNC_ERROR_TEXT$2);
707
+ throw new TypeError(FUNC_ERROR_TEXT);
745
708
  }
746
709
  var memoized = function() {
747
710
  var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
@@ -1282,95 +1245,6 @@ function hasPath(object, path, hasFunc) {
1282
1245
  return !!length && isLength(length) && isIndex(key, length) && (isArray$1(object) || isArguments$1(object));
1283
1246
  }
1284
1247
 
1285
- var now$1 = function() {
1286
- return root.Date.now();
1287
- };
1288
-
1289
- var FUNC_ERROR_TEXT$1 = "Expected a function";
1290
- var nativeMax = Math.max;
1291
- var nativeMin = Math.min;
1292
- function debounce(func, wait, options) {
1293
- var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
1294
- if (typeof func != "function") {
1295
- throw new TypeError(FUNC_ERROR_TEXT$1);
1296
- }
1297
- wait = toNumber(wait) || 0;
1298
- if (isObject$1(options)) {
1299
- leading = !!options.leading;
1300
- maxing = "maxWait" in options;
1301
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
1302
- trailing = "trailing" in options ? !!options.trailing : trailing;
1303
- }
1304
- function invokeFunc(time) {
1305
- var args = lastArgs, thisArg = lastThis;
1306
- lastArgs = lastThis = void 0;
1307
- lastInvokeTime = time;
1308
- result = func.apply(thisArg, args);
1309
- return result;
1310
- }
1311
- function leadingEdge(time) {
1312
- lastInvokeTime = time;
1313
- timerId = setTimeout(timerExpired, wait);
1314
- return leading ? invokeFunc(time) : result;
1315
- }
1316
- function remainingWait(time) {
1317
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
1318
- return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
1319
- }
1320
- function shouldInvoke(time) {
1321
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
1322
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
1323
- }
1324
- function timerExpired() {
1325
- var time = now$1();
1326
- if (shouldInvoke(time)) {
1327
- return trailingEdge(time);
1328
- }
1329
- timerId = setTimeout(timerExpired, remainingWait(time));
1330
- }
1331
- function trailingEdge(time) {
1332
- timerId = void 0;
1333
- if (trailing && lastArgs) {
1334
- return invokeFunc(time);
1335
- }
1336
- lastArgs = lastThis = void 0;
1337
- return result;
1338
- }
1339
- function cancel() {
1340
- if (timerId !== void 0) {
1341
- clearTimeout(timerId);
1342
- }
1343
- lastInvokeTime = 0;
1344
- lastArgs = lastCallTime = lastThis = timerId = void 0;
1345
- }
1346
- function flush() {
1347
- return timerId === void 0 ? result : trailingEdge(now$1());
1348
- }
1349
- function debounced() {
1350
- var time = now$1(), isInvoking = shouldInvoke(time);
1351
- lastArgs = arguments;
1352
- lastThis = this;
1353
- lastCallTime = time;
1354
- if (isInvoking) {
1355
- if (timerId === void 0) {
1356
- return leadingEdge(lastCallTime);
1357
- }
1358
- if (maxing) {
1359
- clearTimeout(timerId);
1360
- timerId = setTimeout(timerExpired, wait);
1361
- return invokeFunc(lastCallTime);
1362
- }
1363
- }
1364
- if (timerId === void 0) {
1365
- timerId = setTimeout(timerExpired, wait);
1366
- }
1367
- return result;
1368
- }
1369
- debounced.cancel = cancel;
1370
- debounced.flush = flush;
1371
- return debounced;
1372
- }
1373
-
1374
1248
  function last(array) {
1375
1249
  var length = array == null ? 0 : array.length;
1376
1250
  return length ? array[length - 1] : void 0;
@@ -1469,23 +1343,6 @@ var omit = flatRest(function(object, paths) {
1469
1343
  return result;
1470
1344
  });
1471
1345
 
1472
- var FUNC_ERROR_TEXT = "Expected a function";
1473
- function throttle$1(func, wait, options) {
1474
- var leading = true, trailing = true;
1475
- if (typeof func != "function") {
1476
- throw new TypeError(FUNC_ERROR_TEXT);
1477
- }
1478
- if (isObject$1(options)) {
1479
- leading = "leading" in options ? !!options.leading : leading;
1480
- trailing = "trailing" in options ? !!options.trailing : trailing;
1481
- }
1482
- return debounce(func, wait, {
1483
- "leading": leading,
1484
- "maxWait": wait,
1485
- "trailing": trailing
1486
- });
1487
- }
1488
-
1489
1346
  const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1490
1347
  const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
1491
1348
  const isObject = (val) => val !== null && typeof val === "object";
@@ -46891,6 +46748,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
46891
46748
  const content = ref();
46892
46749
  const hasScroll = ref(false);
46893
46750
  const symbolClass = ref(`ll-darwer-${(/* @__PURE__ */ new Date()).getTime()}`);
46751
+ const symbolComparedClass = ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
46894
46752
  const getBindValue = computed(() => ({
46895
46753
  ...drawerOptions,
46896
46754
  ...omit({ ...attrs }, [...Object.keys(drawerProps), "rootClassName"])
@@ -46921,24 +46779,26 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
46921
46779
  const handleConfirm = () => {
46922
46780
  emits("confirm");
46923
46781
  };
46924
- const handleResize = async () => {
46782
+ const handleResize = async (value) => {
46925
46783
  await nextTick();
46926
46784
  const ele = document.getElementsByClassName(symbolClass.value)[0];
46927
- if (ele) {
46928
- setTimeout(() => {
46929
- hasScroll.value = ele.scrollHeight > ele.clientHeight;
46930
- }, 0);
46785
+ const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0];
46786
+ const resizeObserver = new ResizeObserver((entries) => {
46787
+ const { clientHeight } = entries[0].target;
46788
+ const scrollHeight = ele.clientHeight;
46789
+ hasScroll.value = clientHeight > scrollHeight;
46790
+ console.log(clientHeight, scrollHeight, hasScroll.value);
46791
+ });
46792
+ if (value) {
46793
+ resizeObserver.observe(modalBody);
46794
+ } else {
46795
+ resizeObserver.unobserve(modalBody);
46931
46796
  }
46932
46797
  };
46933
46798
  watch(
46934
46799
  () => props.open,
46935
46800
  (val) => {
46936
- if (val) {
46937
- handleResize();
46938
- window.addEventListener("resize", throttle$1(handleResize, 500));
46939
- } else {
46940
- window.removeEventListener("resize", handleResize);
46941
- }
46801
+ handleResize(val);
46942
46802
  }
46943
46803
  );
46944
46804
  return (_ctx, _cache) => {
@@ -46959,7 +46819,7 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
46959
46819
  createElementVNode(
46960
46820
  "div",
46961
46821
  {
46962
- class: normalizeClass(unref(bem).e("container"))
46822
+ class: normalizeClass([unref(bem).e("container"), hasScroll.value ? unref(bem).is("has-scroll") : ""])
46963
46823
  },
46964
46824
  [
46965
46825
  createElementVNode(
@@ -46967,14 +46827,24 @@ var _sfc_main$V = /* @__PURE__ */ defineComponent({
46967
46827
  {
46968
46828
  ref_key: "content",
46969
46829
  ref: content,
46970
- style: normalizeStyle({ marginBottom: props.showFooter ? "72px" : 0 }),
46971
46830
  class: normalizeClass([unref(bem).e("content"), symbolClass.value])
46972
46831
  },
46973
46832
  [
46974
- renderSlot(_ctx.$slots, "default")
46833
+ createCommentVNode(` <div v-if="hasScroll" :class="bem.e('shandow')" /> `),
46834
+ createElementVNode(
46835
+ "div",
46836
+ {
46837
+ class: normalizeClass([symbolComparedClass.value])
46838
+ },
46839
+ [
46840
+ renderSlot(_ctx.$slots, "default")
46841
+ ],
46842
+ 2
46843
+ /* CLASS */
46844
+ )
46975
46845
  ],
46976
- 6
46977
- /* CLASS, STYLE */
46846
+ 2
46847
+ /* CLASS */
46978
46848
  ),
46979
46849
  props.showFooter ? (openBlock(), createElementBlock(
46980
46850
  "div",
@@ -59030,6 +58900,10 @@ const modalProps = buildProps({
59030
58900
  type: definePropType(String),
59031
58901
  default: "operate"
59032
58902
  },
58903
+ isConfirmModel: {
58904
+ type: Boolean,
58905
+ default: false
58906
+ },
59033
58907
  /**
59034
58908
  * @description 弹窗class
59035
58909
  */
@@ -59098,6 +58972,7 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
59098
58972
  const modal = ref();
59099
58973
  const hasScroll = ref(false);
59100
58974
  const symbolClass = ref(`ll-modal-${(/* @__PURE__ */ new Date()).getTime()}`);
58975
+ const symbolComparedClass = ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
59101
58976
  const getBindValue = computed(() => {
59102
58977
  const result = {
59103
58978
  ...omit({ ...attrs }, [...Object.keys(modalProps), "wrapClassName"])
@@ -59117,10 +58992,11 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
59117
58992
  const handleResize = async (value) => {
59118
58993
  await nextTick();
59119
58994
  const ele = document.getElementsByClassName(symbolClass.value)[0];
59120
- const modalBody = ele.getElementsByClassName(`ant-modal-body`)[0];
58995
+ const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0];
59121
58996
  const resizeObserver = new ResizeObserver((entries) => {
59122
- const { scrollHeight, clientHeight } = entries[0].target;
59123
- hasScroll.value = scrollHeight > clientHeight;
58997
+ const { clientHeight } = entries[0].target;
58998
+ const scrollHeight = ele.clientHeight;
58999
+ hasScroll.value = clientHeight > scrollHeight;
59124
59000
  });
59125
59001
  if (value) {
59126
59002
  resizeObserver.observe(modalBody);
@@ -59141,7 +59017,11 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
59141
59017
  open: props.open,
59142
59018
  title: props.title,
59143
59019
  "wrap-class-name": `${unref(bem).b()} ${props.wrapClassName}`,
59144
- class: [props.class, symbolClass.value, hasScroll.value ? unref(bem).is("has-scroll") : ""],
59020
+ class: [
59021
+ props.class,
59022
+ hasScroll.value ? unref(bem).is("has-scroll") : "",
59023
+ unref(bem).is(props.isConfirmModel ? "confirm-model" : "")
59024
+ ],
59145
59025
  onCancel: handleCancel,
59146
59026
  onOk: handleOk
59147
59027
  }), createSlots({
@@ -59149,10 +59029,20 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
59149
59029
  createElementVNode(
59150
59030
  "div",
59151
59031
  {
59152
- class: normalizeClass([unref(bem).e("container"), unref(bem).is(props.type)])
59032
+ class: normalizeClass([unref(bem).e("container"), symbolClass.value, unref(bem).is(props.type)])
59153
59033
  },
59154
59034
  [
59155
- renderSlot(_ctx.$slots, "default")
59035
+ createElementVNode(
59036
+ "div",
59037
+ {
59038
+ class: normalizeClass([symbolComparedClass.value])
59039
+ },
59040
+ [
59041
+ renderSlot(_ctx.$slots, "default")
59042
+ ],
59043
+ 2
59044
+ /* CLASS */
59045
+ )
59156
59046
  ],
59157
59047
  2
59158
59048
  /* CLASS */
@@ -59169,11 +59059,13 @@ var _sfc_main$x = /* @__PURE__ */ defineComponent({
59169
59059
  props.showCancel && props.type !== "confirm" ? (openBlock(), createBlock(unref(LlButton), {
59170
59060
  key: 0,
59171
59061
  label: props.cancelText ? props.cancelText : "\u53D6\u6D88",
59062
+ size: "middle",
59172
59063
  onClick: handleCancel
59173
59064
  }, null, 8, ["label"])) : createCommentVNode("v-if", true),
59174
59065
  createVNode(unref(LlButton), {
59175
59066
  type: "primary",
59176
59067
  loading: props.loading,
59068
+ size: "middle",
59177
59069
  label: props.confirmText ? props.confirmText : props.type === "confirm" ? "\u77E5\u9053\u4E86" : "\u786E\u8BA4",
59178
59070
  onClick: handleOk
59179
59071
  }, null, 8, ["loading", "label"])
@@ -61661,6 +61553,13 @@ const tableHeaderSearchEmits = {
61661
61553
  };
61662
61554
 
61663
61555
  const mainTableProps = buildProps({
61556
+ /**
61557
+ * @description 动态插槽显示card和table
61558
+ */
61559
+ contentType: {
61560
+ type: String,
61561
+ default: ""
61562
+ },
61664
61563
  /**
61665
61564
  * @description 操作栏编辑操作列的key,用于下次记录用户行为
61666
61565
  */
@@ -44,6 +44,7 @@ export declare const LlDrawer: import("ll-plus/es/utils").SFCWithInstall<import(
44
44
  content: import("vue").Ref<HTMLElement | undefined>;
45
45
  hasScroll: import("vue").Ref<boolean>;
46
46
  symbolClass: import("vue").Ref<string>;
47
+ symbolComparedClass: import("vue").Ref<string>;
47
48
  getBindValue: import("vue").ComputedRef<{
48
49
  destroyOnClose: boolean;
49
50
  width: string;
@@ -54,7 +55,7 @@ export declare const LlDrawer: import("ll-plus/es/utils").SFCWithInstall<import(
54
55
  handleClose: () => void;
55
56
  handleCancel: () => void;
56
57
  handleConfirm: () => void;
57
- handleResize: () => Promise<void>;
58
+ handleResize: (value: boolean) => Promise<void>;
58
59
  readonly Drawer: {
59
60
  new (...args: any[]): import("@vue/runtime-core").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
60
61
  autofocus: {
@@ -49,6 +49,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
49
49
  readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
50
50
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
51
51
  readonly type: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload") | ((new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload"))[], unknown, unknown, "operate", boolean>;
52
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
52
53
  readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
53
54
  readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
54
55
  readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -67,6 +68,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
67
68
  readonly cancelText: string;
68
69
  readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
69
70
  readonly confirmText: string;
71
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
70
72
  readonly "onUpdate:open"?: (() => any) | undefined;
71
73
  readonly onOk?: (() => any) | undefined;
72
74
  readonly onCancel?: (() => any) | undefined;
@@ -88,6 +90,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
88
90
  modal: import("vue").Ref<HTMLElement | undefined>;
89
91
  hasScroll: import("vue").Ref<boolean>;
90
92
  symbolClass: import("vue").Ref<string>;
93
+ symbolComparedClass: import("vue").Ref<string>;
91
94
  getBindValue: import("vue").ComputedRef<import("ll-plus/es/index").IResultType>;
92
95
  handleCancel: () => void;
93
96
  handleOk: () => void;
@@ -1992,6 +1995,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
1992
1995
  readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
1993
1996
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1994
1997
  readonly type: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload") | ((new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload"))[], unknown, unknown, "operate", boolean>;
1998
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1995
1999
  readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
1996
2000
  readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
1997
2001
  readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -2013,6 +2017,7 @@ export declare const LlSecondConfirmation: import("ll-plus/es/utils").SFCWithIns
2013
2017
  readonly cancelText: string;
2014
2018
  readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
2015
2019
  readonly confirmText: string;
2020
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
2016
2021
  }, {}>>;
2017
2022
  readonly LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2018
2023
  readonly iconName: {
@@ -48,6 +48,7 @@ declare const _default: import("vue").DefineComponent<{
48
48
  readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
49
49
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
50
50
  readonly type: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload") | ((new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload"))[], unknown, unknown, "operate", boolean>;
51
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
51
52
  readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
52
53
  readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
53
54
  readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -66,6 +67,7 @@ declare const _default: import("vue").DefineComponent<{
66
67
  readonly cancelText: string;
67
68
  readonly showCancel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
68
69
  readonly confirmText: string;
70
+ readonly isConfirmModel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
69
71
  readonly "onUpdate:open"?: (() => any) | undefined;
70
72
  readonly onOk?: (() => any) | undefined;
71
73
  readonly onCancel?: (() => any) | undefined;
@@ -87,6 +89,7 @@ declare const _default: import("vue").DefineComponent<{
87
89
  modal: import("vue").Ref<HTMLElement | undefined>;
88
90
  hasScroll: import("vue").Ref<boolean>;
89
91
  symbolClass: import("vue").Ref<string>;
92
+ symbolComparedClass: import("vue").Ref<string>;
90
93
  getBindValue: import("vue").ComputedRef<import("ll-plus/es/components").IResultType>;
91
94
  handleCancel: () => void;
92
95
  handleOk: () => void;
@@ -1991,6 +1994,7 @@ declare const _default: import("vue").DefineComponent<{
1991
1994
  readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
1992
1995
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1993
1996
  readonly type: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload") | ((new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload"))[], unknown, unknown, "operate", boolean>;
1997
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1994
1998
  readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
1995
1999
  readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
1996
2000
  readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -2012,6 +2016,7 @@ declare const _default: import("vue").DefineComponent<{
2012
2016
  readonly cancelText: string;
2013
2017
  readonly showCancel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
2014
2018
  readonly confirmText: string;
2019
+ readonly isConfirmModel: import("ll-plus/es/components").AvatarType<BooleanConstructor, unknown, unknown>;
2015
2020
  }, {}>>;
2016
2021
  readonly LlIcon: import("ll-plus/es/utils").SFCWithInstall<import("vue").DefineComponent<{
2017
2022
  readonly iconName: {
@@ -43,6 +43,7 @@ declare const _default: import("vue").DefineComponent<{
43
43
  content: import("vue").Ref<HTMLElement | undefined>;
44
44
  hasScroll: import("vue").Ref<boolean>;
45
45
  symbolClass: import("vue").Ref<string>;
46
+ symbolComparedClass: import("vue").Ref<string>;
46
47
  getBindValue: import("vue").ComputedRef<{
47
48
  destroyOnClose: boolean;
48
49
  width: string;
@@ -53,7 +54,7 @@ declare const _default: import("vue").DefineComponent<{
53
54
  handleClose: () => void;
54
55
  handleCancel: () => void;
55
56
  handleConfirm: () => void;
56
- handleResize: () => Promise<void>;
57
+ handleResize: (value: boolean) => Promise<void>;
57
58
  readonly Drawer: {
58
59
  new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
59
60
  autofocus: {
@@ -25,6 +25,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
25
25
  const content = vue.ref();
26
26
  const hasScroll = vue.ref(false);
27
27
  const symbolClass = vue.ref(`ll-darwer-${(/* @__PURE__ */ new Date()).getTime()}`);
28
+ const symbolComparedClass = vue.ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
28
29
  const getBindValue = vue.computed(() => ({
29
30
  ...drawer.drawerOptions,
30
31
  ...lodashEs.omit({ ...attrs }, [...Object.keys(drawer.drawerProps), "rootClassName"])
@@ -55,24 +56,26 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
55
56
  const handleConfirm = () => {
56
57
  emits("confirm");
57
58
  };
58
- const handleResize = async () => {
59
+ const handleResize = async (value) => {
59
60
  await vue.nextTick();
60
61
  const ele = document.getElementsByClassName(symbolClass.value)[0];
61
- if (ele) {
62
- setTimeout(() => {
63
- hasScroll.value = ele.scrollHeight > ele.clientHeight;
64
- }, 0);
62
+ const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0];
63
+ const resizeObserver = new ResizeObserver((entries) => {
64
+ const { clientHeight } = entries[0].target;
65
+ const scrollHeight = ele.clientHeight;
66
+ hasScroll.value = clientHeight > scrollHeight;
67
+ console.log(clientHeight, scrollHeight, hasScroll.value);
68
+ });
69
+ if (value) {
70
+ resizeObserver.observe(modalBody);
71
+ } else {
72
+ resizeObserver.unobserve(modalBody);
65
73
  }
66
74
  };
67
75
  vue.watch(
68
76
  () => props.open,
69
77
  (val) => {
70
- if (val) {
71
- handleResize();
72
- window.addEventListener("resize", lodashEs.throttle(handleResize, 500));
73
- } else {
74
- window.removeEventListener("resize", handleResize);
75
- }
78
+ handleResize(val);
76
79
  }
77
80
  );
78
81
  return (_ctx, _cache) => {
@@ -93,7 +96,7 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
93
96
  vue.createElementVNode(
94
97
  "div",
95
98
  {
96
- class: vue.normalizeClass(vue.unref(bem).e("container"))
99
+ class: vue.normalizeClass([vue.unref(bem).e("container"), hasScroll.value ? vue.unref(bem).is("has-scroll") : ""])
97
100
  },
98
101
  [
99
102
  vue.createElementVNode(
@@ -101,14 +104,24 @@ var _sfc_main = /* @__PURE__ */ vue.defineComponent({
101
104
  {
102
105
  ref_key: "content",
103
106
  ref: content,
104
- style: vue.normalizeStyle({ marginBottom: props.showFooter ? "72px" : 0 }),
105
107
  class: vue.normalizeClass([vue.unref(bem).e("content"), symbolClass.value])
106
108
  },
107
109
  [
108
- vue.renderSlot(_ctx.$slots, "default")
110
+ vue.createCommentVNode(` <div v-if="hasScroll" :class="bem.e('shandow')" /> `),
111
+ vue.createElementVNode(
112
+ "div",
113
+ {
114
+ class: vue.normalizeClass([symbolComparedClass.value])
115
+ },
116
+ [
117
+ vue.renderSlot(_ctx.$slots, "default")
118
+ ],
119
+ 2
120
+ /* CLASS */
121
+ )
109
122
  ],
110
- 6
111
- /* CLASS, STYLE */
123
+ 2
124
+ /* CLASS */
112
125
  ),
113
126
  props.showFooter ? (vue.openBlock(), vue.createElementBlock(
114
127
  "div",
@@ -1 +1 @@
1
- {"version":3,"file":"drawer.vue2.js","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"bem.e('container')\">\n <div\n ref=\"content\"\n :style=\"{ marginBottom: props.showFooter ? '72px' : 0 }\"\n :class=\"[bem.e('content'), symbolClass]\"\n >\n <slot />\n </div>\n <div\n v-if=\"props.showFooter\"\n :class=\"[bem.e('footer'), hasScroll ? bem.is('has-scroll') : '']\"\n >\n <slot name=\"footer\">\n <div :class=\"bem.e('footer-left')\">\n <slot name=\"footer-left\" />\n </div>\n <div :class=\"bem.e('footer-right')\">\n <slot name=\"footer-right\">\n <ll-button\n v-if=\"showCancel\"\n :class=\"bem.m('cancel')\"\n :label=\"props.cancelText\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n :label=\"props.confirmText\"\n @click=\"handleConfirm\"\n >\n </ll-button>\n </slot>\n </div>\n </slot>\n </div>\n </div>\n </Drawer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, nextTick, useAttrs } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { throttle, omit } from 'lodash-es'\nimport { drawerProps, drawerEmits, drawerOptions } from './drawer'\nimport { useSecondConfirmation } from './components/second-confirmation'\n\ndefineOptions({ name: 'LlDrawer' })\n\nconst props = defineProps(drawerProps)\n\nconst emits = defineEmits(drawerEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('drawer')\n\nconst content = ref<HTMLElement>()\n\nconst hasScroll = ref(false)\n\nconst symbolClass = ref(`ll-darwer-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => ({\n ...drawerOptions,\n ...omit({ ...attrs }, [...Object.keys(drawerProps), 'rootClassName'])\n}))\n\nconst handleClose = (): void => {\n if (props.useClose) {\n emits('close')\n } else {\n handleCancel()\n return\n }\n emits('update:open')\n}\nconst handleCancel = (): void => {\n if (props.cancelConfirm) {\n useSecondConfirmation(\n props.cancelConfirmOptions || {\n title: '温馨提示',\n message: '你有未保存的更改,确定关闭?'\n }\n ).then(async () => {\n // 点击保存按钮则关闭弹窗和抽屉\n emits('cancel')\n })\n return\n }\n emits('cancel')\n}\nconst handleConfirm = (): void => {\n emits('confirm')\n}\nconst handleResize = async () => {\n await nextTick()\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n if (ele) {\n setTimeout(() => {\n hasScroll.value = ele.scrollHeight > ele.clientHeight\n }, 0)\n }\n}\nwatch(\n () => props.open,\n val => {\n if (val) {\n handleResize()\n window.addEventListener('resize', throttle(handleResize, 500))\n } else {\n window.removeEventListener('resize', handleResize)\n }\n }\n)\n</script>\n"],"names":["useAttrs","createNamespace","ref","computed","drawerOptions","omit","drawerProps","useSecondConfirmation","nextTick","watch","throttle"],"mappings":";;;;;;;;;;;;;;;;;;;;AAgEA,IAAA,MAAM,KAAQ,GAAA,OAAA,CAAA;AAEd,IAAA,MAAM,KAAQ,GAAA,MAAA,CAAA;AAEd,IAAA,MAAM,QAAQA,YAAS,EAAA,CAAA;AAEvB,IAAM,MAAA,GAAA,GAAMC,gCAAgB,QAAQ,CAAA,CAAA;AAEpC,IAAA,MAAM,UAAUC,OAAiB,EAAA,CAAA;AAEjC,IAAM,MAAA,SAAA,GAAYA,QAAI,KAAK,CAAA,CAAA;AAE3B,IAAM,MAAA,WAAA,GAAcA,QAAI,CAAa,UAAA,EAAA,iBAAA,IAAI,MAAO,EAAA,OAAA,EAAS,CAAE,CAAA,CAAA,CAAA;AAE3D,IAAM,MAAA,YAAA,GAAeC,aAAS,OAAO;AAAA,MACnC,GAAGC,oBAAA;AAAA,MACH,GAAGC,aAAA,CAAK,EAAE,GAAG,KAAM,EAAA,EAAG,CAAC,GAAG,MAAO,CAAA,IAAA,CAAKC,kBAAW,CAAA,EAAG,eAAe,CAAC,CAAA;AAAA,KACpE,CAAA,CAAA,CAAA;AAEF,IAAA,MAAM,cAAc,MAAY;AAC9B,MAAA,IAAI,MAAM,QAAU,EAAA;AAClB,QAAA,KAAA,CAAM,OAAO,CAAA,CAAA;AAAA,OACR,MAAA;AACL,QAAa,YAAA,EAAA,CAAA;AACb,QAAA,OAAA;AAAA,OACF;AACA,MAAA,KAAA,CAAM,aAAa,CAAA,CAAA;AAAA,KACrB,CAAA;AACA,IAAA,MAAM,eAAe,MAAY;AAC/B,MAAA,IAAI,MAAM,aAAe,EAAA;AACvB,QAAAC,2CAAA;AAAA,UACE,MAAM,oBAAwB,IAAA;AAAA,YAC5B,KAAO,EAAA,0BAAA;AAAA,YACP,OAAS,EAAA,sFAAA;AAAA,WACX;AAAA,SACF,CAAE,KAAK,YAAY;AAEjB,UAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAAA,SACf,CAAA,CAAA;AACD,QAAA,OAAA;AAAA,OACF;AACA,MAAA,KAAA,CAAM,QAAQ,CAAA,CAAA;AAAA,KAChB,CAAA;AACA,IAAA,MAAM,gBAAgB,MAAY;AAChC,MAAA,KAAA,CAAM,SAAS,CAAA,CAAA;AAAA,KACjB,CAAA;AACA,IAAA,MAAM,eAAe,YAAY;AAC/B,MAAA,MAAMC,YAAS,EAAA,CAAA;AACf,MAAA,MAAM,MAAM,QAAS,CAAA,sBAAA,CAAuB,WAAY,CAAA,KAAK,EAAE,CAAC,CAAA,CAAA;AAChE,MAAA,IAAI,GAAK,EAAA;AACP,QAAA,UAAA,CAAW,MAAM;AACf,UAAU,SAAA,CAAA,KAAA,GAAQ,GAAI,CAAA,YAAA,GAAe,GAAI,CAAA,YAAA,CAAA;AAAA,WACxC,CAAC,CAAA,CAAA;AAAA,OACN;AAAA,KACF,CAAA;AACA,IAAAC,SAAA;AAAA,MACE,MAAM,KAAM,CAAA,IAAA;AAAA,MACZ,CAAO,GAAA,KAAA;AACL,QAAA,IAAI,GAAK,EAAA;AACP,UAAa,YAAA,EAAA,CAAA;AACb,UAAA,MAAA,CAAO,gBAAiB,CAAA,QAAA,EAAUC,iBAAS,CAAA,YAAA,EAAc,GAAG,CAAC,CAAA,CAAA;AAAA,SACxD,MAAA;AACL,UAAO,MAAA,CAAA,mBAAA,CAAoB,UAAU,YAAY,CAAA,CAAA;AAAA,SACnD;AAAA,OACF;AAAA,KACF,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"drawer.vue2.js","sources":["../../../../../packages/components/drawer/src/drawer.vue"],"sourcesContent":["<template>\n <Drawer\n v-bind=\"getBindValue\"\n :title=\"props.title\"\n :open=\"props.open\"\n :root-class-name=\"bem.b()\"\n @close=\"handleClose\"\n >\n <template #title>\n <slot name=\"title\" />\n </template>\n <template #extra>\n <slot name=\"extra\" />\n </template>\n <div :class=\"[bem.e('container'), hasScroll ? bem.is('has-scroll') : '']\">\n <div ref=\"content\" :class=\"[bem.e('content'), symbolClass]\">\n <!-- <div v-if=\"hasScroll\" :class=\"bem.e('shandow')\" /> -->\n <div :class=\"[symbolComparedClass]\">\n <slot />\n </div>\n </div>\n <div\n v-if=\"props.showFooter\"\n :class=\"[bem.e('footer'), hasScroll ? bem.is('has-scroll') : '']\"\n >\n <slot name=\"footer\">\n <div :class=\"bem.e('footer-left')\">\n <slot name=\"footer-left\" />\n </div>\n <div :class=\"bem.e('footer-right')\">\n <slot name=\"footer-right\">\n <ll-button\n v-if=\"showCancel\"\n :class=\"bem.m('cancel')\"\n :label=\"props.cancelText\"\n @click=\"handleCancel\"\n >\n </ll-button>\n <ll-button\n type=\"primary\"\n :loading=\"props.loading\"\n :label=\"props.confirmText\"\n @click=\"handleConfirm\"\n >\n </ll-button>\n </slot>\n </div>\n </slot>\n </div>\n </div>\n </Drawer>\n</template>\n\n<script setup lang=\"ts\">\nimport { ref, computed, watch, nextTick, useAttrs } from 'vue'\nimport { Drawer } from 'ant-design-vue'\nimport { createNamespace } from '@ll-plus/utils'\nimport { omit } from 'lodash-es'\nimport { drawerProps, drawerEmits, drawerOptions } from './drawer'\nimport { useSecondConfirmation } from './components/second-confirmation'\n\ndefineOptions({ name: 'LlDrawer' })\n\nconst props = defineProps(drawerProps)\n\nconst emits = defineEmits(drawerEmits)\n\nconst attrs = useAttrs()\n\nconst bem = createNamespace('drawer')\n\nconst content = ref<HTMLElement>()\n\nconst hasScroll = ref(false)\n\nconst symbolClass = ref(`ll-darwer-${new Date().getTime()}`)\n\nconst symbolComparedClass = ref(`model-content-${new Date().getTime()}`)\n\nconst getBindValue = computed(() => ({\n ...drawerOptions,\n ...omit({ ...attrs }, [...Object.keys(drawerProps), 'rootClassName'])\n}))\n\nconst handleClose = (): void => {\n if (props.useClose) {\n emits('close')\n } else {\n handleCancel()\n return\n }\n emits('update:open')\n}\nconst handleCancel = (): void => {\n if (props.cancelConfirm) {\n useSecondConfirmation(\n props.cancelConfirmOptions || {\n title: '温馨提示',\n message: '你有未保存的更改,确定关闭?'\n }\n ).then(async () => {\n // 点击保存按钮则关闭弹窗和抽屉\n emits('cancel')\n })\n return\n }\n emits('cancel')\n}\nconst handleConfirm = (): void => {\n emits('confirm')\n}\n// const handleResize = async () => {\n// await nextTick()\n// const ele = document.getElementsByClassName(symbolClass.value)[0]\n// if (ele) {\n// setTimeout(() => {\n// hasScroll.value = ele.scrollHeight > ele.clientHeight\n// }, 0)\n// }\n// }\n\nconst handleResize = async (value: boolean) => {\n await nextTick()\n const ele = document.getElementsByClassName(symbolClass.value)[0]\n const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0]\n const resizeObserver = new ResizeObserver(entries => {\n // 处理大小变化的回调函数\n const { clientHeight } = entries[0].target\n const scrollHeight = ele.clientHeight\n hasScroll.value = clientHeight > scrollHeight\n console.log(clientHeight, scrollHeight, hasScroll.value)\n })\n if (value) {\n resizeObserver.observe(modalBody)\n } else {\n resizeObserver.unobserve(modalBody)\n }\n}\n\nwatch(\n () => props.open,\n val => {\n handleResize(val)\n }\n)\n</script>\n"],"names":["useAttrs","createNamespace","ref","computed","drawerOptions","omit","drawerProps","useSecondConfirmation","nextTick","watch"],"mappings":"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"}
@@ -4,6 +4,7 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
4
4
  readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
5
5
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
6
6
  readonly type: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload") | ((new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload"))[], unknown, unknown, "operate", boolean>;
7
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
7
8
  readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
8
9
  readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
9
10
  readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -22,6 +23,7 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
22
23
  readonly cancelText: string;
23
24
  readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
24
25
  readonly confirmText: string;
26
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
25
27
  readonly "onUpdate:open"?: (() => any) | undefined;
26
28
  readonly onOk?: (() => any) | undefined;
27
29
  readonly onCancel?: (() => any) | undefined;
@@ -43,6 +45,7 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
43
45
  modal: import("vue").Ref<HTMLElement | undefined>;
44
46
  hasScroll: import("vue").Ref<boolean>;
45
47
  symbolClass: import("vue").Ref<string>;
48
+ symbolComparedClass: import("vue").Ref<string>;
46
49
  getBindValue: import("vue").ComputedRef<import("./src/modal").IResultType>;
47
50
  handleCancel: () => void;
48
51
  handleOk: () => void;
@@ -1947,6 +1950,7 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
1947
1950
  readonly title: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "提示", boolean>;
1948
1951
  readonly loading: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1949
1952
  readonly type: import("ll-plus/es/utils").EpPropFinalized<(new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload") | ((new (...args: any[]) => "confirm" | "operate" | "upload") | (() => "confirm" | "operate" | "upload"))[], unknown, unknown, "operate", boolean>;
1953
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropFinalized<BooleanConstructor, unknown, unknown, false, boolean>;
1950
1954
  readonly class: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
1951
1955
  readonly wrapClassName: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
1952
1956
  readonly confirmText: import("ll-plus/es/utils").EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
@@ -1968,6 +1972,7 @@ export declare const LlModal: import("ll-plus/es/utils").SFCWithInstall<import("
1968
1972
  readonly cancelText: string;
1969
1973
  readonly showCancel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
1970
1974
  readonly confirmText: string;
1975
+ readonly isConfirmModel: import("ll-plus/es/utils").EpPropMergeType<BooleanConstructor, unknown, unknown>;
1971
1976
  }, {}>>;
1972
1977
  export default LlModal;
1973
1978
  export * from './src/modal';