@blueking/ediatable 0.0.1-beta.25 → 0.0.1-beta.27

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/ediatable",
3
- "version": "0.0.1-beta.25",
3
+ "version": "0.0.1-beta.27",
4
4
  "description": "蓝鲸 Ediatable",
5
5
  "keywords": [
6
6
  "ediatable",
@@ -36,6 +36,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
36
36
  submit: (value: string | number) => void;
37
37
  error: (result: boolean) => void;
38
38
  clear: () => void;
39
+ focus: () => void;
39
40
  }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
40
41
  placeholder: string;
41
42
  rules: undefined;
@@ -47,6 +48,7 @@ declare const __VLS_component: import("vue").DefineComponent<__VLS_WithDefaults<
47
48
  precision: number;
48
49
  clearable: boolean;
49
50
  }>>> & {
51
+ onFocus?: (() => any) | undefined;
50
52
  onSubmit?: ((value: string | number) => any) | undefined;
51
53
  onError?: ((result: boolean) => any) | undefined;
52
54
  "onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
@@ -1,5 +1,5 @@
1
1
  import { type Rules } from '../hooks/useValidtor';
2
- type IKey = number | string | string[];
2
+ type IKey = boolean | number | string | string[];
3
3
  export interface IListItem {
4
4
  value: IKey;
5
5
  label: string;
@@ -42180,7 +42180,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42180
42180
  },
42181
42181
  "modelModifiers": {}
42182
42182
  }),
42183
- emits: /* @__PURE__ */ mergeModels(["submit", "error", "clear"], ["update:modelValue"]),
42183
+ emits: /* @__PURE__ */ mergeModels(["submit", "error", "clear", "focus"], ["update:modelValue"]),
42184
42184
  setup(__props, { expose: __expose, emit: __emit }) {
42185
42185
  const props2 = __props;
42186
42186
  const emits = __emit;
@@ -42193,6 +42193,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
42193
42193
  const { message: errorMessage, validator: validator11 } = useValidtor(props2.rules);
42194
42194
  const handleFocus = () => {
42195
42195
  isBlur.value = false;
42196
+ emits("focus");
42196
42197
  };
42197
42198
  const handleChange = (value) => {
42198
42199
  isBlur.value = true;
@@ -42438,7 +42439,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
42438
42439
  displayKey: { default: "label" },
42439
42440
  idKey: { default: "value" }
42440
42441
  }, {
42441
- "modelValue": {},
42442
+ "modelValue": { type: [Boolean, Number, String, Array] },
42442
42443
  "modelModifiers": {}
42443
42444
  }),
42444
42445
  emits: /* @__PURE__ */ mergeModels(["change", "error"], ["update:modelValue"]),
@@ -49047,7 +49047,7 @@ ${$(r2)}`), n2;
49047
49047
  },
49048
49048
  "modelModifiers": {}
49049
49049
  }),
49050
- emits: /* @__PURE__ */ mergeModels(["submit", "error", "clear"], ["update:modelValue"]),
49050
+ emits: /* @__PURE__ */ mergeModels(["submit", "error", "clear", "focus"], ["update:modelValue"]),
49051
49051
  setup(__props, { expose: __expose, emit: __emit }) {
49052
49052
  const props2 = __props;
49053
49053
  const emits = __emit;
@@ -49060,6 +49060,7 @@ ${$(r2)}`), n2;
49060
49060
  const { message: errorMessage, validator } = useValidtor(props2.rules);
49061
49061
  const handleFocus = () => {
49062
49062
  isBlur.value = false;
49063
+ emits("focus");
49063
49064
  };
49064
49065
  const handleChange = (value) => {
49065
49066
  isBlur.value = true;
@@ -49305,7 +49306,7 @@ ${$(r2)}`), n2;
49305
49306
  displayKey: { default: "label" },
49306
49307
  idKey: { default: "value" }
49307
49308
  }, {
49308
- "modelValue": {},
49309
+ "modelValue": { type: [Boolean, Number, String, Array] },
49309
49310
  "modelModifiers": {}
49310
49311
  }),
49311
49312
  emits: /* @__PURE__ */ mergeModels(["change", "error"], ["update:modelValue"]),
@@ -42202,7 +42202,7 @@ ${$(r2)}`), n2;
42202
42202
  },
42203
42203
  "modelModifiers": {}
42204
42204
  }),
42205
- emits: /* @__PURE__ */ __WEBPACK_EXTERNAL_MODULE_vue__.mergeModels(["submit", "error", "clear"], ["update:modelValue"]),
42205
+ emits: /* @__PURE__ */ __WEBPACK_EXTERNAL_MODULE_vue__.mergeModels(["submit", "error", "clear", "focus"], ["update:modelValue"]),
42206
42206
  setup(__props, { expose: __expose, emit: __emit }) {
42207
42207
  const props2 = __props;
42208
42208
  const emits = __emit;
@@ -42215,6 +42215,7 @@ ${$(r2)}`), n2;
42215
42215
  const { message: errorMessage, validator } = useValidtor(props2.rules);
42216
42216
  const handleFocus = () => {
42217
42217
  isBlur.value = false;
42218
+ emits("focus");
42218
42219
  };
42219
42220
  const handleChange = (value) => {
42220
42221
  isBlur.value = true;
@@ -42460,7 +42461,7 @@ ${$(r2)}`), n2;
42460
42461
  displayKey: { default: "label" },
