@julingbase/jly-arco-design 0.0.4 → 0.0.5
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.
- package/README.md +5 -0
- package/dist/arco-vue.js +2451 -2434
- package/dist/arco-vue.js.map +1 -1
- package/dist/arco-vue.min.js +1295 -1294
- package/dist/arco-vue.min.js.map +1 -1
- package/es/_components/input-label/input-label.d.ts +2 -2
- package/es/_components/picker/input-range.d.ts +2 -2
- package/es/_components/picker/input.d.ts +2 -2
- package/es/_components/select-view/select-view.d.ts +1 -1
- package/es/auto-complete/auto-complete.d.ts +3 -3
- package/es/auto-complete/index.d.ts +9 -9
- package/es/calendar/calendar.d.ts +1 -1
- package/es/calendar/index.d.ts +3 -3
- package/es/cascader/cascader-panel.d.ts +3 -3
- package/es/cascader/cascader.d.ts +6 -6
- package/es/cascader/index.d.ts +20 -20
- package/es/checkbox/checkbox-group.d.ts +2 -2
- package/es/checkbox/checkbox.d.ts +1 -1
- package/es/checkbox/index.d.ts +5 -5
- package/es/color-picker/color-picker.d.ts +1 -1
- package/es/color-picker/index.d.ts +3 -3
- package/es/date-picker/index.d.ts +5 -5
- package/es/date-picker/picker.d.ts +5 -5
- package/es/date-picker/range-picker.d.ts +5 -5
- package/es/drawer/drawer.d.ts +1 -1
- package/es/drawer/index.d.ts +3 -3
- package/es/form/form-item.d.ts +3 -3
- package/es/form/index.d.ts +3 -3
- package/es/input/index.d.ts +3941 -11
- package/es/input/input-password.d.ts +1314 -3
- package/es/input/input.d.ts +1314 -3
- package/es/input/input.js +36 -18
- package/es/input-number/index.d.ts +3 -3
- package/es/input-number/input-number.d.ts +1 -1
- package/es/input-tag/index.d.ts +18 -18
- package/es/input-tag/input-tag.d.ts +6 -6
- package/es/list/index.d.ts +3 -3
- package/es/list/list.d.ts +1 -1
- package/es/mention/index.d.ts +6 -6
- package/es/mention/mention.d.ts +2 -2
- package/es/menu/item.d.ts +1 -1
- package/es/menu/sub-menu-pop.d.ts +1 -1
- package/es/pagination/page-jumper.d.ts +3 -3
- package/es/pagination/page-options.d.ts +28 -28
- package/es/radio/index.d.ts +8 -8
- package/es/radio/radio-group.d.ts +2 -2
- package/es/radio/radio.d.ts +2 -2
- package/es/rate/index.d.ts +9 -9
- package/es/rate/rate.d.ts +3 -3
- package/es/select/index.d.ts +28 -28
- package/es/select/option.d.ts +5 -5
- package/es/select/select-dropdown.d.ts +1 -1
- package/es/select/select.d.ts +8 -8
- package/es/slider/index.d.ts +12 -12
- package/es/slider/slider-input.d.ts +3 -3
- package/es/slider/slider.d.ts +5 -5
- package/es/switch/index.d.ts +3 -3
- package/es/switch/switch.d.ts +1 -1
- package/es/table/table-operation-td.d.ts +13 -13
- package/es/tabs/index.d.ts +3 -3
- package/es/tabs/tabs.d.ts +1 -1
- package/es/tag/index.d.ts +3 -3
- package/es/tag/tag.d.ts +1 -1
- package/es/textarea/index.d.ts +6 -6
- package/es/textarea/textarea.d.ts +2 -2
- package/es/time-picker/index.d.ts +11 -11
- package/es/time-picker/time-picker.d.ts +5 -5
- package/es/transfer/index.d.ts +22 -22
- package/es/transfer/transfer-view.d.ts +8 -8
- package/es/transfer/transfer.d.ts +10 -10
- package/es/tree/base-node.d.ts +5 -5
- package/es/tree/transition-node-list.d.ts +5 -5
- package/es/tree-select/index.d.ts +8 -8
- package/es/tree-select/tree-select.d.ts +3 -3
- package/es/typography/edit-content.d.ts +11824 -34
- package/es/upload/index.d.ts +3 -3
- package/es/upload/upload.d.ts +1 -1
- package/es/verification-code/index.d.ts +6 -6
- package/es/verification-code/verification-code.d.ts +2 -2
- package/json/vetur-attributes.json +1630 -1630
- package/json/vetur-tags.json +599 -599
- package/json/web-types.json +4921 -4921
- package/lib/input/input.js +38 -20
- package/package.json +2 -2
package/lib/input/input.js
CHANGED
|
@@ -5,15 +5,19 @@ var constant = require("../_utils/constant.js");
|
|
|
5
5
|
var feedbackIcon = require("../_components/feedback-icon.js");
|
|
6
6
|
var keycode = require("../_utils/keycode.js");
|
|
7
7
|
var iconHover = require("../_components/icon-hover.js");
|
|
8
|
-
var index = require("../icon/icon-close/index.js");
|
|
8
|
+
var index$1 = require("../icon/icon-close/index.js");
|
|
9
9
|
var omit = require("../_utils/omit.js");
|
|
10
10
|
var pick = require("../_utils/pick.js");
|
|
11
11
|
var is = require("../_utils/is.js");
|
|
12
12
|
var useFormItem = require("../_hooks/use-form-item.js");
|
|
13
13
|
var useSize = require("../_hooks/use-size.js");
|
|
14
14
|
var useCursor = require("../_hooks/use-cursor.js");
|
|
15
|
+
var index = require("../tooltip/index.js");
|
|
15
16
|
var _Input = vue.defineComponent({
|
|
16
17
|
name: "Input",
|
|
18
|
+
components: {
|
|
19
|
+
Tooltip: index
|
|
20
|
+
},
|
|
17
21
|
inheritAttrs: false,
|
|
18
22
|
props: {
|
|
19
23
|
modelValue: String,
|
|
@@ -63,7 +67,11 @@ var _Input = vue.defineComponent({
|
|
|
63
67
|
default: "text"
|
|
64
68
|
},
|
|
65
69
|
prepend: String,
|
|
66
|
-
append: String
|
|
70
|
+
append: String,
|
|
71
|
+
enableToolTip: {
|
|
72
|
+
type: Boolean,
|
|
73
|
+
default: false
|
|
74
|
+
}
|
|
67
75
|
},
|
|
68
76
|
emits: {
|
|
69
77
|
"update:modelValue": (value) => true,
|
|
@@ -83,7 +91,8 @@ var _Input = vue.defineComponent({
|
|
|
83
91
|
size,
|
|
84
92
|
disabled,
|
|
85
93
|
error,
|
|
86
|
-
modelValue
|
|
94
|
+
modelValue,
|
|
95
|
+
enableToolTip
|
|
87
96
|
} = vue.toRefs(props);
|
|
88
97
|
const prefixCls = globalConfig.getPrefixCls("input");
|
|
89
98
|
const inputRef = vue.ref();
|
|
@@ -257,6 +266,11 @@ var _Input = vue.defineComponent({
|
|
|
257
266
|
}
|
|
258
267
|
return attrs2;
|
|
259
268
|
});
|
|
269
|
+
const inputToolTipAttrs = vue.computed(() => {
|
|
270
|
+
return enableToolTip.value ? {} : {
|
|
271
|
+
"popup-visible": false
|
|
272
|
+
};
|
|
273
|
+
});
|
|
260
274
|
const renderInput = (hasOuter) => {
|
|
261
275
|
var _a;
|
|
262
276
|
return vue.createVNode("span", vue.mergeProps({
|
|
@@ -264,27 +278,31 @@ var _Input = vue.defineComponent({
|
|
|
264
278
|
"onMousedown": handleMousedown
|
|
265
279
|
}, !hasOuter ? wrapperAttrs.value : void 0), [slots.prefix && vue.createVNode("span", {
|
|
266
280
|
"class": `${prefixCls}-prefix`
|
|
267
|
-
}, [slots.prefix()]), vue.createVNode(
|
|
268
|
-
"
|
|
269
|
-
|
|
270
|
-
"
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
281
|
+
}, [slots.prefix()]), vue.createVNode(index, vue.mergeProps({
|
|
282
|
+
"content": props.placeholder
|
|
283
|
+
}, inputToolTipAttrs.value), {
|
|
284
|
+
default: () => [vue.createVNode("input", vue.mergeProps({
|
|
285
|
+
"ref": inputRef,
|
|
286
|
+
"class": cls.value,
|
|
287
|
+
"value": computedValue.value,
|
|
288
|
+
"type": props.type,
|
|
289
|
+
"placeholder": props.placeholder,
|
|
290
|
+
"readonly": props.readonly,
|
|
291
|
+
"disabled": mergedDisabled.value,
|
|
292
|
+
"onInput": handleInput,
|
|
293
|
+
"onKeydown": handleKeyDown,
|
|
294
|
+
"onFocus": handleFocus,
|
|
295
|
+
"onBlur": handleBlur,
|
|
296
|
+
"onCompositionstart": handleComposition,
|
|
297
|
+
"onCompositionupdate": handleComposition,
|
|
298
|
+
"onCompositionend": handleComposition
|
|
299
|
+
}, mergeInputAttrs.value), null)]
|
|
300
|
+
}), showClearBtn.value && vue.createVNode(iconHover, {
|
|
283
301
|
"prefix": prefixCls,
|
|
284
302
|
"class": `${prefixCls}-clear-btn`,
|
|
285
303
|
"onClick": handleClear
|
|
286
304
|
}, {
|
|
287
|
-
default: () => [vue.createVNode(index, null, null)]
|
|
305
|
+
default: () => [vue.createVNode(index$1, null, null)]
|
|
288
306
|
}), (slots.suffix || Boolean(props.maxLength) && props.showWordLimit || Boolean(feedback.value)) && vue.createVNode("span", {
|
|
289
307
|
"class": [`${prefixCls}-suffix`, {
|
|
290
308
|
[`${prefixCls}-suffix-has-feedback`]: feedback.value
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@julingbase/jly-arco-design",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
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": "
|
|
100
|
+
"gitHead": "2e40a86bb4f9daa2c5a52b0fa2b8ed6f385e227a"
|
|
101
101
|
}
|