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
0
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 2.6.0 to 2.6.1

101

dist/index.es.js
/*!
* FormCreate 低代码表单渲染器
* @form-create/component-elm-select v2.6.0
* @form-create/component-elm-select v2.6.1
* (c) 2018-2024 xaboy

@@ -9,15 +9,33 @@ * Github https://github.com/xaboy/form-create

*/
var p = Object.defineProperty, A = Object.defineProperties;
var b = Object.getOwnPropertyDescriptors;
var a = Object.getOwnPropertySymbols;
var d = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
var i = (e, t, n) => t in e ? p(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, y = (e, t) => {
for (var n in t || (t = {}))
d.call(t, n) && i(e, n, t[n]);
if (a)
for (var n of a(t))
j.call(t, n) && i(e, n, t[n]);
return e;
}, s = (e, t) => A(e, b(t));
const l = {
function p(e) {
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
}
function y() {
return y = Object.assign ? Object.assign.bind() : function(e) {
for (var t, n = 1; n < arguments.length; n++) for (var r in t = arguments[n], t) Object.prototype.hasOwnProperty.call(t, r) && (e[r] = t[r]);
return e;
}, y.apply(this, arguments);
}
var m = ["attrs", "props", "domProps"], d = ["class", "style", "directives"], g = ["on", "nativeOn"], O = function(e) {
return e.reduce(function(t, n) {
for (var r in n) if (!t[r]) t[r] = n[r];
else if (m.indexOf(r) !== -1) t[r] = y({}, t[r], n[r]);
else if (d.indexOf(r) !== -1) {
var a = t[r] instanceof Array ? t[r] : [t[r]], s = n[r] instanceof Array ? n[r] : [n[r]];
t[r] = [].concat(a, s);
} else if (g.indexOf(r) !== -1)
for (var o in n[r]) if (t[r][o]) {
var i = t[r][o] instanceof Array ? t[r][o] : [t[r][o]], c = n[r][o] instanceof Array ? n[r][o] : [n[r][o]];
t[r][o] = [].concat(i, c);
} else t[r][o] = n[r][o];
else if (r === "hook") for (var l in n[r]) t[r][l] = t[r][l] ? A(t[r][l], n[r][l]) : n[r][l];
else t[r] = n[r];
return t;
}, {});
}, A = function(e, t) {
return function() {
e && e.apply(this, arguments), t && t.apply(this, arguments);
};
}, j = O;
const f = /* @__PURE__ */ p(j), u = {
type(e, t) {

@@ -30,3 +48,3 @@ return Object.prototype.toString.call(e) === "[object " + t + "]";

Element(e) {
return typeof e == "object" && e !== null && e.nodeType === 1 && !l.Object(e);
return typeof e == "object" && e !== null && e.nodeType === 1 && !u.Object(e);
},

@@ -49,11 +67,11 @@ trueArray(e) {

["Date", "Object", "String", "Boolean", "Array", "Number"].forEach((e) => {
l[e] = function(t) {
return l.type(t, e);
u[e] = function(t) {
return u.type(t, e);
};
});
function E(e, t) {
function h(e, t) {
return {}.hasOwnProperty.call(e, t);
}
const O = "fcSelect", S = {
name: O,
const E = "fcSelect", P = {
name: E,
functional: !0,

@@ -67,27 +85,20 @@ props: {

render(e, t) {
const n = (r, o) => {
const c = r.slot;
return /* @__PURE__ */ React.createElement(
ElOption,
{
props: r,
key: "" + o + "-" + r.value
},
c ? /* @__PURE__ */ React.createElement(
"template",
{
slot: r.slotName || "default"
},
l.Function(c) ? r.slot(e) : c
) : null
);
}, f = (r, o) => /* @__PURE__ */ React.createElement(
ElOptionGroup,
{
label: r.label,
key: "" + o + "-" + r.label
const n = (s, o) => {
const i = s.slot;
return e("ElOption", f([{}, {
props: s
}, {
key: "" + o + "-" + s.value
}]), [i ? e("template", {
slot: s.slotName || "default"
}, [u.Function(i) ? s.slot(e) : i]) : null]);
}, r = (s, o) => e("ElOptionGroup", {
attrs: {
label: s.label
},
l.trueArray(r.options) && r.options.map((c, m) => n(c, m))
), u = t.props.formCreateInject.options;
return /* @__PURE__ */ React.createElement(ElSelect, s(y({}, t.data), { ref: "el" }), (Array.isArray(u) ? u : []).map((r, o) => E(r || "", "options") ? f(r, o) : n(r, o)), t.children);
key: "" + o + "-" + s.label
}, [u.trueArray(s.options) && s.options.map((i, c) => n(i, c))]), a = t.props.formCreateInject.options;
return e("ElSelect", f([{}, t.data, {
ref: "el"
}]), [(Array.isArray(a) ? a : []).map((s, o) => h(s || "", "options") ? r(s, o) : n(s, o)), t.children]);
},

@@ -99,3 +110,3 @@ mounted() {

export {
S as default
P as default
};
/*!
* FormCreate 低代码表单渲染器
* @form-create/component-elm-select v2.6.0
* @form-create/component-elm-select v2.6.1
* (c) 2018-2024 xaboy

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

*/
(function(t,n){typeof exports=="object"&&typeof module!="undefined"?module.exports=n():typeof define=="function"&&define.amd?define(n):(t=typeof globalThis!="undefined"?globalThis:t||self,t.FcSelect=n())})(this,function(){"use strict";var A=Object.defineProperty,b=Object.defineProperties;var h=Object.getOwnPropertyDescriptors;var a=Object.getOwnPropertySymbols;var j=Object.prototype.hasOwnProperty,E=Object.prototype.propertyIsEnumerable;var y=(t,n,c)=>n in t?A(t,n,{enumerable:!0,configurable:!0,writable:!0,value:c}):t[n]=c,f=(t,n)=>{for(var c in n||(n={}))j.call(n,c)&&y(t,c,n[c]);if(a)for(var c of a(n))E.call(n,c)&&y(t,c,n[c]);return t},p=(t,n)=>b(t,h(n));const t={type(e,r){return Object.prototype.toString.call(e)==="[object "+r+"]"},Undef(e){return e==null},Element(e){return typeof e=="object"&&e!==null&&e.nodeType===1&&!t.Object(e)},trueArray(e){return Array.isArray(e)&&e.length>0},Function(e){const r=this.getType(e);return r==="Function"||r==="AsyncFunction"},getType(e){const r=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(r)[1]},empty(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(e=>{t[e]=function(r){return t.type(r,e)}});function n(e,r){return{}.hasOwnProperty.call(e,r)}return{name:"fcSelect",functional:!0,props:{formCreateInject:{type:Object,required:!0}},render(e,r){const u=(o,i)=>{const l=o.slot;return React.createElement(ElOption,{props:o,key:""+i+"-"+o.value},l?React.createElement("template",{slot:o.slotName||"default"},t.Function(l)?o.slot(e):l):null)},m=(o,i)=>React.createElement(ElOptionGroup,{label:o.label,key:""+i+"-"+o.label},t.trueArray(o.options)&&o.options.map((l,d)=>u(l,d))),s=r.props.formCreateInject.options;return React.createElement(ElSelect,p(f({},r.data),{ref:"el"}),(Array.isArray(s)?s:[]).map((o,i)=>n(o||"","options")?m(o,i):u(o,i)),r.children)},mounted(){this.$emit("fc.el",this.$refs.el)}}});
(function(l,s){typeof exports=="object"&&typeof module!="undefined"?module.exports=s():typeof define=="function"&&define.amd?define(s):(l=typeof globalThis!="undefined"?globalThis:l||self,l.FcSelect=s())})(this,function(){"use strict";function l(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t,n=1;n<arguments.length;n++)for(var r in t=arguments[n],t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e},s.apply(this,arguments)}var d=["attrs","props","domProps"],m=["class","style","directives"],g=["on","nativeOn"],O=function(e){return e.reduce(function(t,n){for(var r in n)if(!t[r])t[r]=n[r];else if(d.indexOf(r)!==-1)t[r]=s({},t[r],n[r]);else if(m.indexOf(r)!==-1){var c=t[r]instanceof Array?t[r]:[t[r]],i=n[r]instanceof Array?n[r]:[n[r]];t[r]=[].concat(c,i)}else if(g.indexOf(r)!==-1)for(var o in n[r])if(t[r][o]){var u=t[r][o]instanceof Array?t[r][o]:[t[r][o]],p=n[r][o]instanceof Array?n[r][o]:[n[r][o]];t[r][o]=[].concat(u,p)}else t[r][o]=n[r][o];else if(r==="hook")for(var f in n[r])t[r][f]=t[r][f]?A(t[r][f],n[r][f]):n[r][f];else t[r]=n[r];return t},{})},A=function(e,t){return function(){e&&e.apply(this,arguments),t&&t.apply(this,arguments)}},h=O;const y=l(h),a={type(e,t){return Object.prototype.toString.call(e)==="[object "+t+"]"},Undef(e){return e==null},Element(e){return typeof e=="object"&&e!==null&&e.nodeType===1&&!a.Object(e)},trueArray(e){return Array.isArray(e)&&e.length>0},Function(e){const t=this.getType(e);return t==="Function"||t==="AsyncFunction"},getType(e){const t=Object.prototype.toString.call(e);return/^\[object (.*)\]$/.exec(t)[1]},empty(e){return e==null||Array.isArray(e)&&Array.isArray(e)&&!e.length?!0:typeof e=="string"&&!e}};["Date","Object","String","Boolean","Array","Number"].forEach(e=>{a[e]=function(t){return a.type(t,e)}});function j(e,t){return{}.hasOwnProperty.call(e,t)}return{name:"fcSelect",functional:!0,props:{formCreateInject:{type:Object,required:!0}},render(e,t){const n=(i,o)=>{const u=i.slot;return e("ElOption",y([{},{props:i},{key:""+o+"-"+i.value}]),[u?e("template",{slot:i.slotName||"default"},[a.Function(u)?i.slot(e):u]):null])},r=(i,o)=>e("ElOptionGroup",{attrs:{label:i.label},key:""+o+"-"+i.label},[a.trueArray(i.options)&&i.options.map((u,p)=>n(u,p))]),c=t.props.formCreateInject.options;return e("ElSelect",y([{},t.data,{ref:"el"}]),[(Array.isArray(c)?c:[]).map((i,o)=>j(i||"","options")?r(i,o):n(i,o)),t.children])},mounted(){this.$emit("fc.el",this.$refs.el)}}});
{
"name": "@form-create/component-elm-select",
"version": "2.6.0",
"version": "2.6.1",
"description": "@form-create/element-ui 内置组件",

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

"dependencies": {
"@form-create/utils": "^2.6.0"
"@form-create/utils": "^2.6.1"
},

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

},
"gitHead": "845ebec86aadbc25added53f03a4506990131486"
"gitHead": "0069b160282dff03631002a769d4d2cc1b28a2be"
}
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