@calibur/sakura
Advanced tools
Comparing version 1.2.9 to 1.2.10
@@ -1,1 +0,1 @@ | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=37)}({0:function(e,t,r){"use strict";function n(e,t,r,n,o,i,s,a){var c,l="function"==typeof e?e.options:e;if(t&&(l.render=t,l.staticRenderFns=r,l._compiled=!0),n&&(l.functional=!0),i&&(l._scopeId="data-v-"+i),s?(c=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},l._ssrRegister=c):o&&(c=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(l.functional){l._injectStyles=c;var u=l.render;l.render=function(e,t){return c.call(t),u(e,t)}}else{var d=l.beforeCreate;l.beforeCreate=d?[].concat(d,c):[c]}return{exports:e,options:l}}r.d(t,"a",(function(){return n}))},37:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"v-field",style:e.fieldWrapStyle},[r("div",{staticClass:"v-field__before",class:{"v-field__before--line":e.beforeLine,"v-field__before--has":e.hasBefore}},[e._t("before")],2),e._v(" "),r("div",{staticClass:"v-field__main"},[e._t("main",[e.showClose&&e.score?r("div",{staticClass:"v-field__cancel",on:{click:e.clear}},[r("i",{staticClass:"bili-font ic_input_close"})]):e._e(),e._v(" "),r("div",{staticClass:"v-field__input",class:{"v-field__input--error":e.showError,"v-field__input--close":e.showClose}},["checkbox"===e.inputAttr.type&&e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled,type:"checkbox"},domProps:{checked:Array.isArray(e.score)?e._i(e.score,null)>-1:e.score},on:{change:function(t){var r=e.score,n=t.target,o=!!n.checked;if(Array.isArray(r)){var i=e._i(r,null);n.checked?i<0&&(e.score=r.concat([null])):i>-1&&(e.score=r.slice(0,i).concat(r.slice(i+1)))}else e.score=o}}},"input",e.inputAttr,!1)):"radio"===e.inputAttr.type&&e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled,type:"radio"},domProps:{checked:e._q(e.score,null)},on:{change:function(t){e.score=null}}},"input",e.inputAttr,!1)):e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled,type:e.inputAttr.type},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"input",e.inputAttr,!1)):r("div",{staticClass:"v-field__textarea"},[e.isAutoSize?r("div",{class:{"v-field__textarea--auto":e.isAutoSize}},[e.isAutoSize?r("pre",{style:e.preShimStyle,domProps:{textContent:e._s(e.score)}}):e._e(),e._v(" "),r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"textarea",e.inputAttr,!1))]):r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled,rows:e.minRow},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"textarea",e.inputAttr,!1)),e._v(" "),e.counter?r("div",{staticClass:"v-field__counter",domProps:{textContent:e._s(e.maxLen?e.score.length+"/"+e.maxLen:e.score.length)}}):e._e()])])])],2),e._v(" "),r("div",{staticClass:"v-field__after",class:{"v-field__after--line":e.afterLine,"v-field__after--has":e.hasAfter}},[e._t("after")],2)])};n._withStripped=!0;r(52);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={name:"VField",props:{value:{type:String,required:!0},attr:{type:Object,default:function(){return{type:"text"}}},minRow:{type:Number,default:1},maxRow:{type:Number,default:1},maxLen:{type:Number,default:0},placeholder:{type:String,default:"请输入"},close:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},counter:{type:Boolean,default:!1},beforeLine:{type:Boolean,default:!1},afterLine:{type:Boolean,default:!1},error:{type:Number,default:0},align:{type:String,default:"start"}},data:function(){return{score:this.value,showError:!!this.error}},computed:{hasBefore:function(){return!!this.$slots.before},hasAfter:function(){return!!this.$slots.after},showClose:function(){return this.close&&this.isInput&&!this.disabled},inputAttr:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({placeholder:this.placeholder},this.attr);return this.maxLen&&(e.maxLength=this.maxLen),e},isInput:function(){return 1===this.minRow&&1===this.maxRow},isAutoSize:function(){return this.maxRow>this.minRow||0===this.maxRow},preShimStyle:function(){var e={};return this.maxRow&&(e["-webkit-line-clamp"]=this.maxRow),this.minRow>1&&(e["min-height"]="".concat(20*this.minRow,"px")),e},fieldWrapStyle:function(){var e={};return"end"===this.align?e.alignItems="flex-end":"center"===this.align?e.alignItems="center":e.alignItems="flex-start",e}},watch:{value:function(e){this.showError=!1,this.score=e},score:function(e){this.showError=!1,this.$emit("input",e.trim())},error:function(e){this.showError=!!e}},methods:{clear:function(){this.score=""}}},a=r(0),c=Object(a.a)(s,n,[],!1,null,null,null);c.options.__file="src/components/field/field.vue";var l=c.exports;t.default=l},52:function(e,t,r){}})})); | ||
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports["@calibur/sakura"]=t():e["@calibur/sakura"]=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=37)}({0:function(e,t,r){"use strict";function n(e,t,r,n,o,i,s,a){var l,c="function"==typeof e?e.options:e;if(t&&(c.render=t,c.staticRenderFns=r,c._compiled=!0),n&&(c.functional=!0),i&&(c._scopeId="data-v-"+i),s?(l=function(e){(e=e||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(e=__VUE_SSR_CONTEXT__),o&&o.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(s)},c._ssrRegister=l):o&&(l=a?function(){o.call(this,this.$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(e,t){return l.call(t),u(e,t)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:e,options:c}}r.d(t,"a",(function(){return n}))},37:function(e,t,r){"use strict";r.r(t);var n=function(){var e=this,t=e.$createElement,r=e._self._c||t;return r("div",{staticClass:"v-field",style:e.fieldWrapStyle},[r("div",{staticClass:"v-field__before",class:{"v-field__before--line":e.beforeLine,"v-field__before--has":e.hasBefore}},[e.label?[e._v("\n "+e._s(e.label)+"\n ")]:[e._t("before")]],2),e._v(" "),r("div",{staticClass:"v-field__main"},[e._t("main",[e.showClose&&e.score?r("div",{staticClass:"v-field__cancel",on:{click:e.clear}},[r("i",{staticClass:"bili-font ic_input_close"})]):e._e(),e._v(" "),r("div",{staticClass:"v-field__input",class:{"v-field__input--error":e.showError,"v-field__input--close":e.showClose}},["checkbox"===e.inputAttr.type&&e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled,type:"checkbox"},domProps:{checked:Array.isArray(e.score)?e._i(e.score,null)>-1:e.score},on:{change:function(t){var r=e.score,n=t.target,o=!!n.checked;if(Array.isArray(r)){var i=e._i(r,null);n.checked?i<0&&(e.score=r.concat([null])):i>-1&&(e.score=r.slice(0,i).concat(r.slice(i+1)))}else e.score=o}}},"input",e.inputAttr,!1)):"radio"===e.inputAttr.type&&e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled,type:"radio"},domProps:{checked:e._q(e.score,null)},on:{change:function(t){e.score=null}}},"input",e.inputAttr,!1)):e.isInput?r("input",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled,type:e.inputAttr.type},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"input",e.inputAttr,!1)):r("div",{staticClass:"v-field__textarea"},[e.isAutoSize?r("div",{class:{"v-field__textarea--auto":e.isAutoSize}},[e.isAutoSize?r("pre",{style:e.preShimStyle,domProps:{textContent:e._s(e.score)}}):e._e(),e._v(" "),r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"textarea",e.inputAttr,!1))]):r("textarea",e._b({directives:[{name:"model",rawName:"v-model",value:e.score,expression:"score"}],attrs:{disabled:e.disabled,rows:e.minRow},domProps:{value:e.score},on:{input:function(t){t.target.composing||(e.score=t.target.value)}}},"textarea",e.inputAttr,!1)),e._v(" "),e.counter?r("div",{staticClass:"v-field__counter",domProps:{textContent:e._s(e.maxLen?e.score.length+"/"+e.maxLen:e.score.length)}}):e._e()])])])],2),e._v(" "),r("div",{staticClass:"v-field__after",class:{"v-field__after--line":e.afterLine,"v-field__after--has":e.hasAfter}},[e._t("after")],2)])};n._withStripped=!0;r(52);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var s={name:"VField",props:{value:{type:String,required:!0},attr:{type:Object,default:function(){return{type:"text"}}},minRow:{type:Number,default:1},maxRow:{type:Number,default:1},maxLen:{type:Number,default:0},placeholder:{type:String,default:"请输入"},label:{type:String,default:""},close:{type:Boolean,default:!0},disabled:{type:Boolean,default:!1},counter:{type:Boolean,default:!1},beforeLine:{type:Boolean,default:!1},afterLine:{type:Boolean,default:!1},error:{type:Number,default:0},align:{type:String,default:"start"}},data:function(){return{score:this.value,showError:!!this.error}},computed:{hasBefore:function(){return!!this.$slots.before||this.label},hasAfter:function(){return!!this.$slots.after},showClose:function(){return this.close&&this.isInput&&!this.disabled},inputAttr:function(){var e=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){i(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({placeholder:this.placeholder},this.attr);return this.maxLen&&(e.maxLength=this.maxLen),e},isInput:function(){return 1===this.minRow&&1===this.maxRow},isAutoSize:function(){return this.maxRow>this.minRow||0===this.maxRow},preShimStyle:function(){var e={};return this.maxRow&&(e["-webkit-line-clamp"]=this.maxRow),this.minRow>1&&(e["min-height"]="".concat(20*this.minRow,"px")),e},fieldWrapStyle:function(){var e={};return"end"===this.align?e.alignItems="flex-end":"center"===this.align?e.alignItems="center":e.alignItems="flex-start",e}},watch:{value:function(e){this.showError=!1,this.score=e},score:function(e){this.showError=!1,this.$emit("input",e.trim())},error:function(e){this.showError=!!e}},methods:{clear:function(){this.score=""}}},a=r(0),l=Object(a.a)(s,n,[],!1,null,null,null);l.options.__file="src/components/field/field.vue";var c=l.exports;t.default=c},52:function(e,t,r){}})})); |
{ | ||
"name": "@calibur/sakura", | ||
"version": "1.2.9", | ||
"version": "1.2.10", | ||
"description": "bilibili h5 vue components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
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
784559