UNPKG

ant-design-vue

Version:

An enterprise-class UI design language and Vue-based implementation

20 lines 679 B
// https://stackoverflow.com/questions/46176165/ways-to-get-string-literal-type-of-array-values-without-enum-overhead export var tuple = function tuple() { for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) { args[_key] = arguments[_key]; } return args; }; export var tupleNum = function tupleNum() { for (var _len2 = arguments.length, args = new Array(_len2), _key2 = 0; _key2 < _len2; _key2++) { args[_key2] = arguments[_key2]; } return args; }; export var withInstall = function withInstall(comp) { var c = comp; c.install = function (app) { app.component(c.displayName || c.name, comp); }; return comp; };