@blueking/ediatable 0.0.1-beta.2 → 0.0.1-beta.4
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 +1 -1
- package/typings/components/input.vue.d.ts +4 -0
- package/typings/components/operation.vue.d.ts +6 -0
- package/typings/ediatable.vue.d.ts +2 -0
- package/vue2/index.es.min.js +28 -17
- package/vue2/index.iife.min.js +43 -36
- package/vue2/index.umd.min.js +43 -35
- package/vue2/vue2.css +8 -5
- package/vue3/index.es.min.js +28 -17
- package/vue3/index.iife.min.js +43 -36
- package/vue3/index.umd.min.js +43 -35
- package/vue3/vue3.css +8 -5
- package/vue2/vue22.css +0 -1
- package/vue2/vue23.css +0 -1
- package/vue3/vue32.css +0 -1
- package/vue3/vue33.css +0 -1
package/package.json
CHANGED
|
@@ -7,6 +7,7 @@ interface Props {
|
|
|
7
7
|
min?: number;
|
|
8
8
|
max?: number;
|
|
9
9
|
isShowBlur?: boolean;
|
|
10
|
+
precision?: number;
|
|
10
11
|
}
|
|
11
12
|
declare let __VLS_typeProps: Props;
|
|
12
13
|
type __VLS_PublicProps = {
|
|
@@ -20,6 +21,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
20
21
|
min: number;
|
|
21
22
|
max: number;
|
|
22
23
|
isShowBlur: boolean;
|
|
24
|
+
precision: number;
|
|
23
25
|
}>, {
|
|
24
26
|
getValue: () => Promise<string | number>;
|
|
25
27
|
focus: () => void;
|
|
@@ -34,6 +36,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
34
36
|
min: number;
|
|
35
37
|
max: number;
|
|
36
38
|
isShowBlur: boolean;
|
|
39
|
+
precision: number;
|
|
37
40
|
}>>> & {
|
|
38
41
|
onSubmit?: ((value: string | number) => any) | undefined;
|
|
39
42
|
"onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
|
|
@@ -45,6 +48,7 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
|
|
|
45
48
|
min: number;
|
|
46
49
|
max: number;
|
|
47
50
|
isShowBlur: boolean;
|
|
51
|
+
precision: number;
|
|
48
52
|
}, {}>, {
|
|
49
53
|
blur?(_: {}): any;
|
|
50
54
|
}>;
|
|
@@ -1,23 +1,29 @@
|
|
|
1
1
|
interface Props {
|
|
2
|
+
showCopy?: boolean;
|
|
2
3
|
showAdd?: boolean;
|
|
3
4
|
showRemove?: boolean;
|
|
4
5
|
removeable?: boolean;
|
|
5
6
|
}
|
|
6
7
|
declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
8
|
+
showCopy: boolean;
|
|
7
9
|
showAdd: boolean;
|
|
8
10
|
showRemove: boolean;
|
|
9
11
|
removeable: boolean;
|
|
10
12
|
}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
|
13
|
+
copy: () => void;
|
|
11
14
|
add: () => void;
|
|
12
15
|
remove: () => void;
|
|
13
16
|
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
|
|
17
|
+
showCopy: boolean;
|
|
14
18
|
showAdd: boolean;
|
|
15
19
|
showRemove: boolean;
|
|
16
20
|
removeable: boolean;
|
|
17
21
|
}>>> & {
|
|
22
|
+
onCopy?: (() => any) | undefined;
|
|
18
23
|
onAdd?: (() => any) | undefined;
|
|
19
24
|
onRemove?: (() => any) | undefined;
|
|
20
25
|
}, {
|
|
26
|
+
showCopy: boolean;
|
|
21
27
|
showAdd: boolean;
|
|
22
28
|
showRemove: boolean;
|
|
23
29
|
removeable: boolean;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import './lib/bk-icon/iconcool.js';
|
|
2
2
|
import './lib/bk-icon/style.css';
|
|
3
3
|
import 'bkui-vue/dist/style.css';
|
|
4
|
+
import 'tippy.js/dist/tippy.css';
|
|
5
|
+
import 'tippy.js/themes/light.css';
|
|
4
6
|
import type { InjectionKey, Ref } from 'vue';
|
|
5
7
|
export declare const renderTablekey: InjectionKey<{
|
|
6
8
|
isOverflow: Ref<boolean>;
|
package/vue2/index.es.min.js
CHANGED
|
@@ -5488,7 +5488,7 @@ lodash.exports;
|
|
|
5488
5488
|
var lodashExports = lodash.exports;
|
|
5489
5489
|
const _$1 = /* @__PURE__ */ getDefaultExportFromCjs(lodashExports);
|
|
5490
5490
|
!function() {
|
|
5491
|
-
var svgCode = '<svg xmlns="http://www.w3.org/2000/svg" data-name="ediatable" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="icon-exclamation-fill" viewBox="0 0 64 64"><path fill="#737987" d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 44c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm3-28.7L34 38c0 1.1-.9 2-2 2s-2-.9-2-2l-1-18.7V19c0-1.7 1.3-3 3-3s3 1.3 3 3v.3z"/></symbol><symbol id="icon-minus-fill" viewBox="0 0 1024 1024"><path d="M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zm224 480H288v-64h448v64z"/></symbol><symbol id="icon-plus-fill" viewBox="0 0 1024 1024"><path d="M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zm224 480H544v192h-64V544H288v-64h192V288h64v192h192v64z"/></symbol></svg>';
|
|
5491
|
+
var svgCode = '<svg xmlns="http://www.w3.org/2000/svg" data-name="ediatable" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0;visibility:hidden"><symbol id="icon-exclamation-fill" viewBox="0 0 64 64"><path fill="#737987" d="M32 4C16.5 4 4 16.5 4 32s12.5 28 28 28 28-12.5 28-28S47.5 4 32 4zm0 44c-1.7 0-3-1.3-3-3s1.3-3 3-3 3 1.3 3 3-1.3 3-3 3zm3-28.7L34 38c0 1.1-.9 2-2 2s-2-.9-2-2l-1-18.7V19c0-1.7 1.3-3 3-3s3 1.3 3 3v.3z"/></symbol><symbol id="icon-copy" viewBox="0 0 1024 1024"><path d="M864 128H288c-17.6 0-32 14.4-32 32v96h-96c-17.6 0-32 14.4-32 32v576c0 17.6 14.4 32 32 32h576c17.6 0 32-14.4 32-32v-96h96c17.6 0 32-14.4 32-32V160c0-17.6-14.4-32-32-32zM704 704v128H192V320h512v384zm128 0h-64V288c0-17.6-14.4-32-32-32H320v-64h512v512z"/><path d="M275.2 419.2h336v64h-336zM272 544h336v64H272zM272 672h336v64H272z"/></symbol><symbol id="icon-minus-fill" viewBox="0 0 1024 1024"><path d="M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zm224 480H288v-64h448v64z"/></symbol><symbol id="icon-plus-fill" viewBox="0 0 1024 1024"><path d="M512 64C264 64 64 264 64 512s200 448 448 448 448-200 448-448S760 64 512 64zm224 480H544v192h-64V544H288v-64h192V288h64v192h192v64z"/></symbol></svg>';
|
|
5492
5492
|
if (document.body) {
|
|
5493
5493
|
document.body.insertAdjacentHTML("afterbegin", svgCode);
|
|
5494
5494
|
} else {
|
|
@@ -5627,8 +5627,6 @@ const renderTablekey = Symbol("renderTable");
|
|
|
5627
5627
|
const _sfc_main$8 = /* @__PURE__ */ defineComponent({
|
|
5628
5628
|
__name: "ediatable",
|
|
5629
5629
|
setup(__props) {
|
|
5630
|
-
import("./tippy-UZKOpUIG.mjs");
|
|
5631
|
-
import("./light-CVlnfH8W.mjs");
|
|
5632
5630
|
const checkTableScroll = () => {
|
|
5633
5631
|
rowWidth.value = tableRef.value.clientWidth;
|
|
5634
5632
|
isOverflow.value = tableOuterRef.value.clientWidth < tableRef.value.clientWidth;
|
|
@@ -47953,7 +47951,8 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
47953
47951
|
type: { default: "text" },
|
|
47954
47952
|
min: { default: Number.MIN_SAFE_INTEGER },
|
|
47955
47953
|
max: { default: Number.MAX_SAFE_INTEGER },
|
|
47956
|
-
isShowBlur: { type: Boolean, default: false }
|
|
47954
|
+
isShowBlur: { type: Boolean, default: false },
|
|
47955
|
+
precision: { default: 0 }
|
|
47957
47956
|
}, {
|
|
47958
47957
|
"modelValue": {
|
|
47959
47958
|
default: ""
|
|
@@ -48045,25 +48044,27 @@ const _sfc_main$6 = /* @__PURE__ */ defineComponent({
|
|
|
48045
48044
|
}])
|
|
48046
48045
|
},
|
|
48047
48046
|
[
|
|
48048
|
-
createVNode(unref(__webpack_exports__default$7), {
|
|
48047
|
+
createVNode(unref(__webpack_exports__default$7), mergeProps({
|
|
48049
48048
|
class: "input-box",
|
|
48050
48049
|
disabled: _ctx.disabled,
|
|
48051
48050
|
max: _ctx.max,
|
|
48052
48051
|
min: _ctx.min,
|
|
48053
48052
|
"model-value": modelValue.value,
|
|
48054
48053
|
placeholder: _ctx.placeholder,
|
|
48055
|
-
type: _ctx.type
|
|
48054
|
+
type: _ctx.type
|
|
48055
|
+
}, _ctx.$attrs, {
|
|
48056
|
+
precision: _ctx.precision,
|
|
48056
48057
|
onBlur: handleBlur,
|
|
48057
48058
|
onChange: handleInput,
|
|
48058
48059
|
onFocus: _cache[0] || (_cache[0] = () => isBlur.value = false),
|
|
48059
48060
|
onInput: handleInput,
|
|
48060
48061
|
onKeydown: handleKeydown,
|
|
48061
48062
|
onPaste: handlePaste
|
|
48062
|
-
}, {
|
|
48063
|
+
}), {
|
|
48063
48064
|
suffix: withCtx(() => []),
|
|
48064
48065
|
_: 1
|
|
48065
48066
|
/* STABLE */
|
|
48066
|
-
},
|
|
48067
|
+
}, 16, ["disabled", "max", "min", "model-value", "placeholder", "type", "precision"]),
|
|
48067
48068
|
unref(errorMessage) ? withDirectives((openBlock(), createBlock(
|
|
48068
48069
|
unref(DbIcon),
|
|
48069
48070
|
{
|
|
@@ -48303,14 +48304,18 @@ const _hoisted_1$3 = { class: "bk-ediatable-operation" };
|
|
|
48303
48304
|
const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
48304
48305
|
__name: "operation",
|
|
48305
48306
|
props: {
|
|
48307
|
+
showCopy: { type: Boolean, default: false },
|
|
48306
48308
|
showAdd: { type: Boolean, default: true },
|
|
48307
48309
|
showRemove: { type: Boolean, default: true },
|
|
48308
48310
|
removeable: { type: Boolean, default: true }
|
|
48309
48311
|
},
|
|
48310
|
-
emits: ["add", "remove"],
|
|
48312
|
+
emits: ["copy", "add", "remove"],
|
|
48311
48313
|
setup(__props, { emit: __emit }) {
|
|
48312
48314
|
const props2 = __props;
|
|
48313
48315
|
const emits = __emit;
|
|
48316
|
+
const handleCopy = () => {
|
|
48317
|
+
emits("copy");
|
|
48318
|
+
};
|
|
48314
48319
|
const handleAppend = () => {
|
|
48315
48320
|
emits("add");
|
|
48316
48321
|
};
|
|
@@ -48324,9 +48329,16 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
48324
48329
|
return openBlock(), createBlock(_sfc_main$5, null, {
|
|
48325
48330
|
default: withCtx(() => [
|
|
48326
48331
|
createElementVNode("div", _hoisted_1$3, [
|
|
48327
|
-
_ctx.
|
|
48332
|
+
_ctx.showCopy ? (openBlock(), createElementBlock("div", {
|
|
48328
48333
|
key: 0,
|
|
48329
48334
|
class: "action-btn",
|
|
48335
|
+
onClick: handleCopy
|
|
48336
|
+
}, [
|
|
48337
|
+
createVNode(unref(DbIcon), { type: "copy" })
|
|
48338
|
+
])) : createCommentVNode("v-if", true),
|
|
48339
|
+
_ctx.showAdd ? (openBlock(), createElementBlock("div", {
|
|
48340
|
+
key: 1,
|
|
48341
|
+
class: "action-btn",
|
|
48330
48342
|
onClick: handleAppend
|
|
48331
48343
|
}, [
|
|
48332
48344
|
createVNode(unref(DbIcon), { type: "plus-fill" })
|
|
@@ -48334,7 +48346,7 @@ const _sfc_main$3 = /* @__PURE__ */ defineComponent({
|
|
|
48334
48346
|
_ctx.showRemove ? (openBlock(), createElementBlock(
|
|
48335
48347
|
"div",
|
|
48336
48348
|
{
|
|
48337
|
-
key:
|
|
48349
|
+
key: 2,
|
|
48338
48350
|
class: normalizeClass(["action-btn", {
|
|
48339
48351
|
disabled: _ctx.removeable
|
|
48340
48352
|
}]),
|
|
@@ -48438,7 +48450,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48438
48450
|
style: normalizeStyle({ height: rootHeight.value + "px" })
|
|
48439
48451
|
},
|
|
48440
48452
|
[
|
|
48441
|
-
createVNode(unref(__webpack_exports__default$2), {
|
|
48453
|
+
createVNode(unref(__webpack_exports__default$2), mergeProps(_ctx.$attrs, {
|
|
48442
48454
|
"model-value": localValue.value,
|
|
48443
48455
|
"auto-focus": "",
|
|
48444
48456
|
class: "select-box",
|
|
@@ -48451,7 +48463,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48451
48463
|
"show-select-all": _ctx.showSelectAll,
|
|
48452
48464
|
onChange: handleSelect,
|
|
48453
48465
|
onClear: handleRemove
|
|
48454
|
-
}, {
|
|
48466
|
+
}), {
|
|
48455
48467
|
default: withCtx(() => [
|
|
48456
48468
|
(openBlock(true), createElementBlock(
|
|
48457
48469
|
Fragment,
|
|
@@ -48469,7 +48481,7 @@ const _sfc_main$2 = /* @__PURE__ */ defineComponent({
|
|
|
48469
48481
|
]),
|
|
48470
48482
|
_: 1
|
|
48471
48483
|
/* STABLE */
|
|
48472
|
-
},
|
|
48484
|
+
}, 16, ["model-value", "disabled", "multiple", "placeholder", "show-select-all"]),
|
|
48473
48485
|
unref(errorMessage) ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
|
|
48474
48486
|
withDirectives(createVNode(
|
|
48475
48487
|
unref(DbIcon),
|
|
@@ -49746,8 +49758,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
49746
49758
|
class: normalizeClass(["bk-ediatable-tag-input", { ["is-error"]: Boolean(unref(errorMessage)) }])
|
|
49747
49759
|
},
|
|
49748
49760
|
[
|
|
49749
|
-
createVNode(unref(__webpack_exports__default$1), {
|
|
49750
|
-
"model-value": modelValue.value,
|
|
49761
|
+
createVNode(unref(__webpack_exports__default$1), mergeProps({ "model-value": modelValue.value }, _ctx.$attrs, {
|
|
49751
49762
|
"allow-auto-match": "",
|
|
49752
49763
|
"allow-create": "",
|
|
49753
49764
|
clearable: false,
|
|
@@ -49759,7 +49770,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
49759
49770
|
onBlur: handleBlur,
|
|
49760
49771
|
onChange: handleChange,
|
|
49761
49772
|
onFocus: handleFocus
|
|
49762
|
-
}, null,
|
|
49773
|
+
}), null, 16, ["model-value", "max-data", "placeholder"]),
|
|
49763
49774
|
unref(errorMessage) ? (openBlock(), createElementBlock("div", _hoisted_1$1, [
|
|
49764
49775
|
withDirectives(createVNode(
|
|
49765
49776
|
unref(DbIcon),
|