first
This commit is contained in:
16
node_modules/vant/es/number-keyboard/CollapseIcon.js
generated
vendored
Normal file
16
node_modules/vant/es/number-keyboard/CollapseIcon.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
export default {
|
||||
render: function render() {
|
||||
var h = arguments[0];
|
||||
return h("svg", {
|
||||
"attrs": {
|
||||
"viewBox": "0 0 30 24",
|
||||
"xmlns": "http://www.w3.org/2000/svg"
|
||||
}
|
||||
}, [h("path", {
|
||||
"attrs": {
|
||||
"d": "M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",
|
||||
"fill": "currentColor"
|
||||
}
|
||||
})]);
|
||||
}
|
||||
};
|
16
node_modules/vant/es/number-keyboard/DeleteIcon.js
generated
vendored
Normal file
16
node_modules/vant/es/number-keyboard/DeleteIcon.js
generated
vendored
Normal file
@ -0,0 +1,16 @@
|
||||
export default {
|
||||
render: function render() {
|
||||
var h = arguments[0];
|
||||
return h("svg", {
|
||||
"attrs": {
|
||||
"viewBox": "0 0 32 22",
|
||||
"xmlns": "http://www.w3.org/2000/svg"
|
||||
}
|
||||
}, [h("path", {
|
||||
"attrs": {
|
||||
"d": "M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",
|
||||
"fill": "currentColor"
|
||||
}
|
||||
})]);
|
||||
}
|
||||
};
|
100
node_modules/vant/es/number-keyboard/Key.js
generated
vendored
Normal file
100
node_modules/vant/es/number-keyboard/Key.js
generated
vendored
Normal file
@ -0,0 +1,100 @@
|
||||
import { createNamespace } from '../utils';
|
||||
import { TouchMixin } from '../mixins/touch';
|
||||
import Loading from '../loading';
|
||||
import DeleteIcon from './DeleteIcon';
|
||||
import CollapseIcon from './CollapseIcon';
|
||||
|
||||
var _createNamespace = createNamespace('key'),
|
||||
createComponent = _createNamespace[0],
|
||||
bem = _createNamespace[1];
|
||||
|
||||
export default createComponent({
|
||||
mixins: [TouchMixin],
|
||||
props: {
|
||||
type: String,
|
||||
text: [Number, String],
|
||||
color: String,
|
||||
wider: Boolean,
|
||||
large: Boolean,
|
||||
loading: Boolean
|
||||
},
|
||||
data: function data() {
|
||||
return {
|
||||
active: false
|
||||
};
|
||||
},
|
||||
mounted: function mounted() {
|
||||
this.bindTouchEvent(this.$el);
|
||||
},
|
||||
methods: {
|
||||
onTouchStart: function onTouchStart(event) {
|
||||
// compatible with Vue 2.6 event bubble bug
|
||||
event.stopPropagation();
|
||||
this.touchStart(event);
|
||||
this.active = true;
|
||||
},
|
||||
onTouchMove: function onTouchMove(event) {
|
||||
this.touchMove(event);
|
||||
|
||||
if (this.direction) {
|
||||
this.active = false;
|
||||
}
|
||||
},
|
||||
onTouchEnd: function onTouchEnd(event) {
|
||||
if (this.active) {
|
||||
// eliminate tap delay on safari
|
||||
// see: https://github.com/vant-ui/vant/issues/6836
|
||||
if (!this.slots('default')) {
|
||||
event.preventDefault();
|
||||
}
|
||||
|
||||
this.active = false;
|
||||
this.$emit('press', this.text, this.type);
|
||||
}
|
||||
},
|
||||
genContent: function genContent() {
|
||||
var h = this.$createElement;
|
||||
var isExtra = this.type === 'extra';
|
||||
var isDelete = this.type === 'delete';
|
||||
var text = this.slots('default') || this.text;
|
||||
|
||||
if (this.loading) {
|
||||
return h(Loading, {
|
||||
"class": bem('loading-icon')
|
||||
});
|
||||
}
|
||||
|
||||
if (isDelete) {
|
||||
return text || h(DeleteIcon, {
|
||||
"class": bem('delete-icon')
|
||||
});
|
||||
}
|
||||
|
||||
if (isExtra) {
|
||||
return text || h(CollapseIcon, {
|
||||
"class": bem('collapse-icon')
|
||||
});
|
||||
}
|
||||
|
||||
return text;
|
||||
}
|
||||
},
|
||||
render: function render() {
|
||||
var h = arguments[0];
|
||||
return h("div", {
|
||||
"class": bem('wrapper', {
|
||||
wider: this.wider
|
||||
})
|
||||
}, [h("div", {
|
||||
"attrs": {
|
||||
"role": "button",
|
||||
"tabindex": "0"
|
||||
},
|
||||
"class": bem([this.color, {
|
||||
large: this.large,
|
||||
active: this.active,
|
||||
delete: this.type === 'delete'
|
||||
}])
|
||||
}, [this.genContent()])]);
|
||||
}
|
||||
});
|
1
node_modules/vant/es/number-keyboard/index.css
generated
vendored
Normal file
1
node_modules/vant/es/number-keyboard/index.css
generated
vendored
Normal file
@ -0,0 +1 @@
|
||||
.van-number-keyboard{position:fixed;bottom:0;left:0;z-index:100;width:100%;padding-bottom:22px;background-color:#f2f3f5;-webkit-user-select:none;user-select:none}.van-number-keyboard--with-title{border-radius:20px 20px 0 0}.van-number-keyboard__header{position:relative;display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;box-sizing:content-box;height:34px;padding-top:6px;color:#646566;font-size:16px}.van-number-keyboard__title{display:inline-block;font-weight:400}.van-number-keyboard__title-left{position:absolute;left:0}.van-number-keyboard__body{display:-webkit-box;display:-webkit-flex;display:flex;padding:6px 0 0 6px}.van-number-keyboard__keys{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:3;-webkit-flex:3;flex:3;-webkit-flex-wrap:wrap;flex-wrap:wrap}.van-number-keyboard__close{position:absolute;right:0;height:100%;padding:0 16px;color:#576b95;font-size:14px;background-color:transparent;border:none;cursor:pointer}.van-number-keyboard__close:active{opacity:.7}.van-number-keyboard__sidebar{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-box-orient:vertical;-webkit-box-direction:normal;-webkit-flex-direction:column;flex-direction:column}.van-number-keyboard--unfit{padding-bottom:0}.van-key{display:-webkit-box;display:-webkit-flex;display:flex;-webkit-box-align:center;-webkit-align-items:center;align-items:center;-webkit-box-pack:center;-webkit-justify-content:center;justify-content:center;height:48px;font-size:28px;line-height:1.5;background-color:#fff;border-radius:8px;cursor:pointer}.van-key--large{position:absolute;top:0;right:6px;bottom:6px;left:0;height:auto}.van-key--blue,.van-key--delete{font-size:16px}.van-key--active{background-color:#ebedf0}.van-key--blue{color:#fff;background-color:#1989fa}.van-key--blue.van-key--active{background-color:#0570db}.van-key__wrapper{position:relative;-webkit-box-flex:1;-webkit-flex:1;flex:1;-webkit-flex-basis:33%;flex-basis:33%;box-sizing:border-box;padding:0 6px 6px 0}.van-key__wrapper--wider{-webkit-flex-basis:66%;flex-basis:66%}.van-key__delete-icon{width:32px;height:22px}.van-key__collapse-icon{width:30px;height:24px}.van-key__loading-icon{color:#fff}
|
272
node_modules/vant/es/number-keyboard/index.js
generated
vendored
Normal file
272
node_modules/vant/es/number-keyboard/index.js
generated
vendored
Normal file
@ -0,0 +1,272 @@
|
||||
import { createNamespace } from '../utils';
|
||||
import { stopPropagation } from '../utils/dom/event';
|
||||
import { PortalMixin } from '../mixins/portal';
|
||||
import { BindEventMixin } from '../mixins/bind-event';
|
||||
import Key from './Key';
|
||||
|
||||
var _createNamespace = createNamespace('number-keyboard'),
|
||||
createComponent = _createNamespace[0],
|
||||
bem = _createNamespace[1];
|
||||
|
||||
export default createComponent({
|
||||
mixins: [PortalMixin(), BindEventMixin(function (bind) {
|
||||
if (this.hideOnClickOutside) {
|
||||
bind(document.body, 'touchstart', this.onBlur);
|
||||
}
|
||||
})],
|
||||
model: {
|
||||
event: 'update:value'
|
||||
},
|
||||
props: {
|
||||
show: Boolean,
|
||||
title: String,
|
||||
zIndex: [Number, String],
|
||||
randomKeyOrder: Boolean,
|
||||
closeButtonText: String,
|
||||
deleteButtonText: String,
|
||||
closeButtonLoading: Boolean,
|
||||
theme: {
|
||||
type: String,
|
||||
default: 'default'
|
||||
},
|
||||
value: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
extraKey: {
|
||||
type: [String, Array],
|
||||
default: ''
|
||||
},
|
||||
maxlength: {
|
||||
type: [Number, String],
|
||||
default: Number.MAX_VALUE
|
||||
},
|
||||
transition: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
showDeleteKey: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
hideOnClickOutside: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
},
|
||||
safeAreaInsetBottom: {
|
||||
type: Boolean,
|
||||
default: true
|
||||
}
|
||||
},
|
||||
watch: {
|
||||
show: function show(val) {
|
||||
if (!this.transition) {
|
||||
this.$emit(val ? 'show' : 'hide');
|
||||
}
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
keys: function keys() {
|
||||
if (this.theme === 'custom') {
|
||||
return this.genCustomKeys();
|
||||
}
|
||||
|
||||
return this.genDefaultKeys();
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
genBasicKeys: function genBasicKeys() {
|
||||
var keys = [];
|
||||
|
||||
for (var i = 1; i <= 9; i++) {
|
||||
keys.push({
|
||||
text: i
|
||||
});
|
||||
}
|
||||
|
||||
if (this.randomKeyOrder) {
|
||||
keys.sort(function () {
|
||||
return Math.random() > 0.5 ? 1 : -1;
|
||||
});
|
||||
}
|
||||
|
||||
return keys;
|
||||
},
|
||||
genDefaultKeys: function genDefaultKeys() {
|
||||
return [].concat(this.genBasicKeys(), [{
|
||||
text: this.extraKey,
|
||||
type: 'extra'
|
||||
}, {
|
||||
text: 0
|
||||
}, {
|
||||
text: this.showDeleteKey ? this.deleteButtonText : '',
|
||||
type: this.showDeleteKey ? 'delete' : ''
|
||||
}]);
|
||||
},
|
||||
genCustomKeys: function genCustomKeys() {
|
||||
var keys = this.genBasicKeys();
|
||||
var extraKey = this.extraKey;
|
||||
var extraKeys = Array.isArray(extraKey) ? extraKey : [extraKey];
|
||||
|
||||
if (extraKeys.length === 1) {
|
||||
keys.push({
|
||||
text: 0,
|
||||
wider: true
|
||||
}, {
|
||||
text: extraKeys[0],
|
||||
type: 'extra'
|
||||
});
|
||||
} else if (extraKeys.length === 2) {
|
||||
keys.push({
|
||||
text: extraKeys[0],
|
||||
type: 'extra'
|
||||
}, {
|
||||
text: 0
|
||||
}, {
|
||||
text: extraKeys[1],
|
||||
type: 'extra'
|
||||
});
|
||||
}
|
||||
|
||||
return keys;
|
||||
},
|
||||
onBlur: function onBlur() {
|
||||
this.show && this.$emit('blur');
|
||||
},
|
||||
onClose: function onClose() {
|
||||
this.$emit('close');
|
||||
this.onBlur();
|
||||
},
|
||||
onAnimationEnd: function onAnimationEnd() {
|
||||
this.$emit(this.show ? 'show' : 'hide');
|
||||
},
|
||||
onPress: function onPress(text, type) {
|
||||
if (text === '') {
|
||||
if (type === 'extra') {
|
||||
this.onBlur();
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
var value = this.value;
|
||||
|
||||
if (type === 'delete') {
|
||||
this.$emit('delete');
|
||||
this.$emit('update:value', value.slice(0, value.length - 1));
|
||||
} else if (type === 'close') {
|
||||
this.onClose();
|
||||
} else if (value.length < this.maxlength) {
|
||||
this.$emit('input', text);
|
||||
this.$emit('update:value', value + text);
|
||||
}
|
||||
},
|
||||
genTitle: function genTitle() {
|
||||
var h = this.$createElement;
|
||||
var title = this.title,
|
||||
theme = this.theme,
|
||||
closeButtonText = this.closeButtonText;
|
||||
var titleLeft = this.slots('title-left');
|
||||
var showClose = closeButtonText && theme === 'default';
|
||||
var showTitle = title || showClose || titleLeft;
|
||||
|
||||
if (!showTitle) {
|
||||
return;
|
||||
}
|
||||
|
||||
return h("div", {
|
||||
"class": bem('header')
|
||||
}, [titleLeft && h("span", {
|
||||
"class": bem('title-left')
|
||||
}, [titleLeft]), title && h("h2", {
|
||||
"class": bem('title')
|
||||
}, [title]), showClose && h("button", {
|
||||
"attrs": {
|
||||
"type": "button"
|
||||
},
|
||||
"class": bem('close'),
|
||||
"on": {
|
||||
"click": this.onClose
|
||||
}
|
||||
}, [closeButtonText])]);
|
||||
},
|
||||
genKeys: function genKeys() {
|
||||
var _this = this;
|
||||
|
||||
var h = this.$createElement;
|
||||
return this.keys.map(function (key) {
|
||||
return h(Key, {
|
||||
"key": key.text,
|
||||
"attrs": {
|
||||
"text": key.text,
|
||||
"type": key.type,
|
||||
"wider": key.wider,
|
||||
"color": key.color
|
||||
},
|
||||
"on": {
|
||||
"press": _this.onPress
|
||||
}
|
||||
}, [key.type === 'delete' && _this.slots('delete'), key.type === 'extra' && _this.slots('extra-key')]);
|
||||
});
|
||||
},
|
||||
genSidebar: function genSidebar() {
|
||||
var h = this.$createElement;
|
||||
|
||||
if (this.theme === 'custom') {
|
||||
return h("div", {
|
||||
"class": bem('sidebar')
|
||||
}, [this.showDeleteKey && h(Key, {
|
||||
"attrs": {
|
||||
"large": true,
|
||||
"text": this.deleteButtonText,
|
||||
"type": "delete"
|
||||
},
|
||||
"on": {
|
||||
"press": this.onPress
|
||||
}
|
||||
}, [this.slots('delete')]), h(Key, {
|
||||
"attrs": {
|
||||
"large": true,
|
||||
"text": this.closeButtonText,
|
||||
"type": "close",
|
||||
"color": "blue",
|
||||
"loading": this.closeButtonLoading
|
||||
},
|
||||
"on": {
|
||||
"press": this.onPress
|
||||
}
|
||||
})]);
|
||||
}
|
||||
}
|
||||
},
|
||||
render: function render() {
|
||||
var h = arguments[0];
|
||||
var Title = this.genTitle();
|
||||
return h("transition", {
|
||||
"attrs": {
|
||||
"name": this.transition ? 'van-slide-up' : ''
|
||||
}
|
||||
}, [h("div", {
|
||||
"directives": [{
|
||||
name: "show",
|
||||
value: this.show
|
||||
}],
|
||||
"style": {
|
||||
zIndex: this.zIndex
|
||||
},
|
||||
"class": bem({
|
||||
unfit: !this.safeAreaInsetBottom,
|
||||
'with-title': Title
|
||||
}),
|
||||
"on": {
|
||||
"touchstart": stopPropagation,
|
||||
"animationend": this.onAnimationEnd,
|
||||
"webkitAnimationEnd": this.onAnimationEnd
|
||||
}
|
||||
}, [Title, h("div", {
|
||||
"class": bem('body')
|
||||
}, [h("div", {
|
||||
"class": bem('keys')
|
||||
}, [this.genKeys()]), this.genSidebar()])])]);
|
||||
}
|
||||
});
|
142
node_modules/vant/es/number-keyboard/index.less
generated
vendored
Normal file
142
node_modules/vant/es/number-keyboard/index.less
generated
vendored
Normal file
@ -0,0 +1,142 @@
|
||||
@import '../style/var';
|
||||
|
||||
.van-number-keyboard {
|
||||
position: fixed;
|
||||
bottom: 0;
|
||||
left: 0;
|
||||
z-index: @number-keyboard-z-index;
|
||||
width: 100%;
|
||||
padding-bottom: 22px;
|
||||
background-color: @number-keyboard-background-color;
|
||||
user-select: none;
|
||||
|
||||
&--with-title {
|
||||
border-radius: 20px 20px 0 0;
|
||||
}
|
||||
|
||||
&__header {
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
box-sizing: content-box;
|
||||
height: @number-keyboard-title-height;
|
||||
padding-top: 6px;
|
||||
color: @number-keyboard-title-color;
|
||||
font-size: @number-keyboard-title-font-size;
|
||||
}
|
||||
|
||||
&__title {
|
||||
display: inline-block;
|
||||
font-weight: normal;
|
||||
|
||||
&-left {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
}
|
||||
}
|
||||
|
||||
&__body {
|
||||
display: flex;
|
||||
padding: 6px 0 0 6px;
|
||||
}
|
||||
|
||||
&__keys {
|
||||
display: flex;
|
||||
flex: 3;
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
|
||||
&__close {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
height: 100%;
|
||||
padding: @number-keyboard-close-padding;
|
||||
color: @number-keyboard-close-color;
|
||||
font-size: @number-keyboard-close-font-size;
|
||||
background-color: transparent;
|
||||
border: none;
|
||||
cursor: pointer;
|
||||
|
||||
&:active {
|
||||
opacity: @active-opacity;
|
||||
}
|
||||
}
|
||||
|
||||
&__sidebar {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
&--unfit {
|
||||
padding-bottom: 0;
|
||||
}
|
||||
}
|
||||
|
||||
.van-key {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
height: @number-keyboard-key-height;
|
||||
font-size: @number-keyboard-key-font-size;
|
||||
line-height: 1.5;
|
||||
background-color: @white;
|
||||
border-radius: @border-radius-lg;
|
||||
cursor: pointer;
|
||||
|
||||
&--large {
|
||||
// height: 100% can't fill flex parent on legacy safari
|
||||
// see: https://stackoverflow.com/questions/33636796
|
||||
position: absolute;
|
||||
top: 0;
|
||||
right: 6px;
|
||||
bottom: 6px;
|
||||
left: 0;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
&--blue,
|
||||
&--delete {
|
||||
font-size: @number-keyboard-delete-font-size;
|
||||
}
|
||||
|
||||
&--active {
|
||||
background-color: @number-keyboard-key-active-color;
|
||||
}
|
||||
|
||||
&--blue {
|
||||
color: @number-keyboard-button-text-color;
|
||||
background-color: @number-keyboard-button-background-color;
|
||||
|
||||
&.van-key--active {
|
||||
background-color: darken(@number-keyboard-button-background-color, 10%);
|
||||
}
|
||||
}
|
||||
|
||||
&__wrapper {
|
||||
position: relative;
|
||||
flex: 1;
|
||||
flex-basis: 33%;
|
||||
box-sizing: border-box;
|
||||
padding: 0 6px 6px 0;
|
||||
|
||||
&--wider {
|
||||
flex-basis: 66%;
|
||||
}
|
||||
}
|
||||
|
||||
&__delete-icon {
|
||||
width: 32px;
|
||||
height: 22px;
|
||||
}
|
||||
|
||||
&__collapse-icon {
|
||||
width: 30px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
&__loading-icon {
|
||||
color: @number-keyboard-button-text-color;
|
||||
}
|
||||
}
|
3
node_modules/vant/es/number-keyboard/style/index.js
generated
vendored
Normal file
3
node_modules/vant/es/number-keyboard/style/index.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import '../../style/base.css';
|
||||
import '../../loading/index.css';
|
||||
import '../index.css';
|
3
node_modules/vant/es/number-keyboard/style/less.js
generated
vendored
Normal file
3
node_modules/vant/es/number-keyboard/style/less.js
generated
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
import '../../style/base.less';
|
||||
import '../../loading/index.less';
|
||||
import '../index.less';
|
Reference in New Issue
Block a user