@blueking/ediatable 0.0.1-beta.6 → 0.0.1-beta.8

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.
@@ -40,6 +40,9 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
40
40
  .icon-plus-fill:before {
41
41
  content: "\\e102";
42
42
  }
43
+ .bk-ediatable-head-column .title-memo {
44
+ border-bottom: 1px dashed #979ba5;
45
+ }
43
46
  .bk-ediatable-head-column.is-required {
44
47
  position: relative;
45
48
  }
@@ -6175,7 +6178,8 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
6175
6178
  minWidth: { default: void 0 },
6176
6179
  required: { type: Boolean, default: true },
6177
6180
  width: { default: void 0 },
6178
- renderAppend: { type: Function, default: void 0 }
6181
+ renderAppend: { type: Function, default: void 0 },
6182
+ memo: { default: void 0 }
6179
6183
  },
6180
6184
  setup(__props) {
6181
6185
  const props = __props;
@@ -6254,6 +6258,7 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
6254
6258
  };
6255
6259
  return (_ctx, _cache) => {
6256
6260
  const _directive_overflow_tips = vue.resolveDirective("overflow-tips");
6261
+ const _directive_bk_tooltips = vue.resolveDirective("bk-tooltips");
6257
6262
  return vue.openBlock(), vue.createElementBlock("th", {
6258
6263
  ref_key: "columnRef",
6259
6264
  ref: columnRef,
@@ -6272,12 +6277,26 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
6272
6277
  onMousemove: handleMouseMove
6273
6278
  }, [
6274
6279
  vue.withDirectives((vue.openBlock(), vue.createElementBlock("div", _hoisted_2$2, [
6275
- vue.renderSlot(_ctx.$slots, "default")
6280
+ vue.createElementVNode(
6281
+ "span",
6282
+ {
6283
+ class: vue.normalizeClass({ "title-memo": _ctx.memo })
6284
+ },
6285
+ [
6286
+ vue.renderSlot(_ctx.$slots, "default")
6287
+ ],
6288
+ 2
6289
+ /* CLASS */
6290
+ )
6276
6291
  ])), [
6277
- [_directive_overflow_tips]
6292
+ [_directive_overflow_tips],
6293
+ [_directive_bk_tooltips, {
6294
+ content: _ctx.memo,
6295
+ disabled: !_ctx.memo
6296
+ }]
6278
6297
  ]),
6279
6298
  vue.createElementVNode("div", _hoisted_3$1, [
6280
- vue.unref(slots).append && !_ctx.renderAppend ? vue.renderSlot(_ctx.$slots, "append", { key: 0 }) : vue.createCommentVNode("v-if", true),
6299
+ slots.append && !_ctx.renderAppend ? vue.renderSlot(_ctx.$slots, "append", { key: 0 }) : vue.createCommentVNode("v-if", true),
6281
6300
  _ctx.renderAppend ? (vue.openBlock(), vue.createBlock(vue.unref(RenderAppendElement), { key: 1 })) : vue.createCommentVNode("v-if", true)
6282
6301
  ])
6283
6302
  ], 46, _hoisted_1$6);
@@ -6332,7 +6351,7 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
6332
6351
  [
6333
6352
  vue.createElementVNode("thead", null, [
6334
6353
  vue.createElementVNode("tr", null, [
6335
- vue.unref(slots).default && _ctx.theadList.length === 0 ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(true), vue.createElementBlock(
6354
+ slots.default && _ctx.theadList.length === 0 ? vue.renderSlot(_ctx.$slots, "default", { key: 0 }) : (vue.openBlock(true), vue.createElementBlock(
6336
6355
  vue.Fragment,
6337
6356
  { key: 1 },
6338
6357
  vue.renderList(_ctx.theadList, (head, index) => {
@@ -6343,7 +6362,8 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
6343
6362
  "max-width": head.maxWidth,
6344
6363
  fixed: head.fixed,
6345
6364
  required: head.required,
6346
- "render-append": head.renderAppend
6365
+ "render-append": head.renderAppend,
6366
+ memo: head.memo
6347
6367
  }, {
6348
6368
  default: vue.withCtx(() => [
6349
6369
  vue.createTextVNode(
@@ -6354,7 +6374,7 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
6354
6374
  ]),
6355
6375
  _: 2
6356
6376
  /* DYNAMIC */
6357
- }, 1032, ["width", "min-width", "max-width", "fixed", "required", "render-append"]);
6377
+ }, 1032, ["width", "min-width", "max-width", "fixed", "required", "render-append", "memo"]);
6358
6378
  }),
6359
6379
  128
6360
6380
  /* KEYED_FRAGMENT */
@@ -6650,7 +6670,7 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
6650
6670
  event.preventDefault();
6651
6671
  let paste = (event.clipboardData || window.clipboardData).getData("text");
6652
6672
  paste = encodeMult(paste);
6653
- modelValue.value = paste.replace(/^\s+|\s+$/g, "");
6673
+ modelValue.value += paste.replace(/^\s+|\s+$/g, "");
6654
6674
  };
6655
6675
  __expose({
6656
6676
  getValue() {
@@ -7818,8 +7838,7 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
7818
7838
  };
7819
7839
  for (var _i = numberOfChecks; _i > 0; _i--) {
7820
7840
  var _ret = _loop(_i);
7821
- if (_ret === "break")
7822
- break;
7841
+ if (_ret === "break") break;
7823
7842
  }
7824
7843
  }
7825
7844
  if (state.placement !== firstFittingPlacement) {
package/vue3/vue3.css CHANGED
@@ -35,6 +35,9 @@ url("data:application/vnd.ms-fontobject;base64,9AgAAEwIAAABAAIAAAAAAAIABQMAAAAAA
35
35
  .icon-plus-fill:before {
36
36
  content: "\e102";
37
37
  }
38
+ .bk-ediatable-head-column .title-memo {
39
+ border-bottom: 1px dashed #979ba5;
40
+ }
38
41
  .bk-ediatable-head-column.is-required {
39
42
  position: relative;
40
43
  }
@@ -1,63 +0,0 @@
1
- import { type Rules } from '../hooks/useValidtor';
2
- interface Props {
3
- placeholder?: string;
4
- rules?: Rules;
5
- type?: any;
6
- disabled?: boolean;
7
- }
8
- interface Slots {
9
- footer(): any;
10
- }
11
- type ValueType = [string, string] | string;
12
- declare let __VLS_typeProps: Props;
13
- type __VLS_PublicProps = {
14
- modelValue?: ValueType;
15
- } & typeof __VLS_typeProps;
16
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
17
- placeholder: string;
18
- rules: undefined;
19
- type: undefined;
20
- disabled: boolean;
21
- }>, {
22
- getValue: () => Promise<ValueType>;
23
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
24
- "update:modelValue": (modelValue: ValueType) => void;
25
- change: (value: any) => void;
26
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
27
- placeholder: string;
28
- rules: undefined;
29
- type: undefined;
30
- disabled: boolean;
31
- }>>> & {
32
- onChange?: ((value: any) => any) | undefined;
33
- "onUpdate:modelValue"?: ((modelValue: ValueType) => any) | undefined;
34
- }, {
35
- type: any;
36
- placeholder: string;
37
- rules: Rules;
38
- disabled: boolean;
39
- }, {}>, Readonly<Slots> & Slots>;
40
- export default _default;
41
-
42
- type __VLS_WithDefaults<P, D> = {
43
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
44
- default: D[K];
45
- }> : P[K];
46
- };
47
- type __VLS_Prettify<T> = {
48
- [K in keyof T]: T[K];
49
- } & {};
50
- type __VLS_WithTemplateSlots<T, S> = T & {
51
- new (): {
52
- $slots: S;
53
- };
54
- };
55
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
56
- type __VLS_TypePropsToOption<T> = {
57
- [K in keyof T]-?: {} extends Pick<T, K> ? {
58
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
59
- } : {
60
- type: import('vue').PropType<T[K]>;
61
- required: true;
62
- };
63
- };
@@ -1,77 +0,0 @@
1
- import { type Rules } from '../hooks/useValidtor';
2
- interface Props {
3
- placeholder?: string;
4
- rules?: Rules;
5
- disabled?: boolean;
6
- type?: string;
7
- min?: number;
8
- max?: number;
9
- isShowBlur?: boolean;
10
- precision?: number;
11
- }
12
- declare let __VLS_typeProps: Props;
13
- type __VLS_PublicProps = {
14
- modelValue?: string | number;
15
- } & typeof __VLS_typeProps;
16
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
17
- placeholder: string;
18
- rules: undefined;
19
- disabled: boolean;
20
- type: string;
21
- min: number;
22
- max: number;
23
- isShowBlur: boolean;
24
- precision: number;
25
- }>, {
26
- getValue: () => Promise<string | number>;
27
- focus: () => void;
28
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
- "update:modelValue": (modelValue: string | number) => void;
30
- submit: (value: string | number) => void;
31
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
32
- placeholder: string;
33
- rules: undefined;
34
- disabled: boolean;
35
- type: string;
36
- min: number;
37
- max: number;
38
- isShowBlur: boolean;
39
- precision: number;
40
- }>>> & {
41
- onSubmit?: ((value: string | number) => any) | undefined;
42
- "onUpdate:modelValue"?: ((modelValue: string | number) => any) | undefined;
43
- }, {
44
- type: string;
45
- placeholder: string;
46
- rules: Rules;
47
- disabled: boolean;
48
- min: number;
49
- max: number;
50
- isShowBlur: boolean;
51
- precision: number;
52
- }, {}>, {
53
- blur?(_: {}): any;
54
- }>;
55
- export default _default;
56
- type __VLS_WithDefaults<P, D> = {
57
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
58
- default: D[K];
59
- }> : P[K];
60
- };
61
- type __VLS_Prettify<T> = {
62
- [K in keyof T]: T[K];
63
- } & {};
64
- type __VLS_WithTemplateSlots<T, S> = T & {
65
- new (): {
66
- $slots: S;
67
- };
68
- };
69
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
70
- type __VLS_TypePropsToOption<T> = {
71
- [K in keyof T]-?: {} extends Pick<T, K> ? {
72
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
73
- } : {
74
- type: import('vue').PropType<T[K]>;
75
- required: true;
76
- };
77
- };
@@ -1,48 +0,0 @@
1
- interface Props {
2
- showCopy?: boolean;
3
- showAdd?: boolean;
4
- showRemove?: boolean;
5
- removeable?: boolean;
6
- }
7
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
8
- showCopy: boolean;
9
- showAdd: boolean;
10
- showRemove: boolean;
11
- removeable: boolean;
12
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
13
- copy: () => void;
14
- add: () => void;
15
- remove: () => void;
16
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<Props>, {
17
- showCopy: boolean;
18
- showAdd: boolean;
19
- showRemove: boolean;
20
- removeable: boolean;
21
- }>>> & {
22
- onCopy?: (() => any) | undefined;
23
- onAdd?: (() => any) | undefined;
24
- onRemove?: (() => any) | undefined;
25
- }, {
26
- showCopy: boolean;
27
- showAdd: boolean;
28
- showRemove: boolean;
29
- removeable: boolean;
30
- }, {}>;
31
- export default _default;
32
- type __VLS_WithDefaults<P, D> = {
33
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
34
- default: D[K];
35
- }> : P[K];
36
- };
37
- type __VLS_Prettify<T> = {
38
- [K in keyof T]: T[K];
39
- } & {};
40
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
41
- type __VLS_TypePropsToOption<T> = {
42
- [K in keyof T]-?: {} extends Pick<T, K> ? {
43
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
44
- } : {
45
- type: import('vue').PropType<T[K]>;
46
- required: true;
47
- };
48
- };
@@ -1,65 +0,0 @@
1
- import { type Rules } from '../hooks/useValidtor';
2
- type IKey = string | number | string[];
3
- export interface IListItem {
4
- value: IKey;
5
- label: string;
6
- }
7
- interface Props {
8
- list: Array<IListItem>;
9
- placeholder?: string;
10
- rules?: Rules;
11
- disabled?: boolean;
12
- multiple?: boolean;
13
- showSelectAll?: boolean;
14
- }
15
- declare let __VLS_typeProps: Props;
16
- type __VLS_PublicProps = {
17
- modelValue?: IKey;
18
- } & typeof __VLS_typeProps;
19
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
20
- placeholder: string;
21
- textarea: boolean;
22
- rules: () => never[];
23
- disabled: boolean;
24
- multiple: boolean;
25
- showSelectAll: boolean;
26
- }>, {
27
- getValue: () => Promise<IKey>;
28
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
29
- "update:modelValue": (modelValue: IKey) => void;
30
- change: (value: IKey) => void;
31
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
32
- placeholder: string;
33
- textarea: boolean;
34
- rules: () => never[];
35
- disabled: boolean;
36
- multiple: boolean;
37
- showSelectAll: boolean;
38
- }>>> & {
39
- onChange?: ((value: IKey) => any) | undefined;
40
- "onUpdate:modelValue"?: ((modelValue: IKey) => any) | undefined;
41
- }, {
42
- placeholder: string;
43
- rules: Rules;
44
- disabled: boolean;
45
- multiple: boolean;
46
- showSelectAll: boolean;
47
- }, {}>;
48
- export default _default;
49
- type __VLS_WithDefaults<P, D> = {
50
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
51
- default: D[K];
52
- }> : P[K];
53
- };
54
- type __VLS_Prettify<T> = {
55
- [K in keyof T]: T[K];
56
- } & {};
57
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
58
- type __VLS_TypePropsToOption<T> = {
59
- [K in keyof T]-?: {} extends Pick<T, K> ? {
60
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
61
- } : {
62
- type: import('vue').PropType<T[K]>;
63
- required: true;
64
- };
65
- };
@@ -1,60 +0,0 @@
1
- import { type Rules } from '../hooks/useValidtor';
2
- interface Props {
3
- placeholder?: string;
4
- single?: boolean;
5
- rules?: Rules;
6
- showTip?: boolean;
7
- }
8
- declare let __VLS_typeProps: Props;
9
- type __VLS_PublicProps = {
10
- modelValue?: string[];
11
- } & typeof __VLS_typeProps;
12
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
13
- placeholder: string;
14
- single: boolean;
15
- rules: undefined;
16
- showTip: boolean;
17
- }>, {
18
- getValue: () => Promise<string[] | undefined>;
19
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
- "update:modelValue": (modelValue: string[]) => void;
21
- change: (value: string[]) => void;
22
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToOption<__VLS_PublicProps>, {
23
- placeholder: string;
24
- single: boolean;
25
- rules: undefined;
26
- showTip: boolean;
27
- }>>> & {
28
- onChange?: ((value: string[]) => any) | undefined;
29
- "onUpdate:modelValue"?: ((modelValue: string[]) => any) | undefined;
30
- }, {
31
- placeholder: string;
32
- rules: Rules;
33
- single: boolean;
34
- showTip: boolean;
35
- }, {}>, {
36
- tip?(_: {}): any;
37
- }>;
38
- export default _default;
39
- type __VLS_WithDefaults<P, D> = {
40
- [K in keyof Pick<P, keyof P>]: K extends keyof D ? __VLS_Prettify<P[K] & {
41
- default: D[K];
42
- }> : P[K];
43
- };
44
- type __VLS_Prettify<T> = {
45
- [K in keyof T]: T[K];
46
- } & {};
47
- type __VLS_WithTemplateSlots<T, S> = T & {
48
- new (): {
49
- $slots: S;
50
- };
51
- };
52
- type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
53
- type __VLS_TypePropsToOption<T> = {
54
- [K in keyof T]-?: {} extends Pick<T, K> ? {
55
- type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
56
- } : {
57
- type: import('vue').PropType<T[K]>;
58
- required: true;
59
- };
60
- };
@@ -1,20 +0,0 @@
1
- import './lib/bk-icon/iconcool.js';
2
- import './lib/bk-icon/style.css';
3
- import 'bkui-vue/dist/style.css';
4
- import 'tippy.js/dist/tippy.css';
5
- import 'tippy.js/themes/light.css';
6
- import type { InjectionKey, Ref } from 'vue';
7
- export declare const renderTablekey: InjectionKey<{
8
- isOverflow: Ref<boolean>;
9
- rowWidth: Ref<number>;
10
- }>;
11
- declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>, {
12
- default?(_: {}): any;
13
- data?(_: {}): any;
14
- }>;
15
- export default _default;
16
- type __VLS_WithTemplateSlots<T, S> = T & {
17
- new (): {
18
- $slots: S;
19
- };
20
- };