Merge pull request #160 from alibaba/chore/stale

Chore/stale
This commit is contained in:
林熠 2022-03-22 09:48:51 +08:00 committed by GitHub
commit d2912d3106
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 8 additions and 2 deletions

View File

@ -16,4 +16,7 @@ jobs:
days-before-issue-stale: 10 days-before-issue-stale: 10
days-before-issue-close: 2 days-before-issue-close: 2
days-before-pr-stale: 10 days-before-pr-stale: 10
days-before-pr-close: 2 days-before-pr-close: 2
exempt-issue-labels: 'bug,enhancement,good first issue,help wanted,WIP'
stale-issue-label: 'stale'
stale-pr-label: 'stale'

View File

@ -98,7 +98,7 @@ class Toolbar extends Component<{ observed: OffsetObserver }> {
const { node } = observed; const { node } = observed;
const actions: ReactNodeArray = []; const actions: ReactNodeArray = [];
node.componentMeta.availableActions.forEach((action) => { node.componentMeta.availableActions.forEach((action) => {
const { important, condition, content, name } = action; const { important = true, condition, content, name } = action;
if (node.isSlot() && (name === 'copy' || name === 'remove')) { if (node.isSlot() && (name === 'copy' || name === 'remove')) {
// FIXME: need this? // FIXME: need this?
return; return;

View File

@ -1,11 +1,14 @@
import { isFormEvent, compatibleLegaoSchema, getNodeSchemaById } from '@alilc/lowcode-utils'; import { isFormEvent, compatibleLegaoSchema, getNodeSchemaById } from '@alilc/lowcode-utils';
import { isNodeSchema } from '@alilc/lowcode-types'; import { isNodeSchema } from '@alilc/lowcode-types';
import { getConvertedExtraKey, getOriginalExtraKey } from '@alilc/lowcode-designer';
const utils = { const utils = {
isNodeSchema, isNodeSchema,
isFormEvent, isFormEvent,
compatibleLegaoSchema, compatibleLegaoSchema,
getNodeSchemaById, getNodeSchemaById,
getConvertedExtraKey,
getOriginalExtraKey,
}; };
export default utils; export default utils;