@calibur/sakura
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -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 i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=41)}({0:function(e,t,i){"use strict";function n(e,t,i,n,s,r,o,l){var a,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(a=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__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=a):s&&(a=l?function(){s.call(this,this.$root.$options.shadowRoot)}:s),a)if(d.functional){d._injectStyles=a;var c=d.render;d.render=function(e,t){return a.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,a):[a]}return{exports:e,options:d}}i.d(t,"a",(function(){return n}))},41:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"v-radio",class:["v-radio--"+e.size,{"v-radio--circle":e.circle},e.inline?"v-radio--hoz":"v-radio--ver"]},[e.isSingle?i("div",{staticClass:"v-radio__item",class:{"is-disabled":e.disabled,"is-selected":e.selected},on:{click:e._singleToggle}},[i("div",{staticClass:"v-radio__label"}),e._v(" "),i("div",{staticClass:"v-radio__text",domProps:{textContent:e._s(e.text)}})]):i("div",{staticClass:"v-radio__list"},e._l(e.text,(function(t){return i("div",{key:e.pureText?t:t.value,staticClass:"v-radio__item",class:[{"is-disabled":e.disabled||!e.pureText&&t.disabled||e.max&&e.selected.length>=e.max&&-1===e.selected.indexOf(e.pureText?t:t.value)},{"is-selected":-1!==e.selected.indexOf(e.pureText?t:t.value)}],on:{click:function(i){return e._multiToggle(t)}}},[i("div",{staticClass:"v-radio__label"}),e._v(" "),i("div",{staticClass:"v-radio__text",domProps:{textContent:e._s(e.pureText?t:t.label)}})])})),0)])};n._withStripped=!0;i(61);var s={name:"VRadio",props:{value:{type:[Boolean,Array],required:!0},text:{type:[String,Array],required:!0},size:{type:String,default:"normal",validator:function(e){return~["normal","small"].indexOf(e)}},max:{type:Number,default:0},min:{type:Number,default:0},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},inline:{type:Boolean,default:!1}},data:function(){var e="[object Boolean]"===Object.prototype.toString.call(this.value);return{selected:this.value,pureText:!!e||"string"==typeof this.text[0],isSingle:e}},watch:{value:function(e){this.selected=e},selected:function(e){this.$emit("input",e)}},methods:{_singleToggle:function(){this.disabled||(this.selected=!this.selected)},_multiToggle:function(e){if(!(this.disabled||!this.pureText&&e.disabled)){var t=this.selected.indexOf(this.pureText?e:e.value);if(-1===t)this.max&&this.selected.length>=this.max||this.selected.push(this.pureText?e:e.value);else{if(this.min&&this.selected.length<=this.min)return;this.selected.splice(t,1)}}},checkAll:function(e){var t=this;this.isSingle?this.selected=e:e?(this.selected=[],this.text.forEach((function(e){t.selected.push(t.pureText?e:e.value)}))):this.selected=[]},toggleAll:function(){this.isSingle?this.selected=!this.selected:this.checkAll(!this.selected.length)}}},r=i(0),o=Object(r.a)(s,n,[],!1,null,null,null);o.options.__file="src/components/radio/radio.vue";var l=o.exports;t.default=l},61:function(e,t,i){}})})); | ||
!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 i(n){if(t[n])return t[n].exports;var s=t[n]={i:n,l:!1,exports:{}};return e[n].call(s.exports,s,s.exports,i),s.l=!0,s.exports}return i.m=e,i.c=t,i.d=function(e,t,n){i.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},i.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},i.t=function(e,t){if(1&t&&(e=i(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var s in e)i.d(n,s,function(t){return e[t]}.bind(null,s));return n},i.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=41)}({0:function(e,t,i){"use strict";function n(e,t,i,n,s,r,o,l){var a,d="function"==typeof e?e.options:e;if(t&&(d.render=t,d.staticRenderFns=i,d._compiled=!0),n&&(d.functional=!0),r&&(d._scopeId="data-v-"+r),o?(a=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__),s&&s.call(this,e),e&&e._registeredComponents&&e._registeredComponents.add(o)},d._ssrRegister=a):s&&(a=l?function(){s.call(this,this.$root.$options.shadowRoot)}:s),a)if(d.functional){d._injectStyles=a;var c=d.render;d.render=function(e,t){return a.call(t),c(e,t)}}else{var u=d.beforeCreate;d.beforeCreate=u?[].concat(u,a):[a]}return{exports:e,options:d}}i.d(t,"a",(function(){return n}))},41:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"v-radio",class:["v-radio--"+e.size,{"v-radio--circle":e.circle},e.inline?"v-radio--hoz":"v-radio--ver"]},[e.isSingle?i("div",{staticClass:"v-radio__item",class:{"is-disabled":e.disabled,"is-selected":e.selected},on:{click:e._singleToggle}},[i("div",{staticClass:"v-radio__label"}),e._v(" "),e.text?i("div",{staticClass:"v-radio__text",domProps:{textContent:e._s(e.text)}}):e._e()]):i("div",{staticClass:"v-radio__list"},e._l(e.text,(function(t){return i("div",{key:e.pureText?t:t.value,staticClass:"v-radio__item",class:[{"is-disabled":e.disabled||!e.pureText&&t.disabled||e.max&&e.selected.length>=e.max&&-1===e.selected.indexOf(e.pureText?t:t.value)},{"is-selected":-1!==e.selected.indexOf(e.pureText?t:t.value)}],on:{click:function(i){return e._multiToggle(t)}}},[i("div",{staticClass:"v-radio__label"}),e._v(" "),i("div",{staticClass:"v-radio__text",domProps:{textContent:e._s(e.pureText?t:t.label)}})])})),0)])};n._withStripped=!0;i(61);var s={name:"VRadio",props:{value:{type:[Boolean,Array],required:!0},text:{type:[String,Array],required:!0},size:{type:String,default:"normal",validator:function(e){return~["normal","small"].indexOf(e)}},max:{type:Number,default:0},min:{type:Number,default:0},disabled:{type:Boolean,default:!1},circle:{type:Boolean,default:!1},inline:{type:Boolean,default:!1},readonly:{type:Boolean,default:!1}},data:function(){var e="[object Boolean]"===Object.prototype.toString.call(this.value);return{selected:this.value,pureText:!!e||"string"==typeof this.text[0],isSingle:e}},watch:{value:function(e){this.selected=e},selected:function(e){this.$emit("input",e)}},methods:{_singleToggle:function(){this.disabled||this.readonly||(this.selected=!this.selected)},_multiToggle:function(e){if(!(this.disabled||this.readonly||!this.pureText&&e.disabled)){var t=this.selected.indexOf(this.pureText?e:e.value);if(-1===t)this.max&&this.selected.length>=this.max||this.selected.push(this.pureText?e:e.value);else{if(this.min&&this.selected.length<=this.min)return;this.selected.splice(t,1)}}},checkAll:function(e){var t=this;this.isSingle?this.selected=e:e?(this.selected=[],this.text.forEach((function(e){t.selected.push(t.pureText?e:e.value)}))):this.selected=[]},toggleAll:function(){this.isSingle?this.selected=!this.selected:this.checkAll(!this.selected.length)}}},r=i(0),o=Object(r.a)(s,n,[],!1,null,null,null);o.options.__file="src/components/radio/radio.vue";var l=o.exports;t.default=l},61:function(e,t,i){}})})); |
{ | ||
"name": "@calibur/sakura", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "bilibili h5 vue components", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is too big to display
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
780976