goldmorning-ui
Advanced tools
Comparing version 1.1.6 to 1.1.7
@@ -28,3 +28,4 @@ import './index-sfc.css'; | ||
showButton: trueProp, | ||
border: Boolean | ||
border: Boolean, | ||
leftTopImg: String | ||
}, | ||
@@ -54,3 +55,3 @@ emits: ['update:modelValue', 'change', 'ok'], | ||
}; | ||
import { toDisplayString as _toDisplayString, createVNode as _createVNode, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, Fragment as _Fragment } from "vue"; | ||
import { toDisplayString as _toDisplayString, createVNode as _createVNode, renderSlot as _renderSlot, openBlock as _openBlock, createBlock as _createBlock, createCommentVNode as _createCommentVNode, withModifiers as _withModifiers, Fragment as _Fragment } from "vue"; | ||
var _hoisted_1 = { | ||
@@ -63,12 +64,12 @@ class: "gm-coupon-container" | ||
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" | ||
class: "gm-coupon-unit" | ||
}; | ||
var _hoisted_6 = { | ||
class: "gm-coupon-unit" | ||
class: "extra-unit" | ||
}; | ||
@@ -111,9 +112,20 @@ var _hoisted_7 = { | ||
}] | ||
}, [_createVNode("div", _hoisted_2, [_createVNode("div", _hoisted_3, [_createVNode("span", _hoisted_4, _toDisplayString(_ctx.symbol), 1 | ||
}, [_createVNode("div", _hoisted_2, [_createVNode("div", { | ||
class: ["gm-coupon-offer", { | ||
pt12: _ctx.leftTopImg | ||
}] | ||
}, [_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 | ||
)], 2 | ||
/* CLASS */ | ||
), _createVNode("div", _hoisted_5, _toDisplayString(_ctx.unit), 1 | ||
/* TEXT */ | ||
)]), _createVNode("div", { | ||
), _renderSlot(_ctx.$slots, "left-extra", {}, () => [_createVNode("div", _hoisted_6, [_createVNode("img", { | ||
src: _ctx.leftTopImg, | ||
alt: "" | ||
}, null, 8 | ||
/* PROPS */ | ||
, ["src"])])])]), _createVNode("div", { | ||
class: ["gm-coupon-mask", { | ||
@@ -171,3 +183,3 @@ checked: _ctx.modelValue | ||
__vue_sfc__.render = __vue_render__; | ||
__vue_sfc__._scopeId = 'data-v-55d27fe4'; | ||
__vue_sfc__._scopeId = 'data-v-6f180713'; | ||
export default __vue_sfc__; |
import Coupon from './coupon'; | ||
import OrderInput from './order-input'; | ||
var version = '1.1.6'; | ||
var version = '1.1.7'; | ||
@@ -5,0 +5,0 @@ function install(app) { |
@@ -229,3 +229,3 @@ import './index-sfc.css'; | ||
__vue_sfc__.render = __vue_render__; | ||
__vue_sfc__._scopeId = 'data-v-1e5eaaf4'; | ||
__vue_sfc__._scopeId = 'data-v-502097c0'; | ||
export default __vue_sfc__; |
@@ -39,3 +39,4 @@ "use strict"; | ||
showButton: _const.trueProp, | ||
border: Boolean | ||
border: Boolean, | ||
leftTopImg: String | ||
}, | ||
@@ -72,12 +73,12 @@ emits: ['update:modelValue', 'change', 'ok'], | ||
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" | ||
class: "gm-coupon-unit" | ||
}; | ||
var _hoisted_6 = { | ||
class: "gm-coupon-unit" | ||
class: "extra-unit" | ||
}; | ||
@@ -120,9 +121,20 @@ var _hoisted_7 = { | ||
}] | ||
}, [(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", _hoisted_2, [(0, _vue.createVNode)("div", { | ||
class: ["gm-coupon-offer", { | ||
pt12: _ctx.leftTopImg | ||
}] | ||
}, [(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 | ||
)], 2 | ||
/* CLASS */ | ||
), (0, _vue.createVNode)("div", _hoisted_5, (0, _vue.toDisplayString)(_ctx.unit), 1 | ||
/* TEXT */ | ||
)]), (0, _vue.createVNode)("div", { | ||
), (0, _vue.renderSlot)(_ctx.$slots, "left-extra", {}, () => [(0, _vue.createVNode)("div", _hoisted_6, [(0, _vue.createVNode)("img", { | ||
src: _ctx.leftTopImg, | ||
alt: "" | ||
}, null, 8 | ||
/* PROPS */ | ||
, ["src"])])])]), (0, _vue.createVNode)("div", { | ||
class: ["gm-coupon-mask", { | ||
@@ -180,4 +192,4 @@ checked: _ctx.modelValue | ||
__vue_sfc__.render = __vue_render__; | ||
__vue_sfc__._scopeId = 'data-v-55d27fe4'; | ||
__vue_sfc__._scopeId = 'data-v-6f180713'; | ||
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:#c9272f;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#999;--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{height:82px;display:block;border-radius:6px;overflow:hidden}.gm-coupon{display:flex;height:100%;position:relative;overflow:hidden;background-color:var(--gm-color-white);font-family:var(--gm-family);-webkit-mask-image:radial-gradient(circle at 104px 0,transparent 6px,red 0),radial-gradient(circle at 104px 82px,transparent 6px,red 0);-webkit-mask-composite:destination-in;mask-composite:intersect}.gm-coupon.disabled{opacity:.4}.gm-coupon.border::after{border:1px solid #eee}.gm-coupon::after{content:'';position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border-radius:6px;transition:all .3s ease}.gm-coupon.checked::after{background-color:rgba(195,37,45,.05);border-color:rgba(195,37,45,.5)}.gm-coupon-left{width:98px;align-items:center;display:flex;flex-direction:column;justify-content:center}.gm-coupon-offer{margin-bottom:4px}.gm-coupon-symbol{color:var(--gm-color-primary);font-size:18px;font-weight:800;line-height:25px;margin-right:2px}.gm-coupon-amount{color:var(--gm-color-primary);font-family:var(--gm-family-number-heavy);font-size:32px;font-weight:400;line-height:36px}.gm-coupon-describe,.gm-coupon-expired,.gm-coupon-unit{font-size:12px;font-weight:400;color:var(--gm-color-sub);line-height:17px}.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{flex:1 1 0;overflow:hidden;position:relative;z-index:2;display:flex;margin-left:6px;margin-right:12px;align-items:center}.gm-coupon-describe.describe{margin-top:2px;margin-bottom:2px}.gm-coupon-info{flex:1 1 0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.gm-coupon-title{font-size:14px;font-family:var(--gm-family-medium);font-weight:500;color:#333;line-height:20px;margin-top:0}.gm-coupon-title.mb4{margin-bottom: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:#fe6632;border-radius:0 6px 0 6px;padding:1px 4px;font-size:12px;font-weight:400;color:rgba(255,255,255,.9);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:16px;height:16px}.gm-coupon-checkbox.checked{background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20210803/1752121jyuum.svg)}.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}", ""]); | ||
___CSS_LOADER_EXPORT___.push([module.id, ":root{--gm-color-white:#fff;--gm-color-primary:#c9272f;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#999;--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{height:82px;display:block;border-radius:6px;overflow:hidden}.gm-coupon{display:flex;height:100%;position:relative;overflow:hidden;background-color:var(--gm-color-white);font-family:var(--gm-family);-webkit-mask-image:radial-gradient(circle at 104px 0,transparent 6px,red 0),radial-gradient(circle at 104px 82px,transparent 6px,red 0);-webkit-mask-composite:destination-in;mask-composite:intersect}.gm-coupon.disabled{opacity:.4}.gm-coupon.border::after{border:1px solid #eee}.gm-coupon::after{content:'';position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border-radius:6px;transition:all .3s ease}.gm-coupon.checked::after{background-color:rgba(195,37,45,.05);border-color:rgba(195,37,45,.5)}.gm-coupon-left{width:98px;align-items:center;display:flex;flex-direction:column;justify-content:center;position:relative}.gm-coupon-offer{margin-bottom:4px}.gm-coupon-offer.pt12{padding-top:12px}.gm-coupon-symbol{color:var(--gm-color-primary);font-size:18px;font-weight:800;line-height:25px;margin-right:2px}.gm-coupon-amount{color:var(--gm-color-primary);font-family:var(--gm-family-number-heavy);font-size:32px;font-weight:400;line-height:36px}.gm-coupon-describe,.gm-coupon-expired,.gm-coupon-unit{font-size:12px;font-weight:400;color:var(--gm-color-sub);line-height:17px}.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{flex:1 1 0;overflow:hidden;position:relative;z-index:2;display:flex;margin-left:6px;margin-right:12px;align-items:center}.gm-coupon-describe.describe{margin-top:2px;margin-bottom:2px}.gm-coupon-info{flex:1 1 0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.gm-coupon-title{font-size:14px;font-family:var(--gm-family-medium);font-weight:500;color:#333;line-height:20px;margin-top:0}.gm-coupon-title.mb4{margin-bottom: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:#fe6632;border-radius:0 6px 0 6px;padding:1px 4px;font-size:12px;font-weight:400;color:rgba(255,255,255,.9);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:16px;height:16px}.gm-coupon-checkbox.checked{background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20210803/1752121jyuum.svg)}.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}.extra-unit{position:absolute;top:0;width:72px;font-size:0}.extra-unit img{width:100%}", ""]); | ||
// Exports | ||
@@ -567,3 +567,4 @@ /* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___); | ||
showButton: trueProp, | ||
border: Boolean | ||
border: Boolean, | ||
leftTopImg: String | ||
}, | ||
@@ -601,12 +602,12 @@ emits: ['update:modelValue', 'change', 'ok'], | ||
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" | ||
class: "gm-coupon-unit" | ||
}; | ||
var _hoisted_6 = { | ||
class: "gm-coupon-unit" | ||
class: "extra-unit" | ||
}; | ||
@@ -649,9 +650,20 @@ var _hoisted_7 = { | ||
}] | ||
}, [(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", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", { | ||
class: ["gm-coupon-offer", { | ||
pt12: _ctx.leftTopImg | ||
}] | ||
}, [(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 | ||
)], 2 | ||
/* CLASS */ | ||
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("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", { | ||
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderSlot)(_ctx.$slots, "left-extra", {}, () => [(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)("img", { | ||
src: _ctx.leftTopImg, | ||
alt: "" | ||
}, null, 8 | ||
/* PROPS */ | ||
, ["src"])])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)("div", { | ||
class: ["gm-coupon-mask", { | ||
@@ -709,3 +721,3 @@ checked: _ctx.modelValue | ||
__vue_sfc__.render = __vue_render__; | ||
__vue_sfc__._scopeId = 'data-v-55d27fe4'; | ||
__vue_sfc__._scopeId = 'data-v-6f180713'; | ||
/* harmony default export */ var coupon = (__vue_sfc__); | ||
@@ -957,3 +969,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 | ||
order_input_vue_sfc_.render = order_input_vue_render_; | ||
order_input_vue_sfc_._scopeId = 'data-v-1e5eaaf4'; | ||
order_input_vue_sfc_._scopeId = 'data-v-502097c0'; | ||
/* harmony default export */ var order_input = (order_input_vue_sfc_); | ||
@@ -963,3 +975,3 @@ ;// CONCATENATED MODULE: ./es/index.js | ||
var version = '1.1.6'; | ||
var version = '1.1.7'; | ||
@@ -966,0 +978,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 c=(t=a,r=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),"/*# ".concat(n," */")),l=a.sources.map((function(e){return"/*# sourceURL=".concat(a.sourceRoot||"").concat(e," */")}));return[i].concat(l).concat([c]).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 c=0;c<e.length;c++){var l=[].concat(e[c]);r&&n[l[0]]||(t&&(l[2]?l[2]="".concat(t," and ").concat(l[2]):l[2]=t),o.push(l))}},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:#c9272f;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#999;--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{height:82px;display:block;border-radius:6px;overflow:hidden}.gm-coupon{display:flex;height:100%;position:relative;overflow:hidden;background-color:var(--gm-color-white);font-family:var(--gm-family);-webkit-mask-image:radial-gradient(circle at 104px 0,transparent 6px,red 0),radial-gradient(circle at 104px 82px,transparent 6px,red 0);-webkit-mask-composite:destination-in;mask-composite:intersect}.gm-coupon.disabled{opacity:.4}.gm-coupon.border::after{border:1px solid #eee}.gm-coupon::after{content:'';position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border-radius:6px;transition:all .3s ease}.gm-coupon.checked::after{background-color:rgba(195,37,45,.05);border-color:rgba(195,37,45,.5)}.gm-coupon-left{width:98px;align-items:center;display:flex;flex-direction:column;justify-content:center}.gm-coupon-offer{margin-bottom:4px}.gm-coupon-symbol{color:var(--gm-color-primary);font-size:18px;font-weight:800;line-height:25px;margin-right:2px}.gm-coupon-amount{color:var(--gm-color-primary);font-family:var(--gm-family-number-heavy);font-size:32px;font-weight:400;line-height:36px}.gm-coupon-describe,.gm-coupon-expired,.gm-coupon-unit{font-size:12px;font-weight:400;color:var(--gm-color-sub);line-height:17px}.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{flex:1 1 0;overflow:hidden;position:relative;z-index:2;display:flex;margin-left:6px;margin-right:12px;align-items:center}.gm-coupon-describe.describe{margin-top:2px;margin-bottom:2px}.gm-coupon-info{flex:1 1 0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.gm-coupon-title{font-size:14px;font-family:var(--gm-family-medium);font-weight:500;color:#333;line-height:20px;margin-top:0}.gm-coupon-title.mb4{margin-bottom: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:#fe6632;border-radius:0 6px 0 6px;padding:1px 4px;font-size:12px;font-weight:400;color:rgba(255,255,255,.9);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:16px;height:16px}.gm-coupon-checkbox.checked{background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20210803/1752121jyuum.svg)}.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}",""]),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:#c9272f;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#999;--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}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 c(e,o){for(var t={},r=[],n=0;n<e.length;n++){var c=e[n],l=o.base?c[0]+o.base:c[0],s=t[l]||0,d="".concat(l," ").concat(s);t[l]=s+1;var u=a(d),p={css:c[1],media:c[2],sourceMap:c[3]};-1!==u?(i[u].references++,i[u].updater(p)):i.push({identifier:d,updater:f(p,o),references:1}),r.push(d)}return r}function l(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 s,d=(s=[],function(e,o){return s[e]=o,s.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=d(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=l(o)),r=u.bind(null,t,i,!1),n=u.bind(null,t,i,!0)}else t=l(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=c(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 l=c(e,o),s=0;s<t.length;s++){var d=a(t[s]);0===i[d].references&&(i[d].updater(),i.splice(d,1))}t=l}}}},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:()=>j,version:()=>M});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),c={name:"Coupon",components:{},props:{amount:[String,Number],title:String,expired:String,state:String,describe:String,symbol:{type:String,default:"+"},unit:{type:String,default:"单位:元/克"},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)}})},l={class:"gm-coupon-container"},s={class:"gm-coupon-left"},d={class:"gm-coupon-offer"},u={class:"gm-coupon-symbol"},p={class:"gm-coupon-amount"},m={class:"gm-coupon-unit"},g={key:0,class:"gm-coupon-mask--before"},f=(0,a.createVNode)("div",{class:"gm-coupon-mask--line"},null,-1),b={key:1,class:"gm-coupon-mask--after"},h={class:"gm-coupon-right"},v={class:"gm-coupon-info"},x={class:"gm-coupon-expired"},y={key:0,class:"gm-coupon-state"};c.render=function(e,o){return(0,a.openBlock)(),(0,a.createBlock)("label",l,[(0,a.createVNode)("div",{class:["gm-coupon",{checked:e.modelValue,border:e.border,disabled:e.disabled}]},[(0,a.createVNode)("div",s,[(0,a.createVNode)("div",d,[(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",{class:["gm-coupon-mask",{checked:e.modelValue}]},[e.border?((0,a.openBlock)(),(0,a.createBlock)("div",g)):(0,a.createCommentVNode)("v-if",!0),f,e.border?((0,a.openBlock)(),(0,a.createBlock)("div",b)):(0,a.createCommentVNode)("v-if",!0)],2),(0,a.createVNode)("div",h,[(0,a.createVNode)("div",v,[(0,a.createVNode)("h3",{class:["gm-coupon-title",{mb4:!e.describe}]},(0,a.toDisplayString)(e.title),3),(0,a.createVNode)("div",{class:["gm-coupon-describe",{describe:e.describe}]},(0,a.toDisplayString)(e.describe),3),(0,a.createVNode)("div",x,(0,a.toDisplayString)(e.expired),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),!e.showButton||e.isCheckBox||e.disabled?(0,a.createCommentVNode)("v-if",!0):((0,a.openBlock)(),(0,a.createBlock)("button",{key:1,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)],2)])},c._scopeId="data-v-55d27fe4";var k=c,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:"克"},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,c,l,s={msg:"",type:"",isError:!1};e.isRequired&&!r?(s.msg=e.placeholder,s.type="required"):r<+e.min?(s.msg="最小需交".concat(e.min,"克"),s.type="min"):e.multiple&&(a=r,c=e.multiple,i(a,l=Math.max(n(a),n(c)))%i(c,l)!=0)?(s.msg="交割重量需为".concat(e.multiple,"的倍数"),s.type="multiple"):r>+e.max&&(s.msg="交割量不超过买入重量",s.type="max"),s.msg?o("update:isPass",!1):o("update:isPass",!0),t.text=s.msg,t.type=s.type,t.isError=Boolean(s.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"},V={class:"gm-add-tip unit"},B={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,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"]),(0,a.createVNode)("span",V,[(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",B,(0,a.toDisplayString)(e.error.text),1)):(0,a.createCommentVNode)("v-if",!0)]))])},w._scopeId="data-v-1e5eaaf4";var C=w,M="1.1.6";function j(e){[k,C].forEach((o=>{o.install?e.use(o):o.name&&e.component(o.name,o)}))}var z={install:j,version:M}})(),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,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:#c9272f;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#999;--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{height:82px;display:block;border-radius:6px;overflow:hidden}.gm-coupon{display:flex;height:100%;position:relative;overflow:hidden;background-color:var(--gm-color-white);font-family:var(--gm-family);-webkit-mask-image:radial-gradient(circle at 104px 0,transparent 6px,red 0),radial-gradient(circle at 104px 82px,transparent 6px,red 0);-webkit-mask-composite:destination-in;mask-composite:intersect}.gm-coupon.disabled{opacity:.4}.gm-coupon.border::after{border:1px solid #eee}.gm-coupon::after{content:'';position:absolute;z-index:1;top:0;left:0;right:0;bottom:0;border-radius:6px;transition:all .3s ease}.gm-coupon.checked::after{background-color:rgba(195,37,45,.05);border-color:rgba(195,37,45,.5)}.gm-coupon-left{width:98px;align-items:center;display:flex;flex-direction:column;justify-content:center;position:relative}.gm-coupon-offer{margin-bottom:4px}.gm-coupon-offer.pt12{padding-top:12px}.gm-coupon-symbol{color:var(--gm-color-primary);font-size:18px;font-weight:800;line-height:25px;margin-right:2px}.gm-coupon-amount{color:var(--gm-color-primary);font-family:var(--gm-family-number-heavy);font-size:32px;font-weight:400;line-height:36px}.gm-coupon-describe,.gm-coupon-expired,.gm-coupon-unit{font-size:12px;font-weight:400;color:var(--gm-color-sub);line-height:17px}.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{flex:1 1 0;overflow:hidden;position:relative;z-index:2;display:flex;margin-left:6px;margin-right:12px;align-items:center}.gm-coupon-describe.describe{margin-top:2px;margin-bottom:2px}.gm-coupon-info{flex:1 1 0;overflow:hidden;display:flex;flex-direction:column;justify-content:center}.gm-coupon-title{font-size:14px;font-family:var(--gm-family-medium);font-weight:500;color:#333;line-height:20px;margin-top:0}.gm-coupon-title.mb4{margin-bottom: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:#fe6632;border-radius:0 6px 0 6px;padding:1px 4px;font-size:12px;font-weight:400;color:rgba(255,255,255,.9);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:16px;height:16px}.gm-coupon-checkbox.checked{background-image:url(https://gm-itrade-1255882558.cos.ap-guangzhou.myqcloud.com/GM_ITRADE/base/20210803/1752121jyuum.svg)}.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}.extra-unit{position:absolute;top:0;width:72px;font-size:0}.extra-unit img{width:100%}",""]),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:#c9272f;--gm-color-error:#fa5151;--gm-color-main:#000;--gm-color-sub:#646566;--gm-color-gray:#999;--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}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],s=t[c]||0,d="".concat(c," ").concat(s);t[c]=s+1;var u=a(d),p={css:l[1],media:l[2],sourceMap:l[3]};-1!==u?(i[u].references++,i[u].updater(p)):i.push({identifier:d,updater:f(p,o),references:1}),r.push(d)}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 s,d=(s=[],function(e,o){return s[e]=o,s.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=d(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),s=0;s<t.length;s++){var d=a(t[s]);0===i[d].references&&(i[d].updater(),i.splice(d,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:()=>j,version:()=>M});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:"单位:元/克"},btnText:{type:String,default:"去使用"},isCheckBox:Boolean,modelValue:Boolean,disabled:Boolean,showButton:i,border:Boolean,leftTopImg:String},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"},s={class:"gm-coupon-left"},d={class:"gm-coupon-symbol"},u={class:"gm-coupon-amount"},p={class:"gm-coupon-unit"},m={class:"extra-unit"},g={key:0,class:"gm-coupon-mask--before"},f=(0,a.createVNode)("div",{class:"gm-coupon-mask--line"},null,-1),b={key:1,class:"gm-coupon-mask--after"},h={class:"gm-coupon-right"},x={class:"gm-coupon-info"},v={class:"gm-coupon-expired"},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",s,[(0,a.createVNode)("div",{class:["gm-coupon-offer",{pt12:e.leftTopImg}]},[(0,a.createVNode)("span",d,(0,a.toDisplayString)(e.symbol),1),(0,a.createVNode)("span",u,(0,a.toDisplayString)(e.amount),1)],2),(0,a.createVNode)("div",p,(0,a.toDisplayString)(e.unit),1),(0,a.renderSlot)(e.$slots,"left-extra",{},(()=>[(0,a.createVNode)("div",m,[(0,a.createVNode)("img",{src:e.leftTopImg,alt:""},null,8,["src"])])]))]),(0,a.createVNode)("div",{class:["gm-coupon-mask",{checked:e.modelValue}]},[e.border?((0,a.openBlock)(),(0,a.createBlock)("div",g)):(0,a.createCommentVNode)("v-if",!0),f,e.border?((0,a.openBlock)(),(0,a.createBlock)("div",b)):(0,a.createCommentVNode)("v-if",!0)],2),(0,a.createVNode)("div",h,[(0,a.createVNode)("div",x,[(0,a.createVNode)("h3",{class:["gm-coupon-title",{mb4:!e.describe}]},(0,a.toDisplayString)(e.title),3),(0,a.createVNode)("div",{class:["gm-coupon-describe",{describe:e.describe}]},(0,a.toDisplayString)(e.describe),3),(0,a.createVNode)("div",v,(0,a.toDisplayString)(e.expired),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),!e.showButton||e.isCheckBox||e.disabled?(0,a.createCommentVNode)("v-if",!0):((0,a.openBlock)(),(0,a.createBlock)("button",{key:1,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)],2)])},l._scopeId="data-v-6f180713";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:"克"},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,s={msg:"",type:"",isError:!1};e.isRequired&&!r?(s.msg=e.placeholder,s.type="required"):r<+e.min?(s.msg="最小需交".concat(e.min,"克"),s.type="min"):e.multiple&&(a=r,l=e.multiple,i(a,c=Math.max(n(a),n(l)))%i(l,c)!=0)?(s.msg="交割重量需为".concat(e.multiple,"的倍数"),s.type="multiple"):r>+e.max&&(s.msg="交割量不超过买入重量",s.type="max"),s.msg?o("update:isPass",!1):o("update:isPass",!0),t.text=s.msg,t.type=s.type,t.isError=Boolean(s.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"},V={class:"gm-add-tip unit"},B={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,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"]),(0,a.createVNode)("span",V,[(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",B,(0,a.toDisplayString)(e.error.text),1)):(0,a.createCommentVNode)("v-if",!0)]))])},w._scopeId="data-v-502097c0";var C=w,M="1.1.7";function j(e){[k,C].forEach((o=>{o.install?e.use(o):o.name&&e.component(o.name,o)}))}var z={install:j,version:M}})(),n})()})); |
@@ -27,3 +27,3 @@ "use strict"; | ||
var version = '1.1.6'; | ||
var version = '1.1.7'; | ||
exports.version = version; | ||
@@ -30,0 +30,0 @@ |
@@ -237,4 +237,4 @@ "use strict"; | ||
__vue_sfc__.render = __vue_render__; | ||
__vue_sfc__._scopeId = 'data-v-1e5eaaf4'; | ||
__vue_sfc__._scopeId = 'data-v-502097c0'; | ||
var _default = __vue_sfc__; | ||
exports.default = _default; |
{ | ||
"name": "goldmorning-ui", | ||
"version": "1.1.6", | ||
"version": "1.1.7", | ||
"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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
121422
1646