bkui-vue 0.0.1-beta.414 → 0.0.1-beta.416

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.
@@ -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;
@@ -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
  */
@@ -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:()=>m});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),d=(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:d,setChecked:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];s.value=e},handleChange:function(e){if(!d.value){var i=e.target;s.value=i.checked;var u=s.value?o.label:"";r("update:modelValue",u),r("change",u),l&&a.handleChange(t.proxy),(0,n.nextTick)((function(){i.checked!==s.value&&(i.checked=s.value)}))}}}},d={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 u=(0,n.defineComponent)({name:"Radio",props:d,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-item":!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-item-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-item-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(["button","capsule"]).def("button")};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)(u,{Group:h,Button:p});const m=b})(),a})()));
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})()));
@@ -68,3 +68,123 @@
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
+ padding: 0;
90
+ margin: 0;
91
+ outline: none;
92
+ opacity: 0;
93
+ }
94
+ .bk-radio-button .bk-radio-button-label {
95
+ width: 100%;
96
+ padding: 0 18px;
97
+ font-size: 12px;
98
+ font-style: normal;
99
+ font-weight: normal;
100
+ line-height: 32px;
101
+ color: #63656e;
102
+ text-align: center;
103
+ vertical-align: middle;
104
+ cursor: pointer;
105
+ transition: all 0.3s;
106
+ }
107
+ .bk-radio-button.is-checked {
108
+ z-index: 2;
109
+ }
110
+ .bk-radio-button.is-checked .bk-radio-button-label {
111
+ color: #5594fa;
112
+ }
113
+ .bk-radio-button.is-disabled {
114
+ z-index: 0;
115
+ color: #c4c6cc;
116
+ cursor: not-allowed;
117
+ }
118
+ .bk-radio-button.is-disabled .bk-radio-button-label {
119
+ cursor: not-allowed;
120
+ }
121
+ .bk-radio-capsule {
122
+ padding: 4px;
123
+ background: #f0f1f5;
124
+ border-radius: 2px;
125
+ }
126
+ .bk-radio-capsule .bk-radio-button {
127
+ border-radius: 2px;
128
+ }
129
+ .bk-radio-capsule .bk-radio-button:before {
130
+ position: absolute;
131
+ top: 50%;
132
+ right: -1px;
133
+ display: block;
134
+ width: 1px;
135
+ height: 12px;
136
+ margin-top: -6px;
137
+ background: #dcdee5;
138
+ content: '';
139
+ }
140
+ .bk-radio-capsule .bk-radio-button:last-of-type .bk-radio-capsule .bk-radio-button:before {
141
+ display: none;
142
+ }
143
+ .bk-radio-capsule .bk-radio-button-label {
144
+ position: relative;
145
+ height: 24px;
146
+ padding: 0 12px;
147
+ line-height: 24px;
148
+ }
149
+ .bk-radio-capsule .is-checked {
150
+ background: #fff;
151
+ }
152
+ .bk-radio-capsule .is-checked:before {
153
+ display: none;
154
+ }
155
+ .bk-radio-tab .bk-radio-button {
156
+ overflow: hidden;
157
+ }
158
+ .bk-radio-tab .bk-radio-button:nth-child(n+2) {
159
+ margin-left: -1px;
160
+ }
161
+ .bk-radio-tab .bk-radio-button:first-child .bk-radio-button-label {
162
+ border-bottom-left-radius: 2px;
163
+ border-top-left-radius: 2px;
164
+ }
165
+ .bk-radio-tab .bk-radio-button:last-child .bk-radio-button-label {
166
+ border-top-right-radius: 2px;
167
+ border-bottom-right-radius: 2px;
168
+ }
169
+ .bk-radio-tab .bk-radio-button.is-checked {
170
+ z-index: 2;
171
+ }
172
+ .bk-radio-tab .bk-radio-button.is-checked .bk-radio-button-label {
173
+ background: #e1ecff;
174
+ border-color: #5594fa;
175
+ }
176
+ .bk-radio-tab .bk-radio-button.is-disabled .bk-radio-button-label {
177
+ background: #fafbfd;
178
+ border-color: #dcdee5;
179
+ }
180
+ .bk-radio-tab .bk-radio-button.is-focused .bk-radio-button-label {
181
+ border-color: #5594fa;
182
+ }
183
+ .bk-radio-tab .bk-radio-button-label {
184
+ height: 32px;
185
+ border: 1px solid #c4c6cc;
186
+ transition: all 0.3s;
187
+ }
188
+ .bk-radio-tab .bk-radio-button-label:hover {
189
+ border-color: #979ba5;
190
+ }
@@ -89,3 +89,164 @@
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
+ padding: 0;
112
+ margin: 0;
113
+ outline: none;
114
+ opacity: 0;
115
+ }
116
+
117
+ .@{bk-prefix}-radio-button-label {
118
+ width: 100%;
119
+ padding: 0 18px;
120
+ font-size: 12px;
121
+ font-style: normal;
122
+ font-weight: normal;
123
+ line-height: @component-size-base;
124
+ color: @default-color;
125
+ text-align: center;
126
+ vertical-align: middle;
127
+ cursor: pointer;
128
+ transition: all .3s;
129
+
130
+ }
131
+
132
+ &.is-checked {
133
+ z-index: 2;
134
+
135
+ .@{bk-prefix}-radio-button-label {
136
+ color: @radio-active-color;
137
+ }
138
+ }
139
+
140
+ &.is-disabled {
141
+ z-index: 0;
142
+ color: @radio-disabled-font-color;
143
+ cursor: not-allowed;
144
+
145
+ .@{bk-prefix}-radio-button-label {
146
+ cursor: not-allowed;
147
+ }
148
+ }
149
+ }
150
+
151
+
152
+ .@{bk-prefix}-radio-capsule {
153
+ padding: 4px;
154
+ background: #f0f1f5;
155
+ border-radius: 2px;
156
+
157
+ .@{bk-prefix}-radio-button {
158
+ border-radius: 2px;
159
+
160
+ &:before {
161
+ position: absolute;
162
+ top: 50%;
163
+ right: -1px;
164
+ display: block;
165
+ width: 1px;
166
+ height: 12px;
167
+ margin-top: -6px;
168
+ background: #dcdee5;
169
+ content: '';
170
+ }
171
+
172
+ &:last-of-type &:before {
173
+ display: none;
174
+ }
175
+ }
176
+
177
+ .@{bk-prefix}-radio-button-label {
178
+ position: relative;
179
+ height: 24px;
180
+ padding: 0 12px;
181
+ line-height: 24px;
182
+
183
+ }
184
+
185
+ .is-checked {
186
+ background: #fff;
187
+
188
+ &:before {
189
+ display: none;
190
+ }
191
+ }
192
+ }
193
+
194
+ .@{bk-prefix}-radio-tab {
195
+
196
+ .@{bk-prefix}-radio-button {
197
+ overflow: hidden;
198
+
199
+ &:nth-child(n+2) {
200
+ margin-left: -1px;
201
+ }
202
+
203
+ &:first-child {
204
+ .@{bk-prefix}-radio-button-label {
205
+ border-bottom-left-radius: @border-radius-base;
206
+ border-top-left-radius: @border-radius-base;
207
+ }
208
+ }
209
+
210
+ &:last-child {
211
+ .@{bk-prefix}-radio-button-label {
212
+ border-top-right-radius: @border-radius-base;
213
+ border-bottom-right-radius: @border-radius-base;
214
+ }
215
+ }
216
+
217
+ &.is-checked {
218
+ z-index: 2;
219
+
220
+ .@{bk-prefix}-radio-button-label {
221
+ background: @radio-button-checked-bg;
222
+ border-color: @radio-active-color;
223
+ }
224
+ }
225
+
226
+ &.is-disabled {
227
+ .@{bk-prefix}-radio-button-label {
228
+ background: @radio-distable-checked-bg;
229
+ border-color: @radio-disabled-border;
230
+ }
231
+ }
232
+
233
+ &.is-focused {
234
+ .@{bk-prefix}-radio-button-label {
235
+ border-color: @radio-active-color;
236
+ }
237
+ }
238
+
239
+ }
240
+
241
+ .@{bk-prefix}-radio-button-label {
242
+ height: @component-size-base;
243
+ border: @border-width-base @border-style-base @light-gray;
244
+ transition: all .3s;
245
+
246
+ &:hover {
247
+ border-color: @radio-hover-border-color;
248
+ }
249
+ }
250
+
251
+ }
252
+
@@ -188,3 +188,123 @@
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
+ padding: 0;
210
+ margin: 0;
211
+ outline: none;
212
+ opacity: 0;
213
+ }
214
+ .bk-radio-button .bk-radio-button-label {
215
+ width: 100%;
216
+ padding: 0 18px;
217
+ font-size: 12px;
218
+ font-style: normal;
219
+ font-weight: normal;
220
+ line-height: var(--component-size-base);
221
+ color: var(--default-color);
222
+ text-align: center;
223
+ vertical-align: middle;
224
+ cursor: pointer;
225
+ transition: all 0.3s;
226
+ }
227
+ .bk-radio-button.is-checked {
228
+ z-index: 2;
229
+ }
230
+ .bk-radio-button.is-checked .bk-radio-button-label {
231
+ color: var(--radio-active-color);
232
+ }
233
+ .bk-radio-button.is-disabled {
234
+ z-index: 0;
235
+ color: var(--radio-disabled-font-color);
236
+ cursor: not-allowed;
237
+ }
238
+ .bk-radio-button.is-disabled .bk-radio-button-label {
239
+ cursor: not-allowed;
240
+ }
241
+ .bk-radio-capsule {
242
+ padding: 4px;
243
+ background: #f0f1f5;
244
+ border-radius: 2px;
245
+ }
246
+ .bk-radio-capsule .bk-radio-button {
247
+ border-radius: 2px;
248
+ }
249
+ .bk-radio-capsule .bk-radio-button:before {
250
+ position: absolute;
251
+ top: 50%;
252
+ right: -1px;
253
+ display: block;
254
+ width: 1px;
255
+ height: 12px;
256
+ margin-top: -6px;
257
+ background: #dcdee5;
258
+ content: '';
259
+ }
260
+ .bk-radio-capsule .bk-radio-button:last-of-type .bk-radio-capsule .bk-radio-button:before {
261
+ display: none;
262
+ }
263
+ .bk-radio-capsule .bk-radio-button-label {
264
+ position: relative;
265
+ height: 24px;
266
+ padding: 0 12px;
267
+ line-height: 24px;
268
+ }
269
+ .bk-radio-capsule .is-checked {
270
+ background: #fff;
271
+ }
272
+ .bk-radio-capsule .is-checked:before {
273
+ display: none;
274
+ }
275
+ .bk-radio-tab .bk-radio-button {
276
+ overflow: hidden;
277
+ }
278
+ .bk-radio-tab .bk-radio-button:nth-child(n+2) {
279
+ margin-left: -1px;
280
+ }
281
+ .bk-radio-tab .bk-radio-button:first-child .bk-radio-button-label {
282
+ border-bottom-left-radius: var(--border-radius-base);
283
+ border-top-left-radius: var(--border-radius-base);
284
+ }
285
+ .bk-radio-tab .bk-radio-button:last-child .bk-radio-button-label {
286
+ border-top-right-radius: var(--border-radius-base);
287
+ border-bottom-right-radius: var(--border-radius-base);
288
+ }
289
+ .bk-radio-tab .bk-radio-button.is-checked {
290
+ z-index: 2;
291
+ }
292
+ .bk-radio-tab .bk-radio-button.is-checked .bk-radio-button-label {
293
+ background: var(--radio-button-checked-bg);
294
+ border-color: var(--radio-active-color);
295
+ }
296
+ .bk-radio-tab .bk-radio-button.is-disabled .bk-radio-button-label {
297
+ background: var(--radio-distable-checked-bg);
298
+ border-color: var(--radio-disabled-border);
299
+ }
300
+ .bk-radio-tab .bk-radio-button.is-focused .bk-radio-button-label {
301
+ border-color: var(--radio-active-color);
302
+ }
303
+ .bk-radio-tab .bk-radio-button-label {
304
+ height: var(--component-size-base);
305
+ border: var(--border-width-base) var(--border-style-base) var(--light-gray);
306
+ transition: all 0.3s;
307
+ }
308
+ .bk-radio-tab .bk-radio-button-label:hover {
309
+ border-color: var(--radio-hover-border-color);
310
+ }
@@ -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
  };
@@ -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
  };
@@ -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
- }, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
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>;