@julingbase/jly-arco-design 0.0.5 → 0.0.7

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.
@@ -71,6 +71,11 @@ var _Input = vue.defineComponent({
71
71
  enableToolTip: {
72
72
  type: Boolean,
73
73
  default: false
74
+ },
75
+ toolTipProps: {
76
+ type: Object,
77
+ default: () => {
78
+ }
74
79
  }
75
80
  },
76
81
  emits: {
@@ -278,9 +283,7 @@ var _Input = vue.defineComponent({
278
283
  "onMousedown": handleMousedown
279
284
  }, !hasOuter ? wrapperAttrs.value : void 0), [slots.prefix && vue.createVNode("span", {
280
285
  "class": `${prefixCls}-prefix`
281
- }, [slots.prefix()]), vue.createVNode(index, vue.mergeProps({
282
- "content": props.placeholder
283
- }, inputToolTipAttrs.value), {
286
+ }, [slots.prefix()]), vue.createVNode(index, vue.mergeProps(inputToolTipAttrs.value, props.toolTipProps), {
284
287
  default: () => [vue.createVNode("input", vue.mergeProps({
285
288
  "ref": inputRef,
286
289
  "class": cls.value,
@@ -311,7 +311,7 @@ var _Upload = vue.defineComponent({
311
311
  for (let i = 0; i < files.length; i++) {
312
312
  const file = files[i];
313
313
  if (is.isFunction(props.onBeforeUpload)) {
314
- Promise.resolve(props.onBeforeUpload(file)).then((result) => {
314
+ Promise.resolve(props.onBeforeUpload(file, files.length)).then((result) => {
315
315
  if (result) {
316
316
  initUpload(is.isBoolean(result) ? file : result, i);
317
317
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@julingbase/jly-arco-design",
3
- "version": "0.0.5",
3
+ "version": "0.0.7",
4
4
  "description": "基于arco-design-vue的二次封装组件库",
5
5
  "author": "lzh",
6
6
  "license": "MIT",
@@ -97,5 +97,5 @@
97
97
  "scroll-into-view-if-needed": "^2.2.31",
98
98
  "vue": "^3.1.0"
99
99
  },
100
- "gitHead": "2e40a86bb4f9daa2c5a52b0fa2b8ed6f385e227a"
100
+ "gitHead": "179f84a41552abc8a9d46822ba5c5df5bf334ddc"
101
101
  }