Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
106 additions
and
107 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
import { | ||
PropType, | ||
} from 'vue'; | ||
|
||
const validFlip = [ | ||
'horizontal', | ||
'vertical', | ||
'both', | ||
] as const; | ||
type Flip = typeof validFlip[number]; | ||
|
||
const validPull = [ | ||
'right', | ||
'left', | ||
] as const; | ||
type Pull = typeof validPull[number]; | ||
|
||
const typeNumber = { | ||
type: [ | ||
Number, | ||
String, | ||
], | ||
validator: (value: number | string): boolean => /^[-\d.]+$/.test(`${value}`), | ||
}; | ||
|
||
export const size = { | ||
type: String, | ||
validator: (value: string) => /^(lg|xs|sm|([\d.]+)x)$/.test(value), | ||
}; | ||
|
||
export const color = String; | ||
|
||
export const pull = { | ||
type: String as PropType<Pull>, | ||
validator: (value: Pull) => validPull.indexOf(value) >= 0, | ||
}; | ||
|
||
export const scale = { | ||
...typeNumber, | ||
default: 1, | ||
}; | ||
|
||
export const translate = { | ||
...typeNumber, | ||
default: 0, | ||
}; | ||
|
||
export const flip = { | ||
type: String as PropType<Flip>, | ||
validator: (value: Flip) => validFlip.indexOf(value) >= 0, | ||
}; | ||
|
||
export const rotate = typeNumber; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
<span class="vue-fa-layers" style="float:left;width:1.25em;height:1em;font-size:4em;text-align:center;vertical-align:-.125em;transform-origin:center;overflow:visible;"><!--[--><svg viewBox="0 0 448 512" class="vue-fa" style="height:1em;vertical-align:-.125em;transform-origin:center;overflow:visible;" aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg"><g transform="translate(224 256)" transform-origin="112 0"><g transform="translate(0,0) scale(1,1) "><path d="M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32V64 368 480c0 17.7 14.3 32 32 32s32-14.3 32-32V352l64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30V66.1c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48V32z" fill="currentColor" transform="translate(-224 -256)"></path></g></g></svg><span class="vue-fa-layers-text" style="font-weight:900;"><span style="height:1em;vertical-align:-.125em;transform-origin:center;overflow:visible;color:white;transform:translate(0em,0em) scale(0.25,0.25) rotate(-30deg);"><!--[--> NEW <!--]--></span></span><!--]--></span> | ||
<span class="vue-fa-layers" style="float:left;width:1.25em;height:1em;font-size:4em;text-align:center;vertical-align:-.125em;transform-origin:center;overflow:visible;"><!--[--><svg viewBox="0 0 448 512" class="vue-fa" style="height:1em;vertical-align:-.125em;transform-origin:center;overflow:visible;" aria-hidden="true" role="img" xmlns="http://www.w3.org/2000/svg"><g transform="translate(224 256)" transform-origin="112 0"><g transform="translate(0,0) scale(1,1) "><path d="M64 32C64 14.3 49.7 0 32 0S0 14.3 0 32V64 368 480c0 17.7 14.3 32 32 32s32-14.3 32-32V352l64.3-16.1c41.1-10.3 84.6-5.5 122.5 13.4c44.2 22.1 95.5 24.8 141.7 7.4l34.7-13c12.5-4.7 20.8-16.6 20.8-30V66.1c0-23-24.2-38-44.8-27.7l-9.6 4.8c-46.3 23.2-100.8 23.2-147.1 0c-35.1-17.6-75.4-22-113.5-12.5L64 48V32z" fill="currentColor" transform="translate(-224 -256)"></path></g></g></svg><span class="vue-fa-layers-text" style="font-weight:900;"><span style="height:1em;line-height:.75em;font-size:1.33333em;vertical-align:-.225em;transform-origin:center;overflow:visible;color:white;transform:translate(0em,0em) scale(-0.25,-0.25) rotate(-30deg);"><!--[--> NEW <!--]--></span></span><!--]--></span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters