@v-c/textarea 0.0.3 → 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/dist/ResizableTextArea.cjs +1 -1
- package/dist/ResizableTextArea.js +1 -1
- package/dist/TextArea.cjs +12 -2
- package/dist/TextArea.js +12 -2
- package/package.json +3 -3
|
@@ -47,7 +47,7 @@ var ResizableTextArea_default = /* @__PURE__ */ (0, vue.defineComponent)({
|
|
|
47
47
|
};
|
|
48
48
|
const textareaRef = (0, vue.ref)();
|
|
49
49
|
expose({
|
|
50
|
-
textArea: () => textareaRef.value,
|
|
50
|
+
textArea: (0, vue.computed)(() => textareaRef.value),
|
|
51
51
|
setValue: (val) => {
|
|
52
52
|
mergedValue.value = val;
|
|
53
53
|
}
|
package/dist/TextArea.cjs
CHANGED
|
@@ -109,7 +109,7 @@ var TextArea_default = /* @__PURE__ */ (0, vue.defineComponent)((props, { attrs,
|
|
|
109
109
|
return props.allowClear;
|
|
110
110
|
});
|
|
111
111
|
return () => {
|
|
112
|
-
const { allowClear, maxLength, prefixCls = defaults.prefixCls, showCount, disabled, hidden, classNames, styles, onClear, readOnly, autoSize, suffix
|
|
112
|
+
const { allowClear, maxLength, prefixCls = defaults.prefixCls, showCount, disabled, hidden, classNames, styles, onClear, readOnly, autoSize, suffix } = props;
|
|
113
113
|
const { class: attrClass, style: attrStyle,...restAttrs } = attrs;
|
|
114
114
|
const mergedClassName = props.className || attrClass;
|
|
115
115
|
const mergedStyle = {
|
|
@@ -148,7 +148,17 @@ var TextArea_default = /* @__PURE__ */ (0, vue.defineComponent)((props, { attrs,
|
|
|
148
148
|
"onCompositionend",
|
|
149
149
|
"onKeydown",
|
|
150
150
|
"onKeyup",
|
|
151
|
-
"onInput"
|
|
151
|
+
"onInput"
|
|
152
|
+
]);
|
|
153
|
+
const restProps = (0, __v_c_util_dist_omit.default)(props, [
|
|
154
|
+
"class",
|
|
155
|
+
"style",
|
|
156
|
+
"onFocus",
|
|
157
|
+
"onBlur",
|
|
158
|
+
"onChange",
|
|
159
|
+
"onCompositionEnd",
|
|
160
|
+
"onCompositionStart",
|
|
161
|
+
"onKeyDown",
|
|
152
162
|
"allowClear",
|
|
153
163
|
"maxLength",
|
|
154
164
|
"prefixCls",
|
package/dist/TextArea.js
CHANGED
|
@@ -106,7 +106,7 @@ var TextArea_default = /* @__PURE__ */ defineComponent((props, { attrs, expose,
|
|
|
106
106
|
return props.allowClear;
|
|
107
107
|
});
|
|
108
108
|
return () => {
|
|
109
|
-
const { allowClear, maxLength, prefixCls = defaults.prefixCls, showCount, disabled, hidden, classNames: classNames$1, styles, onClear, readOnly, autoSize, suffix
|
|
109
|
+
const { allowClear, maxLength, prefixCls = defaults.prefixCls, showCount, disabled, hidden, classNames: classNames$1, styles, onClear, readOnly, autoSize, suffix } = props;
|
|
110
110
|
const { class: attrClass, style: attrStyle,...restAttrs } = attrs;
|
|
111
111
|
const mergedClassName = props.className || attrClass;
|
|
112
112
|
const mergedStyle = {
|
|
@@ -145,7 +145,17 @@ var TextArea_default = /* @__PURE__ */ defineComponent((props, { attrs, expose,
|
|
|
145
145
|
"onCompositionend",
|
|
146
146
|
"onKeydown",
|
|
147
147
|
"onKeyup",
|
|
148
|
-
"onInput"
|
|
148
|
+
"onInput"
|
|
149
|
+
]);
|
|
150
|
+
const restProps = omit(props, [
|
|
151
|
+
"class",
|
|
152
|
+
"style",
|
|
153
|
+
"onFocus",
|
|
154
|
+
"onBlur",
|
|
155
|
+
"onChange",
|
|
156
|
+
"onCompositionEnd",
|
|
157
|
+
"onCompositionStart",
|
|
158
|
+
"onKeyDown",
|
|
149
159
|
"allowClear",
|
|
150
160
|
"maxLength",
|
|
151
161
|
"prefixCls",
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@v-c/textarea",
|
|
3
3
|
"type": "module",
|
|
4
|
-
"version": "0.0.
|
|
4
|
+
"version": "0.0.5",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
26
|
"@v-c/input": "^0.0.2",
|
|
27
|
-
"@v-c/
|
|
28
|
-
"@v-c/
|
|
27
|
+
"@v-c/resize-observer": "^1.0.0",
|
|
28
|
+
"@v-c/util": "^1.0.0"
|
|
29
29
|
},
|
|
30
30
|
"scripts": {
|
|
31
31
|
"build": "vite build",
|