bkui-vue 0.0.1-beta.411 → 0.0.1-beta.413

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.
@@ -85,7 +85,6 @@
85
85
  .bk-cascader {
86
86
  position: relative;
87
87
  display: block;
88
- width: 250px;
89
88
  font-size: 12px;
90
89
  line-height: 30px;
91
90
  color: #63656e;
@@ -19,7 +19,6 @@
19
19
  .@{bk-prefix}-cascader {
20
20
  position: relative;
21
21
  display: block;
22
- width: 250px;
23
22
  font-size: 12px;
24
23
  line-height: 30px;
25
24
  color: #63656e;
@@ -205,7 +205,6 @@
205
205
  .bk-cascader {
206
206
  position: relative;
207
207
  display: block;
208
- width: 250px;
209
208
  font-size: 12px;
210
209
  line-height: 30px;
211
210
  color: #63656e;
@@ -13,7 +13,7 @@
13
13
  }
14
14
  .bk-notify .bk-notify-icon {
15
15
  position: absolute;
16
- top: 22px;
16
+ top: 24px;
17
17
  margin-right: 5px;
18
18
  font-size: 18px;
19
19
  color: #3a84ff;
@@ -15,12 +15,12 @@
15
15
 
16
16
  .bk-notify-icon {
17
17
  position: absolute;
18
- top: 22px;
18
+ top: 24px;
19
19
  margin-right: 5px;
20
20
  font-size: 18px;
21
21
  color: @primary-color;
22
22
  }
23
-
23
+
24
24
  &.@{bk-prefix}-notify-warning .@{bk-prefix}-notify-icon {
25
25
  color: @warning-color;
26
26
  }
@@ -133,7 +133,7 @@
133
133
  }
134
134
  .bk-notify .bk-notify-icon {
135
135
  position: absolute;
136
- top: 22px;
136
+ top: 24px;
137
137
  margin-right: 5px;
138
138
  font-size: 18px;
139
139
  color: var(--primary-color);
@@ -197,6 +197,9 @@ declare const BkRadio: {
197
197
  } & {
198
198
  default: boolean;
199
199
  };
200
+ type: import("vue-types").VueTypeDef<string> & {
201
+ default: string;
202
+ };
200
203
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
201
204
  name: import("vue-types").VueTypeValidableDef<string> & {
202
205
  default: string;
@@ -212,11 +215,15 @@ declare const BkRadio: {
212
215
  } & {
213
216
  default: boolean;
214
217
  };
218
+ type: import("vue-types").VueTypeDef<string> & {
219
+ default: string;
220
+ };
215
221
  }>> & {
216
222
  onChange?: (...args: any[]) => any;
217
223
  "onUpdate:modelValue"?: (...args: any[]) => any;
218
224
  }, {
219
225
  name: string;
226
+ type: string;
220
227
  disabled: boolean;
221
228
  withValidate: boolean;
222
229
  }>;
@@ -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:()=>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)};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"},[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})()));
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})()));
@@ -0,0 +1,118 @@
1
+ .bk-radio-item {
2
+ position: relative;
3
+ z-index: 1;
4
+ display: inline-flex;
5
+ font-weight: normal;
6
+ letter-spacing: normal;
7
+ color: #63656e;
8
+ white-space: nowrap;
9
+ cursor: pointer;
10
+ outline: none;
11
+ opacity: 1;
12
+ user-select: none;
13
+ }
14
+ .bk-radio-item-input {
15
+ position: absolute;
16
+ z-index: -1;
17
+ width: 100%;
18
+ height: 100%;
19
+ outline: none;
20
+ opacity: 0;
21
+ }
22
+ .bk-radio-item .bk-radio-item-label {
23
+ width: 100%;
24
+ padding: 0 18px;
25
+ font-size: 12px;
26
+ font-style: normal;
27
+ font-weight: normal;
28
+ line-height: 32px;
29
+ color: #63656e;
30
+ text-align: center;
31
+ vertical-align: middle;
32
+ cursor: pointer;
33
+ transition: all 0.3s;
34
+ }
35
+ .bk-radio-item.is-checked {
36
+ z-index: 2;
37
+ }
38
+ .bk-radio-item.is-checked .bk-radio-item-label {
39
+ color: #5594fa;
40
+ }
41
+ .bk-radio-item.is-disabled {
42
+ z-index: 0;
43
+ color: #c4c6cc;
44
+ cursor: not-allowed;
45
+ }
46
+ .bk-radio-item.is-disabled .bk-radio-item-label {
47
+ cursor: not-allowed;
48
+ }
49
+ .bk-radio-capsule {
50
+ padding: 4px;
51
+ background: #f0f1f5;
52
+ border-radius: 2px;
53
+ }
54
+ .bk-radio-capsule .bk-radio-item {
55
+ border-radius: 2px;
56
+ }
57
+ .bk-radio-capsule .bk-radio-item:before {
58
+ position: absolute;
59
+ top: 50%;
60
+ right: -1px;
61
+ display: block;
62
+ width: 1px;
63
+ height: 12px;
64
+ margin-top: -6px;
65
+ background: #dcdee5;
66
+ content: '';
67
+ }
68
+ .bk-radio-capsule .bk-radio-item:last-of-type .bk-radio-capsule .bk-radio-item:before {
69
+ display: none;
70
+ }
71
+ .bk-radio-capsule .bk-radio-item-label {
72
+ position: relative;
73
+ height: 24px;
74
+ padding: 0 12px;
75
+ line-height: 24px;
76
+ }
77
+ .bk-radio-capsule .is-checked {
78
+ background: #fff;
79
+ }
80
+ .bk-radio-capsule .is-checked:before {
81
+ display: none;
82
+ }
83
+ .bk-radio-button .bk-radio-item {
84
+ overflow: hidden;
85
+ }
86
+ .bk-radio-button .bk-radio-item:nth-child(n+2) {
87
+ margin-left: -1px;
88
+ }
89
+ .bk-radio-button .bk-radio-item:first-child .bk-radio-item-label {
90
+ border-bottom-left-radius: 2px;
91
+ border-top-left-radius: 2px;
92
+ }
93
+ .bk-radio-button .bk-radio-item:last-child .bk-radio-item-label {
94
+ border-top-right-radius: 2px;
95
+ border-bottom-right-radius: 2px;
96
+ }
97
+ .bk-radio-button .bk-radio-item.is-checked {
98
+ z-index: 2;
99
+ }
100
+ .bk-radio-button .bk-radio-item.is-checked .bk-radio-item-label {
101
+ background: #e1ecff;
102
+ border-color: #5594fa;
103
+ }
104
+ .bk-radio-button .bk-radio-item.is-disabled .bk-radio-item-label {
105
+ background: #fafbfd;
106
+ border-color: #dcdee5;
107
+ }
108
+ .bk-radio-button .bk-radio-item.is-focused .bk-radio-item-label {
109
+ border-color: #5594fa;
110
+ }
111
+ .bk-radio-button .bk-radio-item-label {
112
+ height: 32px;
113
+ border: 1px solid #c4c6cc;
114
+ transition: all 0.3s;
115
+ }
116
+ .bk-radio-button .bk-radio-item-label:hover {
117
+ border-color: #979ba5;
118
+ }
@@ -0,0 +1,161 @@
1
+ @import '../styles/themes/themes.less';
2
+
3
+ .@{bk-prefix}-radio-item {
4
+ position: relative;
5
+ z-index: 1;
6
+ display: inline-flex;
7
+ font-weight: normal;
8
+ letter-spacing: normal;
9
+ color: @radio-font-color;
10
+ white-space: nowrap;
11
+ cursor: pointer;
12
+ outline: none;
13
+ opacity: 1;
14
+ user-select: none;
15
+
16
+ &-input {
17
+ position: absolute;
18
+ z-index: -1;
19
+ width: 100%;
20
+ height: 100%;
21
+ outline: none;
22
+ opacity: 0;
23
+ }
24
+ .@{bk-prefix}-radio-item-label {
25
+ width: 100%;
26
+ padding: 0 18px;
27
+ font-size: 12px;
28
+ font-style: normal;
29
+ font-weight: normal;
30
+ line-height: @component-size-base;
31
+ color: @default-color;
32
+ text-align: center;
33
+ vertical-align: middle;
34
+ cursor: pointer;
35
+ transition: all .3s;
36
+
37
+ }
38
+
39
+ &.is-checked {
40
+ z-index: 2;
41
+
42
+ .@{bk-prefix}-radio-item-label {
43
+ color: @radio-active-color;
44
+ }
45
+ }
46
+
47
+ &.is-disabled {
48
+ z-index: 0;
49
+ color: @radio-disabled-font-color;
50
+ cursor: not-allowed;
51
+
52
+ .@{bk-prefix}-radio-item-label {
53
+ cursor: not-allowed;
54
+ }
55
+ }
56
+ }
57
+
58
+
59
+ .@{bk-prefix}-radio-capsule {
60
+ padding: 4px;
61
+ background: #f0f1f5;
62
+ border-radius: 2px;
63
+ .@{bk-prefix}-radio-item {
64
+ border-radius: 2px;
65
+
66
+ &:before {
67
+ position: absolute;
68
+ top: 50%;
69
+ right: -1px;
70
+ display: block;
71
+ width: 1px;
72
+ height: 12px;
73
+ margin-top: -6px;
74
+ background: #dcdee5;
75
+ content: '';
76
+ }
77
+
78
+ &:last-of-type &:before {
79
+ display: none;
80
+ }
81
+ }
82
+ .@{bk-prefix}-radio-item-label {
83
+ position: relative;
84
+ height: 24px;
85
+ padding: 0 12px;
86
+ line-height: 24px;
87
+
88
+ }
89
+
90
+ .is-checked {
91
+ background: #fff;
92
+
93
+ &:before {
94
+ display: none;
95
+ }
96
+ }
97
+ }
98
+
99
+ .@{bk-prefix}-radio-button {
100
+
101
+ .@{bk-prefix}-radio-item {
102
+ overflow: hidden;
103
+
104
+ &:nth-child(n+2) {
105
+ margin-left: -1px;
106
+ }
107
+
108
+
109
+ &:first-child {
110
+ .@{bk-prefix}-radio-item-label {
111
+ border-bottom-left-radius: @border-radius-base;
112
+ border-top-left-radius: @border-radius-base;
113
+ }
114
+ }
115
+
116
+ &:last-child {
117
+ .@{bk-prefix}-radio-item-label {
118
+ border-top-right-radius: @border-radius-base;
119
+ border-bottom-right-radius: @border-radius-base;
120
+ }
121
+ }
122
+
123
+ &.is-checked {
124
+ z-index: 2;
125
+ .@{bk-prefix}-radio-item-label {
126
+ background: @radio-button-checked-bg;
127
+ border-color: @radio-active-color;
128
+ }
129
+ }
130
+
131
+ &.is-disabled {
132
+ .@{bk-prefix}-radio-item-label {
133
+ background: @radio-distable-checked-bg;
134
+ border-color: @radio-disabled-border;
135
+ }
136
+ }
137
+
138
+ &.is-focused {
139
+ .@{bk-prefix}-radio-item-label {
140
+ border-color: @radio-active-color;
141
+ }
142
+ }
143
+
144
+ }
145
+
146
+
147
+ .@{bk-prefix}-radio-item-label {
148
+ height: @component-size-base;
149
+ border: @border-width-base @border-style-base @light-gray;
150
+ transition: all .3s;
151
+
152
+ &:hover {
153
+ border-color: @radio-hover-border-color;
154
+ }
155
+ }
156
+
157
+ }
158
+
159
+
160
+
161
+
@@ -0,0 +1,238 @@
1
+ :root {
2
+ --bk-prefix: bk;
3
+ --popover-max-height: 216px;
4
+ --primary-color: #3a84ff;
5
+ --success-color: #2dcb56;
6
+ --warning-color: #ff9c01;
7
+ --danger-color: #ea3636;
8
+ --default-color: #63656e;
9
+ --gray-color: #979ba5;
10
+ --light-gray: #c4c6cc;
11
+ --white-color: white;
12
+ --whitesmoke-color: #fafbfd;
13
+ --disable-color: #dcdee5;
14
+ --font-size-base: 12px;
15
+ --font-size-medium: 14px;
16
+ --font-size-large: 16px;
17
+ --line-height-base: 16px;
18
+ --line-height-medium: 16px;
19
+ --line-height-large: 18px;
20
+ --component-size-small: 26px;
21
+ --component-size-base: 32px;
22
+ --component-size-large: 40px;
23
+ --border-width-base: 1px;
24
+ --border-style-base: solid;
25
+ --border-radius-base: 2px;
26
+ --border-style-color: var(--light-gray);
27
+ --input-disabled-bg: #fafbfd;
28
+ --input-disabled-border: var(--disable-color);
29
+ --input-height-base: var(--component-size-base);
30
+ --input-color: var(--default-color);
31
+ --input-bg: white;
32
+ --input-border-color: var(--light-gray);
33
+ --input-broder-radius: 3px;
34
+ --input-shadow-color: #a3c5fd;
35
+ --input-horizontal-padding: 10px;
36
+ --input-block-color: #f5f7fa;
37
+ --input-block-hover-color: #eaebf0;
38
+ --input-icon-size: var(--font-size-medium);
39
+ --input-maxlength-color: #979ba5;
40
+ --button-primary-hover-color: #5594fa;
41
+ --button-danger-hover-color: #ff5656;
42
+ --button-success-hover-color: #45e35f;
43
+ --button-warning-hover-color: #ffb848;
44
+ --button-default-hover-border-color: #979ba5;
45
+ --button-primary-active-color: #2c77f4;
46
+ --button-danger-active-color: #db2626;
47
+ --button-success-active-color: #1ab943;
48
+ --button-warning-active-color: #eb9000;
49
+ --button-selected-bg-color: #e1ecff;
50
+ --button-disabled-selected-bg-color: #f0f1f5;
51
+ --radio-font-color: #63656e;
52
+ --radio-active-color: #5594fa;
53
+ --radio-hover-border-color: #979ba5;
54
+ --radio-disabled-border: #dcdee5;
55
+ --radio-disabled-font-color: #c4c6cc;
56
+ --radio-distable-checked-bg: #fafbfd;
57
+ --radio-button-checked-bg: #e1ecff;
58
+ --fixed-navbar-background: #fff;
59
+ --fixed-navbar-boxshadow-color: rgba(0, 0, 0, 0.1);
60
+ --switch-default-color: #fff;
61
+ --switch-grey-color: #c4c6cc;
62
+ --breadcrumb-black-color: #979ba5;
63
+ --breadcrumb-primary-hover-color: #0082ff;
64
+ --breadcrumb-fn-main-color: #63656e;
65
+ --link-default-hover-color: #979ba5;
66
+ --link-primary-hover-color: #699df4;
67
+ --link-success-hover-color: #45e35f;
68
+ --link-warning-hover-color: #ffb848;
69
+ --link-danger-hover-color: #ff5656;
70
+ --link-default-disabled-color: #dcdee5;
71
+ --link-primary-disabled-color: #a3c5fd;
72
+ --link-success-disabled-color: #94f5a4;
73
+ --link-warning-disabled-color: #ffd695;
74
+ --link-danger-disabled-color: #fd9c9c;
75
+ --message-color: var(--default-color);
76
+ --message-primary-bg-color: #f0f8ff;
77
+ --message-primary-border-color: #e1ecff;
78
+ --message-primary-shadow-color: #e1e8f4;
79
+ --message-warning-bg-color: #fff4e2;
80
+ --message-warning-border-color: #ffe8c3;
81
+ --message-warning-shadow-color: #ede6db;
82
+ --message-success-bg-color: #f2fff4;
83
+ --message-success-border-color: #dcffe2;
84
+ --message-success-shadow-color: #cef0d7;
85
+ --message-danger-bg-color: #ffeded;
86
+ --message-danger-border-color: #ffdddd;
87
+ --message-danger-shadow-color: #f6dada;
88
+ --slider-default-bg: #dcdee5;
89
+ --slider-disable-bar-bg: #979ba5;
90
+ --menu-bg-color: #182132;
91
+ --submenu-bg-color: #151d2c;
92
+ --menu-active-bg-color: linear-gradient(90deg, #3f87ff 0%, #3a84ff 100%);
93
+ --menu-color: #96a2b9;
94
+ --menu-group-color: var(--default-color);
95
+ --menu-width: 260px;
96
+ --menu-collapse-width: 60px;
97
+ --menu-active-color: white;
98
+ --nav-header-bg-color: #182132;
99
+ --nav-bg-color: #182132;
100
+ --date-picker-disabled-bg: #fafbfd;
101
+ --date-picker-dropdown-mb: 4px;
102
+ --date-picker-dropdown-bg: #fff;
103
+ --table-bg-color: var(--white-color);
104
+ --table-border-color: #dcdee5;
105
+ --table-head-bg-color: #fafbfd;
106
+ --table-head-font-color: #313238;
107
+ --table-body-font-color: #575961;
108
+ --table-row-hover-bg-color: #f5f7fa;
109
+ --table-row-active-bg-color: #f0f1f5;
110
+ --cascader-panel-border-color: #dcdee5;
111
+ --cascader-panel-hover: #f5f7fa;
112
+ --cascader-panel-active: #e1ecff;
113
+ --cascader-panel-disabled-bg: #fff;
114
+ --search-select-focus-border-color: var(--primary-color);
115
+ --search-select-focus-color: #3c96ff;
116
+ --search-select-font-color: var(--default-color);
117
+ --search-select-placeholder-color: var(--light-gray);
118
+ --search-select-message-color: var(--danger-color);
119
+ --search-select-menu-border-color: var(--disable-color);
120
+ }
121
+ .bk-radio-item {
122
+ position: relative;
123
+ z-index: 1;
124
+ display: inline-flex;
125
+ font-weight: normal;
126
+ letter-spacing: normal;
127
+ color: var(--radio-font-color);
128
+ white-space: nowrap;
129
+ cursor: pointer;
130
+ outline: none;
131
+ opacity: 1;
132
+ user-select: none;
133
+ }
134
+ .bk-radio-item-input {
135
+ position: absolute;
136
+ z-index: -1;
137
+ width: 100%;
138
+ height: 100%;
139
+ outline: none;
140
+ opacity: 0;
141
+ }
142
+ .bk-radio-item .bk-radio-item-label {
143
+ width: 100%;
144
+ padding: 0 18px;
145
+ font-size: 12px;
146
+ font-style: normal;
147
+ font-weight: normal;
148
+ line-height: var(--component-size-base);
149
+ color: var(--default-color);
150
+ text-align: center;
151
+ vertical-align: middle;
152
+ cursor: pointer;
153
+ transition: all 0.3s;
154
+ }
155
+ .bk-radio-item.is-checked {
156
+ z-index: 2;
157
+ }
158
+ .bk-radio-item.is-checked .bk-radio-item-label {
159
+ color: var(--radio-active-color);
160
+ }
161
+ .bk-radio-item.is-disabled {
162
+ z-index: 0;
163
+ color: var(--radio-disabled-font-color);
164
+ cursor: not-allowed;
165
+ }
166
+ .bk-radio-item.is-disabled .bk-radio-item-label {
167
+ cursor: not-allowed;
168
+ }
169
+ .bk-radio-capsule {
170
+ padding: 4px;
171
+ background: #f0f1f5;
172
+ border-radius: 2px;
173
+ }
174
+ .bk-radio-capsule .bk-radio-item {
175
+ border-radius: 2px;
176
+ }
177
+ .bk-radio-capsule .bk-radio-item:before {
178
+ position: absolute;
179
+ top: 50%;
180
+ right: -1px;
181
+ display: block;
182
+ width: 1px;
183
+ height: 12px;
184
+ margin-top: -6px;
185
+ background: #dcdee5;
186
+ content: '';
187
+ }
188
+ .bk-radio-capsule .bk-radio-item:last-of-type .bk-radio-capsule .bk-radio-item:before {
189
+ display: none;
190
+ }
191
+ .bk-radio-capsule .bk-radio-item-label {
192
+ position: relative;
193
+ height: 24px;
194
+ padding: 0 12px;
195
+ line-height: 24px;
196
+ }
197
+ .bk-radio-capsule .is-checked {
198
+ background: #fff;
199
+ }
200
+ .bk-radio-capsule .is-checked:before {
201
+ display: none;
202
+ }
203
+ .bk-radio-button .bk-radio-item {
204
+ overflow: hidden;
205
+ }
206
+ .bk-radio-button .bk-radio-item:nth-child(n+2) {
207
+ margin-left: -1px;
208
+ }
209
+ .bk-radio-button .bk-radio-item:first-child .bk-radio-item-label {
210
+ border-bottom-left-radius: var(--border-radius-base);
211
+ border-top-left-radius: var(--border-radius-base);
212
+ }
213
+ .bk-radio-button .bk-radio-item:last-child .bk-radio-item-label {
214
+ border-top-right-radius: var(--border-radius-base);
215
+ border-bottom-right-radius: var(--border-radius-base);
216
+ }
217
+ .bk-radio-button .bk-radio-item.is-checked {
218
+ z-index: 2;
219
+ }
220
+ .bk-radio-button .bk-radio-item.is-checked .bk-radio-item-label {
221
+ background: var(--radio-button-checked-bg);
222
+ border-color: var(--radio-active-color);
223
+ }
224
+ .bk-radio-button .bk-radio-item.is-disabled .bk-radio-item-label {
225
+ background: var(--radio-distable-checked-bg);
226
+ border-color: var(--radio-disabled-border);
227
+ }
228
+ .bk-radio-button .bk-radio-item.is-focused .bk-radio-item-label {
229
+ border-color: var(--radio-active-color);
230
+ }
231
+ .bk-radio-button .bk-radio-item-label {
232
+ height: var(--component-size-base);
233
+ border: var(--border-width-base) var(--border-style-base) var(--light-gray);
234
+ transition: all 0.3s;
235
+ }
236
+ .bk-radio-button .bk-radio-item-label:hover {
237
+ border-color: var(--radio-hover-border-color);
238
+ }
@@ -14,6 +14,9 @@ declare const radioGroupProps: {
14
14
  } & {
15
15
  default: boolean;
16
16
  };
17
+ type: import("vue-types").VueTypeDef<string> & {
18
+ default: string;
19
+ };
17
20
  };
18
21
  export declare type RadioGroupProps = Readonly<ExtractPropTypes<typeof radioGroupProps>>;
19
22
  declare const _default: import("vue").DefineComponent<{
@@ -31,6 +34,9 @@ declare const _default: import("vue").DefineComponent<{
31
34
  } & {
32
35
  default: boolean;
33
36
  };
37
+ type: import("vue-types").VueTypeDef<string> & {
38
+ default: string;
39
+ };
34
40
  }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("change" | "update:modelValue")[], "change" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<ExtractPropTypes<{
35
41
  name: import("vue-types").VueTypeValidableDef<string> & {
36
42
  default: string;
@@ -46,11 +52,15 @@ declare const _default: import("vue").DefineComponent<{
46
52
  } & {
47
53
  default: boolean;
48
54
  };
55
+ type: import("vue-types").VueTypeDef<string> & {
56
+ default: string;
57
+ };
49
58
  }>> & {
50
59
  onChange?: (...args: any[]) => any;
51
60
  "onUpdate:modelValue"?: (...args: any[]) => any;
52
61
  }, {
53
62
  name: string;
63
+ type: string;
54
64
  disabled: boolean;
55
65
  withValidate: boolean;
56
66
  }>;