Defauilt input.preset uses "slug" as default, as per docs
This commit is contained in:
parent
0a31869525
commit
de8bd67f0d
|
|
@ -236,21 +236,23 @@
|
|||
return this.formatNamespace()
|
||||
}
|
||||
|
||||
if (this.options.inputPresetType == 'camel')
|
||||
if (this.options.inputPresetType == 'camel') {
|
||||
var value = toCamel(this.$src.val())
|
||||
}
|
||||
else {
|
||||
var value = slugify(this.$src.val())
|
||||
}
|
||||
|
||||
if (this.options.inputPresetType == 'url')
|
||||
if (this.options.inputPresetType == 'url') {
|
||||
value = '/' + value
|
||||
}
|
||||
|
||||
return value.replace(/\s/gi, "-")
|
||||
}
|
||||
|
||||
InputPreset.DEFAULTS = {
|
||||
inputPreset: '',
|
||||
inputPresetType: 'file',
|
||||
inputPresetType: 'slug',
|
||||
inputPresetClosestParent: undefined,
|
||||
inputPresetPrefixInput: undefined
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue