ll-plus 2.3.10 → 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 (85) 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/operate-icon/index.d.ts +1 -0
  15. package/es/components/operate-icon/src/operate-icon.vue.d.ts +1 -0
  16. package/es/components/operate-icon/src/operate-icon.vue2.mjs +3 -1
  17. package/es/components/operate-icon/src/operate-icon.vue2.mjs.map +1 -1
  18. package/es/components/table/index.d.ts +8 -0
  19. package/es/components/table/src/components/main-table.vue.d.ts +4 -0
  20. package/es/components/table/src/config/main-table.d.ts +1 -0
  21. package/es/components/table/src/config/main-table.mjs +7 -0
  22. package/es/components/table/src/config/main-table.mjs.map +1 -1
  23. package/es/components/table/src/config/table.d.ts +2 -0
  24. package/es/components/table/src/table.vue.d.ts +8 -0
  25. package/es/components/tree-search/index.d.ts +3 -0
  26. package/es/components/tree-search/src/config/tree-search.d.ts +1 -0
  27. package/es/components/tree-search/src/tree-search.vue.d.ts +3 -0
  28. package/es/utils/props/runtime.d.ts +2 -2
  29. package/index.full.js +72 -171
  30. package/index.full.min.js +22 -22
  31. package/index.full.min.js.map +1 -1
  32. package/index.full.min.mjs +19 -19
  33. package/index.full.min.mjs.map +1 -1
  34. package/index.full.mjs +72 -171
  35. package/lib/components/drawer/index.d.ts +2 -1
  36. package/lib/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
  37. package/lib/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
  38. package/lib/components/drawer/src/drawer.vue.d.ts +2 -1
  39. package/lib/components/drawer/src/drawer.vue2.js +29 -16
  40. package/lib/components/drawer/src/drawer.vue2.js.map +1 -1
  41. package/lib/components/modal/index.d.ts +5 -0
  42. package/lib/components/modal/src/modal.d.ts +1 -0
  43. package/lib/components/modal/src/modal.js +4 -0
  44. package/lib/components/modal/src/modal.js.map +1 -1
  45. package/lib/components/modal/src/modal.vue.d.ts +5 -0
  46. package/lib/components/modal/src/modal.vue2.js +24 -6
  47. package/lib/components/modal/src/modal.vue2.js.map +1 -1
  48. package/lib/components/operate-icon/index.d.ts +1 -0
  49. package/lib/components/operate-icon/src/operate-icon.vue.d.ts +1 -0
  50. package/lib/components/operate-icon/src/operate-icon.vue2.js +3 -1
  51. package/lib/components/operate-icon/src/operate-icon.vue2.js.map +1 -1
  52. package/lib/components/table/index.d.ts +8 -0
  53. package/lib/components/table/src/components/main-table.vue.d.ts +4 -0
  54. package/lib/components/table/src/config/main-table.d.ts +1 -0
  55. package/lib/components/table/src/config/main-table.js +7 -0
  56. package/lib/components/table/src/config/main-table.js.map +1 -1
  57. package/lib/components/table/src/config/table.d.ts +2 -0
  58. package/lib/components/table/src/table.vue.d.ts +8 -0
  59. package/lib/components/tree-search/index.d.ts +3 -0
  60. package/lib/components/tree-search/src/config/tree-search.d.ts +1 -0
  61. package/lib/components/tree-search/src/tree-search.vue.d.ts +3 -0
  62. package/lib/utils/props/runtime.d.ts +2 -2
  63. package/package.json +1 -1
  64. package/theme-chalk/css/drawer.css +1 -1
  65. package/theme-chalk/css/index.css +1 -1
  66. package/theme-chalk/css/key-value.css +1 -1
  67. package/theme-chalk/css/modal.css +1 -1
  68. package/types/packages/components/drawer/index.d.ts +2 -1
  69. package/types/packages/components/drawer/src/components/second-confirmation/index.d.ts +5 -0
  70. package/types/packages/components/drawer/src/components/second-confirmation/src/second-confirmation.vue.d.ts +5 -0
  71. package/types/packages/components/drawer/src/drawer.vue.d.ts +2 -1
  72. package/types/packages/components/modal/index.d.ts +5 -0
  73. package/types/packages/components/modal/src/modal.d.ts +1 -0
  74. package/types/packages/components/modal/src/modal.vue.d.ts +5 -0
  75. package/types/packages/components/operate-icon/index.d.ts +1 -0
  76. package/types/packages/components/operate-icon/src/operate-icon.vue.d.ts +1 -0
  77. package/types/packages/components/table/index.d.ts +8 -0
  78. package/types/packages/components/table/src/components/main-table.vue.d.ts +4 -0
  79. package/types/packages/components/table/src/config/main-table.d.ts +1 -0
  80. package/types/packages/components/table/src/config/table.d.ts +2 -0
  81. package/types/packages/components/table/src/table.vue.d.ts +8 -0
  82. package/types/packages/components/tree-search/index.d.ts +3 -0
  83. package/types/packages/components/tree-search/src/config/tree-search.d.ts +1 -0
  84. package/types/packages/components/tree-search/src/tree-search.vue.d.ts +3 -0
  85. package/types/packages/utils/props/runtime.d.ts +2 -2
package/index.full.js CHANGED
@@ -115,48 +115,11 @@
115
115
  return result == "0" && 1 / value == -INFINITY$1 ? "-0" : result;
116
116
  }
117
117
 
118
- var reWhitespace = /\s/;
119
- function trimmedEndIndex(string) {
120
- var index = string.length;
121
- while (index-- && reWhitespace.test(string.charAt(index))) {
122
- }
123
- return index;
124
- }
125
-
126
- var reTrimStart = /^\s+/;
127
- function baseTrim(string) {
128
- return string ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, "") : string;
129
- }
130
-
131
118
  function isObject$1(value) {
132
119
  var type = typeof value;
133
120
  return value != null && (type == "object" || type == "function");
134
121
  }
135
122
 
136
- var NAN = 0 / 0;
137
- var reIsBadHex = /^[-+]0x[0-9a-f]+$/i;
138
- var reIsBinary = /^0b[01]+$/i;
139
- var reIsOctal = /^0o[0-7]+$/i;
140
- var freeParseInt = parseInt;
141
- function toNumber(value) {
142
- if (typeof value == "number") {
143
- return value;
144
- }
145
- if (isSymbol(value)) {
146
- return NAN;
147
- }
148
- if (isObject$1(value)) {
149
- var other = typeof value.valueOf == "function" ? value.valueOf() : value;
150
- value = isObject$1(other) ? other + "" : other;
151
- }
152
- if (typeof value != "string") {
153
- return value === 0 ? value : +value;
154
- }
155
- value = baseTrim(value);
156
- var isBinary = reIsBinary.test(value);
157
- return isBinary || reIsOctal.test(value) ? freeParseInt(value.slice(2), isBinary ? 2 : 8) : reIsBadHex.test(value) ? NAN : +value;
158
- }
159
-
160
123
  function identity(value) {
161
124
  return value;
162
125
  }
@@ -376,11 +339,11 @@
376
339
  return object;
377
340
  }
378
341
 
