whale-plus
Version:
A Component Library for Vue 3
67 lines (57 loc) • 1.77 kB
JavaScript
/*! Whale v0.0.0-dev.1 */
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('vue')) :
typeof define === 'function' && define.amd ? define(['exports', 'vue'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Whale = {}, global.Vue));
})(this, (function (exports, vue) { 'use strict';
const withInstall = (main, extra) => {
main.install = (app) => {
for (const comp of [main, ...Object.values(extra != null ? extra : {})]) {
app.component(comp.name, comp);
}
};
if (extra) {
for (const [key, comp] of Object.entries(extra)) {
main[key] = comp;
}
}
return main;
};
const formProps = {
title: {
type: String,
default: ""
}
};
var _export_sfc = (sfc, props) => {
const target = sfc.__vccOpts || sfc;
for (const [key, val] of props) {
target[key] = val;
}
return target;
};
const _hoisted_1 = { id: "test" };
const _sfc_main = vue.defineComponent({
...{
name: "WlErmForm"
},
__name: "form",
props: formProps,
setup(__props) {
const props = __props;
return (_ctx, _cache) => {
return vue.openBlock(), vue.createElementBlock(
"div",
_hoisted_1,
vue.toDisplayString(props.title),
1
);
};
}
});
var form = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "/Users/shenkun/WorkSpace/Github/whale/packages/components/erm-form/src/form.vue"]]);
const WlErmForm = withInstall(form);
exports.WlErmForm = WlErmForm;
exports.formProps = formProps;
Object.defineProperty(exports, '__esModule', { value: true });
}));