You've already forked AstralRinth
forked from didirus/AstralRinth
Remove lodash.uniqueId
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
export let value = ''
|
||||
|
||||
export let size: 'sm' | 'md' | 'lg' = 'md'
|
||||
export let color: 'raised' | 'primary' | 'primary-light' | 'danger'| 'danger-light' | 'transparent'
|
||||
export let color: '' | 'raised' | 'primary' | 'primary-light' | 'danger'| 'danger-light' | 'transparent' = ''
|
||||
|
||||
/** Show notification badge in the upper right of button */
|
||||
export let badge = false
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import uniqueId from 'lodash.uniqueid'
|
||||
import { uniqueId } from '../utils/uniqueId'
|
||||
import IconCheck from 'virtual:icons/heroicons-outline/check'
|
||||
|
||||
export let checked = false;
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import uniqueId from 'lodash.uniqueid'
|
||||
import { uniqueId } from '../utils/uniqueId'
|
||||
|
||||
export let required = false;
|
||||
export let label: string;
|
||||
|
||||
6
src/package/utils/uniqueId.ts
Normal file
6
src/package/utils/uniqueId.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
let idCounter = 0;
|
||||
|
||||
export function uniqueId(prefix = ''): string {
|
||||
const id = ++idCounter;
|
||||
return prefix + id;
|
||||
}
|
||||
@@ -39,6 +39,7 @@
|
||||
position: relative;
|
||||
justify-content: flex-start;
|
||||
z-index: 1;
|
||||
padding: 16px;
|
||||
}
|
||||
|
||||
&__source {
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
<script lang="ts">
|
||||
import { CheckboxVirtualList } from "omorphia";
|
||||
import IconStar from 'virtual:icons/heroicons-outline/star'
|
||||
import uniqueId from 'lodash.uniqueid'
|
||||
import { uniqueId } from 'omorphia/utils/uniqueId'
|
||||
|
||||
let options = Array(100).fill({})
|
||||
.map(option => ({
|
||||
|
||||
Reference in New Issue
Block a user