English 中文(简体)
我怎么能利用 c子使用安的设计-武座?
原标题:How can I use Ant-design-vue using cdn?

我正试图在网上建造一个用于特定功能的大型设备。 自2006年以来 我不能使用npm或其他包裹安装器,我需要使用CDN。 Vue app公司正在工作,甚至安特设计公司也在工作。 我所面对的唯一问题是,它不是为任何安特设计组成部分 style。 这是我的准则:

<html>

<head>
  <title>Auto Refresh Page</title>
  <script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
  <link href="https://unpkg.com/[email protected]/dist/antd.min.css" rel="stylesheet">
  </link>
  <script src="https://unpkg.com/dayjs/dayjs.min.js"></script>
  <script src="https://unpkg.com/dayjs/plugin/customParseFormat.js"></script>
  <script src="https://unpkg.com/dayjs/plugin/weekday.js"></script>
  <script src="https://unpkg.com/dayjs/plugin/localeData.js"></script>
  <script src="https://unpkg.com/dayjs/plugin/weekOfYear.js"></script>
  <script src="https://unpkg.com/dayjs/plugin/weekYear.js"></script>
  <script src="https://unpkg.com/dayjs/plugin/advancedFormat.js"></script>
  <script src="https://unpkg.com/dayjs/plugin/quarterOfYear.js"></script>
</head>

<body>
  <div id="app">
  </div>
  <script src="https://unpkg.com/[email protected]/dist/antd.min.js"></script>
  <script>
    const app = Vue.createApp({
      el: "#app",
      data() {
        return {
          moduleLoaded: false,
          currentRecordModule: null,
          backgroundProcess: false,
          showModal: false,
        };
      },
      methods: {
        init() {
          const currentRecordModule = require([ N/currentRecord ], (currentRecord) => {
            this.moduleLoaded = true
            this.currentRecordModule = currentRecord
          });
        },

        reloadPage() {
          location.reload(true)
        },

        showAlert() {
          this.showModal = true
          const iframeHtml =  <iframe src="${activeBgTaskUrl}" style="width: 100%; height: 400px; border: none;"></iframe> ;
          
        },

        handleShowBackgroundProcessAlert(event) {
          if (event.target.id ===  showBackgroundProcessAlert ) {
            this.showAlert()
          }
        },
      },

      mounted() {
        console.log( App mounted )
        this.init();
        document.addEventListener( click , this.handleShowBackgroundProcessAlert)
      },

      },

      template: `<a-button icon="search" type="primary">Primary Button</a-button>
    <a-modal v-model:visible="showModal" title="Basic Modal" @ok="handleOk">
      <p>Some contents...</p>
      <p>Some contents...</p>
      <p>Some contents...</p>
    </a-modal>`
    });
    app.mount( #app );
  </script>
</body>

</html>

我想在<代码>showAlert功能中开启一种模式。 我已尝试过多种东西,包括使用进口说明和采用所需方法直接进入安普设计全球变量,但其中没有一个正在发挥作用。 纽顿正在展示,但没有任何风格,而这种模式也是如此。 对于那些知道NetSuite的人来说,创建 Suite不是一种选择。

问题回答

In the Ant Design Vue (antdv) documentation, there is a section explaining how to import it in the browser:

Import in Browser

http://www.un.org/spanish/ecosoc 页: 1


你们需要增加全球的变量。

例如:

app.use(antd).mount( #app );




相关问题
selected text in iframe

How to get a selected text inside a iframe. I my page i m having a iframe which is editable true. So how can i get the selected text in that iframe.

How to fire event handlers on the link using javascript

I would like to click a link in my page using javascript. I would like to Fire event handlers on the link without navigating. How can this be done? This has to work both in firefox and Internet ...

How to Add script codes before the </body> tag ASP.NET

Heres the problem, In Masterpage, the google analytics code were pasted before the end of body tag. In ASPX page, I need to generate a script (google addItem tracker) using codebehind ClientScript ...

Clipboard access using Javascript - sans Flash?

Is there a reliable way to access the client machine s clipboard using Javascript? I continue to run into permissions issues when attempting to do this. How does Google Docs do this? Do they use ...

javascript debugging question

I have a large javascript which I didn t write but I need to use it and I m slowely going trough it trying to figure out what does it do and how, I m using alert to print out what it does but now I ...

Parsing date like twitter

I ve made a little forum and I want parse the date on newest posts like twitter, you know "posted 40 minutes ago ","posted 1 hour ago"... What s the best way ? Thanx.

热门标签