export default {
name: 'AuthCallback',
data() {
return {
accessToken: {},
}
},
mounted() {
const tokenParseRegex: RegExp = /access_token=(.*?)&/;
const idParseRegex: RegExp = /user_id(.*?)/;
const exAccessToken: RegExpMatchArray | null = useRoute().hash.match(tokenParseRegex);
this.accessToken = exAccessToken![1]
}
}
type Props = {
color: Color;
boardData: BoardData;
setBoardData: (data: BoardData) => void; // как типизировать эту функцию (тип BoardData)
};
setBoardData({
...boardData, // (parameter) boardData: BoardData Expected 0 arguments, but got 1.ts(2554)
color: { name: color.name, value: color.value },
});
states: {
active: {
filter: {
type: 'none' /* none, lighten, darken */
allowMultipleDataPointsSelection: false,
}
}
}
async generateTokens(payload) {
const accessToken = await jwt.sign(payload, config.SECRET_KEY_ACCESS_TOKEN, {expiresIn: '15m'})
const refreshToken = await jwt.sign(payload, config.SECRET_KEY_REFRESH_TOKEN, {expiresIn: '30d'})
return {
accessToken,
refreshToken
}
}
minContainerWidth
Type: Number
Default: 200
The minimum width of the container.
minContainerHeight
Type: Number
Default: 100
The minimum height of the container.
minCanvasWidth
Type: Number
Default: 0
The minimum width of the canvas (image wrapper).
minCanvasHeight
Type: Number
Default: 0
The minimum height of the canvas (image wrapper).
minCropBoxWidth
Type: Number
Default: 0
The minimum width of the crop box.
Note: This size is relative to the page, not the image.
minCropBoxHeight
Type: Number
Default: 0
The minimum height of the crop box.
Note: This size is relative to the page, not the image.
function addClass(){
ваш метод. не забудьте проверку, что элемент точно найден
}
addEventListener('DOMContentLoaded', addClass);
<component
v-if="headCell?.decorator?.name"
:is="headCell.decorator.name +'Cell'"
:row="row"
@decorator="handlerEmit"
/>
v-if="headCell?.decorator?.name"
- такое условие в template не отрабатывает ведь, тебе надо его через computed