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

@ -17,3 +17,6 @@ jobs:
days-before-issue-close: 2
days-before-pr-stale: 10
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 actions: ReactNodeArray = [];
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')) {
// FIXME: need this?
return;

View File

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