Coder Social home page Coder Social logo

Modal not showing about oruga HOT 6 CLOSED

oruga-ui avatar oruga-ui commented on May 18, 2024
Modal not showing

from oruga.

Comments (6)

jtommy avatar jtommy commented on May 18, 2024

Are you importing Oruga CSS?
What package are you using? oruga or oruga-next ?

from oruga.

cyberfly avatar cyberfly commented on May 18, 2024

@jtommy sorry its oruga for Vue 2. For the CSS I import

import Vue from 'vue';
import Oruga from '@oruga-ui/oruga';
import '@oruga-ui/oruga/dist/oruga.css';

Vue.use(Oruga);

Oruga button works though

from oruga.

jtommy avatar jtommy commented on May 18, 2024

Can you reproduce on codepen or similar?

from oruga.

astagi avatar astagi commented on May 18, 2024

@cyberfly any update on this?

from oruga.

cyberfly avatar cyberfly commented on May 18, 2024

@jtommy is there any codepen template for Oruga UI that I can quickly spin off?

@astagi I revisit the modal after 2 weeks, and looks like the Modal only works if the isCardModalActive is set to true by default.


<button type="button" @click="isCardModalActive = true">
        Open modal (clip scroll)
      </button>

<o-modal :active.sync="isCardModalActive" :width="640" scroll="clip">
      <p>
        laoreet et metus. Aenean placerat turpis nec tincidunt tempus.
      </p>
    </o-modal>

data() {
    return {
      isCardModalActive: true
    };
  },

from oruga.

jtommy avatar jtommy commented on May 18, 2024

@cyberfly yes, active prop must be true

from oruga.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.