bkui-vue 0.0.1-beta.55 → 0.0.1-beta.56

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.
Files changed (48) hide show
  1. package/dist/index.cjs.js +27 -27
  2. package/dist/index.esm.js +481 -315
  3. package/dist/index.umd.js +27 -27
  4. package/dist/style.css +1 -1
  5. package/lib/badge/badge.css +5 -5
  6. package/lib/badge/badge.d.ts +28 -7
  7. package/lib/badge/badge.less +5 -6
  8. package/lib/badge/badge.variable.css +5 -5
  9. package/lib/badge/index.d.ts +68 -18
  10. package/lib/badge/index.js +1 -1
  11. package/lib/card/card.css +45 -1
  12. package/lib/card/card.d.ts +47 -6
  13. package/lib/card/card.less +47 -3
  14. package/lib/card/card.variable.css +45 -1
  15. package/lib/card/index.d.ts +113 -17
  16. package/lib/card/index.js +1 -1
  17. package/lib/code-diff/index.js +1 -1
  18. package/lib/date-picker/date-picker.d.ts +4 -4
  19. package/lib/date-picker/index.d.ts +14 -14
  20. package/lib/form/form-item.d.ts +2 -2
  21. package/lib/form/form.css +4 -1
  22. package/lib/form/form.less +4 -1
  23. package/lib/form/form.variable.css +4 -1
  24. package/lib/form/index.d.ts +2 -2
  25. package/lib/icon/data-shape.d.ts +4 -0
  26. package/lib/icon/data-shape.js +1 -0
  27. package/lib/icon/edit-line.d.ts +4 -0
  28. package/lib/icon/{help-document-fill.js → edit-line.js} +1 -1
  29. package/lib/icon/help-fill.js +1 -0
  30. package/lib/icon/index.d.ts +2 -0
  31. package/lib/icon/index.js +1 -1
  32. package/lib/input/index.d.ts +27 -27
  33. package/lib/input/input.d.ts +8 -8
  34. package/lib/navigation/navigation.d.ts +1 -1
  35. package/lib/rate/star.d.ts +1 -1
  36. package/lib/select/index.d.ts +8 -8
  37. package/lib/select/select.d.ts +2 -2
  38. package/lib/slider/slider.d.ts +1 -1
  39. package/lib/table/index.d.ts +39 -1
  40. package/lib/table/index.js +1 -1
  41. package/lib/table/props.d.ts +16 -1
  42. package/lib/table/table.css +2 -2
  43. package/lib/table/table.d.ts +18 -0
  44. package/lib/table/table.less +3 -1
  45. package/lib/table/table.variable.css +2 -2
  46. package/lib/table/use-common.d.ts +4 -4
  47. package/lib/tag-input/tag-input.d.ts +2 -2
  48. package/package.json +11 -4
@@ -6,8 +6,8 @@ declare const _default: import("vue").DefineComponent<{
6
6
  default: string;
7
7
  };
8
8
  /** Number to show in badge */
