Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

goldmorning-ui

Package Overview
Dependencies
Maintainers
2
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

goldmorning-ui - npm Package Compare versions

Comparing version 2.0.5 to 2.0.6

48

es/coupon/index.js

@@ -53,3 +53,3 @@ import './index-sfc.css';

};
import { toDisplayString as _toDisplayString, createVNode as _createVNode, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, Fragment as _Fragment, openBlock as _openBlock, createBlock as _createBlock } from "vue";
import { toDisplayString as _toDisplayString, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, Fragment as _Fragment } from "vue";
var _hoisted_1 = {

@@ -59,35 +59,33 @@ class: "gm-coupon-container"

var _hoisted_2 = {
class: "gm-coupon-left"
class: "gm-coupon-offer"
};
var _hoisted_3 = {
class: "gm-coupon-offer"
class: "gm-coupon-symbol"
};
var _hoisted_4 = {
class: "gm-coupon-symbol"
class: "gm-coupon-amount"
};
var _hoisted_5 = {
class: "gm-coupon-amount"
key: 0,
class: "gm-coupon-unit"
};
var _hoisted_6 = {
class: "gm-coupon-unit"
class: "gm-coupon-right"
};
var _hoisted_7 = {
class: "gm-coupon-right"
class: "gm-coupon-info"
};
var _hoisted_8 = {
class: "gm-coupon-info"
class: "gm-coupon-title"
};
var _hoisted_9 = {
class: "gm-coupon-title"
class: "gm-coupon-describe mt8"
};
var _hoisted_10 = {
class: "gm-coupon-describe mt8"
class: "gm-coupon-footer"
};
var _hoisted_11 = {
class: "gm-coupon-footer"
class: "color-gray"
};
var _hoisted_12 = {
class: "color-gray"
};
var _hoisted_13 = {
key: 0,

@@ -104,11 +102,17 @@ class: "gm-coupon-state"

}]
}, [_createVNode("div", _hoisted_2, [_createVNode("div", _hoisted_3, [_createVNode("span", _hoisted_4, _toDisplayString(_ctx.symbol), 1
}, [_createVNode("div", {
class: ["gm-coupon-left", {
center: !_ctx.unit
}]
}, [_createVNode("div", _hoisted_2, [_createVNode("span", _hoisted_3, _toDisplayString(_ctx.symbol), 1
/* TEXT */
), _createVNode("span", _hoisted_5, _toDisplayString(_ctx.amount), 1
), _createVNode("span", _hoisted_4, _toDisplayString(_ctx.amount), 1
/* TEXT */
)]), _createVNode("div", _hoisted_6, _toDisplayString(_ctx.unit), 1
)]), _ctx.unit ? (_openBlock(), _createBlock("div", _hoisted_5, _toDisplayString(_ctx.unit), 1
/* TEXT */
)]), _createVNode("div", _hoisted_7, [_createVNode("div", _hoisted_8, [_createVNode("h3", _hoisted_9, _toDisplayString(_ctx.title), 1
)) : _createCommentVNode("v-if", true)], 2
/* CLASS */
), _createVNode("div", _hoisted_6, [_createVNode("div", _hoisted_7, [_createVNode("h3", _hoisted_8, _toDisplayString(_ctx.title), 1
/* TEXT */
), _createVNode("div", _hoisted_10, _toDisplayString(_ctx.describe), 1
), _createVNode("div", _hoisted_9, _toDisplayString(_ctx.describe), 1
/* TEXT */

@@ -136,3 +140,3 @@ )]), _createCommentVNode(" 是否使用check "), _ctx.isCheckBox ? (_openBlock(), _createBlock(_Fragment, {

/* CLASS */
), _createVNode("div", _hoisted_11, [_createVNode("span", _hoisted_12, _toDisplayString(_ctx.expired), 1
), _createVNode("div", _hoisted_10, [_createVNode("span", _hoisted_11, _toDisplayString(_ctx.expired), 1
/* TEXT */

@@ -145,3 +149,3 @@ ), _ctx.showButton && !_ctx.isCheckBox && !_ctx.disabled ? (_openBlock(), _createBlock("button", {

/* TEXT */
)) : _createCommentVNode("v-if", true)]), _ctx.state ? (_openBlock(), _createBlock("span", _hoisted_13, _toDisplayString(_ctx.state), 1
)) : _createCommentVNode("v-if", true)]), _ctx.state ? (_openBlock(), _createBlock("span", _hoisted_12, _toDisplayString(_ctx.state), 1
/* TEXT */

@@ -152,3 +156,3 @@ )) : _createCommentVNode("v-if", true)]);

__vue_sfc__.render = __vue_render__;
__vue_sfc__._scopeId = 'data-v-35752e16';
__vue_sfc__._scopeId = 'data-v-45ae645c';
export default __vue_sfc__;
import Coupon from './coupon';
import OrderInput from './order-input';
var version = '2.0.4';
var version = '2.0.6';

@@ -5,0 +5,0 @@ function install(app) {

@@ -68,35 +68,33 @@ "use strict";

var _hoisted_2 = {
class: "gm-coupon-left"
class: "gm-coupon-offer"
};
var _hoisted_3 = {
class: "gm-coupon-offer"
class: "gm-coupon-symbol"
};
var _hoisted_4 = {
class: "gm-coupon-symbol"
class: "gm-coupon-amount"
};
var _hoisted_5 = {
class: "gm-coupon-amount"
key: 0,
class: "gm-coupon-unit"
};
var _hoisted_6 = {
class: "gm-coupon-unit"
class: "gm-coupon-right"
};
var _hoisted_7 = {
class: "gm-coupon-right"
class: "gm-coupon-info"
};
var _hoisted_8 = {
class: "gm-coupon-info"
class: "gm-coupon-title"
};
var _hoisted_9 = {
class: "gm-coupon-title"
class: "gm-coupon-describe mt8"
};
var _hoisted_10 = {
class: "gm-coupon-describe mt8"
class: "gm-coupon-footer"
};
var _hoisted_11 = {
class: "gm-coupon-footer"
class: "color-gray"
};
var _hoisted_12 = {
class: "color-gray"
};
var _hoisted_13 = {
key: 0,

@@ -113,11 +111,17 @@ class: "gm-coupon-state"

}]
}, [(0, _vue.createVNode)("div", _hoisted_2, [(0, _vue.createVNode)("div", _hoisted_3, [(0, _vue.createVNode)("span", _hoisted_4, (0, _vue.toDisplayString)(_ctx.symbol), 1
}, [(0, _vue.createVNode)("div", {
class: ["gm-coupon-left", {
center: !_ctx.unit
}]
}, [(0, _vue.createVNode)("div", _hoisted_2, [(0, _vue.createVNode)("span", _hoisted_3, (0, _vue.toDisplayString)(_ctx.symbol), 1
/* TEXT */
), (0, _vue.createVNode)("span", _hoisted_5, (0, _vue.toDisplayString)(_ctx.amount), 1
), (0, _vue.createVNode)("span", _hoisted_4, (0, _vue.toDisplayString)(_ctx.amount), 1
/* TEXT */
)]), (0, _vue.createVNode)("div", _hoisted_6, (0, _vue.toDisplayString)(_ctx.unit), 1
)]), _ctx.unit ? ((0, _vue.openBlock)(), (0, _vue.createBlock)("div", _hoisted_5, (0, _vue.toDisplayString)(_ctx.unit), 1
/* TEXT */
)]), (0, _vue.createVNode)("div", _hoisted_7, [(0, _vue.createVNode)("div", _hoisted_8, [(0, _vue.createVNode)("h3", _hoisted_9, (0, _vue.toDisplayString)(_ctx.title), 1
)) : (0, _vue.createCommentVNode)("v-if", true)], 2
/* CLASS */
), (0, _vue.createVNode)("div", _hoisted_6, [(0, _vue.createVNode)("div", _hoisted_7, [(0, _vue.createVNode)("h3", _hoisted_8, (0, _vue.toDisplayString)(_ctx.title), 1
/* TEXT */
), (0, _vue.createVNode)("div", _hoisted_10, (0, _vue.toDisplayString)(_ctx.describe), 1
), (0, _vue.createVNode)("div", _hoisted_9, (0, _vue.toDisplayString)(_ctx.describe), 1
/* TEXT */

@@ -145,3 +149,3 @@ )]), (0, _vue.createCommentVNode)(" 是否使用check "), _ctx.isCheckBox ? ((0, _vue.openBlock)(), (0, _vue.createBlock)(_vue.Fragment, {

/* CLASS */
), (0, _vue.createVNode)("div", _hoisted_11, [(0, _vue.createVNode)("span", _hoisted_12, (0, _vue.toDisplayString)(_ctx.expired), 1
), (0, _vue.createVNode)("div", _hoisted_10, [(0, _vue.createVNode)("span", _hoisted_11, (0, _vue.toDisplayString)(_ctx.expired), 1
/* TEXT */

@@ -154,3 +158,3 @@ ), _ctx.showButton && !_ctx.isCheckBox && !_ctx.disabled ? ((0, _vue.openBlock)(), (0, _vue.createBlock)("button", {

/* TEXT */
)) : (0, _vue.createCommentVNode)("v-if", true)]), _ctx.state ? ((0, _vue.openBlock)(), (0, _vue.createBlock)("span", _hoisted_13, (0, _vue.toDisplayString)(_ctx.state), 1
)) : (0, _vue.createCommentVNode)("v-if", true)]), _ctx.state ? ((0, _vue.openBlock)(), (0, _vue.createBlock)("span", _hoisted_12, (0, _vue.toDisplayString)(_ctx.state), 1
/* TEXT */

@@ -161,4 +165,4 @@ )) : (0, _vue.createCommentVNode)("v-if", true)]);

__vue_sfc__.render = __vue_render__;
__vue_sfc__._scopeId = 'data-v-35752e16';
__vue_sfc__._scopeId = 'data-v-45ae645c';
var _default = __vue_sfc__;
exports.default = _default;

@@ -124,3 +124,3 @@ (function webpackUniversalModuleDefinition(root, factory) {

// Module
___CSS_LOADER_EXPORT___.push([module.id, ":root{--gm-color-white:#fff;--gm-color-primary:#EB0629;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#777;--gm-color-placeholder:#c8c9cc;--gm-color-link:#526c99;--gm-bg-input:#f7f8fa;--gm-family-number:'Arial';--gm-family-number-heavy:'Arial-BoldMT','Arial';--gm-family:'PingFangSC-Regular','微软雅黑';--gm-family-medium:'PingFangSC-Medium','微软雅黑'}.gm-coupon-container{position:relative;display:block;border-radius:6px;overflow:hidden;background-color:var(--gm-color-white);padding:12px 16px 0 16px}.gm-coupon{padding-bottom:12px;display:flex;height:100%;position:relative;overflow:hidden;background-color:var(--gm-color-white);font-family:var(--gm-family)}.gm-coupon.disabled{opacity:.4}.gm-coupon.border::after{border:1px solid #eee}.gm-coupon.checked::after{background-color:rgba(195,37,45,.05);border-color:rgba(195,37,45,.5)}.gm-coupon-left{width:78px}.gm-coupon-symbol{color:var(--gm-color-primary);font-size:18px;font-weight:800;line-height:25px}.gm-coupon-amount{color:var(--gm-color-primary);font-family:var(--gm-family-number-heavy);font-size:26px;font-weight:400;line-height:32px}.gm-coupon-describe,.gm-coupon-expired,.gm-coupon-unit{font-size:12px;font-weight:400;color:var(--gm-color-gray);line-height:16px}.gm-coupon-mask{width:12px;display:flex;align-items:center;justify-content:center;padding:12px 0;position:relative;z-index:2}.gm-coupon-mask--line{border-left:1px #ddd dashed;height:100%}.gm-coupon-mask--after,.gm-coupon-mask--before{width:12px;height:12px;position:absolute;border-radius:50%;border:1px solid rgba(211,211,211,.5);transition:all .3s ease;box-sizing:content-box}.gm-coupon-mask--before{top:-6px}.gm-coupon-mask--after{bottom:-6px}.gm-coupon-mask.checked .gm-coupon-mask--after,.gm-coupon-mask.checked .gm-coupon-mask--before{border-color:rgba(195,37,45,.5)}.gm-coupon-right{display:flex;align-items:center;justify-content:space-between;flex:1}.gm-coupon-info{flex:1 1 0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.gm-coupon-title{font-size:16px;font-family:var(--gm-family-medium);font-weight:500;color:#333;line-height:20px;margin-top:4px}.gm-coupon-btn{display:inline-flex;align-items:center;justify-content:center;background-color:var(--gm-color-primary);padding:6px 12px;border-radius:100px;box-sizing:border-box;height:28px;border:none;font-size:12px;font-weight:400;color:var(--gm-color-white);line-height:16px}.gm-coupon-state{height:14px;background:#fceaea;border-radius:0 6px 0 6px;padding:1px 4px;font-size:10px;font-weight:400;color:var(--gm-color-primary);line-height:14px;position:absolute;top:0;right:0;z-index:2}.gm-coupon-checkbox{display:block;background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20210803/175212ncex89.svg);background-repeat:no-repeat;background-size:cover;background-position:center;width:20px;height:20px}.gm-coupon-checkbox.checked{background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20211222/163139of4cmj.png)}.gm-coupon-input-checkbox{position:absolute;visibility:hidden}.gm-coupon-input-checkbox:disabled+.gm-coupon-checkbox{background-color:#eee;border-radius:50%;background-image:none}.gm-coupon-footer{border-top:1px dashed #ddd;height:44px;display:flex;align-items:center;justify-content:space-between}.gm-coupon-footer span{font-size:12px}.color-gray{color:var(--gm-color-gray)}.mt8{margin-top:8px}", ""]);
___CSS_LOADER_EXPORT___.push([module.id, ":root{--gm-color-white:#fff;--gm-color-primary:#EB0629;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#777;--gm-color-placeholder:#c8c9cc;--gm-color-link:#526c99;--gm-bg-input:#f7f8fa;--gm-family-number:'Arial';--gm-family-number-heavy:'Arial-BoldMT','Arial';--gm-family:'PingFangSC-Regular','微软雅黑';--gm-family-medium:'PingFangSC-Medium','微软雅黑'}.gm-coupon-container{position:relative;display:block;border-radius:6px;overflow:hidden;background-color:var(--gm-color-white);padding:12px 16px 0 16px}.gm-coupon{padding-bottom:12px;display:flex;height:100%;position:relative;overflow:hidden;background-color:var(--gm-color-white);font-family:var(--gm-family)}.gm-coupon.disabled{opacity:.4}.gm-coupon.border::after{border:1px solid #eee}.gm-coupon.checked::after{background-color:rgba(195,37,45,.05);border-color:rgba(195,37,45,.5)}.gm-coupon-left{width:78px}.gm-coupon-left.center{display:flex;align-items:center}.gm-coupon-symbol{color:var(--gm-color-primary);font-size:18px;font-weight:800;line-height:25px}.gm-coupon-amount{color:var(--gm-color-primary);font-family:var(--gm-family-number-heavy);font-size:26px;font-weight:400;line-height:32px}.gm-coupon-describe,.gm-coupon-expired,.gm-coupon-unit{font-size:12px;font-weight:400;color:var(--gm-color-gray);line-height:16px}.gm-coupon-mask{width:12px;display:flex;align-items:center;justify-content:center;padding:12px 0;position:relative;z-index:2}.gm-coupon-mask--line{border-left:1px #ddd dashed;height:100%}.gm-coupon-mask--after,.gm-coupon-mask--before{width:12px;height:12px;position:absolute;border-radius:50%;border:1px solid rgba(211,211,211,.5);transition:all .3s ease;box-sizing:content-box}.gm-coupon-mask--before{top:-6px}.gm-coupon-mask--after{bottom:-6px}.gm-coupon-mask.checked .gm-coupon-mask--after,.gm-coupon-mask.checked .gm-coupon-mask--before{border-color:rgba(195,37,45,.5)}.gm-coupon-right{display:flex;align-items:center;justify-content:space-between;flex:1}.gm-coupon-info{flex:1 1 0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.gm-coupon-title{font-size:16px;font-family:var(--gm-family-medium);font-weight:500;color:#333;line-height:20px;margin-top:4px}.gm-coupon-btn{display:inline-flex;align-items:center;justify-content:center;background-color:var(--gm-color-primary);padding:6px 12px;border-radius:100px;box-sizing:border-box;height:28px;border:none;font-size:12px;font-weight:400;color:var(--gm-color-white);line-height:16px}.gm-coupon-state{height:14px;background:#fceaea;border-radius:0 6px 0 6px;padding:1px 4px;font-size:10px;font-weight:400;color:var(--gm-color-primary);line-height:14px;position:absolute;top:0;right:0;z-index:2}.gm-coupon-checkbox{display:block;background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20210803/175212ncex89.svg);background-repeat:no-repeat;background-size:cover;background-position:center;width:20px;height:20px}.gm-coupon-checkbox.checked{background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20211222/163139of4cmj.png)}.gm-coupon-input-checkbox{position:absolute;visibility:hidden}.gm-coupon-input-checkbox:disabled+.gm-coupon-checkbox{background-color:#eee;border-radius:50%;background-image:none}.gm-coupon-footer{border-top:1px dashed #ddd;height:44px;display:flex;align-items:center;justify-content:space-between}.gm-coupon-footer span{font-size:12px}.color-gray{color:var(--gm-color-gray)}.mt8{margin-top:8px}", ""]);
// Exports

@@ -597,35 +597,33 @@ /* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);

var _hoisted_2 = {
class: "gm-coupon-left"
class: "gm-coupon-offer"
};
var _hoisted_3 = {
class: "gm-coupon-offer"
class: "gm-coupon-symbol"
};
var _hoisted_4 = {
class: "gm-coupon-symbol"
class: "gm-coupon-amount"
};
var _hoisted_5 = {
class: "gm-coupon-amount"
key: 0,
class: "gm-coupon-unit"
};
var _hoisted_6 = {
class: "gm-coupon-unit"
class: "gm-coupon-right"
};
var _hoisted_7 = {
class: "gm-coupon-right"
class: "gm-coupon-info"
};
var _hoisted_8 = {
class: "gm-coupon-info"
class: "gm-coupon-title"
};
var _hoisted_9 = {
class: "gm-coupon-title"
class: "gm-coupon-describe mt8"
};
var _hoisted_10 = {
class: "gm-coupon-describe mt8"
class: "gm-coupon-footer"
};
var _hoisted_11 = {
class: "gm-coupon-footer"
class: "color-gray"
};
var _hoisted_12 = {
class: "color-gray"
};
var _hoisted_13 = {
key: 0,

@@ -642,11 +640,17 @@ class: "gm-coupon-state"

}]
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("span", _hoisted_4, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.symbol), 1
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", {
class: ["gm-coupon-left", {
center: !_ctx.unit
}]
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("span", _hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.symbol), 1
/* TEXT */
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("span", _hoisted_5, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.amount), 1
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("span", _hoisted_4, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.amount), 1
/* TEXT */
)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_6, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.unit), 1
)]), _ctx.unit ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)("div", _hoisted_5, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.unit), 1
/* TEXT */
)]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_7, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_8, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("h3", _hoisted_9, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.title), 1
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)], 2
/* CLASS */
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_6, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_7, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("h3", _hoisted_8, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.title), 1
/* TEXT */
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_10, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.describe), 1
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_9, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.describe), 1
/* TEXT */

@@ -674,3 +678,3 @@ )]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" 是否使用check "), _ctx.isCheckBox ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, {

/* CLASS */
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_11, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("span", _hoisted_12, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.expired), 1
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", _hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("span", _hoisted_11, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.expired), 1
/* TEXT */

@@ -683,3 +687,3 @@ ), _ctx.showButton && !_ctx.isCheckBox && !_ctx.disabled ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)("button", {

/* TEXT */
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]), _ctx.state ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)("span", _hoisted_13, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.state), 1
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]), _ctx.state ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)("span", _hoisted_12, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(_ctx.state), 1
/* TEXT */

@@ -690,3 +694,3 @@ )) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]);

