UNPKG

@nbxx/nb-input

Version:
95 lines 3.04 kB
export class NbinputConfig { constructor() { this.uploadAPI = ''; this.downloadAPI = ''; this.renameAPI = ''; this.token = ''; this.format = ''; this.valueMode = ''; } } export class NbFile extends File { ConvertToAttachment() { let a = new SystemAttachment(); a.url = this.url; a.id = this.id; a.progress = this.progress; a.success = this.success; a.completed = this.completed; a.size = this.size; a.name = this.name; a.type = this.type; return a; } } export class SystemAttachment { constructor(f) { this.name = f && f.name || ''; this.size = f && f.size || 0; this.type = f && f.type || ''; this.completed = false; this.success = false; } } export class NbInputItem { } export class NbItemOption { } export var NbFieldType; (function (NbFieldType) { // 展示类 NbFieldType["Index"] = "index"; NbFieldType["Label"] = "label"; NbFieldType["Array"] = "array"; NbFieldType["Calc"] = "calc"; NbFieldType["Assist"] = "assist"; NbFieldType["Rating"] = "rating"; NbFieldType["Link"] = "link"; // 纯交互类 NbFieldType["Button"] = "button"; // 文本类 NbFieldType["Text"] = "text"; NbFieldType["Box"] = "box"; NbFieldType["Area"] = "area"; NbFieldType["Currency"] = "currency"; NbFieldType["CurrencyFen"] = "currencyfen"; NbFieldType["Number"] = "number"; NbFieldType["Html"] = "html"; // 百分比类 NbFieldType["Progress"] = "progress"; NbFieldType["Percentage"] = "percent"; NbFieldType["PercentageFen"] = "percentfen"; // 文件类 NbFieldType["Signature"] = "signature"; NbFieldType["File"] = "file"; NbFieldType["Image"] = "image"; NbFieldType["Upload"] = "upload"; NbFieldType["Images"] = "images"; // 时间类 NbFieldType["Time"] = "time"; NbFieldType["Datetime"] = "datetime"; NbFieldType["Date"] = "date"; NbFieldType["Month"] = "month"; // 选择项类 NbFieldType["Option"] = "option"; NbFieldType["Massive"] = "massive"; NbFieldType["Multiple"] = "multiple"; NbFieldType["Radio"] = "radio"; NbFieldType["Checkbox"] = "checkbox"; NbFieldType["Switch"] = "switch"; })(NbFieldType || (NbFieldType = {})); export var NbRatingShape; (function (NbRatingShape) { NbRatingShape["Star"] = "star"; NbRatingShape["Bell"] = "bell"; NbRatingShape["Square"] = "square"; NbRatingShape["Circle"] = "circle"; NbRatingShape["Comment"] = "comment"; NbRatingShape["Envelope"] = "envelope"; NbRatingShape["Flag"] = "flag"; NbRatingShape["Folder"] = "folder"; NbRatingShape["Heart"] = "heart"; NbRatingShape["Hourglass"] = "hourglass"; NbRatingShape["Map"] = "map"; })(NbRatingShape || (NbRatingShape = {})); //# sourceMappingURL=nbinput.entity.js.map