const setImage = (item: InterImageList) => { if (resolvedProps.isMark) { const selectStatus = isImgSelected(item); if (!selectStatus) { selection.value.push(item); } else { const index = selection.value.findIndex((e) => { return e.image_url === item.image_url; }); selection....
1;}};(0,_createClass3.default)(Hn,[{key:"active",get:function get(){return this._active;}}]);return Hn;}();function Fn(e){return new Hn(e);}function zn(){return Vn;}var $n=function(){function $n(e,t,o,n){(0,_classCallCheck3.default)(this,$n);this.fn=e,t...
findIndex((p) => p === onEvent); eventsToWrite.push({ order, line }); eventsPropTypesWrite.push({ order, line: ` '${kebabNameToAttrEventName(kebabProperty(event))}': ${eventType},${EOL}`, }); } else { missingEventTypes.push(event); } }); if (missingEventTypes.length > 0...
{types: {// add a custom message to help explain why not to use itFoo:"Don't use Foo because it is unsafe",// add a custom message, AND tell the plugin how to fix itString: {message:'Use string instead',fixWith:'string', },'{}': {message:'Use object instead',fixWith:'obje...
export default function bwPowerSet (originalSet) { const subSets = [] // We will have 2^n possible combinations (where n is a length of original set). // It is because for every element of original set we will decide whether to include ...
==agent.id);/** PREFERRED FIX: Only use data that already exists in the in-memory cache.*/consttargetAgentIndex=removeFrom.nodes.findIndex((node) => node.id===agent.id);mappedAgents.nodes.push(removeFrom.nodes[targetAgentIndex]);unmappedAgents.nodes.splice(targetAgentIndex,1);/** ...
val is Function => typeof val === 'function' export const isString = (val: unknown): val is string => typeof val === 'string' export const isSymbol = (val: unknown): val is symbol => typeof val === 'symbol' export const isObject = (val: unknown): val is Record<any, any...
@ - Function can return a promise Column type Hot Key List Events List Event Component: vue-excel-editor Methods List Method Component: vue-excel-editor * = optional argument Variable List Variable Component: vue-excel-editor @ - allow v-model binding ...
function readNotice(id: string) { function handleReadNotice(id: string) { noticeDetailRef.value.openNotice(id); const index = notices.value.findIndex((notice) => notice.id === id); if (index >= 0) { @@ -207,7 +214,7 @@ function readNotice(id: string) { } // 查看更多 fu...
})const route=useRoute()const methods={initActive() {state.tabbars.map((item, index)=>{if(item.path===route.path) {active.value=index}})}}//watch的使用watch(()=>route.path,(value)=>{console.log('value改变', value)if(value) {let vIndex=state.tabbars.findIndex((item)=>{return...