iview / iview/iview-admin

为啥在iview-admin-template版本里面调用modal时报错呢?

Open
#579 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Vue
Stars
16.3k
Forks
4.7k
PR merge metrics
No merged PRs in 30d

Description



Display dialog box

Content of dialog


Content of dialog


Content of dialog



vue.esm.js:571 [Vue warn]: Failed to resolve directive: modal

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the template snippet’s declaration and the Vue warning about the unresolved modal directive. Compare the binding shown there with the iView modal usage, then verify that clicking the button opens the dialog and that the displayed on-ok and on-cancel handlers still work without the warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.