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

@form-create/component-elm-select

Package Overview
Dependencies
Maintainers
1
Versions
40
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@form-create/component-elm-select - npm Package Compare versions

Comparing version 3.0.0-alpha.1 to 3.0.0-alpha.3

16

dist/index.esm.js

@@ -1,2 +0,8 @@

import { defineComponent, toRefs, inject, toRef, computed, createVNode, resolveComponent, mergeProps } from 'vue';
/*!
* @form-create/component-elm-select v3.0.0-alpha.3
* (c) 2018-2021 xaboy
* Github https://github.com/xaboy/form-create with select
* Released under the MIT License.
*/
import { defineComponent, toRefs, inject, toRef, createVNode, resolveComponent, mergeProps } from 'vue';

@@ -86,5 +92,5 @@ function ownKeys(object, enumerableOnly) {

var _options = computed(function () {
return Array.isArray(options) ? options : [];
});
var _options = function _options() {
return Array.isArray(options.value) ? options.value : [];
};

@@ -108,3 +114,3 @@ return {

"default": function _default() {
return [_this.options.map(function (props, index) {
return [_this.options().map(function (props, index) {
return createVNode(resolveComponent("ElOption"), mergeProps(props, {

@@ -111,0 +117,0 @@ "key": '' + index + props.value

/*!
* @form-create/component-elm-select v3.0.0-alpha.0
* @form-create/component-elm-select v3.0.0-alpha.3
* (c) 2018-2021 xaboy

@@ -7,2 +7,2 @@ * Github https://github.com/xaboy/form-create with select

*/
import{defineComponent as e,toRefs as t,inject as r,toRef as n,computed as o,createVNode as u,resolveComponent as i,mergeProps as l}from"vue";function a(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 c(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var f=e({name:"fcSelect",inheritAttrs:!1,props:{modelValue:{type:Array,default:function(){return[]}},type:String},emits:["update:modelValue"],setup:function(e){var u=t(r("formCreateInject")).options,i=n(e,"modelValue");return{options:o((function(){return Array.isArray(u)?u:[]})),value:i}},render:function(){var e,t,r,n,o=this;return u(i("ElSelect"),l(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":function(e){return o.$emit("update:modelValue",e)}}),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?a(Object(r),!0).forEach((function(t){c(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):a(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({default:function(){return[o.options.map((function(e,t){return u(i("ElOption"),l(e,{key:""+t+e.value}),null)})),null===(e=(t=o.$slots).default)||void 0===e?void 0:e.call(t)]}},(r=this.$slots,n=["default"],Object.keys(r).reduce((function(e,t){return n&&-1!==n.indexOf(t)||e.push(r[t]),e}),[]))))}});export{f as default};
import{defineComponent as e,toRefs as t,inject as r,toRef as n,createVNode as o,resolveComponent as u,mergeProps as l}from"vue";function i(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 a(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var c=e({name:"fcSelect",inheritAttrs:!1,props:{modelValue:{type:Array,default:function(){return[]}},type:String},emits:["update:modelValue"],setup:function(e){var o=t(r("formCreateInject")).options;return{options:function(){return Array.isArray(o.value)?o.value:[]},value:n(e,"modelValue")}},render:function(){var e,t,r,n,c=this;return o(u("ElSelect"),l(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":function(e){return c.$emit("update:modelValue",e)}}),function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?i(Object(r),!0).forEach((function(t){a(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({default:function(){return[c.options().map((function(e,t){return o(u("ElOption"),l(e,{key:""+t+e.value}),null)})),null===(e=(t=c.$slots).default)||void 0===e?void 0:e.call(t)]}},(r=this.$slots,n=["default"],Object.keys(r).reduce((function(e,t){return n&&-1!==n.indexOf(t)||e.push(r[t]),e}),[]))))}});export{c as default};

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

/*!
* @form-create/component-elm-select v3.0.0-alpha.3
* (c) 2018-2021 xaboy
* Github https://github.com/xaboy/form-create with select
* Released under the MIT License.
*/
(function (global, factory) {

@@ -90,5 +96,5 @@ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :

var _options = vue.computed(function () {
return Array.isArray(options) ? options : [];
});
var _options = function _options() {
return Array.isArray(options.value) ? options.value : [];
};

@@ -112,3 +118,3 @@ return {

"default": function _default() {
return [_this.options.map(function (props, index) {
return [_this.options().map(function (props, index) {
return vue.createVNode(vue.resolveComponent("ElOption"), vue.mergeProps(props, {

@@ -115,0 +121,0 @@ "key": '' + index + props.value

/*!
* @form-create/component-elm-select v3.0.0-alpha.0
* @form-create/component-elm-select v3.0.0-alpha.3
* (c) 2018-2021 xaboy

@@ -7,2 +7,2 @@ * Github https://github.com/xaboy/form-create with select

*/
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FcSelect={},e.Vue)}(this,(function(e,t){"use strict";function r(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 n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=t.defineComponent({name:"fcSelect",inheritAttrs:!1,props:{modelValue:{type:Array,default:function(){return[]}},type:String},emits:["update:modelValue"],setup:function(e){var r=t.toRefs(t.inject("formCreateInject")).options,n=t.toRef(e,"modelValue");return{options:t.computed((function(){return Array.isArray(r)?r:[]})),value:n}},render:function(){var e,o,u,i,l=this;return t.createVNode(t.resolveComponent("ElSelect"),t.mergeProps(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":function(e){return l.$emit("update:modelValue",e)}}),function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({default:function(){return[l.options.map((function(e,r){return t.createVNode(t.resolveComponent("ElOption"),t.mergeProps(e,{key:""+r+e.value}),null)})),null===(e=(o=l.$slots).default)||void 0===e?void 0:e.call(o)]}},(u=this.$slots,i=["default"],Object.keys(u).reduce((function(e,t){return i&&-1!==i.indexOf(t)||e.push(u[t]),e}),[]))))}});e.default=o,Object.defineProperty(e,"__esModule",{value:!0})}));
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).FcSelect={},e.Vue)}(this,(function(e,t){"use strict";function r(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 n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var o=t.defineComponent({name:"fcSelect",inheritAttrs:!1,props:{modelValue:{type:Array,default:function(){return[]}},type:String},emits:["update:modelValue"],setup:function(e){var r=t.toRefs(t.inject("formCreateInject")).options;return{options:function(){return Array.isArray(r.value)?r.value:[]},value:t.toRef(e,"modelValue")}},render:function(){var e,o,u,i,l=this;return t.createVNode(t.resolveComponent("ElSelect"),t.mergeProps(this.$attrs,{modelValue:this.value,"onUpdate:modelValue":function(e){return l.$emit("update:modelValue",e)}}),function(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?r(Object(o),!0).forEach((function(t){n(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}({default:function(){return[l.options().map((function(e,r){return t.createVNode(t.resolveComponent("ElOption"),t.mergeProps(e,{key:""+r+e.value}),null)})),null===(e=(o=l.$slots).default)||void 0===e?void 0:e.call(o)]}},(u=this.$slots,i=["default"],Object.keys(u).reduce((function(e,t){return i&&-1!==i.indexOf(t)||e.push(u[t]),e}),[]))))}});e.default=o,Object.defineProperty(e,"__esModule",{value:!0})}));
{
"name": "@form-create/component-elm-select",
"version": "3.0.0-alpha.1",
"version": "3.0.0-alpha.3",
"description": "@form-create/element-ui 内置组件",

@@ -33,3 +33,3 @@ "main": "./dist/index.min.js",

"dependencies": {
"@form-create/utils": "^3.0.0-alpha.1"
"@form-create/utils": "^3.0.0-alpha.3"
},

@@ -51,3 +51,3 @@ "bugs": {

},
"gitHead": "27a6ed8e3c1bc3758fe81d3f8e3793900b04ab90"
"gitHead": "a694bdd176d4f5196e7da137ab718d5fefd4e0e7"
}

@@ -20,5 +20,5 @@ import {computed, defineComponent, inject, toRef, toRefs} from 'vue';

const value = toRef(props, 'modelValue');
const _options = computed(() => {
return Array.isArray(options) ? options : []
})
const _options = () => {
return Array.isArray(options.value) ? options.value : []
}
return {

@@ -32,3 +32,3 @@ options: _options,

onUpdate:modelValue={(v) => this.$emit('update:modelValue', v)}
v-slots={getSlot(this.$slots, ['default'])}>{this.options.map((props, index) => {
v-slots={getSlot(this.$slots, ['default'])}>{this.options().map((props, index) => {
return <ElOption {...props} key={'' + index + props.value}/>

@@ -35,0 +35,0 @@ })}{this.$slots.default?.()}</ElSelect>;

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