9
- count: import("vue-types").VueTypeValidableDef<number> & {
10
- default: number;
9
+ count: import("vue-types").VueTypeDef<string | number> & {
10
+ default: string | number;
11
11
  };
12
12
  position: import("vue-types").VueTypeValidableDef<string> & {
13
13
  default: string;
@@ -19,6 +19,8 @@ declare const _default: import("vue").DefineComponent<{
19
19
  };
20
20
  valLength: import("vue-types").VueTypeValidableDef<number> & {
21
21
  default: number;
22
+ } & {
23
+ default: number;
22
24
  };
23
25
  /** Show capped numeric value */
24
26
  overflowCount: import("vue-types").VueTypeValidableDef<number> & {
@@ -37,9 +39,18 @@ declare const _default: import("vue").DefineComponent<{
37
39
  } & {
38
40
  default: boolean;
39
41
  };
42
+ /** 外部设置的 class name */
43
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
44
+ default: string;
45
+ };
40
46
  }, {
41
47
  numberCount: import("vue").ComputedRef<string | number>;
42
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
48
+ handleHover: () => void;
49
+ handleLeave: () => void;
50
+ radiusStyle: import("vue").ComputedRef<{
51
+ borderRadius: string;
52
+ }>;
53
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hover" | "leave")[], "hover" | "leave", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
43
54
  /** badge theme */
44
55
  theme: import("vue-types").VueTypeValidableDef<string> & {
45
56
  default: string;
@@ -47,8 +58,8 @@ declare const _default: import("vue").DefineComponent<{
47
58
  default: string;
48
59
  };
49
60
  /** Number to show in badge */
50
- count: import("vue-types").VueTypeValidableDef<number> & {
51
- default: number;
61
+ count: import("vue-types").VueTypeDef<string | number> & {
62
+ default: string | number;
52
63
  };
53
64
  position: import("vue-types").VueTypeValidableDef<string> & {
54
65
  default: string;
@@ -60,6 +71,8 @@ declare const _default: import("vue").DefineComponent<{
60
71
  };
61
72
  valLength: import("vue-types").VueTypeValidableDef<number> & {
62
73
  default: number;
74
+ } & {
75
+ default: number;
63
76
  };
64
77
  /** Show capped numeric value */
65
78
  overflowCount: import("vue-types").VueTypeValidableDef<number> & {
@@ -78,12 +91,20 @@ declare const _default: import("vue").DefineComponent<{
78
91
  } & {
79
92
  default: boolean;
80
93
  };
81
- }>>, {
94
+ /** 外部设置的 class name */
95
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
96
+ default: string;
97
+ };
98
+ }>> & {
99
+ onHover?: (...args: any[]) => any;
100
+ onLeave?: (...args: any[]) => any;
101
+ }, {
82
102
  theme: string;
83
103
  visible: boolean;
104
+ extCls: string;
84
105
  position: string;
85
106
  dot: boolean;
86
- count: number;
107
+ count: string | number;
87
108
  radius: string;
88
109
  valLength: number;
89
110
  overflowCount: number;
@@ -18,11 +18,10 @@
18
18
  .@{bk-prefix}-badge {
19
19
  position: relative;
20
20
  display: inline-block;
21
- // min-width: 18px;
22
- height: 16px;
21
+ height: 18px;
23
22
  padding: 1px 5px;
24
23
  font-size: 12px;
25
- line-height: 16px;
24
+ line-height: 12px;
26
25
  text-align: center;
27
26
  background-color: @white-color;
28
27
  border-radius: 18px;
@@ -121,9 +120,9 @@
121
120
  }
122
121
 
123
122
  &.dot {
124
- width: 6px;
125
- height: 6px;
126
- min-width: 6px;
123
+ width: 8px;
124
+ height: 8px;
125
+ min-width: 8px;
127
126
  padding: 0;
128
127
  border: 1px solid @white-color;
129
128
  }
@@ -99,10 +99,10 @@
99
99
  .bk-badge-main .bk-badge {
100
100
  position: relative;
101
101
  display: inline-block;
102
- height: 16px;
102
+ height: 18px;
103
103
  padding: 1px 5px;
104
104
  font-size: 12px;
105
- line-height: 16px;
105
+ line-height: 12px;
106
106
  text-align: center;
107
107
  background-color: var(--white-color);
108
108
  border-radius: 18px;
@@ -201,9 +201,9 @@
201
201
  border-color: var(--white-color);
202
202
  }
203
203
  .bk-badge-main .bk-badge.dot {
204
- width: 6px;
205
- height: 6px;
206
- min-width: 6px;
204
+ width: 8px;
205
+ height: 8px;
206
+ min-width: 8px;
207
207
  padding: 0;
208
208
  border: 1px solid var(--white-color);
209
209
  }
@@ -5,9 +5,10 @@ declare const BkBadge: {
5
5
  $props: Partial<{
6
6
  theme: string;
7
7
  visible: boolean;
8
+ extCls: string;
8
9
  position: string;
9
10
  dot: boolean;
10
- count: number;
11
+ count: string | number;
11
12
  radius: string;
12
13
  valLength: number;
13
14
  overflowCount: number;
@@ -17,8 +18,8 @@ declare const BkBadge: {
17
18
  } & {
18
19
  default: string;
19
20
  };
20
- count: import("vue-types").VueTypeValidableDef<number> & {
21
- default: number;
21
+ count: import("vue-types").VueTypeDef<string | number> & {
22
+ default: string | number;
22
23
  };
23
24
  position: import("vue-types").VueTypeValidableDef<string> & {
24
25
  default: string;
@@ -30,6 +31,8 @@ declare const BkBadge: {
30
31
  };
31
32
  valLength: import("vue-types").VueTypeValidableDef<number> & {
32
33
  default: number;
34
+ } & {
35
+ default: number;
33
36
  };
34
37
  overflowCount: import("vue-types").VueTypeValidableDef<number> & {
35
38
  default: number;
@@ -46,7 +49,13 @@ declare const BkBadge: {
46
49
  } & {
47
50
  default: boolean;
48
51
  };
49
- }>> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "visible" | "position" | "dot" | "count" | "radius" | "valLength" | "overflowCount">;
52
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
53
+ default: string;
54
+ };
55
+ }>> & {
56
+ onHover?: (...args: any[]) => any;
57
+ onLeave?: (...args: any[]) => any;
58
+ } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "theme" | "visible" | "extCls" | "position" | "dot" | "count" | "radius" | "valLength" | "overflowCount">;
50
59
  $attrs: {
51
60
  [x: string]: unknown;
52
61
  };
@@ -58,7 +67,7 @@ declare const BkBadge: {
58
67
  }>;
59
68
  $root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
60
69
  $parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}>>;
61
- $emit: (event: string, ...args: any[]) => void;
70
+ $emit: (event: "hover" | "leave", ...args: any[]) => void;
62
71
  $el: any;
63
72
  $options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
64
73
  theme: import("vue-types").VueTypeValidableDef<string> & {
@@ -66,8 +75,8 @@ declare const BkBadge: {
66
75
  } & {
67
76
  default: string;
68
77
  };
69
- count: import("vue-types").VueTypeValidableDef<number> & {
70
- default: number;
78
+ count: import("vue-types").VueTypeDef<string | number> & {
79
+ default: string | number;
71
80
  };
72
81
  position: import("vue-types").VueTypeValidableDef<string> & {
73
82
  default: string;
@@ -79,6 +88,8 @@ declare const BkBadge: {
79
88
  };
80
89
  valLength: import("vue-types").VueTypeValidableDef<number> & {
81
90
  default: number;
91
+ } & {
92
+ default: number;
82
93
  };
83
94
  overflowCount: import("vue-types").VueTypeValidableDef<number> & {
84
95
  default: number;
@@ -95,14 +106,26 @@ declare const BkBadge: {
95
106
  } & {
96
107
  default: boolean;
97
108
  };
98
- }>>, {
109
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
110
+ default: string;
111
+ };
112
+ }>> & {
113
+ onHover?: (...args: any[]) => any;
114
+ onLeave?: (...args: any[]) => any;
115
+ }, {
99
116
  numberCount: import("vue").ComputedRef<string | number>;
100
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
117
+ handleHover: () => void;
118
+ handleLeave: () => void;
119
+ radiusStyle: import("vue").ComputedRef<{
120
+ borderRadius: string;
121
+ }>;
122
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hover" | "leave")[], string, {
101
123
  theme: string;
102
124
  visible: boolean;
125
+ extCls: string;
103
126
  position: string;
104
127
  dot: boolean;
105
- count: number;
128
+ count: string | number;
106
129
  radius: string;
107
130
  valLength: number;
108
131
  overflowCount: number;
@@ -132,8 +155,8 @@ declare const BkBadge: {
132
155
  } & {
133
156
  default: string;
134
157
  };
135
- count: import("vue-types").VueTypeValidableDef<number> & {
136
- default: number;
158
+ count: import("vue-types").VueTypeDef<string | number> & {
159
+ default: string | number;
137
160
  };
138
161
  position: import("vue-types").VueTypeValidableDef<string> & {
139
162
  default: string;
@@ -145,6 +168,8 @@ declare const BkBadge: {
145
168
  };
146
169
  valLength: import("vue-types").VueTypeValidableDef<number> & {
147
170
  default: number;
171
+ } & {
172
+ default: number;
148
173
  };
149
174
  overflowCount: import("vue-types").VueTypeValidableDef<number> & {
150
175
  default: number;
@@ -161,8 +186,19 @@ declare const BkBadge: {
161
186
  } & {
162
187
  default: boolean;
163
188
  };
164
- }>> & import("vue").ShallowUnwrapRef<{
189
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
190
+ default: string;
191
+ };
192
+ }>> & {
193
+ onHover?: (...args: any[]) => any;
194
+ onLeave?: (...args: any[]) => any;
195
+ } & import("vue").ShallowUnwrapRef<{
165
196
  numberCount: import("vue").ComputedRef<string | number>;
197
+ handleHover: () => void;
198
+ handleLeave: () => void;
199
+ radiusStyle: import("vue").ComputedRef<{
200
+ borderRadius: string;
201
+ }>;
166
202
  }> & {} & {} & import("vue").ComponentCustomProperties;
167
203
  __isFragment?: never;
168
204
  __isTeleport?: never;
@@ -173,8 +209,8 @@ declare const BkBadge: {
173
209
  } & {
174
210
  default: string;
175
211
  };
176
- count: import("vue-types").VueTypeValidableDef<number> & {
177
- default: number;
212
+ count: import("vue-types").VueTypeDef<string | number> & {
213
+ default: string | number;
178
214
  };
179
215
  position: import("vue-types").VueTypeValidableDef<string> & {
180
216
  default: string;
@@ -186,6 +222,8 @@ declare const BkBadge: {
186
222
  };
187
223
  valLength: import("vue-types").VueTypeValidableDef<number> & {
188
224
  default: number;
225
+ } & {
226
+ default: number;
189
227
  };
190
228
  overflowCount: import("vue-types").VueTypeValidableDef<number> & {
191
229
  default: number;
@@ -202,14 +240,26 @@ declare const BkBadge: {
202
240
  } & {
203
241
  default: boolean;
204
242
  };
205
- }>>, {
243
+ extCls: import("vue-types").VueTypeValidableDef<string> & {
244
+ default: string;
245
+ };
246
+ }>> & {
247
+ onHover?: (...args: any[]) => any;
248
+ onLeave?: (...args: any[]) => any;
249
+ }, {
206
250
  numberCount: import("vue").ComputedRef<string | number>;
207
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, {
251
+ handleHover: () => void;
252
+ handleLeave: () => void;
253
+ radiusStyle: import("vue").ComputedRef<{
254
+ borderRadius: string;
255
+ }>;
256
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("hover" | "leave")[], "hover" | "leave", {
208
257
  theme: string;
209
258
  visible: boolean;
259
+ extCls: string;
210
260
  position: string;
211
261
  dot: boolean;
212
- count: number;
262
+ count: string | number;
213
263
  radius: string;
214
264
  valLength: number;
215
265
  overflowCount: number;
@@ -1 +1 @@
1
- !function(e,o){if("object"==typeof exports&&"object"==typeof module)module.exports=o(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],o);else{var t="object"==typeof exports?o(require("../shared"),require("vue")):o(e["../shared"],e.vue);for(var r in t)("object"==typeof exports?exports:e)[r]=t[r]}}(self,((e,o)=>(()=>{"use strict";var t={4212:o=>{o.exports=e},748:e=>{e.exports=o}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var s=r[e]={exports:{}};return t[e](s,s.exports,n),s.exports}n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var s={};return(()=>{n.r(s),n.d(s,{default:()=>i});var e=n(4212);function o(e,o,t){return o in e?Object.defineProperty(e,o,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[o]=t,e}var t=n(748);const r=(0,t.defineComponent)({name:"Badge",props:{theme:e.PropTypes.string.def("primary"),count:e.PropTypes.number,position:e.PropTypes.string.def("top-right"),radius:e.PropTypes.string,valLength:e.PropTypes.number,overflowCount:e.PropTypes.number.def(99),dot:e.PropTypes.bool.def(!1),visible:e.PropTypes.bool.def(!1)},setup:function(e){return{numberCount:(0,t.computed)((function(){return e.count>e.overflowCount?"".concat(e.overflowCount,"+"):e.count}))}},render:function(){var r,n,s,i,p,u,d,l=(0,e.classes)((o(r={},"bk-badge pinned bk-".concat(this.$props.theme),!!this.$props.theme),o(r,"dot",this.$props.dot),o(r,"".concat(this.$props.position),this.$props.position),o(r,"bk-badge-icon is-icon",this.$slots.icon),r),""),a=this.$props.dot?"":(0,t.createVNode)("span",null,[this.numberCount]);return(0,t.createVNode)("div",{class:"bk-badge-main"},[(0,t.createVNode)("div",null,[null!==(i=null===(s=(n=this.$slots).default)||void 0===s?void 0:s.call(n))&&void 0!==i?i:""]),this.$props.visible?"":(0,t.createVNode)("span",{class:l},[null!==(d=null===(u=(p=this.$slots).icon)||void 0===u?void 0:u.call(p))&&void 0!==d?d:a])])}}),i=(0,e.withInstall)(r)})(),s})()));
1
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("../shared"),require("vue"));else if("function"==typeof define&&define.amd)define(["../shared","vue"],t);else{var o="object"==typeof exports?t(require("../shared"),require("vue")):t(e["../shared"],e.vue);for(var r in o)("object"==typeof exports?exports:e)[r]=o[r]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},r={};function s(e){var t=r[e];if(void 0!==t)return t.exports;var n=r[e]={exports:{}};return o[e](n,n.exports,s),n.exports}s.d=(e,t)=>{for(var o in t)s.o(t,o)&&!s.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{s.r(n),s.d(n,{default:()=>i});var e=s(4212);function t(e,t,o){return t in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}var o=s(748);const r=(0,o.defineComponent)({name:"Badge",props:{theme:e.PropTypes.string.def("primary"),count:e.PropTypes.oneOfType([String,Number]).def(1),position:e.PropTypes.string.def("top-right"),radius:e.PropTypes.string,valLength:e.PropTypes.number.def(3),overflowCount:e.PropTypes.number.def(99),dot:e.PropTypes.bool.def(!1),visible:e.PropTypes.bool.def(!1),extCls:e.PropTypes.string},emits:["hover","leave"],setup:function(e,t){var r=t.emit;return{numberCount:(0,o.computed)((function(){if("string"==typeof e.count){var t=e.count,o=[],r=0;return(t+="").split("").forEach((function(t){r<Number(e.valLength)&&(r+=/[\u4e00-\u9fa5]/.test(t)?2:1,o.push(t))})),o.join("")}return e.count>e.overflowCount?"".concat(e.overflowCount,"+"):e.count})),handleHover:function(){r("hover")},handleLeave:function(){r("leave")},radiusStyle:(0,o.computed)((function(){return{borderRadius:void 0!==e.radius&&/^\d+(%|px|em|rem|vh|vw)?$/.test(e.radius)&&/^\d+$/.test(e.radius)&&"".concat(e.radius,"px")||e.radius}}))}},render:function(){var r,s,n,i,u,a,p,d=(0,e.classes)({"bk-badge-main":!0},this.$props.extCls),l=(0,e.classes)((t(r={},"bk-badge bk-".concat(this.$props.theme),!!this.$props.theme),t(r,"pinned ",this.$slots.default),t(r,"dot",this.$props.dot),t(r,"".concat(this.$props.position),this.$slots.default),t(r,"bk-badge-icon is-icon",this.$slots.icon),r),""),c=this.$props.dot?"":(0,o.createVNode)("span",null,[this.numberCount]);return(0,o.createVNode)("div",{class:d},[null!==(i=null===(n=(s=this.$slots).default)||void 0===n?void 0:n.call(s))&&void 0!==i?i:"",this.$props.visible?"":(0,o.createVNode)("span",{class:l,style:this.radiusStyle,onMouseenter:this.handleHover,onMouseleave:this.handleLeave},[null!==(p=null===(a=(u=this.$slots).icon)||void 0===a?void 0:a.call(u))&&void 0!==p?p:c])])}}),i=(0,e.withInstall)(r)})(),n})()));
package/lib/card/card.css CHANGED
@@ -28,6 +28,8 @@
28
28
  background: white;
29
29
  border: 1px solid #dcdee5;
30
30
  border-radius: 2px;
31
+ }
32
+ .bk-card:hover {
31
33
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
32
34
  }
33
35
  .bk-card .bk-card-head {
@@ -37,16 +39,56 @@
37
39
  padding: 0 20px;
38
40
  line-height: 50px;
39
41
  border-bottom: 1px solid #f0f2f5;
42
+ display: flex;
40
43
  }
41
44
  .bk-card .bk-card-head .title {
42
45
  font-weight: 600;
43
46
  color: #63656e;
44
47
  display: inline-block;
45
- max-width: 85%;
48
+ max-width: 92%;
46
49
  overflow: hidden;
47
50
  text-overflow: ellipsis;
48
51
  white-space: nowrap;
49
52
  }
53
+ .bk-card .bk-card-head .bk-card-input {
54
+ display: inline-block;
55
+ line-height: 32px;
56
+ }
57
+ .bk-card .bk-card-head.no-line-height {
58
+ line-height: unset;
59
+ }
60
+ .bk-card .bk-card-head.collapse {
61
+ border-bottom: none;
62
+ }
63
+ .bk-card .bk-card-head .bk-card-icon {
64
+ position: absolute;
65
+ top: -2px;
66
+ cursor: pointer;
67
+ color: #979ba5;
68
+ font-size: 18px;
69
+ }
70
+ .bk-card .bk-card-edit {
71
+ display: inline-block;
72
+ color: #c4c6cc;
73
+ font-size: 18px;
74
+ margin-left: 4px;
75
+ cursor: pointer;
76
+ line-height: 45px;
77
+ }
78
+ .bk-card .bk-card-head-left {
79
+ padding-left: 30px;
80
+ padding-right: 20px;
81
+ }
82
+ .bk-card .bk-card-head-left .bk-card-icon {
83
+ left: 10px;
84
+ }
85
+ .bk-card .bk-card-head-right {
86
+ padding-left: 20px;
87
+ padding-right: 30px;
88
+ }
89
+ .bk-card .bk-card-head-right .bk-card-icon {
90
+ right: 10px;
91
+ }
50
92
  .bk-card .bk-card-body {
51
93
  width: 100%;
52
94
  padding: 0 20px;
@@ -57,7 +99,9 @@
57
99
  height: 50px;
58
100
  line-height: 50px;
59
101
  border-top: 1px solid #f0f2f5;
102
+ border-bottom: 1px solid #f0f2f5;
60
103
  }
61
104
  .bk-card-border-none {
62
105
  border: none;
106
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
63
107
  }
@@ -22,14 +22,34 @@ declare const _default: import("vue").DefineComponent<{
22
22
  } & {
23
23
  default: boolean;
24
24
  };
25
- headBorder: import("vue-types").VueTypeValidableDef<boolean> & {
25
+ disableHeaderStyle: import("vue-types").VueTypeValidableDef<boolean> & {
26
+ default: boolean;
27
+ } & {
28
+ default: boolean;
29
+ };
30
+ position: import("vue-types").VueTypeValidableDef<string> & {
31
+ default: string;
32
+ } & {
33
+ default: string;
34
+ };
35
+ isEdit: import("vue-types").VueTypeValidableDef<boolean> & {
36
+ default: boolean;
37
+ } & {
38
+ default: boolean;
39
+ };
40
+ isCollapse: import("vue-types").VueTypeValidableDef<boolean> & {
26
41
  default: boolean;
27
42
  } & {
28
43
  default: boolean;
29
44
  };
30
45
  }, {
31
- isCollapse: import("vue").ComputedRef<boolean>;
32
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
46
+ collapseActive: import("vue").Ref<boolean>;
47
+ showInput: import("vue").Ref<boolean>;
48
+ renderTitle: import("vue").Ref<string>;
49
+ handleCollapse: () => void;
50
+ saveEdit: () => void;
51
+ clickEdit: () => void;
52
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:collapseStatus" | "edit")[], "update:collapseStatus" | "edit", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
33
53
  title: import("vue-types").VueTypeValidableDef<string> & {
34
54
  default: string;
35
55
  };
@@ -53,17 +73,38 @@ declare const _default: import("vue").DefineComponent<{
53
73
  } & {
54
74
  default: boolean;
55
75
  };
56
- headBorder: import("vue-types").VueTypeValidableDef<boolean> & {
76
+ disableHeaderStyle: import("vue-types").VueTypeValidableDef<boolean> & {
57
77
  default: boolean;
58
78
  } & {
59
79
  default: boolean;
60
80
  };
61
- }>>, {
81
+ position: import("vue-types").VueTypeValidableDef<string> & {
82
+ default: string;
83
+ } & {
84
+ default: string;
85
+ };
86
+ isEdit: import("vue-types").VueTypeValidableDef<boolean> & {
87
+ default: boolean;
88
+ } & {
89
+ default: boolean;
90
+ };
91
+ isCollapse: import("vue-types").VueTypeValidableDef<boolean> & {
92
+ default: boolean;
93
+ } & {
94
+ default: boolean;
95
+ };
96
+ }>> & {
97
+ "onUpdate:collapseStatus"?: (...args: any[]) => any;
98
+ onEdit?: (...args: any[]) => any;
99
+ }, {
62
100
  title: string;
101
+ position: string;
63
102
  border: boolean;
64
103
  showHeader: boolean;
65
104
  showFooter: boolean;
66
105
  collapseStatus: boolean;
67
- headBorder: boolean;
106
+ disableHeaderStyle: boolean;
107
+ isEdit: boolean;
108
+ isCollapse: boolean;
68
109
  }>;
69
110
  export default _default;
@@ -12,7 +12,9 @@
12
12
  background: @white-color;
13
13
  border: @border-width-base @border-style-base @disable-color;
14
14
  border-radius: @border-radius-base;
15
- box-shadow: 0px 1px 2px 0px rgba(0,0,0,.2);
15
+ &:hover {
16
+ box-shadow: 0px 1px 2px 0px rgba(0,0,0,.2);
17
+ }
16
18
  .@{bk-prefix}-card-head {
17
19
  position: relative;
18
20
  width: 100%;
@@ -20,11 +22,51 @@
20
22
  padding: 0 20px;
21
23
  line-height: 50px;
22
24
  border-bottom: 1px solid @border-color;
23
-
25
+ display: flex;
24
26
  .title {
27
+ display: inline-block;
25
28
  font-weight: 600;
26
29
  color: @default-color;
27
- .ellipsis-style(85%);
30
+ .ellipsis-style(92%);
31
+ }
32
+ .@{bk-prefix}-card-input {
33
+ display: inline-block;
34
+ line-height: 32px;
35
+ }
36
+ &.no-line-height {
37
+ line-height: unset;
38
+ }
39
+ &.collapse {
40
+ border-bottom: none;
41
+ }
42
+ .@{bk-prefix}-card-icon {
43
+ position: absolute;
44
+ top: -2px;
45
+ cursor: pointer;
46
+ color: #979ba5;
47
+ font-size: 18px;
48
+ }
49
+ }
50
+ .@{bk-prefix}-card-edit {
51
+ display: inline-block;
52
+ color: #c4c6cc;
53
+ font-size: 18px;
54
+ margin-left: 4px;
55
+ cursor: pointer;
56
+ line-height: 45px;
57
+ }
58
+ .@{bk-prefix}-card-head-left {
59
+ padding-left: 30px;
60
+ padding-right: 20px;
61
+ .@{bk-prefix}-card-icon {
62
+ left: 10px;
63
+ }
64
+ }
65
+ .@{bk-prefix}-card-head-right {
66
+ padding-left: 20px;
67
+ padding-right: 30px;
68
+ .@{bk-prefix}-card-icon {
69
+ right: 10px;
28
70
  }
29
71
  }
30
72
  .@{bk-prefix}-card-body {
@@ -37,8 +79,10 @@
37
79
  height: 50px;
38
80
  line-height: 50px;
39
81
  border-top: 1px solid @border-color;
82
+ border-bottom: 1px solid @border-color;
40
83
  }
41
84
  }
42
85
  .@{bk-prefix}-card-border-none {
43
86
  border: none;
87
+ box-shadow: 0px 1px 2px 0px rgba(0,0,0,.2);
44
88
  }
@@ -122,6 +122,8 @@
122
122
  background: var(--white-color);
123
123
  border: var(--border-width-base) var(--border-style-base) var(--disable-color);
124
124
  border-radius: var(--border-radius-base);
125
+ }
126
+ .bk-card:hover {
125
127
  box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
126
128
  }
127
129
  .bk-card .bk-card-head {
@@ -131,16 +133,56 @@
131
133
  padding: 0 20px;
132
134
  line-height: 50px;
133
135
  border-bottom: 1px solid #f0f2f5;
136
+ display: flex;
134
137
  }
135
138
  .bk-card .bk-card-head .title {
136
139
  font-weight: 600;
137
140
  color: var(--default-color);
138
141
  display: inline-block;
139
- max-width: 85%;
142
+ max-width: 92%;
140
143
  overflow: hidden;
141
144
  text-overflow: ellipsis;
142
145
  white-space: nowrap;
143
146
  }
147
+ .bk-card .bk-card-head .bk-card-input {
148
+ display: inline-block;
149
+ line-height: 32px;
150
+ }
151
+ .bk-card .bk-card-head.no-line-height {
152
+ line-height: unset;
153
+ }
154
+ .bk-card .bk-card-head.collapse {
155
+ border-bottom: none;
156
+ }
157
+ .bk-card .bk-card-head .bk-card-icon {
158
+ position: absolute;
159
+ top: -2px;
160
+ cursor: pointer;
161
+ color: #979ba5;
162
+ font-size: 18px;
163
+ }
164
+ .bk-card .bk-card-edit {
165
+ display: inline-block;
166
+ color: #c4c6cc;
167
+ font-size: 18px;
168
+ margin-left: 4px;
169
+ cursor: pointer;
170
+ line-height: 45px;
171
+ }
172
+ .bk-card .bk-card-head-left {
173
+ padding-left: 30px;
174
+ padding-right: 20px;
175
+ }
176
+ .bk-card .bk-card-head-left .bk-card-icon {
177
+ left: 10px;
178
+ }
179
+ .bk-card .bk-card-head-right {
180
+ padding-left: 20px;
181
+ padding-right: 30px;
182
+ }
183
+ .bk-card .bk-card-head-right .bk-card-icon {
184
+ right: 10px;
185
+ }
144
186
  .bk-card .bk-card-body {
145
187
  width: 100%;
146
188
  padding: 0 20px;
@@ -151,7 +193,9 @@
151
193
  height: 50px;
152
194
  line-height: 50px;
153
195
  border-top: 1px solid #f0f2f5;
196
+ border-bottom: 1px solid #f0f2f5;
154
197
  }
155
198
  .bk-card-border-none {
156
199
  border: none;
200
+ box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.2);
157
201
  }