379
- var nativeMax$1 = Math.max;
342
+ var nativeMax = Math.max;
380
343
  function overRest(func, start, transform) {
381
- start = nativeMax$1(start === void 0 ? func.length - 1 : start, 0);
344
+ start = nativeMax(start === void 0 ? func.length - 1 : start, 0);
382
345
  return function() {
383
- var args = arguments, index = -1, length = nativeMax$1(args.length - start, 0), array = Array(length);
346
+ var args = arguments, index = -1, length = nativeMax(args.length - start, 0), array = Array(length);
384
347
  while (++index < length) {
385
348
  array[index] = args[start + index];
386
349
  }
@@ -759,10 +722,10 @@
759
722
  MapCache.prototype.has = mapCacheHas;
760
723
  MapCache.prototype.set = mapCacheSet;
761
724
 
762
- var FUNC_ERROR_TEXT$2 = "Expected a function";
725
+ var FUNC_ERROR_TEXT = "Expected a function";
763
726
  function memoize(func, resolver) {
764
727
  if (typeof func != "function" || resolver != null && typeof resolver != "function") {
765
- throw new TypeError(FUNC_ERROR_TEXT$2);
728
+ throw new TypeError(FUNC_ERROR_TEXT);
766
729
  }
767
730
  var memoized = function() {
768
731
  var args = arguments, key = resolver ? resolver.apply(this, args) : args[0], cache = memoized.cache;
@@ -1303,95 +1266,6 @@
1303
1266
  return !!length && isLength(length) && isIndex(key, length) && (isArray$1(object) || isArguments$1(object));
1304
1267
  }
1305
1268
 
1306
- var now$1 = function() {
1307
- return root.Date.now();
1308
- };
1309
-
1310
- var FUNC_ERROR_TEXT$1 = "Expected a function";
1311
- var nativeMax = Math.max;
1312
- var nativeMin = Math.min;
1313
- function debounce(func, wait, options) {
1314
- var lastArgs, lastThis, maxWait, result, timerId, lastCallTime, lastInvokeTime = 0, leading = false, maxing = false, trailing = true;
1315
- if (typeof func != "function") {
1316
- throw new TypeError(FUNC_ERROR_TEXT$1);
1317
- }
1318
- wait = toNumber(wait) || 0;
1319
- if (isObject$1(options)) {
1320
- leading = !!options.leading;
1321
- maxing = "maxWait" in options;
1322
- maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;
1323
- trailing = "trailing" in options ? !!options.trailing : trailing;
1324
- }
1325
- function invokeFunc(time) {
1326
- var args = lastArgs, thisArg = lastThis;
1327
- lastArgs = lastThis = void 0;
1328
- lastInvokeTime = time;
1329
- result = func.apply(thisArg, args);
1330
- return result;
1331
- }
1332
- function leadingEdge(time) {
1333
- lastInvokeTime = time;
1334
- timerId = setTimeout(timerExpired, wait);
1335
- return leading ? invokeFunc(time) : result;
1336
- }
1337
- function remainingWait(time) {
1338
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime, timeWaiting = wait - timeSinceLastCall;
1339
- return maxing ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke) : timeWaiting;
1340
- }
1341
- function shouldInvoke(time) {
1342
- var timeSinceLastCall = time - lastCallTime, timeSinceLastInvoke = time - lastInvokeTime;
1343
- return lastCallTime === void 0 || timeSinceLastCall >= wait || timeSinceLastCall < 0 || maxing && timeSinceLastInvoke >= maxWait;
1344
- }
1345
- function timerExpired() {
1346
- var time = now$1();
1347
- if (shouldInvoke(time)) {
1348
- return trailingEdge(time);
1349
- }
1350
- timerId = setTimeout(timerExpired, remainingWait(time));
1351
- }
1352
- function trailingEdge(time) {
1353
- timerId = void 0;
1354
- if (trailing && lastArgs) {
1355
- return invokeFunc(time);
1356
- }
1357
- lastArgs = lastThis = void 0;
1358
- return result;
1359
- }
1360
- function cancel() {
1361
- if (timerId !== void 0) {
1362
- clearTimeout(timerId);
1363
- }
1364
- lastInvokeTime = 0;
1365
- lastArgs = lastCallTime = lastThis = timerId = void 0;
1366
- }
1367
- function flush() {
1368
- return timerId === void 0 ? result : trailingEdge(now$1());
1369
- }
1370
- function debounced() {
1371
- var time = now$1(), isInvoking = shouldInvoke(time);
1372
- lastArgs = arguments;
1373
- lastThis = this;
1374
- lastCallTime = time;
1375
- if (isInvoking) {
1376
- if (timerId === void 0) {
1377
- return leadingEdge(lastCallTime);
1378
- }
1379
- if (maxing) {
1380
- clearTimeout(timerId);
1381
- timerId = setTimeout(timerExpired, wait);
1382
- return invokeFunc(lastCallTime);
1383
- }
1384
- }
1385
- if (timerId === void 0) {
1386
- timerId = setTimeout(timerExpired, wait);
1387
- }
1388
- return result;
1389
- }
1390
- debounced.cancel = cancel;
1391
- debounced.flush = flush;
1392
- return debounced;
1393
- }
1394
-
1395
1269
  function last(array) {
1396
1270
  var length = array == null ? 0 : array.length;
1397
1271
  return length ? array[length - 1] : void 0;
@@ -1490,23 +1364,6 @@
1490
1364
  return result;
1491
1365
  });
1492
1366
 
1493
- var FUNC_ERROR_TEXT = "Expected a function";
1494
- function throttle$1(func, wait, options) {
1495
- var leading = true, trailing = true;
1496
- if (typeof func != "function") {
1497
- throw new TypeError(FUNC_ERROR_TEXT);
1498
- }
1499
- if (isObject$1(options)) {
1500
- leading = "leading" in options ? !!options.leading : leading;
1501
- trailing = "trailing" in options ? !!options.trailing : trailing;
1502
- }
1503
- return debounce(func, wait, {
1504
- "leading": leading,
1505
- "maxWait": wait,
1506
- "trailing": trailing
1507
- });
1508
- }
1509
-
1510
1367
  const hasOwnProperty$1 = Object.prototype.hasOwnProperty;
1511
1368
  const hasOwn = (val, key) => hasOwnProperty$1.call(val, key);
1512
1369
  const isObject = (val) => val !== null && typeof val === "object";
@@ -46912,6 +46769,7 @@
46912
46769
  const content = require$$0.ref();
46913
46770
  const hasScroll = require$$0.ref(false);
46914
46771
  const symbolClass = require$$0.ref(`ll-darwer-${(/* @__PURE__ */ new Date()).getTime()}`);
46772
+ const symbolComparedClass = require$$0.ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
46915
46773
  const getBindValue = require$$0.computed(() => ({
46916
46774
  ...drawerOptions,
46917
46775
  ...omit({ ...attrs }, [...Object.keys(drawerProps), "rootClassName"])
@@ -46942,24 +46800,26 @@
46942
46800
  const handleConfirm = () => {
46943
46801
  emits("confirm");
46944
46802
  };
46945
- const handleResize = async () => {
46803
+ const handleResize = async (value) => {
46946
46804
  await require$$0.nextTick();
46947
46805
  const ele = document.getElementsByClassName(symbolClass.value)[0];
46948
- if (ele) {
46949
- setTimeout(() => {
46950
- hasScroll.value = ele.scrollHeight > ele.clientHeight;
46951
- }, 0);
46806
+ const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0];
46807
+ const resizeObserver = new ResizeObserver((entries) => {
46808
+ const { clientHeight } = entries[0].target;
46809
+ const scrollHeight = ele.clientHeight;
46810
+ hasScroll.value = clientHeight > scrollHeight;
46811
+ console.log(clientHeight, scrollHeight, hasScroll.value);
46812
+ });
46813
+ if (value) {
46814
+ resizeObserver.observe(modalBody);
46815
+ } else {
46816
+ resizeObserver.unobserve(modalBody);
46952
46817
  }
46953
46818
  };
46954
46819
  require$$0.watch(
46955
46820
  () => props.open,
46956
46821
  (val) => {
46957
- if (val) {
46958
- handleResize();
46959
- window.addEventListener("resize", throttle$1(handleResize, 500));
46960
- } else {
46961
- window.removeEventListener("resize", handleResize);
46962
- }
46822
+ handleResize(val);
46963
46823
  }
46964
46824
  );
46965
46825
  return (_ctx, _cache) => {
@@ -46980,7 +46840,7 @@
46980
46840
  require$$0.createElementVNode(
46981
46841
  "div",
46982
46842
  {
46983
- class: require$$0.normalizeClass(require$$0.unref(bem).e("container"))
46843
+ class: require$$0.normalizeClass([require$$0.unref(bem).e("container"), hasScroll.value ? require$$0.unref(bem).is("has-scroll") : ""])
46984
46844
  },
46985
46845
  [
46986
46846
  require$$0.createElementVNode(
@@ -46988,14 +46848,24 @@
46988
46848
  {
46989
46849
  ref_key: "content",
46990
46850
  ref: content,
46991
- style: require$$0.normalizeStyle({ marginBottom: props.showFooter ? "72px" : 0 }),
46992
46851
  class: require$$0.normalizeClass([require$$0.unref(bem).e("content"), symbolClass.value])
46993
46852
  },
46994
46853
  [
46995
- require$$0.renderSlot(_ctx.$slots, "default")
46854
+ require$$0.createCommentVNode(` <div v-if="hasScroll" :class="bem.e('shandow')" /> `),
46855
+ require$$0.createElementVNode(
46856
+ "div",
46857
+ {
46858
+ class: require$$0.normalizeClass([symbolComparedClass.value])
46859
+ },
46860
+ [
46861
+ require$$0.renderSlot(_ctx.$slots, "default")
46862
+ ],
46863
+ 2
46864
+ /* CLASS */
46865
+ )
46996
46866
  ],
46997
- 6
46998
- /* CLASS, STYLE */
46867
+ 2
46868
+ /* CLASS */
46999
46869
  ),
47000
46870
  props.showFooter ? (require$$0.openBlock(), require$$0.createElementBlock(
47001
46871
  "div",
@@ -59051,6 +58921,10 @@
59051
58921
  type: definePropType(String),
59052
58922
  default: "operate"
59053
58923
  },
58924
+ isConfirmModel: {
58925
+ type: Boolean,
58926
+ default: false
58927
+ },
59054
58928
  /**
59055
58929
  * @description 弹窗class
59056
58930
  */
@@ -59119,6 +58993,7 @@
59119
58993
  const modal = require$$0.ref();
59120
58994
  const hasScroll = require$$0.ref(false);
59121
58995
  const symbolClass = require$$0.ref(`ll-modal-${(/* @__PURE__ */ new Date()).getTime()}`);
58996
+ const symbolComparedClass = require$$0.ref(`model-content-${(/* @__PURE__ */ new Date()).getTime()}`);
59122
58997
  const getBindValue = require$$0.computed(() => {
59123
58998
  const result = {
59124
58999
  ...omit({ ...attrs }, [...Object.keys(modalProps), "wrapClassName"])
@@ -59138,10 +59013,11 @@
59138
59013
  const handleResize = async (value) => {
59139
59014
  await require$$0.nextTick();
59140
59015
  const ele = document.getElementsByClassName(symbolClass.value)[0];
59141
- const modalBody = ele.getElementsByClassName(`ant-modal-body`)[0];
59016
+ const modalBody = ele.getElementsByClassName(symbolComparedClass.value)[0];
59142
59017
  const resizeObserver = new ResizeObserver((entries) => {
59143
- const { scrollHeight, clientHeight } = entries[0].target;
59144
- hasScroll.value = scrollHeight > clientHeight;
59018
+ const { clientHeight } = entries[0].target;
59019
+ const scrollHeight = ele.clientHeight;
59020
+ hasScroll.value = clientHeight > scrollHeight;
59145
59021
  });
59146
59022
  if (value) {
59147
59023
  resizeObserver.observe(modalBody);
@@ -59162,7 +59038,11 @@
59162
59038
  open: props.open,
59163
59039
  title: props.title,
59164
59040
  "wrap-class-name": `${require$$0.unref(bem).b()} ${props.wrapClassName}`,
59165
- class: [props.class, symbolClass.value, hasScroll.value ? require$$0.unref(bem).is("has-scroll") : ""],
59041
+ class: [
59042
+ props.class,
59043
+ hasScroll.value ? require$$0.unref(bem).is("has-scroll") : "",
59044
+ require$$0.unref(bem).is(props.isConfirmModel ? "confirm-model" : "")
59045
+ ],
59166
59046
  onCancel: handleCancel,
59167
59047
  onOk: handleOk
59168
59048
  }), require$$0.createSlots({
@@ -59170,10 +59050,20 @@
59170
59050
  require$$0.createElementVNode(
59171
59051
  "div",
59172
59052
  {
59173
- class: require$$0.normalizeClass([require$$0.unref(bem).e("container"), require$$0.unref(bem).is(props.type)])
59053
+ class: require$$0.normalizeClass([require$$0.unref(bem).e("container"), symbolClass.value, require$$0.unref(bem).is(props.type)])
59174
59054
  },
59175
59055
  [
59176
- require$$0.renderSlot(_ctx.$slots, "default")
59056
+ require$$0.createElementVNode(
59057
+ "div",
59058
+ {
59059
+ class: require$$0.normalizeClass([symbolComparedClass.value])
59060
+ },
59061
+ [
59062
+ require$$0.renderSlot(_ctx.$slots, "default")
59063
+ ],
59064
+ 2
59065
+ /* CLASS */
59066
+ )
59177
59067
  ],
59178
59068
  2
59179
59069
  /* CLASS */
@@ -59190,11 +59080,13 @@
59190
59080
  props.showCancel && props.type !== "confirm" ? (require$$0.openBlock(), require$$0.createBlock(require$$0.unref(LlButton), {
59191
59081
  key: 0,
59192
59082
  label: props.cancelText ? props.cancelText : "\u53D6\u6D88",
59083
+ size: "middle",
59193
59084
  onClick: handleCancel
59194
59085
  }, null, 8, ["label"])) : require$$0.createCommentVNode("v-if", true),
59195
59086
  require$$0.createVNode(require$$0.unref(LlButton), {
59196
59087
  type: "primary",
59197
59088
  loading: props.loading,
59089
+ size: "middle",
59198
59090
  label: props.confirmText ? props.confirmText : props.type === "confirm" ? "\u77E5\u9053\u4E86" : "\u786E\u8BA4",
59199
59091
  onClick: handleOk
59200
59092
  }, null, 8, ["loading", "label"])
@@ -59494,6 +59386,7 @@
59494
59386
  emits("update:dropdownOpen", false);
59495
59387
  }
59496
59388
  };
59389
+ const handleDropdownParentClick = () => dropdownOpen.value = false;
59497
59390
  const handleIconMouseenter = () => {
59498
59391
  dropdownOpen.value = true;
59499
59392
  emits("update:dropdownOpen", true);
@@ -59558,7 +59451,8 @@
59558
59451
  return require$$0.openBlock(), require$$0.createBlock(
59559
59452
  _component_a_menu_item,
59560
59453
  {
59561
- key: item.iconName
59454
+ key: item.iconName,
59455
+ onClick: handleDropdownParentClick
59562
59456
  },
59563
59457
  {
59564
59458
  default: require$$0.withCtx(() => [
@@ -61680,6 +61574,13 @@
61680
61574
  };
61681
61575
 
61682
61576
  const mainTableProps = buildProps({
61577
+ /**
61578
+ * @description 动态插槽显示card和table
61579
+ */
61580
+ contentType: {
61581
+ type: String,
61582
+ default: ""
61583
+ },
61683
61584
  /**
61684
61585
  * @description 操作栏编辑操作列的key,用于下次记录用户行为
61685
61586
  */