42461
42462
  idKey: { default: "value" }
42462
42463
  }, {
42463
- "modelValue": {},
42464
+ "modelValue": { type: [Boolean, Number, String, Array] },
42464
42465
  "modelModifiers": {}
42465
42466
  }),
42466
42467
  emits: /* @__PURE__ */ __WEBPACK_EXTERNAL_MODULE_vue__.mergeModels(["change", "error"], ["update:modelValue"]),
@@ -8822,7 +8822,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8822
8822
  },
8823
8823
  "modelModifiers": {}
8824
8824
  }),
8825
- emits: /* @__PURE__ */ mergeModels(["submit", "error", "clear"], ["update:modelValue"]),
8825
+ emits: /* @__PURE__ */ mergeModels(["submit", "error", "clear", "focus"], ["update:modelValue"]),
8826
8826
  setup(__props, { expose: __expose, emit: __emit }) {
8827
8827
  const props = __props;
8828
8828
  const emits = __emit;
@@ -8835,6 +8835,7 @@ const _sfc_main$5 = /* @__PURE__ */ defineComponent({
8835
8835
  const { message: errorMessage, validator } = useValidtor(props.rules);
8836
8836
  const handleFocus = () => {
8837
8837
  isBlur.value = false;
8838
+ emits("focus");
8838
8839
  };
8839
8840
  const handleChange = (value) => {
8840
8841
  isBlur.value = true;
@@ -9080,7 +9081,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
9080
9081
  displayKey: { default: "label" },
9081
9082
  idKey: { default: "value" }
9082
9083
  }, {
9083
- "modelValue": {},
9084
+ "modelValue": { type: [Boolean, Number, String, Array] },
9084
9085
  "modelModifiers": {}
9085
9086
  }),
9086
9087
  emits: /* @__PURE__ */ mergeModels(["change", "error"], ["update:modelValue"]),
@@ -42209,7 +42209,7 @@ ${$(r2)}`), n2;
42209
42209
  },
42210
42210
  "modelModifiers": {}
42211
42211
  }),
42212
- emits: /* @__PURE__ */ __WEBPACK_EXTERNAL_MODULE_vue__.mergeModels(["submit", "error", "clear"], ["update:modelValue"]),
42212
+ emits: /* @__PURE__ */ __WEBPACK_EXTERNAL_MODULE_vue__.mergeModels(["submit", "error", "clear", "focus"], ["update:modelValue"]),
42213
42213
  setup(__props, { expose: __expose, emit: __emit }) {
42214
42214
  const props2 = __props;
42215
42215
  const emits = __emit;
@@ -42222,6 +42222,7 @@ ${$(r2)}`), n2;
42222
42222
  const { message: errorMessage, validator } = useValidtor(props2.rules);
42223
42223
  const handleFocus = () => {
42224
42224
  isBlur.value = false;
42225
+ emits("focus");
42225
42226
  };
42226
42227
  const handleChange = (value) => {
42227
42228
  isBlur.value = true;
@@ -42467,7 +42468,7 @@ ${$(r2)}`), n2;
42467
42468
  displayKey: { default: "label" },
42468
42469
  idKey: { default: "value" }
42469
42470
  }, {
42470
- "modelValue": {},
42471
+ "modelValue": { type: [Boolean, Number, String, Array] },
42471
42472
  "modelModifiers": {}
42472
42473
  }),
42473
42474
  emits: /* @__PURE__ */ __WEBPACK_EXTERNAL_MODULE_vue__.mergeModels(["change", "error"], ["update:modelValue"]),
@@ -9363,7 +9363,7 @@ url("data:application/vnd.ms-fontobject;base64,cAkAAMgIAAABAAIAAAAAAAIABQMAAAAAA
9363
9363
  },
9364
9364
  "modelModifiers": {}
9365
9365
  }),
9366
- emits: /* @__PURE__ */ vue.mergeModels(["submit", "error", "clear"], ["update:modelValue"]),
9366
+ emits: /* @__PURE__ */ vue.mergeModels(["submit", "error", "clear", "focus"], ["update:modelValue"]),
9367
9367
  setup(__props, { expose: __expose, emit: __emit }) {
9368
9368
  const props = __props;
9369
9369
  const emits = __emit;
@@ -9376,6 +9376,7 @@ url("data:application/vnd.ms-fontobject;base64,cAkAAMgIAAABAAIAAAAAAAIABQMAAAAAA
9376
9376
  const { message: errorMessage, validator } = useValidtor(props.rules);
9377
9377
  const handleFocus = () => {
9378
9378
  isBlur.value = false;
9379
+ emits("focus");
9379
9380
  };
9380
9381
  const handleChange = (value) => {
9381
9382
  isBlur.value = true;
@@ -9621,7 +9622,7 @@ url("data:application/vnd.ms-fontobject;base64,cAkAAMgIAAABAAIAAAAAAAIABQMAAAAAA
9621
9622
  displayKey: { default: "label" },
9622
9623
  idKey: { default: "value" }
9623
9624
  }, {
9624
- "modelValue": {},
9625
+ "modelValue": { type: [Boolean, Number, String, Array] },
9625
9626
  "modelModifiers": {}
9626
9627
  }),
9627
9628
  emits: /* @__PURE__ */ vue.mergeModels(["change", "error"], ["update:modelValue"]),