bkui-vue 0.0.1-beta.414 → 0.0.1-beta.415
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/index.cjs.js +47 -47
- package/dist/index.esm.js +87 -39
- package/dist/index.umd.js +48 -48
- package/dist/style.css +1 -1
- package/dist/style.variable.css +1 -1
- package/lib/directives/index.js +1 -1
- package/lib/plugin-popover/index.js +1 -1
- package/lib/popover/index.d.ts +33 -1
- package/lib/popover/index.js +1 -1
- package/lib/popover/popover.d.ts +14 -0
- package/lib/popover/props.d.ts +5 -0
- package/lib/radio/index.js +1 -1
- package/lib/radio/radio.css +118 -0
- package/lib/radio/radio.less +159 -0
- package/lib/radio/radio.variable.css +118 -0
- package/lib/select/index.d.ts +15 -0
- package/lib/select/select.d.ts +5 -0
- package/lib/styles/index.d.ts +0 -1
- package/lib/table/components/table-column.d.ts +46 -1
- package/lib/table/index.d.ts +138 -3
- package/lib/table/index.js +1 -1
- package/lib/table/plugins/settings.css +2 -0
- package/lib/table/plugins/settings.less +2 -0
- package/lib/table/plugins/settings.variable.css +2 -0
- package/lib/table/table.css +2 -0
- package/lib/table/table.variable.css +2 -0
- package/lib/table/use-column.d.ts +1 -1
- package/lib/table-column/index.d.ts +138 -3
- package/lib/table-column/index.js +1 -1
- package/lib/tag-input/index.d.ts +20 -0
- package/lib/tag-input/tag-input.d.ts +10 -0
- package/lib/tag-input/tag-props.d.ts +5 -0
- package/package.json +1 -1
- package/lib/radio/radio-button.css +0 -118
- package/lib/radio/radio-button.less +0 -161
- package/lib/radio/radio-button.variable.css +0 -238
package/lib/popover/popover.d.ts
CHANGED
@@ -28,6 +28,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
28
28
|
content: import("vue-types").VueTypeDef<string | number> & {
|
29
29
|
default: string | number;
|
30
30
|
};
|
31
|
+
allowHTML: import("vue-types").VueTypeValidableDef<boolean> & {
|
32
|
+
default: boolean;
|
33
|
+
} & {
|
34
|
+
default: boolean;
|
35
|
+
};
|
31
36
|
placement: import("vue-types").VueTypeDef<string> & {
|
32
37
|
default: string;
|
33
38
|
};
|
@@ -120,6 +125,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
120
125
|
show: () => void;
|
121
126
|
stopHide: () => void;
|
122
127
|
contentIsShow: import("vue").ComputedRef<boolean>;
|
128
|
+
renderContent: () => string | number | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
129
|
+
[key: string]: any;
|
130
|
+
}>;
|
123
131
|
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
124
132
|
show: (..._args: any[]) => boolean;
|
125
133
|
hide: (..._args: any[]) => boolean;
|
@@ -157,6 +165,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
157
165
|
content: import("vue-types").VueTypeDef<string | number> & {
|
158
166
|
default: string | number;
|
159
167
|
};
|
168
|
+
allowHTML: import("vue-types").VueTypeValidableDef<boolean> & {
|
169
|
+
default: boolean;
|
170
|
+
} & {
|
171
|
+
default: boolean;
|
172
|
+
};
|
160
173
|
placement: import("vue-types").VueTypeDef<string> & {
|
161
174
|
default: string;
|
162
175
|
};
|
@@ -259,6 +272,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
259
272
|
isShow: boolean;
|
260
273
|
always: boolean;
|
261
274
|
disabled: boolean;
|
275
|
+
allowHTML: boolean;
|
262
276
|
theme: string;
|
263
277
|
renderType: "auto" | "shown";
|
264
278
|
padding: number;
|
package/lib/popover/props.d.ts
CHANGED
@@ -34,6 +34,11 @@ export declare const PopoverProps: {
|
|
34
34
|
content: import("vue-types").VueTypeDef<string | number> & {
|
35
35
|
default: string | number;
|
36
36
|
};
|
37
|
+
allowHTML: import("vue-types").VueTypeValidableDef<boolean> & {
|
38
|
+
default: boolean;
|
39
|
+
} & {
|
40
|
+
default: boolean;
|
41
|
+
};
|
37
42
|
/**
|
38
43
|
* 组件显示位置
|
39
44
|
*/
|
package/lib/radio/index.js
CHANGED
@@ -1 +1 @@
|
|
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 n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkRadio:()=>b,BkRadioButton:()=>p,BkRadioGroup:()=>h,default:()=>
|
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 n in o)("object"==typeof exports?exports:e)[n]=o[n]}}(self,((e,t)=>(()=>{"use strict";var o={4212:t=>{t.exports=e},748:e=>{e.exports=t}},n={};function r(e){var t=n[e];if(void 0!==t)return t.exports;var a=n[e]={exports:{}};return o[e](a,a.exports,r),a.exports}r.d=(e,t)=>{for(var o in t)r.o(t,o)&&!r.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var a={};return(()=>{r.r(a),r.d(a,{BkRadio:()=>b,BkRadioButton:()=>p,BkRadioGroup:()=>h,default:()=>v});var e=r(4212);function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}function o(e,o){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var o=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=o){var n,r,a=[],i=!0,l=!1;try{for(o=o.call(e);!(i=(n=o.next()).done)&&(a.push(n.value),!t||a.length!==t);i=!0);}catch(e){l=!0,r=e}finally{try{i||null==o.return||o.return()}finally{if(l)throw r}}return a}}(e,o)||function(e,o){if(e){if("string"==typeof e)return t(e,o);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?t(e,o):void 0}}(e,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var n=r(748),i=Symbol("RadioGroup");function l(){var e=(0,n.ref)(!1);return[e,{blur:function(){e.value=!1},focus:function(){e.value=!0}}]}var s=function(){var t=(0,n.getCurrentInstance)(),o=t.props,r=t.emit,a=(0,n.inject)(i,e.EMPTY_OBJ),l=!(0,e.isEmptyObj)(a),s=(0,n.ref)(!1),u=(0,n.computed)((function(){return!(!l||!a.props.disabled)||o.disabled}));return l?(0,n.watch)((function(){return a.props.modelValue}),(function(e){s.value=e===o.label}),{immediate:!0}):(0,n.watch)((function(){return o.modelValue}),(function(e){""!==e&&(s.value=e===o.label)}),{immediate:!0}),(0,n.onMounted)((function(){l&&a.register(t.proxy)})),(0,n.onBeforeUnmount)((function(){l&&a.unregister(t.proxy)})),{isChecked:s,isDisabled:u,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];s.value=e},handleChange:function(e){if(!u.value){var i=e.target;s.value=i.checked;var d=s.value?o.label:"";r("update:modelValue",d),r("change",d),l&&a.handleChange(t.proxy),(0,n.nextTick)((function(){i.checked!==s.value&&(i.checked=s.value)}))}}}},u={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1)};const d=(0,n.defineComponent)({name:"Radio",props:u,emits:["change","update:modelValue"],setup:function(){var e=o(l(),2),t=e[0],n=e[1],r=n.blur,a=n.focus,i=s();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange}},render:function(){var t=this,o=(0,e.classes)({"bk-radio":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,n.createVNode)("label",{class:o,tabindex:"0"},[(0,n.createVNode)("input",{class:"bk-radio-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),t.label||t.$slots.default?(0,n.createVNode)("span",{class:"bk-radio-label"},[t.$slots.default?t.$slots.default():t.label]):null])}});var c={name:e.PropTypes.string.def(""),label:e.PropTypes.oneOfType([String,Number,Boolean]).isRequired,modelValue:e.PropTypes.oneOfType([String,Number,Boolean]).def(""),checked:e.PropTypes.bool.def(!1),disabled:e.PropTypes.bool.def(!1),size:e.PropTypes.size()};const p=(0,n.defineComponent)({name:"RadioButton",props:c,emits:["change","update:modelValue"],setup:function(){var e=o(l(),2),t=e[0],n=e[1],r=n.blur,a=n.focus,i=s();return{isFocused:t,isChecked:i.isChecked,isDisabled:i.isDisabled,setChecked:i.setChecked,handleBlur:r,handleFocus:a,handleChange:i.handleChange}},render:function(){var t=this,o=(0,e.classes)({"bk-radio-button":!0,"is-focused":this.isFocused,"is-disabled":this.isDisabled,"is-checked":this.isChecked});return(0,n.createVNode)("label",{class:o,tabindex:"0"},[(0,n.createVNode)("input",{class:"bk-radio-button-input",type:"radio",tabindex:"0",value:this.label,checked:this.isChecked,disabled:this.isDisabled,onFocus:this.handleFocus,onBlur:this.handleBlur,onChange:this.handleChange},null),t.label||t.$slots.default?(0,n.createVNode)("div",{class:"bk-radio-button-label"},[t.$slots.default?t.$slots.default():t.label]):null])}});var f={name:e.PropTypes.string.def(""),modelValue:e.PropTypes.oneOfType([String,Number,Boolean]),disabled:e.PropTypes.bool,withValidate:e.PropTypes.bool.def(!0),type:e.PropTypes.oneOf(["tab","capsule"]).def("tab")};const h=(0,n.defineComponent)({name:"RadioGroup",props:f,emits:["change","update:modelValue"],setup:function(t,o){var r=(0,e.useFormItem)(),a=[];return(0,n.provide)(i,{props:t,register:function(e){a.push(e)},unregister:function(e){var t=a.indexOf(e);t>-1&&a.splice(t,1)},handleChange:function(e){var t=e.label;a.forEach((function(t){t!==e&&t.setChecked(!1)})),o.emit("update:modelValue",t),o.emit("change",t)}}),(0,n.watch)((function(){return t.modelValue}),(function(){var e;t.withValidate&&(null===(e=null==r?void 0:r.validate)||void 0===e||e.call(r,"change"))})),(0,n.onMounted)((function(){""!==t.modelValue&&a.forEach((function(e){e.setChecked(e.label===t.modelValue)}))})),{}},render:function(){var e;return(0,n.createVNode)("div",{class:["bk-radio-group","bk-radio-".concat(this.type)]},[null===(e=this.$slots)||void 0===e?void 0:e.default()])}});var b=(0,e.withInstallProps)(d,{Group:h,Button:p});const v=b})(),a})()));
|
package/lib/radio/radio.css
CHANGED
@@ -68,3 +68,121 @@
|
|
68
68
|
vertical-align: middle;
|
69
69
|
cursor: pointer;
|
70
70
|
}
|
71
|
+
.bk-radio-button {
|
72
|
+
position: relative;
|
73
|
+
z-index: 1;
|
74
|
+
display: inline-flex;
|
75
|
+
font-weight: normal;
|
76
|
+
letter-spacing: normal;
|
77
|
+
color: #63656e;
|
78
|
+
white-space: nowrap;
|
79
|
+
cursor: pointer;
|
80
|
+
outline: none;
|
81
|
+
opacity: 1;
|
82
|
+
user-select: none;
|
83
|
+
}
|
84
|
+
.bk-radio-button-input {
|
85
|
+
position: absolute;
|
86
|
+
z-index: -1;
|
87
|
+
width: 100%;
|
88
|
+
height: 100%;
|
89
|
+
outline: none;
|
90
|
+
opacity: 0;
|
91
|
+
}
|
92
|
+
.bk-radio-button .bk-radio-button-label {
|
93
|
+
width: 100%;
|
94
|
+
padding: 0 18px;
|
95
|
+
font-size: 12px;
|
96
|
+
font-style: normal;
|
97
|
+
font-weight: normal;
|
98
|
+
line-height: 32px;
|
99
|
+
color: #63656e;
|
100
|
+
text-align: center;
|
101
|
+
vertical-align: middle;
|
102
|
+
cursor: pointer;
|
103
|
+
transition: all 0.3s;
|
104
|
+
}
|
105
|
+
.bk-radio-button.is-checked {
|
106
|
+
z-index: 2;
|
107
|
+
}
|
108
|
+
.bk-radio-button.is-checked .bk-radio-button-label {
|
109
|
+
color: #5594fa;
|
110
|
+
}
|
111
|
+
.bk-radio-button.is-disabled {
|
112
|
+
z-index: 0;
|
113
|
+
color: #c4c6cc;
|
114
|
+
cursor: not-allowed;
|
115
|
+
}
|
116
|
+
.bk-radio-button.is-disabled .bk-radio-button-label {
|
117
|
+
cursor: not-allowed;
|
118
|
+
}
|
119
|
+
.bk-radio-capsule {
|
120
|
+
padding: 4px;
|
121
|
+
background: #f0f1f5;
|
122
|
+
border-radius: 2px;
|
123
|
+
}
|
124
|
+
.bk-radio-capsule .bk-radio-button {
|
125
|
+
border-radius: 2px;
|
126
|
+
}
|
127
|
+
.bk-radio-capsule .bk-radio-button:before {
|
128
|
+
position: absolute;
|
129
|
+
top: 50%;
|
130
|
+
right: -1px;
|
131
|
+
display: block;
|
132
|
+
width: 1px;
|
133
|
+
height: 12px;
|
134
|
+
margin-top: -6px;
|
135
|
+
background: #dcdee5;
|
136
|
+
content: '';
|
137
|
+
}
|
138
|
+
.bk-radio-capsule .bk-radio-button:last-of-type .bk-radio-capsule .bk-radio-button:before {
|
139
|
+
display: none;
|
140
|
+
}
|
141
|
+
.bk-radio-capsule .bk-radio-button-label {
|
142
|
+
position: relative;
|
143
|
+
height: 24px;
|
144
|
+
padding: 0 12px;
|
145
|
+
line-height: 24px;
|
146
|
+
}
|
147
|
+
.bk-radio-capsule .is-checked {
|
148
|
+
background: #fff;
|
149
|
+
}
|
150
|
+
.bk-radio-capsule .is-checked:before {
|
151
|
+
display: none;
|
152
|
+
}
|
153
|
+
.bk-radio-tab .bk-radio-button {
|
154
|
+
overflow: hidden;
|
155
|
+
}
|
156
|
+
.bk-radio-tab .bk-radio-button:nth-child(n+2) {
|
157
|
+
margin-left: -1px;
|
158
|
+
}
|
159
|
+
.bk-radio-tab .bk-radio-button:first-child .bk-radio-button-label {
|
160
|
+
border-bottom-left-radius: 2px;
|
161
|
+
border-top-left-radius: 2px;
|
162
|
+
}
|
163
|
+
.bk-radio-tab .bk-radio-button:last-child .bk-radio-button-label {
|
164
|
+
border-top-right-radius: 2px;
|
165
|
+
border-bottom-right-radius: 2px;
|
166
|
+
}
|
167
|
+
.bk-radio-tab .bk-radio-button.is-checked {
|
168
|
+
z-index: 2;
|
169
|
+
}
|
170
|
+
.bk-radio-tab .bk-radio-button.is-checked .bk-radio-button-label {
|
171
|
+
background: #e1ecff;
|
172
|
+
border-color: #5594fa;
|
173
|
+
}
|
174
|
+
.bk-radio-tab .bk-radio-button.is-disabled .bk-radio-button-label {
|
175
|
+
background: #fafbfd;
|
176
|
+
border-color: #dcdee5;
|
177
|
+
}
|
178
|
+
.bk-radio-tab .bk-radio-button.is-focused .bk-radio-button-label {
|
179
|
+
border-color: #5594fa;
|
180
|
+
}
|
181
|
+
.bk-radio-tab .bk-radio-button-label {
|
182
|
+
height: 32px;
|
183
|
+
border: 1px solid #c4c6cc;
|
184
|
+
transition: all 0.3s;
|
185
|
+
}
|
186
|
+
.bk-radio-tab .bk-radio-button-label:hover {
|
187
|
+
border-color: #979ba5;
|
188
|
+
}
|
package/lib/radio/radio.less
CHANGED
@@ -89,3 +89,162 @@
|
|
89
89
|
cursor: pointer;
|
90
90
|
}
|
91
91
|
|
92
|
+
// 按钮样式
|
93
|
+
.@{bk-prefix}-radio-button {
|
94
|
+
position: relative;
|
95
|
+
z-index: 1;
|
96
|
+
display: inline-flex;
|
97
|
+
font-weight: normal;
|
98
|
+
letter-spacing: normal;
|
99
|
+
color: @radio-font-color;
|
100
|
+
white-space: nowrap;
|
101
|
+
cursor: pointer;
|
102
|
+
outline: none;
|
103
|
+
opacity: 1;
|
104
|
+
user-select: none;
|
105
|
+
|
106
|
+
&-input {
|
107
|
+
position: absolute;
|
108
|
+
z-index: -1;
|
109
|
+
width: 100%;
|
110
|
+
height: 100%;
|
111
|
+
outline: none;
|
112
|
+
opacity: 0;
|
113
|
+
}
|
114
|
+
|
115
|
+
.@{bk-prefix}-radio-button-label {
|
116
|
+
width: 100%;
|
117
|
+
padding: 0 18px;
|
118
|
+
font-size: 12px;
|
119
|
+
font-style: normal;
|
120
|
+
font-weight: normal;
|
121
|
+
line-height: @component-size-base;
|
122
|
+
color: @default-color;
|
123
|
+
text-align: center;
|
124
|
+
vertical-align: middle;
|
125
|
+
cursor: pointer;
|
126
|
+
transition: all .3s;
|
127
|
+
|
128
|
+
}
|
129
|
+
|
130
|
+
&.is-checked {
|
131
|
+
z-index: 2;
|
132
|
+
|
133
|
+
.@{bk-prefix}-radio-button-label {
|
134
|
+
color: @radio-active-color;
|
135
|
+
}
|
136
|
+
}
|
137
|
+
|
138
|
+
&.is-disabled {
|
139
|
+
z-index: 0;
|
140
|
+
color: @radio-disabled-font-color;
|
141
|
+
cursor: not-allowed;
|
142
|
+
|
143
|
+
.@{bk-prefix}-radio-button-label {
|
144
|
+
cursor: not-allowed;
|
145
|
+
}
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
|
150
|
+
.@{bk-prefix}-radio-capsule {
|
151
|
+
padding: 4px;
|
152
|
+
background: #f0f1f5;
|
153
|
+
border-radius: 2px;
|
154
|
+
|
155
|
+
.@{bk-prefix}-radio-button {
|
156
|
+
border-radius: 2px;
|
157
|
+
|
158
|
+
&:before {
|
159
|
+
position: absolute;
|
160
|
+
top: 50%;
|
161
|
+
right: -1px;
|
162
|
+
display: block;
|
163
|
+
width: 1px;
|
164
|
+
height: 12px;
|
165
|
+
margin-top: -6px;
|
166
|
+
background: #dcdee5;
|
167
|
+
content: '';
|
168
|
+
}
|
169
|
+
|
170
|
+
&:last-of-type &:before {
|
171
|
+
display: none;
|
172
|
+
}
|
173
|
+
}
|
174
|
+
|
175
|
+
.@{bk-prefix}-radio-button-label {
|
176
|
+
position: relative;
|
177
|
+
height: 24px;
|
178
|
+
padding: 0 12px;
|
179
|
+
line-height: 24px;
|
180
|
+
|
181
|
+
}
|
182
|
+
|
183
|
+
.is-checked {
|
184
|
+
background: #fff;
|
185
|
+
|
186
|
+
&:before {
|
187
|
+
display: none;
|
188
|
+
}
|
189
|
+
}
|
190
|
+
}
|
191
|
+
|
192
|
+
.@{bk-prefix}-radio-tab {
|
193
|
+
|
194
|
+
.@{bk-prefix}-radio-button {
|
195
|
+
overflow: hidden;
|
196
|
+
|
197
|
+
&:nth-child(n+2) {
|
198
|
+
margin-left: -1px;
|
199
|
+
}
|
200
|
+
|
201
|
+
&:first-child {
|
202
|
+
.@{bk-prefix}-radio-button-label {
|
203
|
+
border-bottom-left-radius: @border-radius-base;
|
204
|
+
border-top-left-radius: @border-radius-base;
|
205
|
+
}
|
206
|
+
}
|
207
|
+
|
208
|
+
&:last-child {
|
209
|
+
.@{bk-prefix}-radio-button-label {
|
210
|
+
border-top-right-radius: @border-radius-base;
|
211
|
+
border-bottom-right-radius: @border-radius-base;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
&.is-checked {
|
216
|
+
z-index: 2;
|
217
|
+
|
218
|
+
.@{bk-prefix}-radio-button-label {
|
219
|
+
background: @radio-button-checked-bg;
|
220
|
+
border-color: @radio-active-color;
|
221
|
+
}
|
222
|
+
}
|
223
|
+
|
224
|
+
&.is-disabled {
|
225
|
+
.@{bk-prefix}-radio-button-label {
|
226
|
+
background: @radio-distable-checked-bg;
|
227
|
+
border-color: @radio-disabled-border;
|
228
|
+
}
|
229
|
+
}
|
230
|
+
|
231
|
+
&.is-focused {
|
232
|
+
.@{bk-prefix}-radio-button-label {
|
233
|
+
border-color: @radio-active-color;
|
234
|
+
}
|
235
|
+
}
|
236
|
+
|
237
|
+
}
|
238
|
+
|
239
|
+
.@{bk-prefix}-radio-button-label {
|
240
|
+
height: @component-size-base;
|
241
|
+
border: @border-width-base @border-style-base @light-gray;
|
242
|
+
transition: all .3s;
|
243
|
+
|
244
|
+
&:hover {
|
245
|
+
border-color: @radio-hover-border-color;
|
246
|
+
}
|
247
|
+
}
|
248
|
+
|
249
|
+
}
|
250
|
+
|
@@ -188,3 +188,121 @@
|
|
188
188
|
vertical-align: middle;
|
189
189
|
cursor: pointer;
|
190
190
|
}
|
191
|
+
.bk-radio-button {
|
192
|
+
position: relative;
|
193
|
+
z-index: 1;
|
194
|
+
display: inline-flex;
|
195
|
+
font-weight: normal;
|
196
|
+
letter-spacing: normal;
|
197
|
+
color: var(--radio-font-color);
|
198
|
+
white-space: nowrap;
|
199
|
+
cursor: pointer;
|
200
|
+
outline: none;
|
201
|
+
opacity: 1;
|
202
|
+
user-select: none;
|
203
|
+
}
|
204
|
+
.bk-radio-button-input {
|
205
|
+
position: absolute;
|
206
|
+
z-index: -1;
|
207
|
+
width: 100%;
|
208
|
+
height: 100%;
|
209
|
+
outline: none;
|
210
|
+
opacity: 0;
|
211
|
+
}
|
212
|
+
.bk-radio-button .bk-radio-button-label {
|
213
|
+
width: 100%;
|
214
|
+
padding: 0 18px;
|
215
|
+
font-size: 12px;
|
216
|
+
font-style: normal;
|
217
|
+
font-weight: normal;
|
218
|
+
line-height: var(--component-size-base);
|
219
|
+
color: var(--default-color);
|
220
|
+
text-align: center;
|
221
|
+
vertical-align: middle;
|
222
|
+
cursor: pointer;
|
223
|
+
transition: all 0.3s;
|
224
|
+
}
|
225
|
+
.bk-radio-button.is-checked {
|
226
|
+
z-index: 2;
|
227
|
+
}
|
228
|
+
.bk-radio-button.is-checked .bk-radio-button-label {
|
229
|
+
color: var(--radio-active-color);
|
230
|
+
}
|
231
|
+
.bk-radio-button.is-disabled {
|
232
|
+
z-index: 0;
|
233
|
+
color: var(--radio-disabled-font-color);
|
234
|
+
cursor: not-allowed;
|
235
|
+
}
|
236
|
+
.bk-radio-button.is-disabled .bk-radio-button-label {
|
237
|
+
cursor: not-allowed;
|
238
|
+
}
|
239
|
+
.bk-radio-capsule {
|
240
|
+
padding: 4px;
|
241
|
+
background: #f0f1f5;
|
242
|
+
border-radius: 2px;
|
243
|
+
}
|
244
|
+
.bk-radio-capsule .bk-radio-button {
|
245
|
+
border-radius: 2px;
|
246
|
+
}
|
247
|
+
.bk-radio-capsule .bk-radio-button:before {
|
248
|
+
position: absolute;
|
249
|
+
top: 50%;
|
250
|
+
right: -1px;
|
251
|
+
display: block;
|
252
|
+
width: 1px;
|
253
|
+
height: 12px;
|
254
|
+
margin-top: -6px;
|
255
|
+
background: #dcdee5;
|
256
|
+
content: '';
|
257
|
+
}
|
258
|
+
.bk-radio-capsule .bk-radio-button:last-of-type .bk-radio-capsule .bk-radio-button:before {
|
259
|
+
display: none;
|
260
|
+
}
|
261
|
+
.bk-radio-capsule .bk-radio-button-label {
|
262
|
+
position: relative;
|
263
|
+
height: 24px;
|
264
|
+
padding: 0 12px;
|
265
|
+
line-height: 24px;
|
266
|
+
}
|
267
|
+
.bk-radio-capsule .is-checked {
|
268
|
+
background: #fff;
|
269
|
+
}
|
270
|
+
.bk-radio-capsule .is-checked:before {
|
271
|
+
display: none;
|
272
|
+
}
|
273
|
+
.bk-radio-tab .bk-radio-button {
|
274
|
+
overflow: hidden;
|
275
|
+
}
|
276
|
+
.bk-radio-tab .bk-radio-button:nth-child(n+2) {
|
277
|
+
margin-left: -1px;
|
278
|
+
}
|
279
|
+
.bk-radio-tab .bk-radio-button:first-child .bk-radio-button-label {
|
280
|
+
border-bottom-left-radius: var(--border-radius-base);
|
281
|
+
border-top-left-radius: var(--border-radius-base);
|
282
|
+
}
|
283
|
+
.bk-radio-tab .bk-radio-button:last-child .bk-radio-button-label {
|
284
|
+
border-top-right-radius: var(--border-radius-base);
|
285
|
+
border-bottom-right-radius: var(--border-radius-base);
|
286
|
+
}
|
287
|
+
.bk-radio-tab .bk-radio-button.is-checked {
|
288
|
+
z-index: 2;
|
289
|
+
}
|
290
|
+
.bk-radio-tab .bk-radio-button.is-checked .bk-radio-button-label {
|
291
|
+
background: var(--radio-button-checked-bg);
|
292
|
+
border-color: var(--radio-active-color);
|
293
|
+
}
|
294
|
+
.bk-radio-tab .bk-radio-button.is-disabled .bk-radio-button-label {
|
295
|
+
background: var(--radio-distable-checked-bg);
|
296
|
+
border-color: var(--radio-disabled-border);
|
297
|
+
}
|
298
|
+
.bk-radio-tab .bk-radio-button.is-focused .bk-radio-button-label {
|
299
|
+
border-color: var(--radio-active-color);
|
300
|
+
}
|
301
|
+
.bk-radio-tab .bk-radio-button-label {
|
302
|
+
height: var(--component-size-base);
|
303
|
+
border: var(--border-width-base) var(--border-style-base) var(--light-gray);
|
304
|
+
transition: all 0.3s;
|
305
|
+
}
|
306
|
+
.bk-radio-tab .bk-radio-button-label:hover {
|
307
|
+
border-color: var(--radio-hover-border-color);
|
308
|
+
}
|
package/lib/select/index.d.ts
CHANGED
@@ -654,6 +654,11 @@ declare const BkSelect: {
|
|
654
654
|
content: import("vue-types").VueTypeDef<string | number> & {
|
655
655
|
default: string | number;
|
656
656
|
};
|
657
|
+
allowHTML: import("vue-types").VueTypeValidableDef<boolean> & {
|
658
|
+
default: boolean;
|
659
|
+
} & {
|
660
|
+
default: boolean;
|
661
|
+
};
|
657
662
|
placement: import("vue-types").VueTypeDef<string> & {
|
658
663
|
default: string;
|
659
664
|
};
|
@@ -1239,6 +1244,11 @@ declare const BkSelect: {
|
|
1239
1244
|
content: import("vue-types").VueTypeDef<string | number> & {
|
1240
1245
|
default: string | number;
|
1241
1246
|
};
|
1247
|
+
allowHTML: import("vue-types").VueTypeValidableDef<boolean> & {
|
1248
|
+
default: boolean;
|
1249
|
+
} & {
|
1250
|
+
default: boolean;
|
1251
|
+
};
|
1242
1252
|
placement: import("vue-types").VueTypeDef<string> & {
|
1243
1253
|
default: string;
|
1244
1254
|
};
|
@@ -1769,6 +1779,11 @@ declare const BkSelect: {
|
|
1769
1779
|
content: import("vue-types").VueTypeDef<string | number> & {
|
1770
1780
|
default: string | number;
|
1771
1781
|
};
|
1782
|
+
allowHTML: import("vue-types").VueTypeValidableDef<boolean> & {
|
1783
|
+
default: boolean;
|
1784
|
+
} & {
|
1785
|
+
default: boolean;
|
1786
|
+
};
|
1772
1787
|
placement: import("vue-types").VueTypeDef<string> & {
|
1773
1788
|
default: string;
|
1774
1789
|
};
|
package/lib/select/select.d.ts
CHANGED
@@ -414,6 +414,11 @@ declare const _default: import("vue").DefineComponent<{
|
|
414
414
|
content: import("vue-types").VueTypeDef<string | number> & {
|
415
415
|
default: string | number;
|
416
416
|
};
|
417
|
+
allowHTML: import("vue-types").VueTypeValidableDef<boolean> & {
|
418
|
+
default: boolean;
|
419
|
+
} & {
|
420
|
+
default: boolean;
|
421
|
+
};
|
417
422
|
placement: import("vue-types").VueTypeDef<string> & {
|
418
423
|
default: string;
|
419
424
|
};
|
package/lib/styles/index.d.ts
CHANGED
@@ -19,7 +19,6 @@ import '../loading/loading.less';
|
|
19
19
|
import '../modal/modal.less';
|
20
20
|
import '../progress/progress.less';
|
21
21
|
import '../radio/radio.less';
|
22
|
-
import '../radio/radio-button.less';
|
23
22
|
import '../rate/rate.less';
|
24
23
|
import '../rate/star.less';
|
25
24
|
import '../swiper/swiper.less';
|
@@ -58,7 +58,52 @@ declare const _default: import("vue").DefineComponent<{
|
|
58
58
|
};
|
59
59
|
colspan: import("vue-types").VueTypeDef<any>;
|
60
60
|
rowspan: import("vue-types").VueTypeDef<any>;
|
61
|
-
},
|
61
|
+
}, {
|
62
|
+
initColumns: (_column: Column | Column[], _remove?: boolean) => void;
|
63
|
+
column: {
|
64
|
+
field: string | Function;
|
65
|
+
label: string | Function;
|
66
|
+
render?: string | Function;
|
67
|
+
width?: string | number;
|
68
|
+
minWidth?: string | number;
|
69
|
+
columnKey?: string;
|
70
|
+
showOverflowTooltip?: boolean | {
|
71
|
+
content: string | Function;
|
72
|
+
disabled?: boolean;
|
73
|
+
watchCellResize?: boolean;
|
74
|
+
mode?: "auto" | "static";
|
75
|
+
};
|
76
|
+
type?: string;
|
77
|
+
fixed?: string | boolean;
|
78
|
+
resizable?: boolean;
|
79
|
+
sort?: string | boolean | {
|
80
|
+
sortFn?: Function;
|
81
|
+
sortScope?: string;
|
82
|
+
value?: string;
|
83
|
+
};
|
84
|
+
filter?: string | boolean | {
|
85
|
+
list?: any;
|
86
|
+
filterFn?: Function;
|
87
|
+
};
|
88
|
+
colspan?: Function | {
|
89
|
+
toString: (radix?: number) => string;
|
90
|
+
toFixed: (fractionDigits?: number) => string;
|
91
|
+
toExponential: (fractionDigits?: number) => string;
|
92
|
+
toPrecision: (precision?: number) => string;
|
93
|
+
valueOf: () => number;
|
94
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
95
|
+
};
|
96
|
+
rowspan?: Function | {
|
97
|
+
toString: (radix?: number) => string;
|
98
|
+
toFixed: (fractionDigits?: number) => string;
|
99
|
+
toExponential: (fractionDigits?: number) => string;
|
100
|
+
toPrecision: (precision?: number) => string;
|
101
|
+
valueOf: () => number;
|
102
|
+
toLocaleString: (locales?: string | string[], options?: Intl.NumberFormatOptions) => string;
|
103
|
+
};
|
104
|
+
prop?: string | Function;
|
105
|
+
};
|
106
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
62
107
|
prop: import("vue-types").VueTypeDef<any>;
|
63
108
|
label: import("vue-types").VueTypeDef<any>;
|
64
109
|
field: import("vue-types").VueTypeDef<any>;
|