__vue_sfc__.render = __vue_render__;
__vue_sfc__._scopeId = 'data-v-35752e16';
__vue_sfc__._scopeId = 'data-v-45ae645c';
/* harmony default export */ var coupon = (__vue_sfc__);

@@ -945,3 +949,3 @@ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-2.use[2]!./es/order-input/index-sfc.css

var version = '2.0.4';
var version = '2.0.6';

@@ -948,0 +952,0 @@ function install(app) {

@@ -1,1 +0,1 @@

!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define("goldmorning-ui",["vue"],o):"object"==typeof exports?exports["goldmorning-ui"]=o(require("vue")):e["goldmorning-ui"]=o(e.Vue)}("undefined"!=typeof self?self:this,(function(e){return(()=>{"use strict";var o={705:e=>{e.exports=function(e){var o=[];return o.toString=function(){return this.map((function(o){var t=function(e,o){var t,r,n,i=e[1]||"",a=e[3];if(!a)return i;if(o&&"function"==typeof btoa){var l=(t=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(n," */")),c=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(c).concat([l]).join("\n")}return[i].join("\n")}(o,e);return o[2]?"@media ".concat(o[2]," {").concat(t,"}"):t})).join("")},o.i=function(e,t,r){"string"==typeof e&&(e=[[null,e,""]]);var n={};if(r)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(n[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);r&&n[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),o.push(c))}},o}},977:(e,o,t)=>{var r=t(705),n=t.n(r)()(!1);n.push([e.id,":root{--gm-color-white:#fff;--gm-color-primary:#EB0629;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#777;--gm-color-placeholder:#c8c9cc;--gm-color-link:#526c99;--gm-bg-input:#f7f8fa;--gm-family-number:'Arial';--gm-family-number-heavy:'Arial-BoldMT','Arial';--gm-family:'PingFangSC-Regular','微软雅黑';--gm-family-medium:'PingFangSC-Medium','微软雅黑'}.gm-coupon-container{position:relative;display:block;border-radius:6px;overflow:hidden;background-color:var(--gm-color-white);padding:12px 16px 0 16px}.gm-coupon{padding-bottom:12px;display:flex;height:100%;position:relative;overflow:hidden;background-color:var(--gm-color-white);font-family:var(--gm-family)}.gm-coupon.disabled{opacity:.4}.gm-coupon.border::after{border:1px solid #eee}.gm-coupon.checked::after{background-color:rgba(195,37,45,.05);border-color:rgba(195,37,45,.5)}.gm-coupon-left{width:78px}.gm-coupon-symbol{color:var(--gm-color-primary);font-size:18px;font-weight:800;line-height:25px}.gm-coupon-amount{color:var(--gm-color-primary);font-family:var(--gm-family-number-heavy);font-size:26px;font-weight:400;line-height:32px}.gm-coupon-describe,.gm-coupon-expired,.gm-coupon-unit{font-size:12px;font-weight:400;color:var(--gm-color-gray);line-height:16px}.gm-coupon-mask{width:12px;display:flex;align-items:center;justify-content:center;padding:12px 0;position:relative;z-index:2}.gm-coupon-mask--line{border-left:1px #ddd dashed;height:100%}.gm-coupon-mask--after,.gm-coupon-mask--before{width:12px;height:12px;position:absolute;border-radius:50%;border:1px solid rgba(211,211,211,.5);transition:all .3s ease;box-sizing:content-box}.gm-coupon-mask--before{top:-6px}.gm-coupon-mask--after{bottom:-6px}.gm-coupon-mask.checked .gm-coupon-mask--after,.gm-coupon-mask.checked .gm-coupon-mask--before{border-color:rgba(195,37,45,.5)}.gm-coupon-right{display:flex;align-items:center;justify-content:space-between;flex:1}.gm-coupon-info{flex:1 1 0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.gm-coupon-title{font-size:16px;font-family:var(--gm-family-medium);font-weight:500;color:#333;line-height:20px;margin-top:4px}.gm-coupon-btn{display:inline-flex;align-items:center;justify-content:center;background-color:var(--gm-color-primary);padding:6px 12px;border-radius:100px;box-sizing:border-box;height:28px;border:none;font-size:12px;font-weight:400;color:var(--gm-color-white);line-height:16px}.gm-coupon-state{height:14px;background:#fceaea;border-radius:0 6px 0 6px;padding:1px 4px;font-size:10px;font-weight:400;color:var(--gm-color-primary);line-height:14px;position:absolute;top:0;right:0;z-index:2}.gm-coupon-checkbox{display:block;background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20210803/175212ncex89.svg);background-repeat:no-repeat;background-size:cover;background-position:center;width:20px;height:20px}.gm-coupon-checkbox.checked{background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20211222/163139of4cmj.png)}.gm-coupon-input-checkbox{position:absolute;visibility:hidden}.gm-coupon-input-checkbox:disabled+.gm-coupon-checkbox{background-color:#eee;border-radius:50%;background-image:none}.gm-coupon-footer{border-top:1px dashed #ddd;height:44px;display:flex;align-items:center;justify-content:space-between}.gm-coupon-footer span{font-size:12px}.color-gray{color:var(--gm-color-gray)}.mt8{margin-top:8px}",""]),o.Z=n},819:(e,o,t)=>{var r=t(705),n=t.n(r)()(!1);n.push([e.id,":root{--gm-color-white:#fff;--gm-color-primary:#EB0629;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#777;--gm-color-placeholder:#c8c9cc;--gm-color-link:#526c99;--gm-bg-input:#f7f8fa;--gm-family-number:'Arial';--gm-family-number-heavy:'Arial-BoldMT','Arial';--gm-family:'PingFangSC-Regular','微软雅黑';--gm-family-medium:'PingFangSC-Medium','微软雅黑'}.gm-add-label{display:flex;line-height:20px;position:relative;border:1px solid transparent;box-sizing:border-box;transition:border-color .25s linear;border-radius:4px;overflow:hidden;background:var(--gm-bg-input);align-items:center;padding:10px 12px;height:44px}.gm-add-label.error{border-color:var(--gm-color-error)}.gm-add-tip{font-size:14px;font-weight:400;color:var(--gm-color-sub);line-height:20px;position:absolute;height:100%;background-color:inherit;display:flex;align-items:center}.gm-add-tip.unit{right:12px}.gm-add-weight{background:inherit;flex:1 1 0;text-align:center;font-size:22px;border:none;padding:0;font-weight:400;line-height:24px}.gm-add-weight:focus{outline:0}.gm-add-weight:disabled{opacity:.5}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}input::-webkit-input-placeholder{color:var(--gm-color-placeholder)}input::placeholder{color:var(--gm-color-placeholder)}input[type=number]{-moz-appearance:textfield}.gm-error-tip{font-size:12px;color:var(--gm-color-error);line-height:24px}",""]),o.Z=n},379:(e,o,t)=>{var r,n=function(){var e={};return function(o){if(void 0===e[o]){var t=document.querySelector(o);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[o]=t}return e[o]}}(),i=[];function a(e){for(var o=-1,t=0;t<i.length;t++)if(i[t].identifier===e){o=t;break}return o}function l(e,o){for(var t={},r=[],n=0;n<e.length;n++){var l=e[n],c=o.base?l[0]+o.base:l[0],d=t[c]||0,s="".concat(c," ").concat(d);t[c]=d+1;var u=a(s),p={css:l[1],media:l[2],sourceMap:l[3]};-1!==u?(i[u].references++,i[u].updater(p)):i.push({identifier:s,updater:f(p,o),references:1}),r.push(s)}return r}function c(e){var o=document.createElement("style"),r=e.attributes||{};if(void 0===r.nonce){var i=t.nc;i&&(r.nonce=i)}if(Object.keys(r).forEach((function(e){o.setAttribute(e,r[e])})),"function"==typeof e.insert)e.insert(o);else{var a=n(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(o)}return o}var d,s=(d=[],function(e,o){return d[e]=o,d.filter(Boolean).join("\n")});function u(e,o,t,r){var n=t?"":r.media?"@media ".concat(r.media," {").concat(r.css,"}"):r.css;if(e.styleSheet)e.styleSheet.cssText=s(o,n);else{var i=document.createTextNode(n),a=e.childNodes;a[o]&&e.removeChild(a[o]),a.length?e.insertBefore(i,a[o]):e.appendChild(i)}}function p(e,o,t){var r=t.css,n=t.media,i=t.sourceMap;if(n?e.setAttribute("media",n):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(r+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=r;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(r))}}var m=null,g=0;function f(e,o){var t,r,n;if(o.singleton){var i=g++;t=m||(m=c(o)),r=u.bind(null,t,i,!1),n=u.bind(null,t,i,!0)}else t=c(o),r=p.bind(null,t,o),n=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return r(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;r(e=o)}else n()}}e.exports=function(e,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=(void 0===r&&(r=Boolean(window&&document&&document.all&&!window.atob)),r));var t=l(e=e||[],o);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var r=0;r<t.length;r++){var n=a(t[r]);i[n].references--}for(var c=l(e,o),d=0;d<t.length;d++){var s=a(t[d]);0===i[s].references&&(i[s].updater(),i.splice(s,1))}t=c}}}},197:o=>{o.exports=e}},t={};function r(e){var n=t[e];if(void 0!==n)return n.exports;var i=t[e]={id:e,exports:{}};return o[e](i,i.exports,r),i.exports}r.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return r.d(o,{a:o}),o},r.d=(e,o)=>{for(var t in o)r.o(o,t)&&!r.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},r.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var n={};return(()=>{r.r(n),r.d(n,{Coupon:()=>k,OrderInput:()=>C,default:()=>z,install:()=>M,version:()=>j});var e=r(379),o=r.n(e),t=r(977),i=(o()(t.Z,{insert:"head",singleton:!1}),t.Z.locals,{type:Boolean,default:!0}),a=r(197),l={name:"Coupon",components:{},props:{amount:[String,Number],title:String,expired:String,state:String,describe:String,symbol:{type:String,default:"¥"},unit:{type:String,default:"每100克"},btnText:{type:String,default:"去使用"},isCheckBox:Boolean,modelValue:Boolean,disabled:Boolean,showButton:i,border:Boolean},emits:["update:modelValue","change","ok"],setup:(e,{emit:o})=>({onChange:function(e){o("update:modelValue",e.target.checked),o("change",e.target.checked)},onClick:function(e){o("ok",e)}})},c={class:"gm-coupon-container"},d={class:"gm-coupon-left"},s={class:"gm-coupon-offer"},u={class:"gm-coupon-symbol"},p={class:"gm-coupon-amount"},m={class:"gm-coupon-unit"},g={class:"gm-coupon-right"},f={class:"gm-coupon-info"},h={class:"gm-coupon-title"},b={class:"gm-coupon-describe mt8"},v={class:"gm-coupon-footer"},x={class:"color-gray"},y={key:0,class:"gm-coupon-state"};l.render=function(e,o){return(0,a.openBlock)(),(0,a.createBlock)("label",c,[(0,a.createVNode)("div",{class:["gm-coupon",{checked:e.modelValue,border:e.border,disabled:e.disabled}]},[(0,a.createVNode)("div",d,[(0,a.createVNode)("div",s,[(0,a.createVNode)("span",u,(0,a.toDisplayString)(e.symbol),1),(0,a.createVNode)("span",p,(0,a.toDisplayString)(e.amount),1)]),(0,a.createVNode)("div",m,(0,a.toDisplayString)(e.unit),1)]),(0,a.createVNode)("div",g,[(0,a.createVNode)("div",f,[(0,a.createVNode)("h3",h,(0,a.toDisplayString)(e.title),1),(0,a.createVNode)("div",b,(0,a.toDisplayString)(e.describe),1)]),(0,a.createCommentVNode)(" 是否使用check "),e.isCheckBox?((0,a.openBlock)(),(0,a.createBlock)(a.Fragment,{key:0},[(0,a.createVNode)("input",{type:"checkbox",class:"gm-coupon-input-checkbox",onChange:o[1]||(o[1]=(...o)=>e.onChange&&e.onChange(...o)),value:e.modelValue,disabled:e.disabled,onClick:o[2]||(o[2]=(0,a.withModifiers)((()=>{}),["stop"]))},null,40,["value","disabled"]),(0,a.createVNode)("span",{class:["gm-coupon-checkbox",{checked:e.modelValue}]},null,2)],64)):(0,a.createCommentVNode)("v-if",!0)])],2),(0,a.createVNode)("div",v,[(0,a.createVNode)("span",x,(0,a.toDisplayString)(e.expired),1),!e.showButton||e.isCheckBox||e.disabled?(0,a.createCommentVNode)("v-if",!0):((0,a.openBlock)(),(0,a.createBlock)("button",{key:0,class:"gm-coupon-btn",onClick:o[3]||(o[3]=(...o)=>e.onClick&&e.onClick(...o))},(0,a.toDisplayString)(e.btnText),1))]),e.state?((0,a.openBlock)(),(0,a.createBlock)("span",y,(0,a.toDisplayString)(e.state),1)):(0,a.createCommentVNode)("v-if",!0)])},l._scopeId="data-v-35752e16";var k=l,S=r(819),w=(o()(S.Z,{insert:"head",singleton:!1}),S.Z.locals,{name:"OrderInput",props:{modelValue:[Number,String],placeholder:String,unit:{type:String,default:"克"},disabled:Boolean,decimal:[String,Number],multiple:[String,Number],max:[String,Number],min:[String,Number],showError:Boolean,isRequired:Boolean,label:String,immediate:Boolean},emits:["update:modelValue","update:isPass","blur"],setup(e,{emit:o}){var t=(0,a.reactive)({text:"",type:"",isError:!1}),r=(0,a.computed)((()=>{var o=null,t=[];return e.multiple?t=String(e.multiple).split("."):e.decimal&&(t=String(Math.pow(10,-1*e.decimal)).split(".")),t.length>1?o=t[t.length-1].length:1===t.length&&(o=0),o}));function n(e){if(Number.isInteger(+e))return 0;var o=e+"",t=o.indexOf(".");return o.substr(t+1).length}function i(e,o){var t=e<0,r=Math.pow(10,o),n=parseInt(Math.abs(e)*r+.5,10);return t&&(n=-n),n}return(0,a.watch)((()=>e.modelValue),(function(r){r=+r;var a,l,c,d={msg:"",type:"",isError:!1};e.isRequired&&!r?(d.msg=e.placeholder,d.type="required"):r<+e.min?(d.msg="最小需交".concat(e.min,"克"),d.type="min"):e.multiple&&(a=r,l=e.multiple,i(a,c=Math.max(n(a),n(l)))%i(l,c)!=0)?(d.msg="交割重量需为".concat(e.multiple,"的倍数"),d.type="multiple"):r>+e.max&&(d.msg="交割量不超过买入重量",d.type="max"),d.msg?o("update:isPass",!1):o("update:isPass",!0),t.text=d.msg,t.type=d.type,t.isError=Boolean(d.msg)}),{immediate:e.immediate}),{onInput:function(t){var{value:n}=t.target;(r.value||0===r.value)&&(n=function(e){var o=String(e),t=o.split(".");return 2===t.length&&t[1].length>r.value&&(o=0===r.value?t[0]:"".concat(t[0],".").concat(t[1].slice(0,r.value))),o}(n))&&(t.target.value=n),+e.min>=0&&(t.target.value=n),o("update:modelValue",n)},onBlur:function(e){o("blur",e)},error:t}}}),N={class:"gm-add-tip"},B={class:"gm-add-tip unit"},V={key:0,class:"gm-error-tip"};w.render=function(e,o){return(0,a.openBlock)(),(0,a.createBlock)("div",null,[(0,a.createVNode)("label",{class:["gm-add-label",{error:e.error.isError}]},[(0,a.createVNode)("span",N,[(0,a.renderSlot)(e.$slots,"left-icon",{},(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]))]),(0,a.createVNode)("input",{class:"gm-add-weight",type:"number",inputmode:"decimal",min:e.min,max:e.max,value:e.modelValue,placeholder:e.placeholder,disabled:e.disabled,onInput:o[1]||(o[1]=(...o)=>e.onInput&&e.onInput(...o)),onBlur:o[2]||(o[2]=(...o)=>e.onBlur&&e.onBlur(...o))},null,40,["min","max","value","placeholder","disabled"]),(0,a.createVNode)("span",B,[(0,a.renderSlot)(e.$slots,"unit",{},(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.unit),1)]))])],2),(0,a.renderSlot)(e.$slots,"error",{error:e.error},(()=>[e.showError&&e.error.text?((0,a.openBlock)(),(0,a.createBlock)("div",V,(0,a.toDisplayString)(e.error.text),1)):(0,a.createCommentVNode)("v-if",!0)]))])},w._scopeId="data-v-59b45dda";var C=w,j="2.0.4";function M(e){[k,C].forEach((o=>{o.install?e.use(o):o.name&&e.component(o.name,o)}))}var z={install:M,version:j}})(),n})()}));
!function(e,o){"object"==typeof exports&&"object"==typeof module?module.exports=o(require("vue")):"function"==typeof define&&define.amd?define("goldmorning-ui",["vue"],o):"object"==typeof exports?exports["goldmorning-ui"]=o(require("vue")):e["goldmorning-ui"]=o(e.Vue)}("undefined"!=typeof self?self:this,(function(e){return(()=>{"use strict";var o={705:e=>{e.exports=function(e){var o=[];return o.toString=function(){return this.map((function(o){var t=function(e,o){var t,n,r,i=e[1]||"",a=e[3];if(!a)return i;if(o&&"function"==typeof btoa){var l=(t=a,n=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),r="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(n),"/*# ".concat(r," */")),c=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(c).concat([l]).join("\n")}return[i].join("\n")}(o,e);return o[2]?"@media ".concat(o[2]," {").concat(t,"}"):t})).join("")},o.i=function(e,t,n){"string"==typeof e&&(e=[[null,e,""]]);var r={};if(n)for(var i=0;i<this.length;i++){var a=this[i][0];null!=a&&(r[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);n&&r[c[0]]||(t&&(c[2]?c[2]="".concat(t," and ").concat(c[2]):c[2]=t),o.push(c))}},o}},977:(e,o,t)=>{var n=t(705),r=t.n(n)()(!1);r.push([e.id,":root{--gm-color-white:#fff;--gm-color-primary:#EB0629;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#777;--gm-color-placeholder:#c8c9cc;--gm-color-link:#526c99;--gm-bg-input:#f7f8fa;--gm-family-number:'Arial';--gm-family-number-heavy:'Arial-BoldMT','Arial';--gm-family:'PingFangSC-Regular','微软雅黑';--gm-family-medium:'PingFangSC-Medium','微软雅黑'}.gm-coupon-container{position:relative;display:block;border-radius:6px;overflow:hidden;background-color:var(--gm-color-white);padding:12px 16px 0 16px}.gm-coupon{padding-bottom:12px;display:flex;height:100%;position:relative;overflow:hidden;background-color:var(--gm-color-white);font-family:var(--gm-family)}.gm-coupon.disabled{opacity:.4}.gm-coupon.border::after{border:1px solid #eee}.gm-coupon.checked::after{background-color:rgba(195,37,45,.05);border-color:rgba(195,37,45,.5)}.gm-coupon-left{width:78px}.gm-coupon-left.center{display:flex;align-items:center}.gm-coupon-symbol{color:var(--gm-color-primary);font-size:18px;font-weight:800;line-height:25px}.gm-coupon-amount{color:var(--gm-color-primary);font-family:var(--gm-family-number-heavy);font-size:26px;font-weight:400;line-height:32px}.gm-coupon-describe,.gm-coupon-expired,.gm-coupon-unit{font-size:12px;font-weight:400;color:var(--gm-color-gray);line-height:16px}.gm-coupon-mask{width:12px;display:flex;align-items:center;justify-content:center;padding:12px 0;position:relative;z-index:2}.gm-coupon-mask--line{border-left:1px #ddd dashed;height:100%}.gm-coupon-mask--after,.gm-coupon-mask--before{width:12px;height:12px;position:absolute;border-radius:50%;border:1px solid rgba(211,211,211,.5);transition:all .3s ease;box-sizing:content-box}.gm-coupon-mask--before{top:-6px}.gm-coupon-mask--after{bottom:-6px}.gm-coupon-mask.checked .gm-coupon-mask--after,.gm-coupon-mask.checked .gm-coupon-mask--before{border-color:rgba(195,37,45,.5)}.gm-coupon-right{display:flex;align-items:center;justify-content:space-between;flex:1}.gm-coupon-info{flex:1 1 0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.gm-coupon-title{font-size:16px;font-family:var(--gm-family-medium);font-weight:500;color:#333;line-height:20px;margin-top:4px}.gm-coupon-btn{display:inline-flex;align-items:center;justify-content:center;background-color:var(--gm-color-primary);padding:6px 12px;border-radius:100px;box-sizing:border-box;height:28px;border:none;font-size:12px;font-weight:400;color:var(--gm-color-white);line-height:16px}.gm-coupon-state{height:14px;background:#fceaea;border-radius:0 6px 0 6px;padding:1px 4px;font-size:10px;font-weight:400;color:var(--gm-color-primary);line-height:14px;position:absolute;top:0;right:0;z-index:2}.gm-coupon-checkbox{display:block;background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20210803/175212ncex89.svg);background-repeat:no-repeat;background-size:cover;background-position:center;width:20px;height:20px}.gm-coupon-checkbox.checked{background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20211222/163139of4cmj.png)}.gm-coupon-input-checkbox{position:absolute;visibility:hidden}.gm-coupon-input-checkbox:disabled+.gm-coupon-checkbox{background-color:#eee;border-radius:50%;background-image:none}.gm-coupon-footer{border-top:1px dashed #ddd;height:44px;display:flex;align-items:center;justify-content:space-between}.gm-coupon-footer span{font-size:12px}.color-gray{color:var(--gm-color-gray)}.mt8{margin-top:8px}",""]),o.Z=r},819:(e,o,t)=>{var n=t(705),r=t.n(n)()(!1);r.push([e.id,":root{--gm-color-white:#fff;--gm-color-primary:#EB0629;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#777;--gm-color-placeholder:#c8c9cc;--gm-color-link:#526c99;--gm-bg-input:#f7f8fa;--gm-family-number:'Arial';--gm-family-number-heavy:'Arial-BoldMT','Arial';--gm-family:'PingFangSC-Regular','微软雅黑';--gm-family-medium:'PingFangSC-Medium','微软雅黑'}.gm-add-label{display:flex;line-height:20px;position:relative;border:1px solid transparent;box-sizing:border-box;transition:border-color .25s linear;border-radius:4px;overflow:hidden;background:var(--gm-bg-input);align-items:center;padding:10px 12px;height:44px}.gm-add-label.error{border-color:var(--gm-color-error)}.gm-add-tip{font-size:14px;font-weight:400;color:var(--gm-color-sub);line-height:20px;position:absolute;height:100%;background-color:inherit;display:flex;align-items:center}.gm-add-tip.unit{right:12px}.gm-add-weight{background:inherit;flex:1 1 0;text-align:center;font-size:22px;border:none;padding:0;font-weight:400;line-height:24px}.gm-add-weight:focus{outline:0}.gm-add-weight:disabled{opacity:.5}input::-webkit-inner-spin-button,input::-webkit-outer-spin-button{-webkit-appearance:none}input::-webkit-input-placeholder{color:var(--gm-color-placeholder)}input::placeholder{color:var(--gm-color-placeholder)}input[type=number]{-moz-appearance:textfield}.gm-error-tip{font-size:12px;color:var(--gm-color-error);line-height:24px}",""]),o.Z=r},379:(e,o,t)=>{var n,r=function(){var e={};return function(o){if(void 0===e[o]){var t=document.querySelector(o);if(window.HTMLIFrameElement&&t instanceof window.HTMLIFrameElement)try{t=t.contentDocument.head}catch(e){t=null}e[o]=t}return e[o]}}(),i=[];function a(e){for(var o=-1,t=0;t<i.length;t++)if(i[t].identifier===e){o=t;break}return o}function l(e,o){for(var t={},n=[],r=0;r<e.length;r++){var l=e[r],c=o.base?l[0]+o.base:l[0],d=t[c]||0,u="".concat(c," ").concat(d);t[c]=d+1;var s=a(u),p={css:l[1],media:l[2],sourceMap:l[3]};-1!==s?(i[s].references++,i[s].updater(p)):i.push({identifier:u,updater:f(p,o),references:1}),n.push(u)}return n}function c(e){var o=document.createElement("style"),n=e.attributes||{};if(void 0===n.nonce){var i=t.nc;i&&(n.nonce=i)}if(Object.keys(n).forEach((function(e){o.setAttribute(e,n[e])})),"function"==typeof e.insert)e.insert(o);else{var a=r(e.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(o)}return o}var d,u=(d=[],function(e,o){return d[e]=o,d.filter(Boolean).join("\n")});function s(e,o,t,n){var r=t?"":n.media?"@media ".concat(n.media," {").concat(n.css,"}"):n.css;if(e.styleSheet)e.styleSheet.cssText=u(o,r);else{var i=document.createTextNode(r),a=e.childNodes;a[o]&&e.removeChild(a[o]),a.length?e.insertBefore(i,a[o]):e.appendChild(i)}}function p(e,o,t){var n=t.css,r=t.media,i=t.sourceMap;if(r?e.setAttribute("media",r):e.removeAttribute("media"),i&&"undefined"!=typeof btoa&&(n+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(i))))," */")),e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}var m=null,g=0;function f(e,o){var t,n,r;if(o.singleton){var i=g++;t=m||(m=c(o)),n=s.bind(null,t,i,!1),r=s.bind(null,t,i,!0)}else t=c(o),n=p.bind(null,t,o),r=function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)};return n(e),function(o){if(o){if(o.css===e.css&&o.media===e.media&&o.sourceMap===e.sourceMap)return;n(e=o)}else r()}}e.exports=function(e,o){(o=o||{}).singleton||"boolean"==typeof o.singleton||(o.singleton=(void 0===n&&(n=Boolean(window&&document&&document.all&&!window.atob)),n));var t=l(e=e||[],o);return function(e){if(e=e||[],"[object Array]"===Object.prototype.toString.call(e)){for(var n=0;n<t.length;n++){var r=a(t[n]);i[r].references--}for(var c=l(e,o),d=0;d<t.length;d++){var u=a(t[d]);0===i[u].references&&(i[u].updater(),i.splice(u,1))}t=c}}}},197:o=>{o.exports=e}},t={};function n(e){var r=t[e];if(void 0!==r)return r.exports;var i=t[e]={id:e,exports:{}};return o[e](i,i.exports,n),i.exports}n.n=e=>{var o=e&&e.__esModule?()=>e.default:()=>e;return n.d(o,{a:o}),o},n.d=(e,o)=>{for(var t in o)n.o(o,t)&&!n.o(e,t)&&Object.defineProperty(e,t,{enumerable:!0,get:o[t]})},n.o=(e,o)=>Object.prototype.hasOwnProperty.call(e,o),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var r={};return(()=>{n.r(r),n.d(r,{Coupon:()=>y,OrderInput:()=>V,default:()=>M,install:()=>j,version:()=>C});var e=n(379),o=n.n(e),t=n(977),i=(o()(t.Z,{insert:"head",singleton:!1}),t.Z.locals,{type:Boolean,default:!0}),a=n(197),l={name:"Coupon",components:{},props:{amount:[String,Number],title:String,expired:String,state:String,describe:String,symbol:{type:String,default:"¥"},unit:{type:String,default:"每100克"},btnText:{type:String,default:"去使用"},isCheckBox:Boolean,modelValue:Boolean,disabled:Boolean,showButton:i,border:Boolean},emits:["update:modelValue","change","ok"],setup:(e,{emit:o})=>({onChange:function(e){o("update:modelValue",e.target.checked),o("change",e.target.checked)},onClick:function(e){o("ok",e)}})},c={class:"gm-coupon-container"},d={class:"gm-coupon-offer"},u={class:"gm-coupon-symbol"},s={class:"gm-coupon-amount"},p={key:0,class:"gm-coupon-unit"},m={class:"gm-coupon-right"},g={class:"gm-coupon-info"},f={class:"gm-coupon-title"},h={class:"gm-coupon-describe mt8"},b={class:"gm-coupon-footer"},v={class:"color-gray"},x={key:0,class:"gm-coupon-state"};l.render=function(e,o){return(0,a.openBlock)(),(0,a.createBlock)("label",c,[(0,a.createVNode)("div",{class:["gm-coupon",{checked:e.modelValue,border:e.border,disabled:e.disabled}]},[(0,a.createVNode)("div",{class:["gm-coupon-left",{center:!e.unit}]},[(0,a.createVNode)("div",d,[(0,a.createVNode)("span",u,(0,a.toDisplayString)(e.symbol),1),(0,a.createVNode)("span",s,(0,a.toDisplayString)(e.amount),1)]),e.unit?((0,a.openBlock)(),(0,a.createBlock)("div",p,(0,a.toDisplayString)(e.unit),1)):(0,a.createCommentVNode)("v-if",!0)],2),(0,a.createVNode)("div",m,[(0,a.createVNode)("div",g,[(0,a.createVNode)("h3",f,(0,a.toDisplayString)(e.title),1),(0,a.createVNode)("div",h,(0,a.toDisplayString)(e.describe),1)]),(0,a.createCommentVNode)(" 是否使用check "),e.isCheckBox?((0,a.openBlock)(),(0,a.createBlock)(a.Fragment,{key:0},[(0,a.createVNode)("input",{type:"checkbox",class:"gm-coupon-input-checkbox",onChange:o[1]||(o[1]=(...o)=>e.onChange&&e.onChange(...o)),value:e.modelValue,disabled:e.disabled,onClick:o[2]||(o[2]=(0,a.withModifiers)((()=>{}),["stop"]))},null,40,["value","disabled"]),(0,a.createVNode)("span",{class:["gm-coupon-checkbox",{checked:e.modelValue}]},null,2)],64)):(0,a.createCommentVNode)("v-if",!0)])],2),(0,a.createVNode)("div",b,[(0,a.createVNode)("span",v,(0,a.toDisplayString)(e.expired),1),!e.showButton||e.isCheckBox||e.disabled?(0,a.createCommentVNode)("v-if",!0):((0,a.openBlock)(),(0,a.createBlock)("button",{key:0,class:"gm-coupon-btn",onClick:o[3]||(o[3]=(...o)=>e.onClick&&e.onClick(...o))},(0,a.toDisplayString)(e.btnText),1))]),e.state?((0,a.openBlock)(),(0,a.createBlock)("span",x,(0,a.toDisplayString)(e.state),1)):(0,a.createCommentVNode)("v-if",!0)])},l._scopeId="data-v-45ae645c";var y=l,k=n(819),S=(o()(k.Z,{insert:"head",singleton:!1}),k.Z.locals,{name:"OrderInput",props:{modelValue:[Number,String],placeholder:String,unit:{type:String,default:"克"},disabled:Boolean,decimal:[String,Number],multiple:[String,Number],max:[String,Number],min:[String,Number],showError:Boolean,isRequired:Boolean,label:String,immediate:Boolean},emits:["update:modelValue","update:isPass","blur"],setup(e,{emit:o}){var t=(0,a.reactive)({text:"",type:"",isError:!1}),n=(0,a.computed)((()=>{var o=null,t=[];return e.multiple?t=String(e.multiple).split("."):e.decimal&&(t=String(Math.pow(10,-1*e.decimal)).split(".")),t.length>1?o=t[t.length-1].length:1===t.length&&(o=0),o}));function r(e){if(Number.isInteger(+e))return 0;var o=e+"",t=o.indexOf(".");return o.substr(t+1).length}function i(e,o){var t=e<0,n=Math.pow(10,o),r=parseInt(Math.abs(e)*n+.5,10);return t&&(r=-r),r}return(0,a.watch)((()=>e.modelValue),(function(n){n=+n;var a,l,c,d={msg:"",type:"",isError:!1};e.isRequired&&!n?(d.msg=e.placeholder,d.type="required"):n<+e.min?(d.msg="最小需交".concat(e.min,"克"),d.type="min"):e.multiple&&(a=n,l=e.multiple,i(a,c=Math.max(r(a),r(l)))%i(l,c)!=0)?(d.msg="交割重量需为".concat(e.multiple,"的倍数"),d.type="multiple"):n>+e.max&&(d.msg="交割量不超过买入重量",d.type="max"),d.msg?o("update:isPass",!1):o("update:isPass",!0),t.text=d.msg,t.type=d.type,t.isError=Boolean(d.msg)}),{immediate:e.immediate}),{onInput:function(t){var{value:r}=t.target;(n.value||0===n.value)&&(r=function(e){var o=String(e),t=o.split(".");return 2===t.length&&t[1].length>n.value&&(o=0===n.value?t[0]:"".concat(t[0],".").concat(t[1].slice(0,n.value))),o}(r))&&(t.target.value=r),+e.min>=0&&(t.target.value=r),o("update:modelValue",r)},onBlur:function(e){o("blur",e)},error:t}}}),w={class:"gm-add-tip"},B={class:"gm-add-tip unit"},N={key:0,class:"gm-error-tip"};S.render=function(e,o){return(0,a.openBlock)(),(0,a.createBlock)("div",null,[(0,a.createVNode)("label",{class:["gm-add-label",{error:e.error.isError}]},[(0,a.createVNode)("span",w,[(0,a.renderSlot)(e.$slots,"left-icon",{},(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.label),1)]))]),(0,a.createVNode)("input",{class:"gm-add-weight",type:"number",inputmode:"decimal",min:e.min,max:e.max,value:e.modelValue,placeholder:e.placeholder,disabled:e.disabled,onInput:o[1]||(o[1]=(...o)=>e.onInput&&e.onInput(...o)),onBlur:o[2]||(o[2]=(...o)=>e.onBlur&&e.onBlur(...o))},null,40,["min","max","value","placeholder","disabled"]),(0,a.createVNode)("span",B,[(0,a.renderSlot)(e.$slots,"unit",{},(()=>[(0,a.createTextVNode)((0,a.toDisplayString)(e.unit),1)]))])],2),(0,a.renderSlot)(e.$slots,"error",{error:e.error},(()=>[e.showError&&e.error.text?((0,a.openBlock)(),(0,a.createBlock)("div",N,(0,a.toDisplayString)(e.error.text),1)):(0,a.createCommentVNode)("v-if",!0)]))])},S._scopeId="data-v-59b45dda";var V=S,C="2.0.6";function j(e){[y,V].forEach((o=>{o.install?e.use(o):o.name&&e.component(o.name,o)}))}var M={install:j,version:C}})(),r})()}));

@@ -27,3 +27,3 @@ "use strict";

var version = '2.0.4';
var version = '2.0.6';
exports.version = version;

@@ -30,0 +30,0 @@

{
"name": "goldmorning-ui",
"version": "2.0.5",
"version": "2.0.6",
"description": "",

@@ -5,0 +5,0 @@ "style": "lib/index.css",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc